projectviewer.action
Class NodePropertiesAction
java.lang.Object
projectviewer.action.Action
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
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 java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodePropertiesAction
public NodePropertiesAction()
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.