freemind.modes.actions
Class EditAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byfreemind.modes.actions.EditAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, ActorXml, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class EditAction
extends javax.swing.AbstractAction
implements ActorXml

See Also:
Serialized Form

Field Summary
 
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
EditAction(ControllerAdapter modeController)
           
 
Method Summary
 void act(XmlAction action)
           
 void actionPerformed(java.awt.event.ActionEvent arg0)
           
 void edit(java.awt.event.KeyEvent e, boolean addNew, boolean editLong)
           
 void edit(NodeView node, NodeView prevSelected, java.awt.event.KeyEvent firstEvent, boolean isNewNode, boolean parentFolded, boolean editLong)
           
 void editLater(NodeView node, NodeView prevSelected, java.awt.event.KeyEvent firstEvent, boolean isNewNode, boolean parentFolded, boolean editLong)
           
 java.lang.Class getDoActionClass()
           
protected  ControllerAdapter getModeController()
           
 void setNodeText(MindMapNode selected, java.lang.String newText)
           
 
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
 

Constructor Detail

EditAction

public EditAction(ControllerAdapter modeController)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

act

public void act(XmlAction action)
Specified by:
act in interface ActorXml

getDoActionClass

public java.lang.Class getDoActionClass()
Specified by:
getDoActionClass in interface ActorXml
Returns:

edit

public void edit(java.awt.event.KeyEvent e,
                 boolean addNew,
                 boolean editLong)

editLater

public void editLater(NodeView node,
                      NodeView prevSelected,
                      java.awt.event.KeyEvent firstEvent,
                      boolean isNewNode,
                      boolean parentFolded,
                      boolean editLong)
Parameters:
node -
prevSelected - when new->esc: node be selected
firstEvent -
isNewNode - when new->esc: cut the node
parentFolded - when new->esc: fold prevSelected
editLong -

edit

public void edit(NodeView node,
                 NodeView prevSelected,
                 java.awt.event.KeyEvent firstEvent,
                 boolean isNewNode,
                 boolean parentFolded,
                 boolean editLong)

setNodeText

public void setNodeText(MindMapNode selected,
                        java.lang.String newText)

getModeController

protected ControllerAdapter getModeController()