|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.commands.CommandsTree
This class represents a tree structure of commands. This structure is used e.g. to construct the popup menu of commands. Every instance of this class represents a single node in the tree structure.
Nested Class Summary | |
static interface |
CommandsTree.Provider
Provider of CommandsTree. |
Field Summary | |
static CommandsTree |
EMPTY
An empty commands tree element, that can be used for separators. |
Constructor Summary | |
CommandsTree(CommandSupport cmdSupport)
Creates a new instance of CommandsTree. |
Method Summary | |
void |
add(CommandsTree child)
Add a new child to this tree node. |
CommandsTree[] |
children()
Provides the array of children. |
CommandSupport |
getCommandSupport()
Get the command of this item. |
boolean |
hasChildren()
Tells whether this node of the tree has some children. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final CommandsTree EMPTY
Constructor Detail |
public CommandsTree(CommandSupport cmdSupport)
Method Detail |
public final CommandSupport getCommandSupport()
null
for a separator.public final void add(CommandsTree child)
child
- The new child to be added.public final boolean hasChildren()
public final CommandsTree[] children()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |