freemind.modes.actions
Class PasteAction

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

public class PasteAction
extends javax.swing.AbstractAction
implements ActorXml

See Also:
Serialized Form

Nested Class Summary
static class PasteAction.NodeCoordinate
           
 
Field Summary
static java.lang.String NODESEPARATOR
           
 
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
PasteAction(ControllerAdapter adapter)
           
 
Method Summary
 void act(XmlAction action)
           
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.lang.Class getDoActionClass()
           
 PasteNodeAction getPasteNodeAction(java.awt.datatransfer.Transferable t, PasteAction.NodeCoordinate coord)
           
 void paste(MindMapNode node, MindMapNode parent)
          URGENT: Change this method.
 void paste(java.awt.datatransfer.Transferable t, MindMapNode target, boolean asSibling, boolean isLeft)
           
 MindMapNodeModel pasteXMLWithoutRedisplay(java.lang.String pasted, MindMapNode target, boolean asSibling)
           
 
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

NODESEPARATOR

public static final java.lang.String NODESEPARATOR
See Also:
Constant Field Values
Constructor Detail

PasteAction

public PasteAction(ControllerAdapter adapter)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
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:

getPasteNodeAction

public PasteNodeAction getPasteNodeAction(java.awt.datatransfer.Transferable t,
                                          PasteAction.NodeCoordinate coord)
                                   throws JAXBException
Throws:
JAXBException

paste

public void paste(MindMapNode node,
                  MindMapNode parent)
URGENT: Change this method.


paste

public void paste(java.awt.datatransfer.Transferable t,
                  MindMapNode target,
                  boolean asSibling,
                  boolean isLeft)

pasteXMLWithoutRedisplay

public MindMapNodeModel pasteXMLWithoutRedisplay(java.lang.String pasted,
                                                 MindMapNode target,
                                                 boolean asSibling)
                                          throws XMLParseException
Throws:
XMLParseException