projectviewer.action
Class MoveNodeAction

java.lang.Object
  extended by projectviewer.action.Action
      extended by projectviewer.action.MoveNodeAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.lang.Cloneable, java.lang.Comparable<Action>, java.util.EventListener

public class MoveNodeAction
extends Action

Action to move a project or group into another group.

Since:
PV 2.1.0
Author:
Marcelo Vanzin

Field Summary
 
Fields inherited from class projectviewer.action.Action
action, cmItem, 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, compareTo, equals, setViewer
 
Methods inherited from class java.lang.Object
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.