ConForM.CoopnTools.CoKer.Visual
Class GraphicalVisualAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--ConForM.CoopnTools.CoKer.Visual.GraphicalVisualAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, GraphicalVisualEditoredMenuItem, java.io.Serializable
- Direct Known Subclasses:
- CopyAction, ExportAction, PrintAction, RedoAction, SaveAction, UndoAction, ZoomAction, ZoomInAction, ZoomOutAction
- public abstract class GraphicalVisualAction
- extends javax.swing.AbstractAction
- implements GraphicalVisualEditoredMenuItem
This class defines generic actions for the CoopnTools Visual Package.
These actions have the characteristic of encapsulating the associated
visual editor and the associated CoopnTools environment.
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
javax.swing.Icon |
icon()
Get the icon of the action. |
java.lang.String |
label()
Get the label of the action. |
char |
mnemo()
Get the mnemonic of the action. |
void |
setEditor(GraphicalVisualEditor editor)
Set the associated editor. |
protected void |
setIcon(javax.swing.Icon icon)
Set the icon of the action. |
protected void |
setLabel(java.lang.String label)
Set the label of the action. |
protected void |
setMnemo(char mnemo)
Set the label of the action. |
Methods inherited from class javax.swing.AbstractAction |
actionPerformed, addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
editor
protected GraphicalVisualEditor editor
env
protected CoopnEnv env
label
protected java.lang.String label
mnemo
protected char mnemo
icon
protected javax.swing.Icon icon
GraphicalVisualAction
public GraphicalVisualAction(CoopnEnv env)
GraphicalVisualAction
public GraphicalVisualAction(GraphicalVisualEditor editor,
CoopnEnv env)
setEditor
public void setEditor(GraphicalVisualEditor editor)
- Set the associated editor.
- Specified by:
setEditor
in interface GraphicalVisualEditoredMenuItem
- Parameters:
editor
- the associated editor; iff null; reset the editor
label
public java.lang.String label()
- Get the label of the action.
mnemo
public char mnemo()
- Get the mnemonic of the action.
icon
public javax.swing.Icon icon()
- Get the icon of the action.
setLabel
protected void setLabel(java.lang.String label)
- Set the label of the action.
setMnemo
protected void setMnemo(char mnemo)
- Set the label of the action.
setIcon
protected void setIcon(javax.swing.Icon icon)
- Set the icon of the action.