freemind.modes.actions
Class NodeGeneralAction
java.lang.Object
javax.swing.AbstractAction
freemind.controller.actions.FreemindAction
freemind.controller.actions.AbstractXmlAction
freemind.modes.actions.NodeGeneralAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- Direct Known Subclasses:
- ApplyPatternAction, BoldAction, CloudAction, EdgeStyleAction, EdgeWidthAction, FontFamilyAction, FontSizeAction, ItalicAction, MoveNodeAction, NodeBackgroundColorAction.RemoveNodeBackgroundColorAction, NodeColorBlendAction, NodeStyleAction, RemoveAllIconsAction, RemoveLastIconAction, SelectAllAction, UnderlinedAction
- public class NodeGeneralAction
- extends AbstractXmlAction
- 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 |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
modeController
protected final ModeController modeController
logger
protected static java.util.logging.Logger logger
NodeGeneralAction
protected NodeGeneralAction(ModeController modeController,
java.lang.String textID,
java.lang.String iconPath)
- Parameters:
modeController
- textID
- null if you cannot provide a title that is present in the
resources. Use the setName method to set your not translateble
title after that.iconPath
- give a resource name for the icon.
NodeGeneralAction
public NodeGeneralAction(ModeController modeController,
java.lang.String textID,
java.lang.String iconPath,
SingleNodeOperation singleNodeOperation)
NodeGeneralAction
public NodeGeneralAction(ModeController modeController,
java.lang.String textID,
java.lang.String iconPath,
NodeActorXml actor)
setName
protected void setName(java.lang.String name)
addActor
public void addActor(NodeActorXml actor)
setSingleNodeOperation
public void setSingleNodeOperation(SingleNodeOperation singleNodeOperation)
- Parameters:
singleNodeOperation
- The singleNodeOperation to set.
xmlActionPerformed
public void xmlActionPerformed(java.awt.event.ActionEvent e)
- Specified by:
xmlActionPerformed
in class AbstractXmlAction
- Parameters:
e
-
execute
protected void execute(ActionPair pair)
act
public void act(XmlAction action)
getNodeFromID
protected NodeAdapter getNodeFromID(java.lang.String string)
- Parameters:
string
-
- Returns:
getNodeID
protected java.lang.String getNodeID(MindMapNode selected)
- Parameters:
selected
-
- Returns:
getActionXmlFactory
protected ObjectFactory getActionXmlFactory()