org.equanda.tapestry5.data
Class FlattenedTree
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlattenedTree
public FlattenedTree(Tree tree,
int depth,
String dotId)
getTree
public Tree getTree()
getDotId
public String getDotId()
getDepth
public int getDepth()
isLeaf
public boolean isLeaf()
Copyright © 2007-2009. All Rights Reserved.