edu.northwestern.at.utils.swing
Class TreeListEntry

java.lang.Object
  extended by edu.northwestern.at.utils.swing.TreeListEntry

public class TreeListEntry
extends java.lang.Object


Field Summary
protected  boolean isNode
          True if this entry is a leaf node.
protected  int level
          The depth in the tree for this entry.
protected  java.lang.Object object
          The object for this list entry.
 
Constructor Summary
TreeListEntry(java.lang.Object object, int level, boolean isNode)
          Create a TreeListEntry.
 
Method Summary
 boolean getIsNode()
          Is entry a leaf node.
 int getLevel()
          Get the tree depth level for this list entry.
 java.lang.Object getObject()
          Get the object for this list entry.
 java.lang.String toString()
          String form of list entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

object

protected java.lang.Object object
The object for this list entry.


level

protected int level
The depth in the tree for this entry.


isNode

protected boolean isNode
True if this entry is a leaf node.

Constructor Detail

TreeListEntry

public TreeListEntry(java.lang.Object object,
                     int level,
                     boolean isNode)
Create a TreeListEntry.

Parameters:
object - User object for this list entry.
level - The depth level in the tree for this entry.
isNode - True if this entry is not a leaf node.
Method Detail

getObject

public java.lang.Object getObject()
Get the object for this list entry.

Returns:
The object.

getLevel

public int getLevel()
Get the tree depth level for this list entry.

Returns:
The level.

getIsNode

public boolean getIsNode()
Is entry a leaf node.

Returns:
True if entry is not a leaf node.

toString

public java.lang.String toString()
String form of list entry.

Overrides:
toString in class java.lang.Object
Returns:
String form of list entry.