freemind.modes.mindmapmode.actions
Class PasteAction

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

public class PasteAction
extends javax.swing.AbstractAction
implements ActorXml

See Also:
Serialized Form

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

PasteAction

public PasteAction(MindMapController 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(freemind.controller.actions.generated.instance.XmlAction action)
Specified by:
act in interface ActorXml

getDoActionClass

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

getPasteNodeAction

public freemind.controller.actions.generated.instance.PasteNodeAction getPasteNodeAction(java.awt.datatransfer.Transferable t,
                                                                                         PasteAction.NodeCoordinate coord)

paste

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


paste

public boolean paste(java.awt.datatransfer.Transferable t,
                     MindMapNode target,
                     boolean asSibling,
                     boolean isLeft)
Parameters:
t - the content
target - where to add the content
asSibling - if true, the content is added beside the target, otherwise as new children
isLeft - if something is pasted as a sibling to root, it must be decided on which side of root
Returns:
true, if successfully executed.

pasteXMLWithoutRedisplay

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