Class TreeTable
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.primefaces.component.api.UITree
org.primefaces.component.treetable.TreeTableBase
org.primefaces.component.treetable.TreeTable
- 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,ColumnAware,MultiViewStateAware<TreeTableState>,Pageable,PrimeClientBehaviorHolder,UITable<TreeTableState>,Widget
-
Nested Class Summary
Nested classes/interfaces inherited from class org.primefaces.component.treetable.TreeTableBase
TreeTableBase.InternalPropertyKeys, TreeTableBase.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 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.treetable.TreeTableBase
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.UITable
GLOBAL_FILTER_COMPONENT_IDFields 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 TypeMethodDescriptionvoidvoidRecalculates filteredValue after adding, updating or removing TreeNodes to/from a filtered TreeTable.javax.faces.component.UIComponentjavax.faces.component.UIComponentgetMultiViewState(boolean create) intgetPage()intintintgetWidth()booleanbooleanbooleanbooleanbooleanbooleanisResizeRequest(javax.faces.context.FacesContext context) protected voidpreDecode(javax.faces.context.FacesContext context) protected voidpreEncode(javax.faces.context.FacesContext context) protected voidpreUpdate(javax.faces.context.FacesContext context) protected voidpreValidate(javax.faces.context.FacesContext context) voidprocessDecodes(javax.faces.context.FacesContext context) voidprocessEvent(javax.faces.event.ComponentSystemEvent event) voidprocessValidators(javax.faces.context.FacesContext context) voidqueueEvent(javax.faces.event.FacesEvent event) protected booleanvoidreset()voidvoidsaveState(javax.faces.context.FacesContext context) voidsetColumnMeta(Map<String, ColumnMeta> columnMeta) voidsetColumns(List<UIColumn> columns) voidsetDefaultFilter(boolean defaultFilter) voidsetDefaultSort(boolean defaultSort) voidsetFilterByAsMap(Map<String, FilterMeta> filterBy) voidsetFilteredRowKeys(List<String> filteredRowKeys) voidsetSortByAsMap(Map<String, SortMeta> sortBy) voidbooleanshouldEncodeFeature(javax.faces.context.FacesContext context) voidupdateFilteredValue(javax.faces.context.FacesContext context, TreeNode node) voidupdatePaginationData(javax.faces.context.FacesContext context) Methods inherited from class org.primefaces.component.treetable.TreeTableBase
getCellEditMode, getCellSeparator, getCurrentPageReportTemplate, getDataLocale, getEditInitEvent, getEditMode, getEmptyMessage, getExpandMode, getExportRowTag, getExportTag, getFamily, getFilterBy, getFilterDelay, getFilteredValue, getFilterEvent, getFirst, getGlobalFilter, getGlobalFilterFunction, getPageLinks, getPaginatorPosition, getPaginatorTemplate, getRows, getRowsPerPageLabel, getRowsPerPageTemplate, getRowStyleClass, getRowTitle, getScrollHeight, getScrollWidth, getSize, getSortBy, getSortMode, getStyle, getStyleClass, getTableStyle, getTableStyleClass, getWidgetVar, isAllowUnsorting, isCloneOnFilter, isDisabledTextSelection, isEditable, isEditingRow, isGlobalFilterOnly, isLiveResize, isMultiViewState, isNativeElements, isPaginator, isPaginatorAlwaysVisible, isResizableColumns, isSaveOnCellBlur, isScrollable, isShowGridlines, isStickyHeader, setAllowUnsorting, setCellEditMode, setCellSeparator, setCloneOnFilter, setCurrentPageReportTemplate, setDataLocale, setDisabledTextSelection, setEditable, setEditingRow, setEditInitEvent, setEditMode, setEmptyMessage, setExpandMode, setExportRowTag, setExportTag, setFilterBy, setFilterDelay, setFilteredValue, setFilterEvent, setFirst, setGlobalFilter, setGlobalFilterFunction, setGlobalFilterOnly, setLiveResize, setMultiViewState, setNativeElements, setPageLinks, setPaginator, setPaginatorAlwaysVisible, setPaginatorPosition, setPaginatorTemplate, setResizableColumns, setRows, setRowsPerPageLabel, setRowsPerPageTemplate, setRowStyleClass, setRowTitle, setSaveOnCellBlur, setScrollable, setScrollHeight, setScrollWidth, setShowGridlines, setSize, setSortBy, setSortMode, setStickyHeader, setStyle, setStyleClass, setTableStyle, setTableStyleClass, 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, processColumnChildren, processColumnFacets, processComponent, processFacets, processNode, processNodes, processUpdates, refreshSelectedNodeKeys, setNodeVar, setPropagateSelectionDown, setPropagateSelectionUp, setRequired, setRequiredMessage, setRowKey, setRowKey, setRowKey, setRowKey, setRTLRendering, setSelection, setSelectionMode, setShowUnselectableCheckbox, setSkipChildren, setValue, setVar, shouldVisitNode, 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, 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.ColumnAware
collectColumns, findColumn, findColumnInGroup, forEachColumn, forEachColumn, forEachColumn, forEachColumnGroupRow, getColumnGroup, getColumnsCount, getColumnsCount, getColumnsCountWithSpan, getColumnsCountWithSpan, getFrozenColumnsCount, getOrderedColumnKeys, invokeOnColumn, invokeOnColumn, resetDynamicColumnsMethods inherited from interface org.primefaces.component.api.Pageable
getClientId, getFacetMethods inherited from interface org.primefaces.component.api.UITable
compare, decodeColumnDisplayOrderState, decodeColumnResizeState, decodeColumnTogglerState, getActiveFilterMeta, getActiveSortMeta, getChildCount, getChildren, getClientId, getColumnsWidthForClientSide, getConvertedFieldValue, getFieldValue, getFilterValue, getHeaderRow, getHighestPriorityActiveSortMeta, getSortMetaAsString, getVar, initFilterBy, initSortBy, isColumnFilterable, isColumnSortable, isFilteringCurrentlyActive, isFilteringEnabled, isSortingCurrentlyActive, isSortingEnabled, resetColumns, updateFilterByValuesWithFilterRequest, updateFilterByWithGlobalFilter, updateFilterByWithMVS, updateFilterByWithUserFilterBy, updateSortByWithMVS, updateSortByWithUserSortByMethods inherited from interface org.primefaces.component.api.Widget
resolveWidgetVar, resolveWidgetVar
-
Field Details
-
COMPONENT_TYPE
- See Also:
-
CONTAINER_CLASS
- See Also:
-
RESIZABLE_CONTAINER_CLASS
- See Also:
-
HEADER_CLASS
- See Also:
-
DATA_CLASS
- See Also:
-
FOOTER_CLASS
- See Also:
-
COLUMN_HEADER_CLASS
- See Also:
-
SORTABLE_COLUMN_HEADER_CLASS
- See Also:
-
ROW_CLASS
- See Also:
-
SELECTED_ROW_CLASS
- See Also:
-
COLUMN_CONTENT_WRAPPER
- See Also:
-
EXPAND_ICON
- See Also:
-
COLLAPSE_ICON
- See Also:
-
SCROLLABLE_CONTAINER_CLASS
- See Also:
-
SCROLLABLE_HEADER_CLASS
- See Also:
-
SCROLLABLE_HEADER_BOX_CLASS
- See Also:
-
SCROLLABLE_BODY_CLASS
- See Also:
-
SCROLLABLE_FOOTER_CLASS
- See Also:
-
SCROLLABLE_FOOTER_BOX_CLASS
- See Also:
-
SELECTABLE_NODE_CLASS
- See Also:
-
RESIZABLE_COLUMN_CLASS
- See Also:
-
INDENT_CLASS
- See Also:
-
EMPTY_MESSAGE_ROW_CLASS
- See Also:
-
PARTIAL_SELECTED_CLASS
- See Also:
-
SORTABLE_COLUMN_ICON_CLASS
- See Also:
-
SORTABLE_COLUMN_ASCENDING_ICON_CLASS
- See Also:
-
SORTABLE_COLUMN_DESCENDING_ICON_CLASS
- See Also:
-
SORTABLE_PRIORITY_CLASS
- See Also:
-
REFLOW_CLASS
- See Also:
-
FILTER_COLUMN_CLASS
- See Also:
-
COLUMN_INPUT_FILTER_CLASS
- See Also:
-
COLUMN_CUSTOM_FILTER_CLASS
- See Also:
-
HIDDEN_COLUMN_CLASS
- See Also:
-
STATIC_COLUMN_CLASS
- See Also:
-
EDITABLE_COLUMN_CLASS
- See Also:
-
EDITING_ROW_CLASS
- See Also:
-
GRIDLINES_CLASS
- See Also:
-
SMALL_SIZE_CLASS
- See Also:
-
LARGE_SIZE_CLASS
- See Also:
-
-
Constructor Details
-
TreeTable
public TreeTable()
-
-
Method Details
-
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
-
processEvent
public void processEvent(javax.faces.event.ComponentSystemEvent event) throws javax.faces.event.AbortProcessingException - Specified by:
processEventin interfacejavax.faces.event.ComponentSystemEventListener- Overrides:
processEventin classjavax.faces.component.UIComponent- Throws:
javax.faces.event.AbortProcessingException
-
processDecodes
public void processDecodes(javax.faces.context.FacesContext context) - Overrides:
processDecodesin classUITree
-
processValidators
public void processValidators(javax.faces.context.FacesContext context) - Overrides:
processValidatorsin classUITree
-
isResizeRequest
public boolean isResizeRequest(javax.faces.context.FacesContext context) -
getScrollState
-
resolveDataLocale
-
getColumns
-
setColumns
-
saveState
- Specified by:
saveStatein interfacejavax.faces.component.StateHolder- Overrides:
saveStatein classjavax.faces.component.UIComponentBase
-
getRowCount
public int getRowCount() -
getPage
public int getPage() -
getRowsToRender
public int getRowsToRender() -
getPageCount
public int getPageCount() -
getHeader
public javax.faces.component.UIComponent getHeader() -
calculateFirst
public void calculateFirst() -
updatePaginationData
public void updatePaginationData(javax.faces.context.FacesContext context) -
updateFilteredValue
-
getFilteredRowKeys
-
setFilteredRowKeys
-
preDecode
protected void preDecode(javax.faces.context.FacesContext context) -
preValidate
protected void preValidate(javax.faces.context.FacesContext context) - Overrides:
preValidatein classUITree
-
preUpdate
protected void preUpdate(javax.faces.context.FacesContext context) -
preEncode
protected void preEncode(javax.faces.context.FacesContext context) -
requiresColumns
protected boolean requiresColumns()- Overrides:
requiresColumnsin classUITree
-
restoreMultiViewState
public void restoreMultiViewState() -
getMultiViewState
-
resetMultiViewState
public void resetMultiViewState() -
reset
public void reset() -
getSortByAsMap
-
setSortByAsMap
-
getFilterByAsMap
-
setFilterByAsMap
-
isDefaultSort
public boolean isDefaultSort() -
setDefaultSort
public void setDefaultSort(boolean defaultSort) -
isDefaultFilter
public boolean isDefaultFilter() -
setDefaultFilter
public void setDefaultFilter(boolean defaultFilter) -
isFilterByAsMapDefined
public boolean isFilterByAsMapDefined() -
isMultiSort
public boolean isMultiSort() -
getColumnMeta
-
setColumnMeta
-
getWidth
-
setWidth
-
filterAndSort
public void filterAndSort()Recalculates filteredValue after adding, updating or removing TreeNodes to/from a filtered TreeTable. -
shouldEncodeFeature
public boolean shouldEncodeFeature(javax.faces.context.FacesContext context)
-