|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase org.apache.myfaces.custom.tree2.UITreeData org.apache.myfaces.custom.tree2.AbstractHtmlTree
public abstract class AbstractHtmlTree
Represents "tree data" in an HTML format. Also provides a mechanism for maintaining expand/collapse state of the nodes in the tree. A component that provides an HTML-based tree from data supplied by a backing bean. The tree is highly customizable and allows for fine-grained control over the appearance of each of the nodes depending on their type. Almost any type of JSF component (text, image, checkbox, etc.) can be rendered inside the nodes and there is an option for client-side or server-side toggling of the expand/collapse state. Unless otherwise specified, all attributes accept static values or EL expressions.
Field Summary | |
---|---|
static String |
COMPONENT_TYPE
|
Fields inherited from class org.apache.myfaces.custom.tree2.UITreeData |
---|
COMPONENT_FAMILY |
Fields inherited from interface javax.faces.component.NamingContainer |
---|
SEPARATOR_CHAR |
Constructor Summary | |
---|---|
AbstractHtmlTree()
|
Method Summary | |
---|---|
javax.faces.component.UICommand |
getExpandControl()
Gets the expand/collapse control that can be used to handle expand/collapse nodes. |
String |
getVarNodeToggler()
Gets |
boolean |
isClientSideToggle()
Perform client-side toggling of expand/collapse state via javascript (default is true.) |
abstract boolean |
isPreserveToggle()
Preserve changes in client-side toggle information between requests (default is true.) |
abstract boolean |
isShowLines()
Show the connecting lines (default is true.) |
abstract boolean |
isShowNav()
Show the "plus" and "minus" navigation icons (default is true.) Value is ignored if clientSideToggle is true. |
abstract boolean |
isShowRootNode()
Include the root node when rendering the tree (default is true.) |
protected void |
processNodes(javax.faces.context.FacesContext context,
int processAction,
TreeWalker walker)
|
void |
restoreState(javax.faces.context.FacesContext facesContext,
Object state)
|
Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setClientSideToggle(boolean clientSideToggle)
Sets |
void |
setNodeId(String nodeId)
|
void |
setVarNodeToggler(String varNodeToggler)
|
Methods inherited from class org.apache.myfaces.custom.tree2.UITreeData |
---|
broadcast, collapseAll, collapsePath, encodeBegin, encodeEnd, expandAll, expandPath, getClientId, getDataModel, getFamily, getModel, getNode, getNodeId, getPathInformation, getValue, getVar, isLastChild, isNodeExpanded, isNodeSelected, processDecodes, processUpdates, processValidators, queueEvent, setModel, setNodeSelected, setValue, setValueBinding, setVar, toggleExpanded |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.myfaces.component.LocationAware |
---|
getImageLocation, getJavascriptLocation, getStyleLocation |
Field Detail |
---|
public static final String COMPONENT_TYPE
Constructor Detail |
---|
public AbstractHtmlTree()
Method Detail |
---|
public boolean isClientSideToggle()
public void setClientSideToggle(boolean clientSideToggle)
clientSideToggle
- the new clientSideToggle valueprotected void processNodes(javax.faces.context.FacesContext context, int processAction, TreeWalker walker)
processNodes
in class UITreeData
UITreeData.processNodes(javax.faces.context.FacesContext, int, org.apache.myfaces.custom.tree2.TreeWalker)
public void setNodeId(String nodeId)
setNodeId
in interface Tree
setNodeId
in class UITreeData
public javax.faces.component.UICommand getExpandControl()
public String getVarNodeToggler()
public void setVarNodeToggler(String varNodeToggler)
public Object saveState(javax.faces.context.FacesContext facesContext)
saveState
in interface javax.faces.component.StateHolder
saveState
in class UITreeData
public void restoreState(javax.faces.context.FacesContext facesContext, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class UITreeData
public abstract boolean isShowNav()
public abstract boolean isShowLines()
public abstract boolean isShowRootNode()
public abstract boolean isPreserveToggle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |