Package org.primefaces.component.tree
Class Tree
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- org.primefaces.component.api.UITree
-
- org.primefaces.component.tree.TreeBase
-
- 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,PrimeClientBehaviorHolder,RTLAware,Widget
public class Tree extends TreeBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.primefaces.component.tree.TreeBase
TreeBase.PropertyKeys
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHILDREN_NODES_CLASSstatic StringCOLLAPSED_ICON_CLASS_Hstatic StringCOLLAPSED_ICON_CLASS_Vstatic StringCOLLAPSED_ICON_RTL_CLASS_Vstatic StringCOMPONENT_TYPEstatic StringCONTAINER_CLASSstatic StringCONTAINER_RTL_CLASSstatic StringEXPANDED_ICON_CLASS_Hstatic StringEXPANDED_ICON_CLASS_Vstatic StringFILTER_CLASSstatic StringFILTER_CONTAINERstatic StringHORIZONTAL_CONTAINER_CLASSstatic StringLEAF_ICON_CLASSstatic StringLEAF_NODE_CLASSstatic StringNODE_CONTENT_CLASS_Hstatic StringNODE_CONTENT_CLASS_Vstatic StringNODE_ICON_CLASSstatic StringNODE_LABEL_CLASSstatic StringPARENT_NODE_CLASSstatic StringROOT_NODES_CLASSstatic StringSELECTABLE_NODE_CONTENT_CLASS_Hstatic StringSELECTABLE_NODE_CONTENT_CLASS_V-
Fields inherited from class org.primefaces.component.tree.TreeBase
COMPONENT_FAMILY, DEFAULT_RENDERER
-
Fields inherited from class org.primefaces.component.api.UITree
CHECKBOX_CLASS, REQUIRED_MESSAGE_ID, ROOT_ROW_KEY, 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 org.primefaces.component.api.Widget
ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY
-
-
Constructor Summary
Constructors Constructor Description Tree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TreeNodecreateCopyOfTreeNode(TreeNode node)Map<String,Class<? extends javax.faces.event.BehaviorEvent>>getBehaviorEventMapping()Collection<String>getEventNames()List<String>getFilteredRowKeys()StringgetScrollState()Map<String,UITreeNode>getTreeNodes()UITreeNodegetUITreeNodeByType(String type)booleanisCheckboxSelection()booleanisDragDropRequest(javax.faces.context.FacesContext context)booleanisFilterRequest(javax.faces.context.FacesContext context)booleanisNodeExpandRequest(javax.faces.context.FacesContext context)booleanisSelectionRequest(javax.faces.context.FacesContext context)booleanisTreeNodeDropped()protected voidprocessColumnChildren(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId, TreeNode root, String nodeKey)voidprocessDecodes(javax.faces.context.FacesContext context)voidprocessUpdates(javax.faces.context.FacesContext context)voidprocessValidators(javax.faces.context.FacesContext context)voidqueueEvent(javax.faces.event.FacesEvent event)ObjectsaveState(javax.faces.context.FacesContext context)voidsetFilteredRowKeys(List<String> filteredRowKeys)protected booleanshouldVisitNode(TreeNode node)protected voidvalidateSelection(javax.faces.context.FacesContext context)-
Methods inherited from class org.primefaces.component.tree.TreeBase
getDatakey, getDir, getDragdropScope, getDragMode, getDropRestrict, getFamily, getFilterBy, getFilterMatchMode, getFilterMode, getOnDrop, getOnNodeClick, getOrientation, getStyle, getStyleClass, getTabindex, getWidgetVar, isAnimate, isCache, isDisabled, isDraggable, isDropCopyNode, isDroppable, isDynamic, isHighlight, isMultipleDrag, setAnimate, setCache, setDatakey, setDir, setDisabled, setDragdropScope, setDraggable, setDragMode, setDropCopyNode, setDroppable, setDropRestrict, setDynamic, setFilterBy, setFilterMatchMode, setFilterMode, setHighlight, setMultipleDrag, setOnDrop, setOnNodeClick, setOrientation, setStyle, setStyleClass, setTabindex, setWidgetVar
-
Methods inherited from class org.primefaces.component.api.UITree
broadcast, buildRowKeys, doVisitChildren, encodeBegin, findTreeNode, getContainerClientId, getLocalSelectedNodes, getNodeVar, getRequiredMessage, getRowKey, getRowNode, getSelectedRowKeysAsString, getSelection, getSelectionMode, getValue, getVar, initPreselection, invokeOnComponent, isNestedWithinIterator, isPropagateSelectionDown, isPropagateSelectionUp, isRequired, isRTLRendering, isShowUnselectableCheckbox, isSkipChildren, populateRowKeys, preDecode, preEncode, preUpdate, preValidate, processColumnFacets, processComponent, processFacets, processNode, processNodes, refreshSelectedNodeKeys, requiresColumns, setNodeVar, setPropagateSelectionDown, setPropagateSelectionUp, setRequired, setRequiredMessage, setRowKey, setRowKey, setRTLRendering, setSelection, setSelectionMode, setShowUnselectableCheckbox, setSkipChildren, setValue, setVar, updateRowKeys, updateSelection, visitColumnContent, visitColumnFacets, visitColumnGroup, visitColumnsAndColumnFacets, visitFacets, visitNode, visitNodes, visitTree
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, 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
-
Methods inherited from interface org.primefaces.component.api.Widget
resolveWidgetVar, resolveWidgetVar
-
-
-
-
Field Detail
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
- See Also:
- Constant Field Values
-
FILTER_CLASS
public static final String FILTER_CLASS
- See Also:
- Constant Field Values
-
FILTER_CONTAINER
public static final String FILTER_CONTAINER
- See Also:
- Constant Field Values
-
CONTAINER_CLASS
public static final String CONTAINER_CLASS
- See Also:
- Constant Field Values
-
CONTAINER_RTL_CLASS
public static final String CONTAINER_RTL_CLASS
- See Also:
- Constant Field Values
-
HORIZONTAL_CONTAINER_CLASS
public static final String HORIZONTAL_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
ROOT_NODES_CLASS
public static final String ROOT_NODES_CLASS
- See Also:
- Constant Field Values
-
PARENT_NODE_CLASS
public static final String PARENT_NODE_CLASS
- See Also:
- Constant Field Values
-
LEAF_NODE_CLASS
public static final String LEAF_NODE_CLASS
- See Also:
- Constant Field Values
-
CHILDREN_NODES_CLASS
public static final String CHILDREN_NODES_CLASS
- See Also:
- Constant Field Values
-
NODE_CONTENT_CLASS_V
public static final String NODE_CONTENT_CLASS_V
- See Also:
- Constant Field Values
-
SELECTABLE_NODE_CONTENT_CLASS_V
public static final String SELECTABLE_NODE_CONTENT_CLASS_V
- See Also:
- Constant Field Values
-
NODE_CONTENT_CLASS_H
public static final String NODE_CONTENT_CLASS_H
- See Also:
- Constant Field Values
-
SELECTABLE_NODE_CONTENT_CLASS_H
public static final String SELECTABLE_NODE_CONTENT_CLASS_H
- See Also:
- Constant Field Values
-
EXPANDED_ICON_CLASS_V
public static final String EXPANDED_ICON_CLASS_V
- See Also:
- Constant Field Values
-
COLLAPSED_ICON_CLASS_V
public static final String COLLAPSED_ICON_CLASS_V
- See Also:
- Constant Field Values
-
COLLAPSED_ICON_RTL_CLASS_V
public static final String COLLAPSED_ICON_RTL_CLASS_V
- See Also:
- Constant Field Values
-
EXPANDED_ICON_CLASS_H
public static final String EXPANDED_ICON_CLASS_H
- See Also:
- Constant Field Values
-
COLLAPSED_ICON_CLASS_H
public static final String COLLAPSED_ICON_CLASS_H
- See Also:
- Constant Field Values
-
LEAF_ICON_CLASS
public static final String LEAF_ICON_CLASS
- See Also:
- Constant Field Values
-
NODE_ICON_CLASS
public static final String NODE_ICON_CLASS
- See Also:
- Constant Field Values
-
NODE_LABEL_CLASS
public static final String NODE_LABEL_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUITreeNodeByType
public UITreeNode getUITreeNodeByType(String type)
-
isNodeExpandRequest
public boolean isNodeExpandRequest(javax.faces.context.FacesContext context)
-
isSelectionRequest
public boolean isSelectionRequest(javax.faces.context.FacesContext context)
-
isFilterRequest
public boolean isFilterRequest(javax.faces.context.FacesContext context)
-
getTreeNodes
public Map<String,UITreeNode> getTreeNodes()
-
getBehaviorEventMapping
public Map<String,Class<? extends javax.faces.event.BehaviorEvent>> getBehaviorEventMapping()
-
getEventNames
public Collection<String> getEventNames()
- Specified by:
getEventNamesin interfacejavax.faces.component.behavior.ClientBehaviorHolder- Overrides:
getEventNamesin classjavax.faces.component.UIComponentBase
-
queueEvent
public void queueEvent(javax.faces.event.FacesEvent event)
- Overrides:
queueEventin classUITree
-
isDragDropRequest
public boolean isDragDropRequest(javax.faces.context.FacesContext context)
-
processDecodes
public void processDecodes(javax.faces.context.FacesContext context)
- Overrides:
processDecodesin classUITree
-
processValidators
public void processValidators(javax.faces.context.FacesContext context)
- Overrides:
processValidatorsin classUITree
-
processUpdates
public void processUpdates(javax.faces.context.FacesContext context)
- Overrides:
processUpdatesin classUITree
-
isCheckboxSelection
public boolean isCheckboxSelection()
-
shouldVisitNode
protected boolean shouldVisitNode(TreeNode node)
- Overrides:
shouldVisitNodein classUITree
-
processColumnChildren
protected void processColumnChildren(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId, TreeNode root, String nodeKey)- Overrides:
processColumnChildrenin classUITree
-
validateSelection
protected void validateSelection(javax.faces.context.FacesContext context)
- Overrides:
validateSelectionin classUITree
-
isTreeNodeDropped
public boolean isTreeNodeDropped()
-
getScrollState
public String getScrollState()
-
saveState
public Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveStatein interfacejavax.faces.component.StateHolder- Overrides:
saveStatein classjavax.faces.component.UIComponentBase
-
-