|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.corelib.components.Tree
@Events(value={"nodeSelected","nodeUnselected"}) public class Tree
A component used to render a recursive tree structure, with expandable/collapsable/selectable nodes. The data that is displayed
by the component is provided as a TreeModel
. A secondary model, the TreeExpansionModel
, is used
to track which nodes have been expanded. The optional TreeSelectionModel
is used to track node selections (as currently
implemented, only leaf nodes may be selected).
Constructor Summary | |
---|---|
Tree()
|
Method Summary | |
---|---|
void |
clearExpansions()
Clears the tree's TreeExpansionModel . |
String |
getContainerClass()
|
TreeExpansionModel |
getDefaultTreeExpansionModel()
|
TreeExpansionModel |
getExpansionModel()
Returns the actual TreeExpansionModel in use for this Tree component,
as per the expansionModel parameter. |
Object |
getRenderRootNodes()
|
TreeSelectionModel |
getSelectionModel()
Returns the actual TreeSelectionModel in use for this Tree component,
as per the selectionModel parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tree()
Method Detail |
---|
public String getContainerClass()
public TreeExpansionModel getDefaultTreeExpansionModel()
public TreeExpansionModel getExpansionModel()
TreeExpansionModel
in use for this Tree component,
as per the expansionModel parameter. This is often, but not always, the same
as getDefaultTreeExpansionModel()
.
public TreeSelectionModel getSelectionModel()
TreeSelectionModel
in use for this Tree component,
as per the selectionModel
parameter.
public Object getRenderRootNodes()
public void clearExpansions()
TreeExpansionModel
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |