EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tree
Interface TreeNode

All Superinterfaces:
Serializable
All Known Subinterfaces:
MutableTreeNode<M>
All Known Implementing Classes:
DefaultMutableTreeNode

public interface TreeNode
extends Serializable

The design paradigm and class name used within have been taken directly from the javax.swing package has been retro-fitted to work with the NextApp Echo web framework.

This file was made part of the EchoPoint project on the 25/07/2002.

Since:
3.0.0b3
Version:
$Id: TreeNode.java 213 2009-06-03 16:34:13Z sptrakesh $
Author:
Brad Baker, Rakesh 2009-05-29

Method Summary
 Enumeration<TreeNode> children()
           
 String getActionCommand()
           
 boolean getAllowsChildren()
           
 TreeNode getChildAt(int childIndex)
          Returns the child TreeNode at index childIndex.
 int getChildCount()
           
 int getIndex(TreeNode node)
          Returns the index of node in the receivers children.
 TreeNode getParent()
           
 boolean isLeaf()
           
 

Method Detail

children

Enumeration<TreeNode> children()
Returns:
The children of the reciever as a enumeration.

getActionCommand

String getActionCommand()
Returns:
The action command string associated with this node

getAllowsChildren

boolean getAllowsChildren()
Returns:
true if the receiver allows children.

getChildAt

TreeNode getChildAt(int childIndex)
Returns the child TreeNode at index childIndex.

Parameters:
childIndex - The index into the children at which the child exists.
Returns:
The child tree node.

getChildCount

int getChildCount()
Returns:
The number of children TreeNodes the receiver contains.

getIndex

int getIndex(TreeNode node)
Returns the index of node in the receivers children. If the receiver does not contain node, -1 will be returned.

Parameters:
node - The node whose index is to be returned.
Returns:
The index in the children collection for the node.

getParent

TreeNode getParent()
Returns:
The parent TreeNode of the receiver.

isLeaf

boolean isLeaf()
Returns:
true if the receiver is a leaf.

EchoPoint API - 3.0.0b5
App Webcontainer