站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

CommandsTree (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.commands
Class CommandsTree

java.lang.Object
  extended byorg.netbeans.modules.vcscore.commands.CommandsTree

public final class CommandsTree
extends Object

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

EMPTY

public static final CommandsTree EMPTY
An empty commands tree element, that can be used for separators.

Constructor Detail

CommandsTree

public CommandsTree(CommandSupport cmdSupport)
Creates a new instance of CommandsTree.

Method Detail

getCommandSupport

public final CommandSupport getCommandSupport()
Get the command of this item.

Returns:
The command or null for a separator.

add

public final void add(CommandsTree child)
Add a new child to this tree node.

Parameters:
child - The new child to be added.

hasChildren

public final boolean hasChildren()
Tells whether this node of the tree has some children.

Returns:
True if there are some children.

children

public final CommandsTree[] children()
Provides the array of children.

Returns:
The array of children (empty array if there are no children).

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.