org.embl.ebi.escience.scuflui.actions
Class ScuflModelActionSPI
java.lang.Object
javax.swing.AbstractAction
org.embl.ebi.escience.scuflui.actions.ScuflModelAction
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
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
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 |
ScuflModelActionSPI
public ScuflModelActionSPI()
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