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, RTLAware, Widget

public class Tree
extends UITree
implements Widget, RTLAware, 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_H
           
static String COLLAPSED_ICON_CLASS_V
           
static String COLLAPSED_ICON_RTL_CLASS_V
           
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static String CONTAINER_CLASS
           
static String CONTAINER_RTL_CLASS
           
static String EXPANDED_ICON_CLASS_H
           
static String EXPANDED_ICON_CLASS_V
           
static String HORIZONTAL_CONTAINER_CLASS
           
static String LEAF_ICON_CLASS
           
static String LEAF_NODE_CLASS
           
static String NODE_CONTENT_CLASS_H
           
static String NODE_CONTENT_CLASS_V
           
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_H
           
static String SELECTABLE_NODE_CONTENT_CLASS_V
           
 
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()
           
 String getDir()
           
 String getDragdropScope()
           
 String getDragMode()
           
 String getDropRestrict()
           
 Collection<String> getEventNames()
           
 String getFamily()
           
 String getOnNodeClick()
           
 String getOrientation()
           
 String getStyle()
           
 String getStyleClass()
           
 Map<String,UITreeNode> getTreeNodes()
           
 UITreeNode getUITreeNodeByType(String type)
           
 String getWidgetVar()
           
 boolean isAnimate()
           
 boolean isCache()
           
 boolean isCheckboxSelection()
           
 boolean isDragDropRequest(javax.faces.context.FacesContext context)
           
 boolean isDraggable()
           
 boolean isDroppable()
           
 boolean isDynamic()
           
 boolean isHighlight()
           
 boolean isNodeExpandRequest(javax.faces.context.FacesContext context)
           
 boolean isPropagateSelectionDown()
           
 boolean isPropagateSelectionUp()
           
 boolean isRTL()
           
 boolean isSelectionRequest(javax.faces.context.FacesContext context)
           
 void processDecodes(javax.faces.context.FacesContext context)
           
 void processUpdates(javax.faces.context.FacesContext context)
           
 void processValidators(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 setDir(String _dir)
           
 void setDragdropScope(String _dragdropScope)
           
 void setDraggable(boolean _draggable)
           
 void setDragMode(String _dragMode)
           
 void setDroppable(boolean _droppable)
           
 void setDropRestrict(String _dropRestrict)
           
 void setDynamic(boolean _dynamic)
           
 void setHighlight(boolean _highlight)
           
 void setOnNodeClick(String _onNodeClick)
           
 void setOrientation(String _orientation)
           
 void setPropagateSelectionDown(boolean _propagateSelectionDown)
           
 void setPropagateSelectionUp(boolean _propagateSelectionUp)
           
 void setStyle(String _style)
           
 void setStyleClass(String _styleClass)
           
 void setWidgetVar(String _widgetVar)
           
 
Methods inherited from class org.primefaces.component.api.UITree
broadcast, buildRowKeys, doVisitChildren, findTreeNode, getContainerClientId, getLocalSelectedNodes, getRowKey, getRowNode, getSelectedRowKeysAsString, getSelection, getSelectionMode, getValue, getVar, initPreselection, isRTLRendering, populateRowKeys, processColumnChildren, processColumnFacets, processFacets, processNode, processNodes, setRowKey, setRTLRendering, setSelection, setSelectionMode, setValue, setVar, updateSelection, 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, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, 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, getPassThroughAttributes, 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

CONTAINER_RTL_CLASS

public static String CONTAINER_RTL_CLASS

HORIZONTAL_CONTAINER_CLASS

public static String HORIZONTAL_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_V

public static String NODE_CONTENT_CLASS_V

SELECTABLE_NODE_CONTENT_CLASS_V

public static String SELECTABLE_NODE_CONTENT_CLASS_V

NODE_CONTENT_CLASS_H

public static String NODE_CONTENT_CLASS_H

SELECTABLE_NODE_CONTENT_CLASS_H

public static String SELECTABLE_NODE_CONTENT_CLASS_H

EXPANDED_ICON_CLASS_V

public static String EXPANDED_ICON_CLASS_V

COLLAPSED_ICON_CLASS_V

public static String COLLAPSED_ICON_CLASS_V

COLLAPSED_ICON_RTL_CLASS_V

public static String COLLAPSED_ICON_RTL_CLASS_V

EXPANDED_ICON_CLASS_H

public static String EXPANDED_ICON_CLASS_H

COLLAPSED_ICON_CLASS_H

public static String COLLAPSED_ICON_CLASS_H

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)

getStyle

public String getStyle()

setStyle

public void setStyle(String _style)

getStyleClass

public String getStyleClass()

setStyleClass

public void setStyleClass(String _styleClass)

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)

getOrientation

public String getOrientation()

setOrientation

public void setOrientation(String _orientation)

isPropagateSelectionUp

public boolean isPropagateSelectionUp()

setPropagateSelectionUp

public void setPropagateSelectionUp(boolean _propagateSelectionUp)

isPropagateSelectionDown

public boolean isPropagateSelectionDown()

setPropagateSelectionDown

public void setPropagateSelectionDown(boolean _propagateSelectionDown)

getDir

public String getDir()

setDir

public void setDir(String _dir)

isDraggable

public boolean isDraggable()

setDraggable

public void setDraggable(boolean _draggable)

isDroppable

public boolean isDroppable()

setDroppable

public void setDroppable(boolean _droppable)

getDragdropScope

public String getDragdropScope()

setDragdropScope

public void setDragdropScope(String _dragdropScope)

getDragMode

public String getDragMode()

setDragMode

public void setDragMode(String _dragMode)

getDropRestrict

public String getDropRestrict()

setDropRestrict

public void setDropRestrict(String _dropRestrict)

getUITreeNodeByType

public UITreeNode getUITreeNodeByType(String type)

isNodeExpandRequest

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

isSelectionRequest

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

getTreeNodes

public Map<String,UITreeNode> getTreeNodes()

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

isDragDropRequest

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

processDecodes

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

processValidators

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

processUpdates

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

isCheckboxSelection

public boolean isCheckboxSelection()

isRTL

public boolean isRTL()
Specified by:
isRTL in interface RTLAware

resolveWidgetVar

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


Copyright © 2013. All rights reserved.