Constructor and Description |
---|
ActionSeparator() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Does nothing.
|
javax.swing.JComponent |
getMenuItem()
Returns a separator.
|
java.lang.String |
getText()
Returns null.
|
void |
prepareForNode(VPTNode node)
Shows the separator if the linked action is visible or null and only
a single node is selected.
|
void |
setLinkedAction(Action linked)
Sets the linked action.
|
void |
setLinkedActions(java.util.List<Action> actions)
Set a list of actions that will define whether the separator is
shown; it will be show iff all the actions in the list are
visible.
|
public void setLinkedAction(Action linked)
public void setLinkedActions(java.util.List<Action> actions)
public java.lang.String getText()
public void actionPerformed(java.awt.event.ActionEvent e)
public void prepareForNode(VPTNode node)
prepareForNode
in class Action
node
- The selected node, or null
if multiple
nodes are selected.public javax.swing.JComponent getMenuItem()
getMenuItem
in class Action