public class PasteAction extends javax.swing.AbstractAction implements ActorXml
Modifier and Type | Class and Description |
---|---|
static class |
PasteAction.NodeCoordinate |
Constructor and Description |
---|
PasteAction(MindMapController adapter) |
Modifier and Type | Method and Description |
---|---|
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) |
public PasteAction(MindMapController adapter)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void act(freemind.controller.actions.generated.instance.XmlAction action)
public java.lang.Class getDoActionClass()
getDoActionClass
in interface ActorXml
public freemind.controller.actions.generated.instance.PasteNodeAction getPasteNodeAction(java.awt.datatransfer.Transferable t, PasteAction.NodeCoordinate coord)
public void paste(MindMapNode node, MindMapNode parent)
public boolean paste(java.awt.datatransfer.Transferable t, MindMapNode target, boolean asSibling, boolean isLeft)
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 rootpublic MindMapNodeModel pasteXMLWithoutRedisplay(java.lang.String pasted, MindMapNode target, boolean asSibling, boolean changeSide, boolean isLeft, java.util.HashMap pIDToTarget) throws XMLParseException
XMLParseException