projectviewer.action
Class MoveNodeAction

java.lang.Object
  extended byprojectviewer.action.Action
      extended byprojectviewer.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

Field Summary
 
Fields inherited from class projectviewer.action.Action
action, cmItem, tbButton, viewer
 
Constructor Summary
MoveNodeAction()
           
 
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 projectviewer.action.Action
clone, getButton, getIcon, setViewer
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveNodeAction

public MoveNodeAction()
Method Detail

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.