org.equanda.tapestry5.data
Class FlattenedTree

java.lang.Object
  extended by org.equanda.tapestry5.data.FlattenedTree
All Implemented Interfaces:
Serializable

public class FlattenedTree
extends Object
implements Serializable

This class is used by the TreeTable component to flatten a given Tree structure so that it can be represented in an html table.

A Tree is nested, an html table is flat and this class represent each node of the tree, but without nesting. The TreeTable component can then convert a Tree structure (each Tree can contain other Tree childs) into a list of FlattenedTree objects. The FlattenedTree still remember the position of the node in the original tree in order to render the tree correctly in html (reference to javascript used by TreeTable component for details).

Author:
Geert Mergan
See Also:
Serialized Form

Constructor Summary
FlattenedTree(Tree tree, int depth, String dotId)
           
 
Method Summary
 int getDepth()
           
 String getDotId()
           
 Tree getTree()
           
 boolean isLeaf()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlattenedTree

public FlattenedTree(Tree tree,
                     int depth,
                     String dotId)
Method Detail

getTree

public Tree getTree()

getDotId

public String getDotId()

getDepth

public int getDepth()

isLeaf

public boolean isLeaf()


Copyright © 2007-2009. All Rights Reserved.