freemind.modes.mindmapmode.actions
Class NodeGeneralAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by freemind.modes.mindmapmode.actions.FreemindAction
          extended by freemind.modes.mindmapmode.actions.xml.AbstractXmlAction
              extended by freemind.modes.mindmapmode.actions.NodeGeneralAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
ApplyPatternAction, BoldAction, CloudAction, EdgeStyleAction, EdgeWidthAction, FontFamilyAction, FontSizeAction, ItalicAction, MoveNodeAction, NodeBackgroundColorAction.RemoveNodeBackgroundColorAction, NodeColorBlendAction, NodeStyleAction, RemoveAllIconsAction, RemoveIconAction, SelectAllAction, UnderlinedAction, UsePlainTextAction, UseRichFormattingAction

public class NodeGeneralAction
extends AbstractXmlAction

See Also:
Serialized Form

Field Summary
protected static java.util.logging.Logger logger
           
protected  MindMapController modeController
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected NodeGeneralAction(MindMapController modeController, java.lang.String textID, java.lang.String iconPath)
          null if you cannot provide a title that is present in the resources.
  NodeGeneralAction(MindMapController modeController, java.lang.String textID, java.lang.String iconPath, NodeActorXml actor)
           
  NodeGeneralAction(MindMapController modeController, java.lang.String textID, java.lang.String iconPath, SingleNodeOperation singleNodeOperation)
           
 
Method Summary
 void act(freemind.controller.actions.generated.instance.XmlAction action)
           
 void addActor(NodeActorXml actor)
           
protected  void execute(ActionPair pair)
           
protected  NodeAdapter getNodeFromID(java.lang.String string)
           
protected  java.lang.String getNodeID(MindMapNode selected)
           
protected  void setName(java.lang.String name)
           
 void setSingleNodeOperation(SingleNodeOperation singleNodeOperation)
          The singleNodeOperation to set.
 void xmlActionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class freemind.modes.mindmapmode.actions.xml.AbstractXmlAction
actionPerformed, addActor, getActor, getMindMapController
 
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
 

Field Detail

modeController

protected final MindMapController modeController

logger

protected static java.util.logging.Logger logger
Constructor Detail

NodeGeneralAction

protected NodeGeneralAction(MindMapController modeController,
                            java.lang.String textID,
                            java.lang.String iconPath)
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. give a resource name for the icon.


NodeGeneralAction

public NodeGeneralAction(MindMapController modeController,
                         java.lang.String textID,
                         java.lang.String iconPath,
                         SingleNodeOperation singleNodeOperation)

NodeGeneralAction

public NodeGeneralAction(MindMapController modeController,
                         java.lang.String textID,
                         java.lang.String iconPath,
                         NodeActorXml actor)
Method Detail

setName

protected void setName(java.lang.String name)

addActor

public void addActor(NodeActorXml actor)

setSingleNodeOperation

public void setSingleNodeOperation(SingleNodeOperation singleNodeOperation)
The singleNodeOperation to set.


xmlActionPerformed

public void xmlActionPerformed(java.awt.event.ActionEvent e)
Specified by:
xmlActionPerformed in class AbstractXmlAction

execute

protected void execute(ActionPair pair)

act

public void act(freemind.controller.actions.generated.instance.XmlAction action)

getNodeFromID

protected NodeAdapter getNodeFromID(java.lang.String string)

getNodeID

protected java.lang.String getNodeID(MindMapNode selected)