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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.primefaces.component.tree.TreeBase
TreeBase.PropertyKeys -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.primefaces.component.tree.TreeBase
COMPONENT_FAMILY, DEFAULT_RENDERERFields inherited from class org.primefaces.component.api.UITree
CHECKBOX_CLASS, REQUIRED_MESSAGE_ID, ROOT_ROW_KEY, SEPARATORFields 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_KEYFields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHARFields inherited from interface org.primefaces.component.api.PrimeClientBehaviorHolder
DEFAULT_SELECT_EVENT_NAMESFields inherited from interface org.primefaces.component.api.Widget
ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCopyOfTreeNode(TreeNode<?> node) getUITreeNodeByType(String type) booleanisDragDropRequest(javax.faces.context.FacesContext context) booleanbooleanisFilterRequest(javax.faces.context.FacesContext context) booleanisNodeExpandRequest(javax.faces.context.FacesContext context) booleanisSelectionRequest(javax.faces.context.FacesContext context) booleanprotected 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) saveState(javax.faces.context.FacesContext context) voidsetFilteredRowKeys(List<String> filteredRowKeys) protected booleanshouldVisitNode(TreeNode node) Methods inherited from class org.primefaces.component.tree.TreeBase
getDatakey, getDir, getDragdropScope, getDragMode, getDropMode, getDropRestrict, getFamily, getFilterBy, getFilterDelay, getFilterEvent, getFilterFunction, 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, setDropMode, setDroppable, setDropRestrict, setDynamic, setFilterBy, setFilterDelay, setFilterEvent, setFilterFunction, setFilterMatchMode, setFilterMode, setHighlight, setMultipleDrag, setOnDrop, setOnNodeClick, setOrientation, setStyle, setStyleClass, setTabindex, setWidgetVarMethods inherited from class org.primefaces.component.api.UITree
broadcast, buildRowKeys, doVisitChildren, encodeBegin, findTreeNode, getContainerClientId, getLocalSelectedNodes, getNodeVar, getRequiredMessage, getRowKey, getRowNode, getSelectedRowKeysAsString, getSelection, getSelectionMode, getSelectionType, getValue, getVar, initPreselection, invokeOnComponent, isCheckboxSelectionMode, isMultipleSelectionMode, isPropagateSelectionDown, isPropagateSelectionUp, isRequired, isRTLRendering, isSelectionEnabled, isShowUnselectableCheckbox, isSkipChildren, populateRowKeys, preDecode, preEncode, preUpdate, preValidate, processColumnFacets, processComponent, processFacets, processNode, processNodes, refreshSelectedNodeKeys, requiresColumns, setNodeVar, setPropagateSelectionDown, setPropagateSelectionUp, setRequired, setRequiredMessage, setRowKey, setRowKey, setRowKey, setRowKey, setRTLRendering, setSelection, setSelectionMode, setShowUnselectableCheckbox, setSkipChildren, setValue, setVar, updateRowKeys, updateSelection, validateSelection, visitColumnContent, visitColumnFacets, visitColumnGroup, visitColumnsAndColumnFacets, visitFacets, visitNode, visitNodes, visitTreeMethods 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, unsubscribeFromEventMethods 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, setValueExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors, getDefaultEventNameMethods inherited from interface org.primefaces.component.api.Widget
resolveWidgetVar, resolveWidgetVar
-
Field Details
-
COMPONENT_TYPE
- See Also:
-
FILTER_CLASS
- See Also:
-
FILTER_CONTAINER
- See Also:
-
CONTAINER_CLASS
- See Also:
-
CONTAINER_RTL_CLASS
- See Also:
-
HORIZONTAL_CONTAINER_CLASS
- See Also:
-
HORIZONTAL_CONTAINER_RTL_CLASS
- See Also:
-
ROOT_NODES_CLASS
- See Also:
-
PARENT_NODE_CLASS
- See Also:
-
LEAF_NODE_CLASS
- See Also:
-
CHILDREN_NODES_CLASS
- See Also:
-
NODE_CONTENT_CLASS_V
- See Also:
-
SELECTABLE_NODE_CONTENT_CLASS_V
- See Also:
-
NODE_CONTENT_CLASS_H
- See Also:
-
SELECTABLE_NODE_CONTENT_CLASS_H
- See Also:
-
EXPANDED_ICON_CLASS_V
- See Also:
-
COLLAPSED_ICON_CLASS_V
- See Also:
-
COLLAPSED_ICON_RTL_CLASS_V
- See Also:
-
EXPANDED_ICON_CLASS_H
- See Also:
-
COLLAPSED_ICON_CLASS_H
- See Also:
-
LEAF_ICON_CLASS
- See Also:
-
NODE_ICON_CLASS
- See Also:
-
NODE_LABEL_CLASS
- See Also:
-
-
Constructor Details
-
Tree
public Tree()
-
-
Method Details
-
getUITreeNodeByType
-
isFiltering
public boolean isFiltering() -
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
-
getBehaviorEventMapping
-
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
-
shouldVisitNode
- Overrides:
shouldVisitNodein classUITree
-
processColumnChildren
protected void processColumnChildren(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId, TreeNode root, String nodeKey) - Overrides:
processColumnChildrenin classUITree
-
createCopyOfTreeNode
-
isTreeNodeDropped
public boolean isTreeNodeDropped() -
getScrollState
-
getFilteredRowKeys
-
setFilteredRowKeys
-
saveState
- Specified by:
saveStatein interfacejavax.faces.component.StateHolder- Overrides:
saveStatein classjavax.faces.component.UIComponentBase
-