Tree

net.sf.tacos.components.tree.Tree

Description

Tree component. Works similar to a For: the body is rendered for every element. The current element can be accessed via the outgoing binding "value". This component is partial request compatible, meaning that if you invoke PartialLink's with refreshParts containing unique tree node id's it will render them correctly.

Parameters

nametyperequireddefault valuedescription
valueobjectOutgoing binding to current value.
closeIconobjectasset:closeIf specified, overrides the default close node - icon used on tree.
linkListenerorg.apache.tapestry.IActionListenerSpecifies the listener to invoke during the execution of contentExpansion method. This enables other components to cause the tree to collapse/expand nodes on the tree AND invoke their listeners. It's basically a work around for being able to specify multiple listeners on a link.
offsetint16Offset in pixels for depth-indentation.
asyncbooleanognl:trueAllows specifying whether or not the +/- links on a node are invoked via ajax or normal http requests. Default is ajax.
offsetAttributeobjectliteral:margin-leftHow to generate the offset for depth indentation.
loadElementjava.lang.StringIf delayedLoad=true, this element will be placed relatively in the center of the tree's content area during delayed loads instead of the default "Loading.." text.
keyProvidernet.sf.tacos.model.IKeyProviderognl:identityKeyProviderConverter from elements to keys. Optional, by default IdentityKeyProvider is used.
delayedLoadbooleanognl:falseCan only be used if javascript/ajax is enabled in your browser environment, if specified the trees contents won't be displayed when being loaded by a window, but will instead be replaced with a default "Loading.." text element (replaceable by using the loadElement parameter) while an additional ajax request is made after the window.onload event is fired to get the trees contents.
contentProvidernet.sf.tacos.model.ITreeContentProviderProvides elements for tree to display.
statejava.util.SetdefaultStateSet of currently open element keys. Optional, by default an empty persistent HashSet is created.
nodeLinkAjaxbooleanognl:trueAllows specifying whether or not the +/- links on a node are invoked via ajax or normal http requests. Default is ajax.
rowStyleorg.apache.tapestry.bean.EvenOddIf provided the individual rows of the tree will alternate styles using the provided EvenOdd beans even and odd css classes.
converterobjectProvides ability to specify a tapestry IPrimaryKeyConverter to the tree.
partialBlockClassjava.lang.StringOptional, if specified the surrounding div block on each category or node will have its class attribute set to this value
sorterjava.util.ComparatornullOptional comparator to order the displayed elements by.
rowStyleInOuterDivbooleanognl:falseApply even and odd css classes to the outer div.
openIconobjectasset:openIf specified, overrides the default open node + icon used on tree.

Allow body: ( rendered )

Allow informal parameters:

Reserved parameters: -