projectviewer.action
Class MoveNodeAction
java.lang.Object
projectviewer.action.Action
projectviewer.action.MoveNodeAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener
- public class MoveNodeAction
- extends Action
Action to move a project or group into another group.
- Since:
- PV 2.1.0
- Version:
- $Id: MoveNodeAction.java 6333 2005-02-10 06:31:59Z vanza $
- Author:
- Marcelo Vanzin
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent ae)
Moves the selected node to the selected destination. |
javax.swing.JComponent |
getMenuItem()
Instantiates a GroupMenu and returns it. |
java.lang.String |
getText()
Returns the text to be shown on the button and/or menu item. |
void |
prepareForNode(VPTNode node)
Show only for projects and (non-root) groups. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoveNodeAction
public MoveNodeAction()
getMenuItem
public javax.swing.JComponent getMenuItem()
- Instantiates a GroupMenu and returns it.
- Overrides:
getMenuItem
in class Action
getText
public java.lang.String getText()
- Returns the text to be shown on the button and/or menu item.
- Specified by:
getText
in class Action
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- Moves the selected node to the selected destination.
prepareForNode
public void prepareForNode(VPTNode node)
- Show only for projects and (non-root) groups.
- Overrides:
prepareForNode
in class Action
- Parameters:
node
- The selected node, or "null" if multiple nodes are
selected.