|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprojectviewer.action.Action
projectviewer.action.EditProjectAction
Action that when executed creates a new project or edits an existing one.
Field Summary |
Fields inherited from class projectviewer.action.Action |
action, cmItem, tbButton, viewer |
Constructor Summary | |
EditProjectAction()
Default constructor. |
|
EditProjectAction(boolean forceNew,
VPTGroup parent)
If forceNew is true, creation of new project will be forced. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Creates a new project. |
javax.swing.Icon |
getIcon()
Returns the icon to be shown on the toolbar button. |
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 the root node. |
Methods inherited from class projectviewer.action.Action |
clone, getButton, getMenuItem, setViewer |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EditProjectAction()
public EditProjectAction(boolean forceNew, VPTGroup parent)
Method Detail |
public java.lang.String getText()
getText
in class Action
public javax.swing.Icon getIcon()
getIcon
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |