org.embl.ebi.escience.scuflui.actions
Class ScuflModelActionSPI

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.embl.ebi.escience.scuflui.actions.ScuflModelAction
          extended by org.embl.ebi.escience.scuflui.actions.ScuflModelActionSPI
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
AddNestedWorkflowAction

public abstract class ScuflModelActionSPI
extends ScuflModelAction

Abstract class through which optional ScuflModelActions may added using the SPI pattern. This class is required to generate a default constructor and the ability to add a model after construction of the class. It also enforces that the label for the action within the action itself. These actions are added to the toolbar of the Advanced Model Explorer.

Author:
Stuart Owen
See Also:
ScuflModelActionRegistry, AdvancedModelExplorer, Serialized Form

Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ScuflModelActionSPI()
           
 
Method Summary
abstract  java.lang.String getLabel()
           
 void setModel(ScuflModel model)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

ScuflModelActionSPI

public ScuflModelActionSPI()
Method Detail

setModel

public void setModel(ScuflModel model)

getLabel

public abstract java.lang.String getLabel()
Returns:
the label that is asigned to the action when added to the Advanced Model Explorer