Class DataTable
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UIData
-
- org.primefaces.component.api.UIData
-
- org.primefaces.component.api.UIPageableData
-
- org.primefaces.component.datatable.DataTableBase
-
- org.primefaces.component.datatable.DataTable
-
- 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.component.UniqueIdVendor
,javax.faces.event.ComponentSystemEventListener
,javax.faces.event.FacesListener
,javax.faces.event.SystemEventListenerHolder
,ColumnAware
,MultiViewStateAware<DataTableState>
,Pageable
,PrimeClientBehaviorHolder
,RTLAware
,TouchAware
,UITable<DataTableState>
,Widget
public class DataTable extends DataTableBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DataTable.InternalPropertyKeys
-
Nested classes/interfaces inherited from class org.primefaces.component.datatable.DataTableBase
DataTableBase.PropertyKeys
-
-
Field Summary
-
Fields inherited from class org.primefaces.component.datatable.DataTableBase
COMPONENT_FAMILY, DEFAULT_RENDERER
-
Fields inherited from class org.primefaces.component.api.UIPageableData
ARIA_FIRST_PAGE_LABEL, ARIA_HEADER_LABEL, ARIA_LAST_PAGE_LABEL, ARIA_NEXT_PAGE_LABEL, ARIA_PREVIOUS_PAGE_LABEL, EMPTY_MESSAGE, PAGINATOR_ACTIVE_PAGE_CLASS, PAGINATOR_BOTTOM_CONTAINER_CLASS, PAGINATOR_BOTTOM_LEFT_CONTENT_CLASS, PAGINATOR_BOTTOM_RIGHT_CONTENT_CLASS, PAGINATOR_CURRENT_CLASS, PAGINATOR_FIRST_PAGE_ICON_CLASS, PAGINATOR_FIRST_PAGE_LINK_CLASS, PAGINATOR_JTP_INPUT_CLASS, PAGINATOR_JTP_SELECT_CLASS, PAGINATOR_LAST_PAGE_ICON_CLASS, PAGINATOR_LAST_PAGE_LINK_CLASS, PAGINATOR_NEXT_PAGE_ICON_CLASS, PAGINATOR_NEXT_PAGE_LINK_CLASS, PAGINATOR_PAGE_CLASS, PAGINATOR_PAGES_CLASS, PAGINATOR_PREV_PAGE_ICON_CLASS, PAGINATOR_PREV_PAGE_LINK_CLASS, PAGINATOR_RPP_LABEL_CLASS, PAGINATOR_RPP_OPTIONS_CLASS, PAGINATOR_TOP_CONTAINER_CLASS, PAGINATOR_TOP_LEFT_CONTENT_CLASS, PAGINATOR_TOP_RIGHT_CONTENT_CLASS, ROWS_PER_PAGE_LABEL
-
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.UITable
OLD_SYNTAX_COLUMN_PROPERTY_REGEX
-
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 DataTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearLazyCache()
List<UIColumn>
findOrderedColumns(String columnOrder)
Map<String,Class<? extends javax.faces.event.BehaviorEvent>>
getBehaviorEventMapping()
Map<String,ColumnMeta>
getColumnMeta()
List<UIColumn>
getColumns()
String
getColumnSelectionMode()
Collection<String>
getEventNames()
Set<Integer>
getExpandedRowsSet()
DataTableFeature
getFeature(DataTableFeatureKey key)
Map<String,FilterMeta>
getFilterByAsMap()
int
getFrozenColumnsCount()
String
getGroupedColumnIndexes()
HeaderRow
getHeaderRow()
protected List<javax.faces.component.UIComponent>
getIterableChildren()
DataTableState
getMultiViewState(boolean create)
Object
getRowData(String rowKey)
RowExpansion
getRowExpansion()
String
getRowKey(Object object)
int
getScrollOffset()
String
getScrollState()
Set<String>
getSelectedRowKeys()
String
getSelectedRowKeysAsString()
Map<String,SortMeta>
getSortByAsMap()
SubTable
getSubTable()
SummaryRow
getSummaryRow()
String
getWidth()
boolean
hasFooterColumn()
boolean
isBodyUpdate(javax.faces.context.FacesContext context)
boolean
isCellEditCancelRequest(javax.faces.context.FacesContext context)
boolean
isCellEditInitRequest(javax.faces.context.FacesContext context)
boolean
isClientCacheRequest(javax.faces.context.FacesContext context)
boolean
isColumnSelectionEnabled()
boolean
isDefaultFilter()
boolean
isDefaultSort()
boolean
isFilterByAsMapDefined()
boolean
isMultiSort()
boolean
isPageStateRequest(javax.faces.context.FacesContext context)
boolean
isReset()
boolean
isRowEditCancelRequest(javax.faces.context.FacesContext context)
boolean
isRowEditInitRequest(javax.faces.context.FacesContext context)
boolean
isRowEditRequest(javax.faces.context.FacesContext context)
boolean
isRowSelectionEnabled()
boolean
isScrollingRequest(javax.faces.context.FacesContext context)
boolean
isSelectionEnabled()
boolean
isSingleSelectionMode()
void
loadLazyData()
void
loadLazyDataIfRequired()
void
loadLazyScrollData(int offset, int rows)
protected void
preDecode(javax.faces.context.FacesContext context)
protected void
preEncode(javax.faces.context.FacesContext context)
protected void
preUpdate(javax.faces.context.FacesContext context)
protected void
preValidate(javax.faces.context.FacesContext context)
protected void
processChildren(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
protected void
processColumnFacets(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
void
processValidators(javax.faces.context.FacesContext context)
void
queueEvent(javax.faces.event.FacesEvent event)
protected boolean
requiresColumns()
void
reset()
void
resetMultiViewState()
void
resetValue()
Locale
resolveDataLocale()
String
resolveSelectionMode()
void
restoreMultiViewState()
Object
saveState(javax.faces.context.FacesContext context)
void
setColumnMeta(Map<String,ColumnMeta> columnMeta)
void
setColumns(List<UIColumn> columns)
void
setDefaultFilter(boolean defaultFilter)
void
setDefaultSort(boolean defaultSort)
void
setFilterByAsMap(Map<String,FilterMeta> sortBy)
void
setScrollOffset(int scrollOffset)
void
setSelectedRowKeys(Set<String> selectedRowKeys)
void
setSortByAsMap(Map<String,SortMeta> sortBy)
void
setWidth(String width)
boolean
shouldEncodeFeature(javax.faces.context.FacesContext context)
protected boolean
shouldSkipChildren(javax.faces.context.FacesContext context)
void
updateFilteredValue(javax.faces.context.FacesContext context, List<?> value)
void
updateSelectionWithMVS(Set<String> rowKeys)
-
Methods inherited from class org.primefaces.component.datatable.DataTableBase
getAriaRowLabel, getCellEditMode, getCellSeparator, getDataLocale, getDir, getDraggableRowsFunction, getEditInitEvent, getEditMode, getFamily, getFilterBy, getFilterDelay, getFilteredValue, getFilterEvent, getFrozenColumns, getFrozenRows, getGlobalFilter, getGlobalFilterFunction, getLiveScrollBuffer, getOnExpandStart, getOnRowClick, getResizeMode, getRowDragSelector, getRowEditMode, getRowExpandMode, getRowKey, getRowSelectMode, getRowSelector, getRowStyleClass, getScrollHeight, getScrollRows, getScrollWidth, getSelection, getSelectionMode, getSize, getSortBy, getSortMode, getStickyTopAt, getStyle, getStyleClass, getSummary, getTabindex, getTableStyle, getTableStyleClass, getWidgetVar, isAllowUnsorting, isClientCache, isDisableContextMenuIfEmpty, isDisabledSelection, isDisabledTextSelection, isDraggableColumns, isDraggableRows, isEditable, isEditingRow, isEscapeText, isExpandedRow, isLiveResize, isLiveScroll, isMultiViewState, isNativeElements, isReflow, isRenderEmptyFacets, isResizableColumns, isRowHover, isSaveOnCellBlur, isScrollable, isSelectionPageOnly, isShowGridlines, isSkipChildren, isStickyHeader, isStripedRows, isVirtualScroll, setAllowUnsorting, setAriaRowLabel, setCellEditMode, setCellSeparator, setClientCache, setDataLocale, setDir, setDisableContextMenuIfEmpty, setDisabledSelection, setDisabledTextSelection, setDraggableColumns, setDraggableRows, setDraggableRowsFunction, setEditable, setEditingRow, setEditInitEvent, setEditMode, setEscapeText, setExpandedRow, setFilterBy, setFilterDelay, setFilteredValue, setFilterEvent, setFrozenColumns, setFrozenRows, setGlobalFilter, setGlobalFilterFunction, setLiveResize, setLiveScroll, setLiveScrollBuffer, setMultiViewState, setNativeElements, setOnExpandStart, setOnRowClick, setReflow, setRenderEmptyFacets, setResizableColumns, setResizeMode, setRowDragSelector, setRowEditMode, setRowExpandMode, setRowHover, setRowKey, setRowSelectMode, setRowSelector, setRowStyleClass, setSaveOnCellBlur, setScrollable, setScrollHeight, setScrollRows, setScrollWidth, setSelection, setSelectionMode, setSelectionPageOnly, setShowGridlines, setSize, setSkipChildren, setSortBy, setSortMode, setStickyHeader, setStickyTopAt, setStripedRows, setStyle, setStyleClass, setSummary, setTabindex, setTableStyle, setTableStyleClass, setVirtualScroll, setWidgetVar
-
Methods inherited from class org.primefaces.component.api.UIPageableData
calculateFirst, getCurrentPageReportTemplate, getEmptyMessage, getPage, getPageCount, getPageLinks, getPaginatorPosition, getPaginatorTemplate, getRows, getRowsPerPageLabel, getRowsPerPageTemplate, getRowsToRender, isPaginationRequest, isPaginator, isPaginatorAlwaysVisible, isTouchable, resetRows, setCurrentPageReportTemplate, setEmptyMessage, setFirst, setPageLinks, setPaginator, setPaginatorAlwaysVisible, setPaginatorPosition, setPaginatorTemplate, setRows, setRowsPerPageLabel, setRowsPerPageTemplate, setTouchable, updatePaginationData
-
Methods inherited from class org.primefaces.component.api.UIData
encodeBegin, getClientId, getContainerClientId, getDataModel, getRowIndex, getRowIndexVar, invokeOnComponent, isLazy, isNestedWithinIterator, isRowStatePreserved, markInitialState, process, processDecodes, processFacets, processPhase, processUpdates, restoreDescendantState, restoreDescendantState, restoreState, saveDescendantState, saveDescendantState, setDataModel, setId, setLazy, setRowIndex, setRowIndexVar, setRowModel, setRowStatePreserved, shouldProcessChild, shouldVisitChildren, visitColumnContent, visitColumnFacets, visitColumnGroup, visitColumnsAndColumnFacets, visitFacets, visitRows, visitTree
-
Methods inherited from class javax.faces.component.UIData
broadcast, createUniqueId, getFirst, getFooter, getHeader, getRowCount, getRowData, getValue, getVar, isRowAvailable, setFooter, setHeader, setValue, setValueBinding, setValueExpression, setVar
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, 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
-
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.ColumnAware
collectColumns, findColumn, findColumnInGroup, forEachColumn, forEachColumn, forEachColumn, getColumnGroup, getColumnsCount, getColumnsCount, getColumnsCountWithSpan, getColumnsCountWithSpan, getOrderedColumnKeys, invokeOnColumn, invokeOnColumn, resetDynamicColumns
-
Methods inherited from interface org.primefaces.component.api.Pageable
getClientId, getFacet, getFirst, getFooter, getHeader, getRowCount
-
Methods inherited from interface org.primefaces.component.api.UITable
decodeColumnDisplayOrderState, decodeColumnResizeState, decodeColumnTogglerState, getActiveFilterMeta, getActiveSortMeta, getClientId, getColumnsWidthForClientSide, getConvertedFieldValue, getFilterValue, getHighestPriorityActiveSortMeta, getSortMetaAsString, getVar, initFilterBy, initSortBy, isColumnFilterable, isColumnSortable, isFilteringCurrentlyActive, isFilteringEnabled, isSortingCurrentlyActive, isSortingEnabled, updateFilterByValuesWithFilterRequest, updateFilterByWithGlobalFilter, updateFilterByWithMVS, updateFilterByWithUserFilterBy, updateSortByWithMVS, updateSortByWithUserSortBy
-
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
-
CONTAINER_CLASS
public static final String CONTAINER_CLASS
- See Also:
- Constant Field Values
-
TABLE_WRAPPER_CLASS
public static final String TABLE_WRAPPER_CLASS
- See Also:
- Constant Field Values
-
REFLOW_CLASS
public static final String REFLOW_CLASS
- See Also:
- Constant Field Values
-
RTL_CLASS
public static final String RTL_CLASS
- See Also:
- Constant Field Values
-
COLUMN_HEADER_CLASS
public static final String COLUMN_HEADER_CLASS
- See Also:
- Constant Field Values
-
DYNAMIC_COLUMN_HEADER_CLASS
public static final String DYNAMIC_COLUMN_HEADER_CLASS
- See Also:
- Constant Field Values
-
COLUMN_HEADER_CONTAINER_CLASS
public static final String COLUMN_HEADER_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
COLUMN_FOOTER_CLASS
public static final String COLUMN_FOOTER_CLASS
- See Also:
- Constant Field Values
-
COLUMN_FOOTER_CONTAINER_CLASS
public static final String COLUMN_FOOTER_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
DATA_CLASS
public static final String DATA_CLASS
- See Also:
- Constant Field Values
-
ROW_CLASS
public static final String ROW_CLASS
- See Also:
- Constant Field Values
-
SELECTABLE_ROW_CLASS
public static final String SELECTABLE_ROW_CLASS
- See Also:
- Constant Field Values
-
EMPTY_MESSAGE_ROW_CLASS
public static final String EMPTY_MESSAGE_ROW_CLASS
- See Also:
- Constant Field Values
-
HEADER_CLASS
public static final String HEADER_CLASS
- See Also:
- Constant Field Values
-
FOOTER_CLASS
public static final String FOOTER_CLASS
- See Also:
- Constant Field Values
-
SORTABLE_COLUMN_CLASS
public static final String SORTABLE_COLUMN_CLASS
- See Also:
- Constant Field Values
-
SORTABLE_COLUMN_ICON_CLASS
public static final String SORTABLE_COLUMN_ICON_CLASS
- See Also:
- Constant Field Values
-
SORTABLE_COLUMN_ASCENDING_ICON_CLASS
public static final String SORTABLE_COLUMN_ASCENDING_ICON_CLASS
- See Also:
- Constant Field Values
-
SORTABLE_COLUMN_DESCENDING_ICON_CLASS
public static final String SORTABLE_COLUMN_DESCENDING_ICON_CLASS
- See Also:
- Constant Field Values
-
SORTABLE_PRIORITY_CLASS
public static final String SORTABLE_PRIORITY_CLASS
- See Also:
- Constant Field Values
-
STATIC_COLUMN_CLASS
public static final String STATIC_COLUMN_CLASS
- See Also:
- Constant Field Values
-
UNSELECTABLE_COLUMN_CLASS
public static final String UNSELECTABLE_COLUMN_CLASS
- See Also:
- Constant Field Values
-
HIDDEN_COLUMN_CLASS
public static final String HIDDEN_COLUMN_CLASS
- See Also:
- Constant Field Values
-
FILTER_COLUMN_CLASS
public static final String FILTER_COLUMN_CLASS
- See Also:
- Constant Field Values
-
COLUMN_TITLE_CLASS
public static final String COLUMN_TITLE_CLASS
- See Also:
- Constant Field Values
-
COLUMN_FILTER_CLASS
public static final String COLUMN_FILTER_CLASS
- See Also:
- Constant Field Values
-
COLUMN_INPUT_FILTER_CLASS
public static final String COLUMN_INPUT_FILTER_CLASS
- See Also:
- Constant Field Values
-
COLUMN_CUSTOM_FILTER_CLASS
public static final String COLUMN_CUSTOM_FILTER_CLASS
- See Also:
- Constant Field Values
-
RESIZABLE_COLUMN_CLASS
public static final String RESIZABLE_COLUMN_CLASS
- See Also:
- Constant Field Values
-
DRAGGABLE_COLUMN_CLASS
public static final String DRAGGABLE_COLUMN_CLASS
- See Also:
- Constant Field Values
-
EXPANDED_ROW_CLASS
public static final String EXPANDED_ROW_CLASS
- See Also:
- Constant Field Values
-
EXPANDED_ROW_CONTENT_CLASS
public static final String EXPANDED_ROW_CONTENT_CLASS
- See Also:
- Constant Field Values
-
ROW_TOGGLER_CLASS
public static final String ROW_TOGGLER_CLASS
- See Also:
- Constant Field Values
-
EDITABLE_COLUMN_CLASS
public static final String EDITABLE_COLUMN_CLASS
- See Also:
- Constant Field Values
-
CELL_EDITOR_CLASS
public static final String CELL_EDITOR_CLASS
- See Also:
- Constant Field Values
-
CELL_EDITOR_INPUT_CLASS
public static final String CELL_EDITOR_INPUT_CLASS
- See Also:
- Constant Field Values
-
CELL_EDITOR_OUTPUT_CLASS
public static final String CELL_EDITOR_OUTPUT_CLASS
- See Also:
- Constant Field Values
-
CELL_EDITOR_DISABLED_CLASS
public static final String CELL_EDITOR_DISABLED_CLASS
- See Also:
- Constant Field Values
-
ROW_EDITOR_COLUMN_CLASS
public static final String ROW_EDITOR_COLUMN_CLASS
- See Also:
- Constant Field Values
-
ROW_EDITOR_CLASS
public static final String ROW_EDITOR_CLASS
- See Also:
- Constant Field Values
-
SELECTION_COLUMN_CLASS
public static final String SELECTION_COLUMN_CLASS
- See Also:
- Constant Field Values
-
EVEN_ROW_CLASS
public static final String EVEN_ROW_CLASS
- See Also:
- Constant Field Values
-
ODD_ROW_CLASS
public static final String ODD_ROW_CLASS
- See Also:
- Constant Field Values
-
SCROLLABLE_CONTAINER_CLASS
public static final String SCROLLABLE_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
SCROLLABLE_HEADER_CLASS
public static final String SCROLLABLE_HEADER_CLASS
- See Also:
- Constant Field Values
-
SCROLLABLE_HEADER_BOX_CLASS
public static final String SCROLLABLE_HEADER_BOX_CLASS
- See Also:
- Constant Field Values
-
SCROLLABLE_BODY_CLASS
public static final String SCROLLABLE_BODY_CLASS
- See Also:
- Constant Field Values
-
SCROLLABLE_FOOTER_CLASS
public static final String SCROLLABLE_FOOTER_CLASS
- See Also:
- Constant Field Values
-
SCROLLABLE_FOOTER_BOX_CLASS
public static final String SCROLLABLE_FOOTER_BOX_CLASS
- See Also:
- Constant Field Values
-
VIRTUALSCROLL_WRAPPER_CLASS
public static final String VIRTUALSCROLL_WRAPPER_CLASS
- See Also:
- Constant Field Values
-
VIRTUALSCROLL_TABLE_CLASS
public static final String VIRTUALSCROLL_TABLE_CLASS
- See Also:
- Constant Field Values
-
COLUMN_RESIZER_CLASS
public static final String COLUMN_RESIZER_CLASS
- See Also:
- Constant Field Values
-
RESIZABLE_CONTAINER_CLASS
public static final String RESIZABLE_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
SUBTABLE_HEADER
public static final String SUBTABLE_HEADER
- See Also:
- Constant Field Values
-
SUBTABLE_FOOTER
public static final String SUBTABLE_FOOTER
- See Also:
- Constant Field Values
-
SUMMARY_ROW_CLASS
public static final String SUMMARY_ROW_CLASS
- See Also:
- Constant Field Values
-
HEADER_ROW_CLASS
public static final String HEADER_ROW_CLASS
- See Also:
- Constant Field Values
-
ROW_GROUP_TOGGLER_CLASS
public static final String ROW_GROUP_TOGGLER_CLASS
- See Also:
- Constant Field Values
-
ROW_GROUP_TOGGLER_OPEN_ICON_CLASS
public static final String ROW_GROUP_TOGGLER_OPEN_ICON_CLASS
- See Also:
- Constant Field Values
-
ROW_GROUP_TOGGLER_CLOSED_ICON_CLASS
public static final String ROW_GROUP_TOGGLER_CLOSED_ICON_CLASS
- See Also:
- Constant Field Values
-
EDITING_ROW_CLASS
public static final String EDITING_ROW_CLASS
- See Also:
- Constant Field Values
-
STICKY_HEADER_CLASS
public static final String STICKY_HEADER_CLASS
- See Also:
- Constant Field Values
-
ARIA_FILTER_BY
public static final String ARIA_FILTER_BY
- See Also:
- Constant Field Values
-
ARIA_HEADER_CHECKBOX_ALL
public static final String ARIA_HEADER_CHECKBOX_ALL
- See Also:
- Constant Field Values
-
SORT_LABEL
public static final String SORT_LABEL
- See Also:
- Constant Field Values
-
SORT_ASC
public static final String SORT_ASC
- See Also:
- Constant Field Values
-
SORT_DESC
public static final String SORT_DESC
- See Also:
- Constant Field Values
-
ROW_GROUP_TOGGLER
public static final String ROW_GROUP_TOGGLER
- See Also:
- Constant Field Values
-
STRIPED_ROWS_CLASS
public static final String STRIPED_ROWS_CLASS
- See Also:
- Constant Field Values
-
GRIDLINES_CLASS
public static final String GRIDLINES_CLASS
- See Also:
- Constant Field Values
-
SMALL_SIZE_CLASS
public static final String SMALL_SIZE_CLASS
- See Also:
- Constant Field Values
-
LARGE_SIZE_CLASS
public static final String LARGE_SIZE_CLASS
- See Also:
- Constant Field Values
-
FEATURES
public static final Map<DataTableFeatureKey,DataTableFeature> FEATURES
-
-
Method Detail
-
getFeature
public DataTableFeature getFeature(DataTableFeatureKey key)
-
shouldEncodeFeature
public boolean shouldEncodeFeature(javax.faces.context.FacesContext context)
-
isRowEditRequest
public boolean isRowEditRequest(javax.faces.context.FacesContext context)
-
isRowEditInitRequest
public boolean isRowEditInitRequest(javax.faces.context.FacesContext context)
-
isCellEditCancelRequest
public boolean isCellEditCancelRequest(javax.faces.context.FacesContext context)
-
isCellEditInitRequest
public boolean isCellEditInitRequest(javax.faces.context.FacesContext context)
-
isClientCacheRequest
public boolean isClientCacheRequest(javax.faces.context.FacesContext context)
-
isPageStateRequest
public boolean isPageStateRequest(javax.faces.context.FacesContext context)
-
isScrollingRequest
public boolean isScrollingRequest(javax.faces.context.FacesContext context)
-
isRowEditCancelRequest
public boolean isRowEditCancelRequest(javax.faces.context.FacesContext context)
-
isRowSelectionEnabled
public boolean isRowSelectionEnabled()
-
isColumnSelectionEnabled
public boolean isColumnSelectionEnabled()
-
getColumnSelectionMode
public String getColumnSelectionMode()
-
isSelectionEnabled
public boolean isSelectionEnabled()
-
isSingleSelectionMode
public boolean isSingleSelectionMode()
-
processValidators
public void processValidators(javax.faces.context.FacesContext context)
- Overrides:
processValidators
in classUIData
-
queueEvent
public void queueEvent(javax.faces.event.FacesEvent event)
- Overrides:
queueEvent
in classjavax.faces.component.UIData
-
hasFooterColumn
public boolean hasFooterColumn()
-
loadLazyDataIfRequired
public void loadLazyDataIfRequired()
-
loadLazyData
public void loadLazyData()
-
loadLazyScrollData
public void loadLazyScrollData(int offset, int rows)
-
clearLazyCache
public void clearLazyCache()
-
getScrollOffset
public int getScrollOffset()
-
setScrollOffset
public void setScrollOffset(int scrollOffset)
-
isReset
public boolean isReset()
-
resetValue
public void resetValue()
-
reset
public void reset()
-
getRowExpansion
public RowExpansion getRowExpansion()
-
getBehaviorEventMapping
public Map<String,Class<? extends javax.faces.event.BehaviorEvent>> getBehaviorEventMapping()
-
getEventNames
public Collection<String> getEventNames()
- Specified by:
getEventNames
in interfacejavax.faces.component.behavior.ClientBehaviorHolder
- Overrides:
getEventNames
in classjavax.faces.component.UIComponentBase
-
isBodyUpdate
public boolean isBodyUpdate(javax.faces.context.FacesContext context)
-
getSubTable
public SubTable getSubTable()
-
getSelectedRowKeysAsString
public String getSelectedRowKeysAsString()
-
getSummaryRow
public SummaryRow getSummaryRow()
-
getHeaderRow
public HeaderRow getHeaderRow()
-
getScrollState
public String getScrollState()
-
shouldSkipChildren
protected boolean shouldSkipChildren(javax.faces.context.FacesContext context)
- Overrides:
shouldSkipChildren
in classUIData
-
isMultiSort
public boolean isMultiSort()
-
resolveSelectionMode
public String resolveSelectionMode()
-
requiresColumns
protected boolean requiresColumns()
- Overrides:
requiresColumns
in classUIData
-
processColumnFacets
protected void processColumnFacets(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
- Overrides:
processColumnFacets
in classUIData
-
processChildren
protected void processChildren(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
- Overrides:
processChildren
in classUIData
-
isDefaultSort
public boolean isDefaultSort()
-
setDefaultSort
public void setDefaultSort(boolean defaultSort)
-
isDefaultFilter
public boolean isDefaultFilter()
-
setDefaultFilter
public void setDefaultFilter(boolean defaultFilter)
-
resolveDataLocale
public Locale resolveDataLocale()
-
getIterableChildren
protected List<javax.faces.component.UIComponent> getIterableChildren()
- Overrides:
getIterableChildren
in classUIData
-
updateFilteredValue
public void updateFilteredValue(javax.faces.context.FacesContext context, List<?> value)
-
saveState
public Object saveState(javax.faces.context.FacesContext context)
-
preDecode
protected void preDecode(javax.faces.context.FacesContext context)
-
preValidate
protected void preValidate(javax.faces.context.FacesContext context)
- Overrides:
preValidate
in classUIData
-
preUpdate
protected void preUpdate(javax.faces.context.FacesContext context)
-
preEncode
protected void preEncode(javax.faces.context.FacesContext context)
-
restoreMultiViewState
public void restoreMultiViewState()
-
getMultiViewState
public DataTableState getMultiViewState(boolean create)
-
resetMultiViewState
public void resetMultiViewState()
-
getGroupedColumnIndexes
public String getGroupedColumnIndexes()
-
getFilterByAsMap
public Map<String,FilterMeta> getFilterByAsMap()
-
setFilterByAsMap
public void setFilterByAsMap(Map<String,FilterMeta> sortBy)
-
getFrozenColumnsCount
public int getFrozenColumnsCount()
-
isFilterByAsMapDefined
public boolean isFilterByAsMapDefined()
-
getColumnMeta
public Map<String,ColumnMeta> getColumnMeta()
-
setColumnMeta
public void setColumnMeta(Map<String,ColumnMeta> columnMeta)
-
getWidth
public String getWidth()
-
setWidth
public void setWidth(String width)
-
-