ArticlesTutorialsInterview Questions & AnswersCertificationsFree Books & Sample ChaptersTechnical Discussions  Your Account | Advertise with us | Feedback |
Few pages of this site are under construction and we are constantly trying to improve it. If you have any suggestions or ideas about how to improve the site, please Let us know.
Tomahawk Tree

 t:tabChangeListener Tomahawk Tag Home t:tree2 

<t:tree>


Contents

  1. Introduction
  2. Tag Attributes
  3. Example

Introduction

The t:tree component renders a tree representation of your data with a HTML table.



Tag Attributes


AttributeDescription   Type    
columnClasses

The columnClasses attribute accepts a comma-delimited list of CSS style classes that will be applied to the columns of the table. Style classes for an individual column may also be defined in a space separated list. A style class is applied to a table column as the value for the class attribute of rendered td or th element.

The algorithm used to apply the CSS style classes to the table columns is simple. In the table rendering process, style classes are applied to columns one at a time until (a) there are no more columns to display or (b) there are no more style classes to apply.

  • If (a) happens at the same time as (b), the next row in the table is rendered.
  • If (a) happens before (b), the remaining style classes are ignored.
  • If (b) happens before (a), the remaining columns will not have style classes
String
expandRoot The expandRoot attribute expects a boolean value that, when true, causes the root node of the tree to be expanded. String
expireListeners The expireListeners attribute expects a numeric value that indicates the duration of time in milliseconds that the tree will remain registered as a TreeModelListener since it was last accessedString
footerClass The footerClass attribute accepts a space-separated list of CSS style classes to be applied to the table footer if one has been defined String
headerClass The headerClass attribute accepts a space-separated list of CSS style classes to be applied to any header generated for this table. String
iconChildFirst The iconChildFirst attribute defines the icon used to represent the first child node in a branch of the tree. String
iconChildLast The iconChildLast attribute defines the icon used to represent the last child node in a branch of the tree.  
iconChildMiddle The iconChildMiddle attribute defines the icon used to represent a middle child node in a branch of the tree.  
iconClass The iconClass attribute defines the CSS class to be applied to icons in the tree.  
iconLine The iconLine attribute defines the icon used to represent a line in the tree.  
iconNodeClose The iconNodeClose attribute defines the icon used to represent a closed node in the tree.  
iconNodeCloseFirst The iconNodeCloseFirst attribute defines the icon used to represent the first closed node in a branch of the tree.  
iconNodeCloseLast The iconNodeCloseLast attribute defines the icon used to represent the last closed node in a branch of the tree.  
iconNodeCloseMiddle The iconNodeCloseMiddle attribute defines the icon used to represent a closed middle node in a branch of the tree.  
iconNodeOpen The iconNodeOpen attribute defines the icon used to represent an open node in a branch of the tree.  
iconNodeOpenFirst The iconNodeOpenFirst attribute defines the icon used to represent the first open node in a branch of the tree.  
iconNodeOpenLast The iconNodeOpenLast attribute defines the icon used to represent the last open node in a branch of the tree.  
iconNodeOpenMiddle The iconNodeOpenMiddle attribute defines the icon used to represent an open middle node in a branch of the tree.  
iconNoline The iconNoline attribute defines the icon used to represent the absence of a line in the tree.  
id    
nodeClass The nodeClass attribute defines the CSS class to be applied to nodes in the tree.  
rendered A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered. String
rowClasses The rowClasses attribute accepts a comma-delimited list of CSS style classes to be applied to the rows of the table. Style classes for an individual row may also be defined in a space separated list. A style class is applied to a table row as the value for the class attribute of rendered tr element.

Style classes are applied to rows in the same order that they are defined. For example, if there are two style classes, the first is applied to the first row, the second is applied to the second row, the first is applied to the third row, the second is applied to the fourth row, and so on. The list of styles is looped over from the beginning until there are no more rows to display.

String
selectedNodeClass The selectedNodeClass attribute defines the CSS class to be applied to selected nodes in the tree.  
showRootNode The showRootNode attribute expects a boolean value that, when true, indicates that the root node of the tree should be displayed.  
styleClass The styleClass attribute sets the CSS class to apply to this component when it is rendered.  
value The value attribute takes a value-binding EL expression (e.g.,"#{myBean.myProperty}") that identifies the object or literal String value (e.g.,"foo") to assign to the alias.String
var The var attribute sets the name of a request-scope attribute exposing the data for each iteration over the rows in the underlying data model for this table  


Example


Check this example.

 t:tabChangeListener Tomahawk Tag Home
t:tree2 
Test

  ALSO SEE :

About Us | Our Mission | Terms of use | Author Terms |    Search        | Contact Us | Advertise With Us | Link to Us | Sitemap
Copyright © 2016 developersBOOK.COM. All rights reserved.