freemind.modes.mindmapmode.actions
Class PasteAction
java.lang.Object
javax.swing.AbstractAction
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
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 |
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,
java.util.HashMap pIDToTarget)
|
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 |
PasteAction
public PasteAction(MindMapController adapter)
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 contenttarget
- where to add the contentasSibling
- if true, the content is added beside the target, otherwise as new childrenisLeft
- 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,
java.util.HashMap pIDToTarget)
throws XMLParseException
- Throws:
XMLParseException