|
||||||||||
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.sun.webui.jsf.component.WebuiComponent
com.sun.webui.jsf.component.TreeNode2
com.sun.webui.jsf.component.Tree2
public class Tree2
The Tree2 component is used to display a tree structure in the rendered HTML page.
Field Summary |
---|
Fields inherited from class com.sun.webui.jsf.component.TreeNode2 |
---|
NODE_IMAGE_FACET_NAME, NODE_LABEL_FACET_NAME |
Fields inherited from interface javax.faces.component.NamingContainer |
---|
SEPARATOR_CHAR |
Constructor Summary | |
---|---|
Tree2()
Create a new instance of the Tree2. |
Method Summary | |
---|---|
java.lang.String |
getFamily()
Return the family for this component. |
java.lang.String |
getHtmlTemplate()
Get alternative HTML template to be used by this component. |
java.lang.String |
getRendererType()
Return the renderer type associated with this component. |
static Tree2 |
getRoot(javax.faces.component.UIComponent node)
Return the root of the tree for a given node. |
java.lang.String[] |
getSelectedNodeIds()
Return an array of selected node IDs. |
int |
getTabIndex()
Position of this element in the tabbing order of the current document. |
boolean |
isLoadOnExpand()
Returns true if the node's children should be loaded on select, false otherwise. |
boolean |
isMultipleSelect()
Returns true if multiple nodes can be selected, false otherwise. |
void |
restoreState(javax.faces.context.FacesContext _context,
java.lang.Object _state)
Restore the state of this component. |
java.lang.Object |
saveState(javax.faces.context.FacesContext _context)
Save the state of this component. |
void |
setHtmlTemplate(java.lang.String htmlTemplate)
Set alternative HTML template to be used by this component. |
void |
setLoadOnExpand(boolean loadOnExpand)
Set to true if nodes should be loaded when selected. |
void |
setMultipleSelect(boolean multipleSelect)
Set to true if multiple node can be selected. |
void |
setSelectedNodeIds(java.lang.String[] selectedNodeIds)
Set the array of selected nodes. |
void |
setTabIndex(int tabIndex)
Position of this element in the tabbing order of the current document. |
void |
yokeNode(java.lang.String nodeId)
Yoke to a given node. |
Methods inherited from class com.sun.webui.jsf.component.TreeNode2 |
---|
broadcast, findChildNode, findChildNode, getImageURL, getLabel, getNodeSelectedActionListenerExpression, getPath, getPathComponent, getPathCount, getStyle, getStyleClass, getTarget, getToggleActionListenerExpression, getToolTip, getUrl, isExpanded, isImmediate, isLeaf, isSelected, isVisible, queueEvent, setExpanded, setImageURL, setImmediate, setLabel, setNodeSelectedActionListenerExpression, setSelected, setStyle, setStyleClass, setTarget, setToggleActionListenerExpression, setToolTip, setUrl, setVisible |
Methods inherited from class com.sun.webui.jsf.component.WebuiComponent |
---|
processDecodes, processUpdates, processValidators, setId, setRendered |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendersChildren, getValueBinding, getValueExpression, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, restoreAttachedState, saveAttachedState, setParent, setRendererType, setTransient, setValueBinding, setValueExpression |
Methods inherited from class javax.faces.component.UIComponent |
---|
encodeAll, getContainerClientId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tree2()
Method Detail |
---|
public java.lang.String getFamily()
Return the family for this component.
getFamily
in class TreeNode2
public java.lang.String getRendererType()
Return the renderer type associated with this component.
getRendererType
in class TreeNode2
public int getTabIndex()
Position of this element in the tabbing order of the current document. Tabbing order determines the sequence in which elements receive focus when the tab key is pressed. The value must be an integer between 0 and 32767.
public void setTabIndex(int tabIndex)
Position of this element in the tabbing order of the current document. Tabbing order determines the sequence in which elements receive focus when the tab key is pressed. The value must be an integer between 0 and 32767.
getTabIndex()
public java.lang.String getHtmlTemplate()
public void setHtmlTemplate(java.lang.String htmlTemplate)
public boolean isLoadOnExpand()
public void setLoadOnExpand(boolean loadOnExpand)
public boolean isMultipleSelect()
public void setMultipleSelect(boolean multipleSelect)
public java.lang.String[] getSelectedNodeIds()
public void setSelectedNodeIds(java.lang.String[] selectedNodeIds)
public void yokeNode(java.lang.String nodeId)
nodeID
- The ID of the node that is to be yoked.public static Tree2 getRoot(javax.faces.component.UIComponent node)
node
- The node whose root is to be found
public void restoreState(javax.faces.context.FacesContext _context, java.lang.Object _state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class TreeNode2
public java.lang.Object saveState(javax.faces.context.FacesContext _context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class TreeNode2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |