projectviewer.action
Class EditGroupAction

java.lang.Object
  extended byprojectviewer.action.Action
      extended byprojectviewer.action.EditGroupAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener

public class EditGroupAction
extends Action

Action that when executed creates a new group or edits an existing one.

Since:
PV 2.1.0
Version:
$Id: EditGroupAction.java 7172 2006-10-05 06:07:06Z ezust $
Author:
Marcelo Vanzin

Field Summary
 
Fields inherited from class projectviewer.action.Action
action, cmItem, tbButton, viewer
 
Constructor Summary
EditGroupAction(boolean add)
           
EditGroupAction(boolean add, VPTGroup parent, java.awt.Component gui)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 java.lang.String getText()
          Returns the text to be shown on the button and/or menu item.
 void prepareForNode(VPTNode node)
          Enable action only for group nodes.
 
Methods inherited from class projectviewer.action.Action
clone, getButton, getIcon, getMenuItem, setViewer
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditGroupAction

public EditGroupAction(boolean add)

EditGroupAction

public EditGroupAction(boolean add,
                       VPTGroup parent,
                       java.awt.Component gui)
Method Detail

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

prepareForNode

public void prepareForNode(VPTNode node)
Enable action only for group nodes.

Overrides:
prepareForNode in class Action
Parameters:
node - The selected node, or "null" if multiple nodes are selected.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)