HomeNext

Tree
net.sf.tacos.tree.Tree
  Non-Visual Component
Description
Tree component. Works similar to a Foreach: 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
nametypedirectionrequireddefault valuedescription
contentProviderjava.lang.Objectcustom   Provides elements for tree to display. 
keyProviderjava.lang.Objectcustom  ognl:identityKeyProviderConverter from elements to keys. Optional, by default IdentityKeyProvider is used. 
valuejava.lang.Objectcustom   Outgoing binding to current value. 
statejava.lang.Objectcustom  defaultStateSet of currently open element keys. Optional, by default an empty persistent HashSet is created. 
sorterjava.lang.Objectcustom  nullOptional comparator to order the displayed elements by. 
offsetjava.lang.Objectcustom  16Offset in pixels for depth-indentation. 
rowStylejava.lang.Objectcustom  nullIf provided the individual rows of the tree will alternate styles using the provided EvenOdd beans even and odd css classes.  
linkListenerjava.lang.Objectcustom  nullSpecifies 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. 
Allow body (rendered)
Allow informal parameters   
Reserved parameters   -
Toggle help

HomeNext