public class DataTable extends DataTableBase
DataTableBase.PropertyKeys
COMPONENT_FAMILY, DEFAULT_RENDERER
ARIA_FIRST_PAGE_LABEL, ARIA_HEADER_LABEL, ARIA_LAST_PAGE_LABEL, ARIA_NEXT_PAGE_LABEL, ARIA_PREVIOUS_PAGE_LABEL, 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
Constructor and Description |
---|
DataTable() |
Modifier and Type | Method and Description |
---|---|
protected void |
addToSelectedRowKeys(Object object,
Map<String,Object> requestMap,
String var,
boolean hasRowKey) |
void |
clearLazyCache() |
SortOrder |
convertSortOrder() |
void |
enableFiltering() |
UIColumn |
findColumn(String columnKey) |
UIColumn |
findColumnInGroup(String columnKey,
ColumnGroup group) |
List |
findOrderedColumns(String columnOrder) |
void |
findSelectedRowKeys() |
Map<String,Class<? extends javax.faces.event.BehaviorEvent>> |
getBehaviorEventMapping() |
ColumnGroup |
getColumnGroup(String target) |
List<UIColumn> |
getColumns() |
int |
getColumnsCount() |
int |
getColumnsCountWithSpan() |
String |
getColumnSelectionMode() |
javax.el.ValueExpression |
getDefaultSortByVE() |
javax.el.MethodExpression |
getDefaultSortFunction() |
String |
getDefaultSortOrder() |
Columns |
getDynamicColumns() |
Collection<String> |
getEventNames() |
DataTableFeature |
getFeature(DataTableFeatureKey key) |
String |
getGroupedColumnIndexes() |
HeaderRow |
getHeaderRow() |
protected List<javax.faces.component.UIComponent> |
getIterableChildren() |
Object |
getLocalSelection() |
DataTableState |
getMultiViewState(boolean create) |
String |
getResizableColumnsAsString() |
Map |
getResizableColumnsMap() |
Object |
getRowData(String rowKey) |
RowExpansion |
getRowExpansion() |
Object |
getRowKeyFromModel(Object object) |
int |
getScrollOffset() |
String |
getScrollState() |
List<Object> |
getSelectedRowKeys() |
String |
getSelectedRowKeysAsString() |
javax.el.ValueExpression |
getSortByVE() |
UIColumn |
getSortColumn() |
String |
getSortMetaAsString(javax.faces.context.FacesContext context) |
SubTable |
getSubTable() |
SummaryRow |
getSummaryRow() |
Map |
getTogglableColumnsMap() |
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 |
isDefaultSort() |
boolean |
isFilteringEnabled() |
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 |
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 |
processEvent(javax.faces.event.ComponentSystemEvent event) |
void |
processUpdates(javax.faces.context.FacesContext context) |
void |
processValidators(javax.faces.context.FacesContext context) |
void |
queueEvent(javax.faces.event.FacesEvent event) |
protected boolean |
requiresColumns() |
void |
reset() |
void |
resetMultiViewState() |
void |
resetValue() |
String |
resolveColumnField(UIColumn column) |
Locale |
resolveDataLocale() |
String |
resolveDynamicField(javax.el.ValueExpression expression) |
String |
resolveSelectionMode() |
protected String |
resolveSortField() |
String |
resolveStaticField(javax.el.ValueExpression expression) |
void |
restoreMultiViewState() |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setColumns(List<UIColumn> columns) |
void |
setDefaultSort(boolean defaultSort) |
void |
setDefaultSortByVE(javax.el.ValueExpression ve) |
void |
setDefaultSortFunction(javax.el.MethodExpression obj) |
void |
setDefaultSortOrder(String val) |
void |
setDynamicColumns(Columns value) |
void |
setResizableColumnsAsString(String resizableColumnsAsString) |
void |
setResizableColumnsMap(Map<String,String> resizableColsMap) |
void |
setScrollOffset(int scrollOffset) |
void |
setSortByVE(javax.el.ValueExpression ve) |
void |
setSortColumn(UIColumn column) |
void |
setTogglableColumnsAsString(String togglableColumnsAsString) |
void |
setTogglableColumnsMap(Map<String,Boolean> togglableColsMap) |
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 |
updateValue(Object value) |
getAriaRowLabel, getCellEditMode, getCellSeparator, getDataLocale, getDir, getDraggableRowsFunction, getEditInitEvent, getEditMode, getEmptyMessage, getFamily, getFilterBy, getFilterDelay, getFilteredValue, getFilterEvent, getFrozenColumns, getFrozenRows, getGlobalFilter, getGlobalFilterFunction, getInitMode, getLiveScrollBuffer, getNullSortOrder, getOnExpandStart, getOnRowClick, getResizeMode, getRowDragSelector, getRowEditMode, getRowExpandMode, getRowKey, getRowSelectMode, getRowSelector, getRowStyleClass, getScrollHeight, getScrollRows, getScrollWidth, getSelection, getSelectionMode, getSortBy, getSortField, getSortFunction, getSortMeta, getSortMode, getSortOrder, getStickyTopAt, getStyle, getStyleClass, getSummary, getTabindex, getTableStyle, getTableStyleClass, getWidgetVar, isCaseSensitiveSort, isClientCache, isDisableContextMenuIfEmpty, isDisabledSelection, isDisabledTextSelection, isDraggableColumns, isDraggableRows, isEditable, isEditingRow, isEscapeText, isExpandableRowGroups, isExpandedRow, isLiveResize, isLiveScroll, isMultiViewState, isNativeElements, isReflow, isResizableColumns, isRowHover, isSaveOnCellBlur, isScrollable, isSkipChildren, isStickyHeader, isVirtualScroll, setAriaRowLabel, setCaseSensitiveSort, setCellEditMode, setCellSeparator, setClientCache, setDataLocale, setDir, setDisableContextMenuIfEmpty, setDisabledSelection, setDisabledTextSelection, setDraggableColumns, setDraggableRows, setDraggableRowsFunction, setEditable, setEditingRow, setEditInitEvent, setEditMode, setEmptyMessage, setEscapeText, setExpandableRowGroups, setExpandedRow, setFilterBy, setFilterDelay, setFilteredValue, setFilterEvent, setFrozenColumns, setFrozenRows, setGlobalFilter, setGlobalFilterFunction, setInitMode, setLiveResize, setLiveScroll, setLiveScrollBuffer, setMultiViewState, setNativeElements, setNullSortOrder, setOnExpandStart, setOnRowClick, setReflow, setResizableColumns, setResizeMode, setRowDragSelector, setRowEditMode, setRowExpandMode, setRowHover, setRowKey, setRowSelectMode, setRowSelector, setRowStyleClass, setSaveOnCellBlur, setScrollable, setScrollHeight, setScrollRows, setScrollWidth, setSelection, setSelectionMode, setSkipChildren, setSortBy, setSortField, setSortFunction, setSortMeta, setSortMode, setSortOrder, setStickyHeader, setStickyTopAt, setStyle, setStyleClass, setSummary, setTabindex, setTableStyle, setTableStyleClass, setVirtualScroll, setWidgetVar
calculateFirst, encodeBegin, getClientId, getContainerClientId, getCurrentPageReportTemplate, getDataModel, getPage, getPageCount, getPageLinks, getPaginatorPosition, getPaginatorTemplate, getRowIndex, getRowIndexVar, getRows, getRowsPerPageLabel, getRowsPerPageTemplate, getRowsToRender, invokeOnComponent, isLazy, isNestedWithinIterator, isPaginationRequest, isPaginator, isPaginatorAlwaysVisible, isRowStatePreserved, markInitialState, process, processDecodes, processFacets, processPhase, resetRows, restoreDescendantState, restoreDescendantState, restoreState, saveDescendantState, saveDescendantState, setCurrentPageReportTemplate, setDataModel, setFirst, setId, setLazy, setPageLinks, setPaginator, setPaginatorAlwaysVisible, setPaginatorPosition, setPaginatorTemplate, setRowIndex, setRowIndexVar, setRowModel, setRows, setRowsPerPageLabel, setRowsPerPageTemplate, setRowStatePreserved, shouldVisitChildren, shouldVisitRows, updatePaginationData, visitColumnContent, visitColumnFacets, visitColumnGroup, visitColumnsAndColumnFacets, visitFacets, visitRows, visitTree
broadcast, createUniqueId, getFirst, getFooter, getHeader, getRowCount, getRowData, getValue, getVar, isRowAvailable, setFooter, setHeader, setValue, setValueBinding, setValueExpression, setVar
addClientBehavior, addFacesListener, clearInitialState, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, setInView, subscribeToEvent, unsubscribeFromEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveWidgetVar, resolveWidgetVar
addClientBehavior, getClientBehaviors, getDefaultEventName
getClientId, getCurrentPageReportTemplate, getFacet, getFirst, getFooter, getHeader, getPage, getPageCount, getPageLinks, getPaginatorPosition, getPaginatorTemplate, getRowCount, getRows, getRowsPerPageLabel, getRowsPerPageTemplate, getRowsToRender, isPaginatorAlwaysVisible
public static final String COMPONENT_TYPE
public static final String CONTAINER_CLASS
public static final String TABLE_WRAPPER_CLASS
public static final String REFLOW_CLASS
public static final String RTL_CLASS
public static final String COLUMN_HEADER_CLASS
public static final String DYNAMIC_COLUMN_HEADER_CLASS
public static final String COLUMN_HEADER_CONTAINER_CLASS
public static final String COLUMN_FOOTER_CLASS
public static final String COLUMN_FOOTER_CONTAINER_CLASS
public static final String DATA_CLASS
public static final String ROW_CLASS
public static final String SELECTABLE_ROW_CLASS
public static final String EMPTY_MESSAGE_ROW_CLASS
public static final String HEADER_CLASS
public static final String FOOTER_CLASS
public static final String SORTABLE_COLUMN_CLASS
public static final String SORTABLE_COLUMN_ICON_CLASS
public static final String SORTABLE_COLUMN_ASCENDING_ICON_CLASS
public static final String SORTABLE_COLUMN_DESCENDING_ICON_CLASS
public static final String STATIC_COLUMN_CLASS
public static final String UNSELECTABLE_COLUMN_CLASS
public static final String HIDDEN_COLUMN_CLASS
public static final String FILTER_COLUMN_CLASS
public static final String COLUMN_TITLE_CLASS
public static final String COLUMN_FILTER_CLASS
public static final String COLUMN_INPUT_FILTER_CLASS
public static final String COLUMN_CUSTOM_FILTER_CLASS
public static final String RESIZABLE_COLUMN_CLASS
public static final String EXPANDED_ROW_CLASS
public static final String EXPANDED_ROW_CONTENT_CLASS
public static final String ROW_TOGGLER_CLASS
public static final String EDITABLE_COLUMN_CLASS
public static final String CELL_EDITOR_CLASS
public static final String CELL_EDITOR_INPUT_CLASS
public static final String CELL_EDITOR_OUTPUT_CLASS
public static final String CELL_EDITOR_DISABLED_CLASS
public static final String ROW_EDITOR_COLUMN_CLASS
public static final String ROW_EDITOR_CLASS
public static final String SELECTION_COLUMN_CLASS
public static final String EVEN_ROW_CLASS
public static final String ODD_ROW_CLASS
public static final String SCROLLABLE_CONTAINER_CLASS
public static final String SCROLLABLE_HEADER_CLASS
public static final String SCROLLABLE_HEADER_BOX_CLASS
public static final String SCROLLABLE_BODY_CLASS
public static final String SCROLLABLE_FOOTER_CLASS
public static final String SCROLLABLE_FOOTER_BOX_CLASS
public static final String VIRTUALSCROLL_WRAPPER_CLASS
public static final String VIRTUALSCROLL_TABLE_CLASS
public static final String COLUMN_RESIZER_CLASS
public static final String RESIZABLE_CONTAINER_CLASS
public static final String SUBTABLE_HEADER
public static final String SUBTABLE_FOOTER
public static final String SUMMARY_ROW_CLASS
public static final String HEADER_ROW_CLASS
public static final String ROW_GROUP_TOGGLER_CLASS
public static final String ROW_GROUP_TOGGLER_ICON_CLASS
public static final String EDITING_ROW_CLASS
public static final String STICKY_HEADER_CLASS
public static final String ARIA_FILTER_BY
public static final String ARIA_HEADER_CHECKBOX_ALL
public static final String SORT_LABEL
public static final String SORT_ASC
public static final String SORT_DESC
public static final String ROW_GROUP_TOGGLER
public DataTableFeature getFeature(DataTableFeatureKey key)
public boolean shouldEncodeFeature(javax.faces.context.FacesContext context)
public boolean isRowEditRequest(javax.faces.context.FacesContext context)
public boolean isRowEditInitRequest(javax.faces.context.FacesContext context)
public boolean isCellEditCancelRequest(javax.faces.context.FacesContext context)
public boolean isCellEditInitRequest(javax.faces.context.FacesContext context)
public boolean isClientCacheRequest(javax.faces.context.FacesContext context)
public boolean isPageStateRequest(javax.faces.context.FacesContext context)
public boolean isScrollingRequest(javax.faces.context.FacesContext context)
public boolean isRowEditCancelRequest(javax.faces.context.FacesContext context)
public boolean isRowSelectionEnabled()
public boolean isColumnSelectionEnabled()
public String getColumnSelectionMode()
public boolean isSelectionEnabled()
public boolean isSingleSelectionMode()
public void processValidators(javax.faces.context.FacesContext context)
processValidators
in class UIData
public void processUpdates(javax.faces.context.FacesContext context)
processUpdates
in class UIData
public void queueEvent(javax.faces.event.FacesEvent event)
queueEvent
in class javax.faces.component.UIData
public UIColumn findColumnInGroup(String columnKey, ColumnGroup group)
public ColumnGroup getColumnGroup(String target)
public boolean hasFooterColumn()
public void loadLazyData()
public void loadLazyScrollData(int offset, int rows)
protected String resolveSortField()
public SortOrder convertSortOrder()
public String resolveStaticField(javax.el.ValueExpression expression)
public String resolveDynamicField(javax.el.ValueExpression expression)
public void clearLazyCache()
public int getScrollOffset()
public void setScrollOffset(int scrollOffset)
public boolean isReset()
public void resetValue()
public void reset()
public boolean isFilteringEnabled()
public void enableFiltering()
public RowExpansion getRowExpansion()
public Object getLocalSelection()
public Map<String,Class<? extends javax.faces.event.BehaviorEvent>> getBehaviorEventMapping()
public Collection<String> getEventNames()
getEventNames
in interface javax.faces.component.behavior.ClientBehaviorHolder
getEventNames
in class javax.faces.component.UIComponentBase
public boolean isBodyUpdate(javax.faces.context.FacesContext context)
public SubTable getSubTable()
public void findSelectedRowKeys()
protected void addToSelectedRowKeys(Object object, Map<String,Object> requestMap, String var, boolean hasRowKey)
public String getSelectedRowKeysAsString()
public SummaryRow getSummaryRow()
public HeaderRow getHeaderRow()
public int getColumnsCount()
public int getColumnsCountWithSpan()
public String getScrollState()
protected boolean shouldSkipChildren(javax.faces.context.FacesContext context)
shouldSkipChildren
in class UIData
public UIColumn getSortColumn()
public void setSortColumn(UIColumn column)
public boolean isMultiSort()
public String resolveSelectionMode()
protected boolean requiresColumns()
requiresColumns
in class UIData
public Columns getDynamicColumns()
public void setDynamicColumns(Columns value)
protected void processColumnFacets(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
processColumnFacets
in class UIData
protected void processChildren(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
processChildren
in class UIData
public javax.el.ValueExpression getSortByVE()
public void setSortByVE(javax.el.ValueExpression ve)
public javax.el.ValueExpression getDefaultSortByVE()
public void setDefaultSortByVE(javax.el.ValueExpression ve)
public String getDefaultSortOrder()
public void setDefaultSortOrder(String val)
public javax.el.MethodExpression getDefaultSortFunction()
public void setDefaultSortFunction(javax.el.MethodExpression obj)
public boolean isDefaultSort()
public void setDefaultSort(boolean defaultSort)
public void setTogglableColumnsAsString(String togglableColumnsAsString)
public Map getTogglableColumnsMap()
public String getResizableColumnsAsString()
public void setResizableColumnsAsString(String resizableColumnsAsString)
public Map getResizableColumnsMap()
public Locale resolveDataLocale()
protected List<javax.faces.component.UIComponent> getIterableChildren()
getIterableChildren
in class UIData
public void processEvent(javax.faces.event.ComponentSystemEvent event) throws javax.faces.event.AbortProcessingException
processEvent
in interface javax.faces.event.ComponentSystemEventListener
processEvent
in class javax.faces.component.UIComponent
javax.faces.event.AbortProcessingException
public void updateFilteredValue(javax.faces.context.FacesContext context, List<?> value)
public void updateValue(Object value)
public Object saveState(javax.faces.context.FacesContext context)
protected void preDecode(javax.faces.context.FacesContext context)
protected void preValidate(javax.faces.context.FacesContext context)
preValidate
in class UIData
protected void preUpdate(javax.faces.context.FacesContext context)
protected void preEncode(javax.faces.context.FacesContext context)
public void restoreMultiViewState()
public DataTableState getMultiViewState(boolean create)
public void resetMultiViewState()
public String getGroupedColumnIndexes()
public String getSortMetaAsString(javax.faces.context.FacesContext context)
Copyright © 2020. All rights reserved.