|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprojectviewer.action.Action
projectviewer.action.ActionSeparator
Small hack to enable a separator to be shown when some other action is also shown.
Field Summary |
Fields inherited from class projectviewer.action.Action |
action, cmItem, tbButton, viewer |
Constructor Summary | |
ActionSeparator()
|
Method Summary | |
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 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. |
Methods inherited from class projectviewer.action.Action |
clone, getButton, getIcon, setViewer |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionSeparator()
Method Detail |
public void setLinkedAction(Action linked)
public void setLinkedActions(java.util.List actions)
public java.lang.String getText()
getText
in class Action
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |