org.xnap.gui.table
Class LazyTreeTableNode

java.lang.Object
  extended by org.xnap.gui.table.LazyTreeTableNode
All Implemented Interfaces:
TreeTableNode

public class LazyTreeTableNode
extends java.lang.Object
implements TreeTableNode

This class is a default implementation of a TreeTableNode with children. All data structures holding the childern are instantiated lazyly though to allow for less memory consumption when not needed.


Constructor Summary
LazyTreeTableNode(DefaultColumnTreeTableModel model, java.lang.Object data)
           
 
Method Summary
 void add(TreeTableNode node)
           
 java.lang.Object getChildAt(int index)
          Returns the child node at index.
 int getChildCount()
          Returns the number of children of the node.
 java.lang.Object getData()
          Returns the data object that is held by this node.
 void removeChildAt(int index)
           
 void setData(java.lang.Object data)
           
 void sort(java.util.Comparator c)
          Sort all children.
 java.lang.String toString()
          Returns null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyTreeTableNode

public LazyTreeTableNode(DefaultColumnTreeTableModel model,
                         java.lang.Object data)
Method Detail

add

public void add(TreeTableNode node)

getChildAt

public java.lang.Object getChildAt(int index)
Returns the child node at index.

Specified by:
getChildAt in interface TreeTableNode

getChildCount

public int getChildCount()
Returns the number of children of the node.

Specified by:
getChildCount in interface TreeTableNode

getData

public java.lang.Object getData()
Description copied from interface: TreeTableNode
Returns the data object that is held by this node.

Specified by:
getData in interface TreeTableNode

removeChildAt

public void removeChildAt(int index)

setData

public void setData(java.lang.Object data)

sort

public void sort(java.util.Comparator c)
Description copied from interface: TreeTableNode
Sort all children.

Specified by:
sort in interface TreeTableNode

toString

public java.lang.String toString()
Returns null.

Overrides:
toString in class java.lang.Object


Copyright © 2001-2005 XNap Team. All Rights Reserved.