org.primefaces.component.tree
Class Tree

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.primefaces.component.api.UITree
              extended by org.primefaces.component.tree.Tree
All Implemented Interfaces:
EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.NamingContainer, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, Widget

public class Tree
extends UITree
implements Widget, javax.faces.component.behavior.ClientBehaviorHolder


Nested Class Summary
protected static class Tree.PropertyKeys
           
 
Field Summary
static String CHILDREN_NODES_CLASS
           
static String COLLAPSED_ICON_CLASS
           
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static String CONTAINER_CLASS
           
static String EXPANDED_ICON_CLASS
           
static String LEAF_ICON_CLASS
           
static String LEAF_NODE_CLASS
           
static String NODE_CONTENT_CLASS
           
static String NODE_ICON_CLASS
           
static String NODE_LABEL_CLASS
           
static String PARENT_NODE_CLASS
           
static String ROOT_NODES_CLASS
           
static String SELECTABLE_NODE_CONTENT_CLASS
           
 
Fields inherited from class org.primefaces.component.api.UITree
SEPARATOR
 
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
Tree()
           
 
Method Summary
 Object getDatakey()
           
 Collection<String> getEventNames()
           
protected  javax.faces.context.FacesContext getFacesContext()
           
 String getFamily()
           
 Object getLocalSelectedNodes()
           
 String getOnNodeClick()
           
 List<String> getSelectedRowKeys()
           
 String getSelectedRowKeysAsString()
           
 Object getSelection()
           
 String getSelectionMode()
           
 String getStyle()
           
 String getStyleClass()
           
 Map<String,UITreeNode> getTreeNodes()
           
 UITreeNode getUITreeNodeByType(String type)
           
 String getWidgetVar()
           
 void handleAttribute(String name, Object value)
           
 boolean isAnimate()
           
 boolean isCache()
           
 boolean isCheckboxSelection()
           
 boolean isDynamic()
           
 boolean isHighlight()
           
 boolean isNodeExpandRequest(javax.faces.context.FacesContext context)
           
 void processDecodes(javax.faces.context.FacesContext context)
           
 void processUpdates(javax.faces.context.FacesContext context)
           
 void queueEvent(javax.faces.event.FacesEvent event)
           
 String resolveWidgetVar()
           
 void setAnimate(boolean _animate)
           
 void setCache(boolean _cache)
           
 void setDatakey(Object _datakey)
           
 void setDynamic(boolean _dynamic)
           
 void setHighlight(boolean _highlight)
           
 void setOnNodeClick(String _onNodeClick)
           
 void setSelection(Object _selection)
           
 void setSelectionMode(String _selectionMode)
           
 void setStyle(String _style)
           
 void setStyleClass(String _styleClass)
           
 void setWidgetVar(String _widgetVar)
           
 
Methods inherited from class org.primefaces.component.api.UITree
broadcast, doVisitChildren, findTreeNode, getContainerClientId, getRowKey, getRowNode, getValue, getVar, processColumnChildren, processColumnFacets, processFacets, processNode, processNodes, processValidators, setRowKey, setValue, setVar, visitFacets, visitNode, visitNodes, visitTree
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors, getDefaultEventName
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values

CONTAINER_CLASS

public static String CONTAINER_CLASS

ROOT_NODES_CLASS

public static String ROOT_NODES_CLASS

PARENT_NODE_CLASS

public static String PARENT_NODE_CLASS

LEAF_NODE_CLASS

public static String LEAF_NODE_CLASS

CHILDREN_NODES_CLASS

public static String CHILDREN_NODES_CLASS

NODE_CONTENT_CLASS

public static String NODE_CONTENT_CLASS

SELECTABLE_NODE_CONTENT_CLASS

public static String SELECTABLE_NODE_CONTENT_CLASS

EXPANDED_ICON_CLASS

public static String EXPANDED_ICON_CLASS

COLLAPSED_ICON_CLASS

public static String COLLAPSED_ICON_CLASS

LEAF_ICON_CLASS

public static String LEAF_ICON_CLASS

NODE_ICON_CLASS

public static String NODE_ICON_CLASS

NODE_LABEL_CLASS

public static String NODE_LABEL_CLASS
Constructor Detail

Tree

public Tree()
Method Detail

getFamily

public String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

getWidgetVar

public String getWidgetVar()

setWidgetVar

public void setWidgetVar(String _widgetVar)

isDynamic

public boolean isDynamic()

setDynamic

public void setDynamic(boolean _dynamic)

isCache

public boolean isCache()

setCache

public void setCache(boolean _cache)

getOnNodeClick

public String getOnNodeClick()

setOnNodeClick

public void setOnNodeClick(String _onNodeClick)

getSelection

public Object getSelection()

setSelection

public void setSelection(Object _selection)

getStyle

public String getStyle()

setStyle

public void setStyle(String _style)

getStyleClass

public String getStyleClass()

setStyleClass

public void setStyleClass(String _styleClass)

getSelectionMode

public String getSelectionMode()

setSelectionMode

public void setSelectionMode(String _selectionMode)

isHighlight

public boolean isHighlight()

setHighlight

public void setHighlight(boolean _highlight)

getDatakey

public Object getDatakey()

setDatakey

public void setDatakey(Object _datakey)

isAnimate

public boolean isAnimate()

setAnimate

public void setAnimate(boolean _animate)

getUITreeNodeByType

public UITreeNode getUITreeNodeByType(String type)

processUpdates

public void processUpdates(javax.faces.context.FacesContext context)
Overrides:
processUpdates in class UITree

isNodeExpandRequest

public boolean isNodeExpandRequest(javax.faces.context.FacesContext context)

getLocalSelectedNodes

public Object getLocalSelectedNodes()

getTreeNodes

public Map<String,UITreeNode> getTreeNodes()

getSelectedRowKeys

public List<String> getSelectedRowKeys()

getSelectedRowKeysAsString

public String getSelectedRowKeysAsString()

getEventNames

public Collection<String> getEventNames()
Specified by:
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
getEventNames in class javax.faces.component.UIComponentBase

queueEvent

public void queueEvent(javax.faces.event.FacesEvent event)
Overrides:
queueEvent in class UITree

processDecodes

public void processDecodes(javax.faces.context.FacesContext context)
Overrides:
processDecodes in class UITree

isCheckboxSelection

public boolean isCheckboxSelection()

getFacesContext

protected javax.faces.context.FacesContext getFacesContext()
Overrides:
getFacesContext in class javax.faces.component.UIComponentBase

resolveWidgetVar

public String resolveWidgetVar()
Specified by:
resolveWidgetVar in interface Widget

handleAttribute

public void handleAttribute(String name,
                            Object value)


Copyright © 2012. All Rights Reserved.