projectviewer.action
Class NodePropertiesAction

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

public class NodePropertiesAction
extends Action

Shows a dialog with properties for the selected node.

Since:
PV 3.0.0
Author:
Marcelo Vanzin

Field Summary
 
Fields inherited from class projectviewer.action.Action
action, cmItem, viewer
 
Constructor Summary
NodePropertiesAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Shows the property dialog.
 java.lang.String getText()
          Returns a String that will be shown as the text of the menu item or the tooltip of the toolbar button.
 void prepareForNode(VPTNode node)
          Disable action for multiple selection.
 
Methods inherited from class projectviewer.action.Action
clone, compareTo, equals, getMenuItem, setViewer
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodePropertiesAction

public NodePropertiesAction()
Method Detail

getText

public java.lang.String getText()
Description copied from class: Action
Returns a String that will be shown as the text of the menu item or the tooltip of the toolbar button.

Specified by:
getText in class Action

prepareForNode

public void prepareForNode(VPTNode node)
Disable action for multiple selection.

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 e)
Shows the property dialog.