freemind.modes.actions
Class NodeGeneralAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byfreemind.controller.actions.FreemindAction
          extended byfreemind.controller.actions.AbstractXmlAction
              extended byfreemind.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

Field Summary
protected static java.util.logging.Logger logger
           
protected  ModeController modeController
           
 
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
 
Constructor Summary
protected NodeGeneralAction(ModeController modeController, java.lang.String textID, java.lang.String iconPath)
           
  NodeGeneralAction(ModeController modeController, java.lang.String textID, java.lang.String iconPath, NodeActorXml actor)
           
  NodeGeneralAction(ModeController modeController, java.lang.String textID, java.lang.String iconPath, SingleNodeOperation singleNodeOperation)
           
 
Method Summary
 void act(XmlAction action)
           
 void addActor(NodeActorXml actor)
           
protected  void execute(ActionPair pair)
           
protected  ObjectFactory getActionXmlFactory()
           
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)
           
 void xmlActionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class freemind.controller.actions.AbstractXmlAction
actionPerformed, addActor, getActor, getModeController
 
Methods inherited from class freemind.controller.actions.FreemindAction
setSelected
 
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 ModeController modeController

logger

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

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)
Method Detail

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()