|
||||||||||
| 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.TreeNode
Represents an individual tree node that can contain nested tree nodes to represent hierarchical information.
Bound and unbound mode
Just like trees, tree nodes support bound as well as unbound mode. In unbound mode, tree nodes are 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, one node for each row of the data model.
Emits ActionEvent whenever clicked-on
| 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 |
FACET_BOTTOM_PAGER
|
static java.lang.String |
FACET_TOP_PAGER
|
static java.lang.String |
RENDERER_TYPE
|
| Fields inherited from class com.infragistics.faces.shared.component.DataRepeater |
DATA_ROW |
| Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
| Constructor Summary | |
TreeNode()
Constructs a new TreeNode |
|
TreeNode(java.lang.String label)
Constructs a new TreeNode with the specified label |
|
TreeNode(java.lang.String label,
java.lang.String iconUrl,
java.lang.String expandedIconUrl)
Constructs a new TreeNode with the specified label, default icon and expanded icon |
|
| Method Summary | |
void |
addActionListener(javax.faces.event.ActionListener listener)
|
void |
addPageChangeListener(PageChangeListener listener)
Register a new PageChangeListener which will be notified of PageChangeEvent |
void |
broadcast(javax.faces.event.FacesEvent event)
|
javax.faces.el.MethodBinding |
getAction()
|
javax.faces.el.MethodBinding |
getActionListener()
|
javax.faces.event.ActionListener[] |
getActionListeners()
|
javax.faces.component.UIComponent |
getBottomPager()
Returns the bottom pager. |
javax.faces.convert.Converter |
getConverter()
|
java.lang.String |
getExpandedIconUrl()
Returns the URL of the image displayed next to this TreeNode when it is expanded. |
java.lang.String |
getFamily()
|
java.lang.String |
getIconUrl()
Returns the URL of the default image displayed next to this TreeNode. |
java.lang.Object |
getLocalValue()
|
java.lang.String |
getTooltip()
Returns the tooltip that is displayed |
javax.faces.component.UIComponent |
getTopPager()
Returns the top pager. |
TreeView |
getTreeView()
Returns the TreeView this node belongs to |
java.lang.Object |
getValue()
|
boolean |
isBottomPagerRendered()
Returns the TreeNode's bottom pager visibility. |
boolean |
isDisabled()
Returns the state of this node: true if disabled, false otherwise |
boolean |
isExpanded()
Returns whether the node is expanded or not |
boolean |
isImmediate()
|
boolean |
isRoot()
Returns whether the node is a root node or not |
boolean |
isSelected()
Returns whether the node is selected or not |
boolean |
isTopPagerRendered()
Returns the TreeNode's top pager visibility |
void |
queueEvent(javax.faces.event.FacesEvent event)
|
void |
removeActionListener(javax.faces.event.ActionListener listener)
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAction(javax.faces.el.MethodBinding action)
|
void |
setActionListener(javax.faces.el.MethodBinding actionListener)
|
void |
setBottomPager(javax.faces.component.UIComponent bottomPager)
Sets the bottom pager. |
void |
setBottomPagerRendered(boolean bottomPagerRendered)
Sets the TreeNode's bottom pager visibility. |
void |
setConverter(javax.faces.convert.Converter converter)
|
void |
setDisabled(boolean disabled)
Sets the state of this node: true if disabled, false otherwise |
void |
setExpanded(boolean expanded)
Sets whether the node is expanded or not |
void |
setExpandedIconUrl(java.lang.String expandedIconUrl)
Sets the URL of the image displayed next to this TreeNode when it is expanded. |
void |
setIconUrl(java.lang.String iconUrl)
Sets the URL of the default image displayed next to this TreeNode. |
void |
setImmediate(boolean immediate)
|
void |
setSelected(boolean selected)
Sets whether the node is selected or not |
void |
setTooltip(java.lang.String tooltip)
Sets the tooltip that is displayed |
void |
setTopPager(javax.faces.component.UIComponent topPager)
Sets the top pager. |
void |
setTopPagerRendered(boolean topPagerRendered)
Sets the TreeNode's top pager visibility |
void |
setValue(java.lang.Object value)
|
| Methods inherited from class com.infragistics.faces.shared.component.DataList |
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, 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 final java.lang.String FACET_BOTTOM_PAGER
public static final java.lang.String FACET_TOP_PAGER
public static java.lang.String RENDERER_TYPE
| Constructor Detail |
public TreeNode()
public TreeNode(java.lang.String label)
label -
public TreeNode(java.lang.String label,
java.lang.String iconUrl,
java.lang.String expandedIconUrl)
label - iconUrl - expandedIconUrl - | Method Detail |
public void addActionListener(javax.faces.event.ActionListener listener)
addActionListener in interface javax.faces.component.ActionSourcepublic void addPageChangeListener(PageChangeListener listener)
DataList
addPageChangeListener in class DataList
public void broadcast(javax.faces.event.FacesEvent event)
throws javax.faces.event.AbortProcessingException
broadcast in class DataListjavax.faces.event.AbortProcessingExceptionpublic javax.faces.el.MethodBinding getAction()
getAction in interface javax.faces.component.ActionSourcepublic javax.faces.el.MethodBinding getActionListener()
getActionListener in interface javax.faces.component.ActionSourcepublic boolean isBottomPagerRendered()
public javax.faces.event.ActionListener[] getActionListeners()
getActionListeners in interface javax.faces.component.ActionSourcepublic javax.faces.component.UIComponent getBottomPager()
public javax.faces.convert.Converter getConverter()
getConverter in interface javax.faces.component.ValueHolderpublic java.lang.String getFamily()
getFamily in class DataListpublic java.lang.Object getLocalValue()
getLocalValue in interface javax.faces.component.ValueHolderpublic java.lang.String getTooltip()
public boolean isTopPagerRendered()
public javax.faces.component.UIComponent getTopPager()
public TreeView getTreeView()
TreeView this node belongs to
public java.lang.Object getValue()
getValue in interface javax.faces.component.ValueHolderpublic boolean isDisabled()
public boolean isExpanded()
public java.lang.String getExpandedIconUrl()
public java.lang.String getIconUrl()
public boolean isImmediate()
isImmediate in interface javax.faces.component.ActionSourcepublic boolean isRoot()
public boolean isSelected()
public void queueEvent(javax.faces.event.FacesEvent event)
queueEvent in class DataRepeaterpublic void removeActionListener(javax.faces.event.ActionListener listener)
removeActionListener in interface javax.faces.component.ActionSource
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class DataListpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class DataListpublic void setAction(javax.faces.el.MethodBinding action)
setAction in interface javax.faces.component.ActionSourcepublic void setActionListener(javax.faces.el.MethodBinding actionListener)
setActionListener in interface javax.faces.component.ActionSourcepublic void setBottomPagerRendered(boolean bottomPagerRendered)
bottomPagerRendered - booleanpublic void setBottomPager(javax.faces.component.UIComponent bottomPager)
bottomPager - public void setConverter(javax.faces.convert.Converter converter)
setConverter in interface javax.faces.component.ValueHolderpublic void setDisabled(boolean disabled)
disabled - public void setExpanded(boolean expanded)
expanded - public void setExpandedIconUrl(java.lang.String expandedIconUrl)
expandedIconUrl - Stringpublic void setIconUrl(java.lang.String iconUrl)
iconUrl - Stringpublic void setImmediate(boolean immediate)
setImmediate in interface javax.faces.component.ActionSourcepublic void setSelected(boolean selected)
selected - public void setTooltip(java.lang.String tooltip)
tooltip - The tooltip to set.public void setTopPagerRendered(boolean topPagerRendered)
topPagerRendered - booleanpublic void setTopPager(javax.faces.component.UIComponent topPager)
topPager - public void setValue(java.lang.Object value)
setValue in interface javax.faces.component.ValueHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||