org.extremecomponents.tree.bean
Class TreeNode

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.extremecomponents.tree.bean.TreeNode
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class TreeNode
extends java.util.HashMap
implements java.util.Map, java.io.Serializable

org.extremecomponents.tree.bean.TreeNode.java -

Author:
Paul Horn
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.HashMap
 
Nested classes inherited from class java.util.AbstractMap
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
TreeNode()
           
TreeNode(java.lang.Object bean, java.lang.Object identifier, int depth)
           
 
Method Summary
 void addChild(java.lang.Object child)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getBean()
           
 java.util.List getChildren()
           
 int getDepth()
           
 java.lang.Object getIdentifier()
           
 TreeNode getParent()
           
 boolean isOpen()
           
 void setBean(java.lang.Object bean)
           
 void setChildren(java.util.List children)
           
 void setDepth(int depth)
           
 void setIdentifier(java.lang.Object object)
           
 void setOpen(boolean open)
           
 void setParent(TreeNode parent)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

TreeNode

public TreeNode()

TreeNode

public TreeNode(java.lang.Object bean,
                java.lang.Object identifier,
                int depth)
Method Detail

addChild

public void addChild(java.lang.Object child)
Parameters:
child -

getBean

public java.lang.Object getBean()
Returns:
Returns the bean.

setBean

public void setBean(java.lang.Object bean)
Parameters:
bean - The bean to set.

getChildren

public java.util.List getChildren()
Returns:
Returns the children.

setChildren

public void setChildren(java.util.List children)
Parameters:
children - The children to set.

getParent

public TreeNode getParent()
Returns:
Returns the parent.

setParent

public void setParent(TreeNode parent)
Parameters:
parent - The parent to set.

getDepth

public int getDepth()
Returns:
Returns the depth.

setDepth

public void setDepth(int depth)
Parameters:
depth - The depth to set.

isOpen

public boolean isOpen()
Returns:
Returns the open.

setOpen

public void setOpen(boolean open)
Parameters:
open - The open to set.

getIdentifier

public java.lang.Object getIdentifier()
Returns:

setIdentifier

public void setIdentifier(java.lang.Object object)
Parameters:
object -

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Map


Copyright © 2004 sourceforge. All Rights Reserved.