Public Member Functions

cern.gp.nodes.GPNode Interface Reference

Inheritance diagram for cern.gp.nodes.GPNode:
cern.gp.nodes.impl.GPBeanNode cern.gp.nodes.impl.GPFilterNode

List of all members.

Public Member Functions

String getName ()
Object getBean ()
boolean isLeaf ()
NodeCollection getNodeCollection ()
GPNode getParent ()
Node getPeerNode ()

Detailed Description

A class implementing this interface is a node that extends the concept of beans. A node is a bean that can have children. The children (a NodeCollection) are managed by a ChildrenManager.

GPNode is the same concept as Node in NetBeans, but wraps the API to make easier to understand and use.

See also:
org.openide.nodes.Node
NodeFactory
cern.gp.nodes.children.NodeCollection
Version:
Revision:
1.2
Date:
2006/09/25 08:52:36
Author:
Lionel Mestre

Member Function Documentation

String cern.gp.nodes.GPNode.getName (  ) 

Returns the name of this node

Returns:
the name of this node
NodeCollection cern.gp.nodes.GPNode.getNodeCollection (  ) 

Returns the children of this node. Null can be returned is this node is a leaf and does not have children.

Returns:
the children of this node or null

Implemented in cern.gp.nodes.impl.GPBeanNode, and cern.gp.nodes.impl.GPFilterNode.

Referenced by cern.gp.explorer.GPListExplorerPanel.getListNodes(), and cern.gp.nodes.impl.GPFilterNode.getNodeCollection().

GPNode cern.gp.nodes.GPNode.getParent (  ) 

Returns the parent node of this node. A node has a parent node if it is member of the children of that node. If this node has no parent (it is a root node), null is returned.

Parameters:
the parent node of this node or null

Implemented in cern.gp.nodes.impl.GPBeanNode, and cern.gp.nodes.impl.GPFilterNode.

Referenced by cern.gp.nodes.impl.GPFilterNode.getParent(), and cern.gp.nodes.impl.NodeUtils.haveOneCommonParent().

boolean cern.gp.nodes.GPNode.isLeaf (  ) 

Test whether the node is a leaf, or may contain children.

Returns:
true if the children list is actually Children.LEAF

The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties