|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
com.infragistics.faces.shared.component.DataRepeater
com.infragistics.faces.shared.component.DataList
com.infragistics.faces.tree.component.TreeView
com.infragistics.faces.tree.component.html.HtmlTreeView
TreeView is a component for developing user interfaces representing hierarchical data. It can contain an unlimited number of TreeNode.
Data on Demand - Client-side Partial Refresh
TreeView incorporates our technologies "DataOnDemand for JSF" and "Client-side Partial Refresh".
These unique innovations provide an unprecedented level of user-interaction and richness, only available in traditional rich-client applications.
Tree nodes, for instance, can be populated on an as needed basis, considerably decreasing traffic over the wire and increasing the overall application performance.
Bound and unbound mode
TreeView and tree nodes support bound and unbound mode. In unbound mode, tree nodes are either created declaratively (in a JSP page) or added programmatically.
In bound mode (whenever the dataModel property points to a valid data model of a backing bean) tree nodes are automatically created by TreeView, one node for each row of the data model.
Icons
TreeView fully supports icons. For instance, an icon can be displayed next to a tree node by calling TreeView.setIconUrl(java.lang.String) and TreeView.setExpandedIconUrl(java.lang.String).
Also, an icon (+/-) is automatically displayed to indicate that a node can be expanded or collapsed.
Customizable Look and Feel
Background, color, border, font attributes and much more can be customized and applied to the whole tree or specific tree nodes.
The table below summarizes which elements can be customized:
| Style applied to | How to customize it ? |
|---|---|
| TreeView | Using setStyle(String) and/or setStyleClass(String).
|
| Nodes | Using setNodeStyleClass(String).
|
| Hovered Nodes | Using setNodeHoverStyleClass(String).
|
| Selected Nodes | Using setNodeSelectedStyleClass(String).
|
| Facet Name | Description |
|---|---|
| bottomPager | Specifies the bottom pager to use |
| topPager | Specifies the top pager to use |
| Field Summary | |
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
RENDERER_TYPE
|
| Fields inherited from class com.infragistics.faces.tree.component.TreeView |
FACET_BOTTOM_PAGER, FACET_TOP_PAGER |
| Fields inherited from class com.infragistics.faces.shared.component.DataRepeater |
DATA_ROW |
| Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
| Constructor Summary | |
HtmlTreeView()
|
|
| Method Summary | |
java.lang.String |
getFamily()
|
java.lang.String |
getNodeHoverStyleClass()
Returns the name of the css class applied to a tree node when the mouse cursor is over it This value can also be specified on a node basis |
java.lang.String |
getNodeSelectedStyleClass()
Returns the name of the css class applied to selected tree nodes This value can also be specified on a node basis |
java.lang.String |
getNodeStyleClass()
Returns the name of the css class applied to tree nodes This value can also be specified on a node basis |
java.lang.String |
getStyle()
Returns the default Style applied to the component |
java.lang.String |
getStyleClass()
Returns the name of the css class applied to the component |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setNodeHoverStyleClass(java.lang.String cssClass)
Sets the name of the css class applied to a tree node when the mouse cursor is over it This value can also be specified on a node basis |
void |
setNodeSelectedStyleClass(java.lang.String nodeSelectedClass)
Sets the name of the css class applied to selected tree nodes This value can also be specified on a node basis |
void |
setNodeStyleClass(java.lang.String nodeClass)
Sets the name of the css class applied to tree nodes This value can also be specified on a node basis |
void |
setStyle(java.lang.String style)
Sets the default Style applied to the component |
void |
setStyleClass(java.lang.String cssClass)
Sets the name of the css class applied to the component |
| Methods inherited from class com.infragistics.faces.shared.component.DataList |
addPageChangeListener, addSortListener, firePageChangeEvent, fireSortEvent, getItemCount, getPageChangeListener, getPageChangeListeners, getPageCount, getPageIndex, getPageSize, getSortExpressionIndex, getSortExpressions, getSortListener, getSortListeners, isCustomPagingEnabled, isCustomSortingEnabled, removePageChangeListener, removeSortListener, setCustomPagingEnabled, setCustomSortingEnabled, setItemCount, setPageChangeListener, setPageIndex, setPageSize, setSortExpressions, setSortListener |
| Methods inherited from class com.infragistics.faces.shared.component.DataRepeater |
dataBind, encodeBegin, encodeEnd, getDataKeyName, getDataKeyValue, getDataSource, getTemplateItems, processUpdates, processValidators, queueEvent, setDataKeyName, setDataSource, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponentBase |
decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String COMPONENT_FAMILY
public static java.lang.String COMPONENT_TYPE
public static java.lang.String RENDERER_TYPE
| Constructor Detail |
public HtmlTreeView()
| Method Detail |
public java.lang.String getFamily()
getFamily in class TreeViewpublic java.lang.String getNodeHoverStyleClass()
public java.lang.String getNodeSelectedStyleClass()
public java.lang.String getNodeStyleClass()
public java.lang.String getStyle()
public java.lang.String getStyleClass()
public void setNodeHoverStyleClass(java.lang.String cssClass)
cssClass - public void setNodeSelectedStyleClass(java.lang.String nodeSelectedClass)
nodeSelectedClass - public void setNodeStyleClass(java.lang.String nodeClass)
nodeClass - public void setStyle(java.lang.String style)
style - public void setStyleClass(java.lang.String cssClass)
cssClass -
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class TreeViewpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class TreeView
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||