com.intel.gpe.client2.common.panels.tree
Interface Node

All Known Subinterfaces:
RegistryOrChildNode, StorageOrFileNode, TargetSystemOrChildNode, TargetSystemOrChildNode
All Known Implementing Classes:
BaseNode, GRIDNode, GRIDNode, LocalNode, RegistryNode, RegistryNode, RemoteFileNode, StorageNode, TargetSystemNode, TargetSystemNode

public interface Node

The general interface of the node.

Version:
$Id: Node.java,v 1.2 2006/06/14 08:37:04 lukichev Exp $
Author:
Alexander Lukichev

Method Summary
 Node getChild(int i)
          Get the child specified with the index.
 int getChildCount()
          Get the number of children nodes.
 int getIndex(Node node)
          Get the index of the child.
 java.lang.Object[] getPath()
          Get the path to the node.
 boolean isLeaf()
          Check if the node is a leaf.
 

Method Detail

getChildCount

int getChildCount()
Get the number of children nodes.

Returns:
The number of children

getChild

Node getChild(int i)
Get the child specified with the index.

Parameters:
i - The index of the child to get
Returns:
The child node

isLeaf

boolean isLeaf()
Check if the node is a leaf.

Returns:
true if the node if a leaf, false otherwise.

getPath

java.lang.Object[] getPath()
Get the path to the node.

Returns:
the array representing the path to the node

getIndex

int getIndex(Node node)
Get the index of the child. If the specified node is not the child of this one then -1 is returned.

Parameters:
node - - the node
Returns:
the index of the node. -1 if the node is not contained in the receiver.


Copyright © 2008. All Rights Reserved.