public class DataTable extends UIData implements Widget, RTLAware, javax.faces.component.behavior.ClientBehaviorHolder
Modifier and Type | Class and Description |
---|---|
protected static class |
DataTable.PropertyKeys |
PAGINATOR_ACTIVE_PAGE_CLASS, PAGINATOR_BOTTOM_CONTAINER_CLASS, PAGINATOR_CURRENT_CLASS, PAGINATOR_FIRST_PAGE_ICON_CLASS, PAGINATOR_FIRST_PAGE_LINK_CLASS, PAGINATOR_JTP_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
Constructor and Description |
---|
DataTable() |
Modifier and Type | Method and Description |
---|---|
protected void |
addToSelectedRowKeys(Object object,
Map<String,Object> map,
String var,
boolean hasRowKey) |
void |
clearLazyCache() |
SortOrder |
convertSortOrder() |
void |
enableFiltering() |
UIColumn |
findColumn(String clientId) |
UIColumn |
findColumnInGroup(String clientId,
ColumnGroup group) |
void |
findSelectedRowKeys() |
String |
getCellSeparator() |
ColumnGroup |
getColumnGroup(String target) |
List<UIColumn> |
getColumns() |
int |
getColumnsCount() |
int |
getColumnsCountWithSpan() |
String |
getColumnSelectionMode() |
Object |
getDataLocale() |
javax.el.ValueExpression |
getDefaultSortByVE() |
javax.el.MethodExpression |
getDefaultSortFunction() |
String |
getDefaultSortOrder() |
String |
getDir() |
Columns |
getDynamicColumns() |
String |
getEditMode() |
String |
getEmptyMessage() |
Collection<String> |
getEventNames() |
String |
getFamily() |
DataTableFeature |
getFeature(DataTableFeatureKey key) |
int |
getFilterDelay() |
List |
getFilteredValue() |
String |
getFilterEvent() |
List |
getFilterMetadata() |
Map<String,Object> |
getFilters() |
int |
getFrozenColumns() |
int |
getFrozenRows() |
String |
getInitMode() |
protected List<javax.faces.component.UIComponent> |
getIterableChildren() |
int |
getLiveScrollBuffer() |
Object |
getLocalSelection() |
List<SortMeta> |
getMultiSortMeta() |
int |
getNullSortOrder() |
String |
getOnExpandStart() |
String |
getResizeMode() |
Object |
getRowData(String rowKey) |
String |
getRowExpandMode() |
RowExpansion |
getRowExpansion() |
Object |
getRowKey() |
Object |
getRowKeyFromModel(Object object) |
String |
getRowSelectMode() |
String |
getRowStyleClass() |
String |
getScrollHeight() |
int |
getScrollOffset() |
int |
getScrollRows() |
String |
getScrollState() |
String |
getScrollWidth() |
List<Object> |
getSelectedRowKeys() |
String |
getSelectedRowKeysAsString() |
Object |
getSelection() |
String |
getSelectionMode() |
Object |
getSortBy() |
javax.el.ValueExpression |
getSortByVE() |
UIColumn |
getSortColumn() |
String |
getSortField() |
javax.el.MethodExpression |
getSortFunction() |
String |
getSortMode() |
String |
getSortOrder() |
String |
getStyle() |
String |
getStyleClass() |
SubTable |
getSubTable() |
String |
getSummary() |
SummaryRow |
getSummaryRow() |
String |
getTabindex() |
String |
getTableStyle() |
String |
getTableStyleClass() |
String |
getWidgetVar() |
boolean |
hasFooterColumn() |
boolean |
isBodyUpdate(javax.faces.context.FacesContext context) |
boolean |
isCaseSensitiveSort() |
boolean |
isColumnSelectionEnabled() |
boolean |
isDisabledSelection() |
boolean |
isDisabledTextSelection() |
boolean |
isDraggableColumns() |
boolean |
isDraggableRows() |
boolean |
isEditable() |
boolean |
isEditingRow() |
boolean |
isExpandedRow() |
boolean |
isFilteringEnabled() |
boolean |
isLiveResize() |
boolean |
isLiveScroll() |
boolean |
isMultiSort() |
boolean |
isNativeElements() |
boolean |
isReflow() |
boolean |
isRequestSource(javax.faces.context.FacesContext context) |
boolean |
isReset() |
boolean |
isResizableColumns() |
boolean |
isRowEditCancelRequest(javax.faces.context.FacesContext context) |
boolean |
isRowEditRequest(javax.faces.context.FacesContext context) |
boolean |
isRowHover() |
boolean |
isRowSelectionEnabled() |
boolean |
isRTL() |
boolean |
isScrollable() |
boolean |
isSelectionEnabled() |
boolean |
isSingleSelectionMode() |
boolean |
isSkipChildren() |
boolean |
isStickyHeader() |
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 |
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 |
resetValue() |
Locale |
resolveDataLocale() |
String |
resolveDynamicField(javax.el.ValueExpression expression) |
String |
resolveSelectionMode() |
protected String |
resolveSortField() |
String |
resolveStaticField(javax.el.ValueExpression expression) |
String |
resolveWidgetVar() |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setCaseSensitiveSort(boolean _caseSensitiveSort) |
void |
setCellSeparator(String _cellSeparator) |
void |
setColumns(List<UIColumn> columns) |
void |
setDataLocale(Object _dataLocale) |
void |
setDefaultSortByVE(javax.el.ValueExpression ve) |
void |
setDefaultSortFunction(javax.el.MethodExpression obj) |
void |
setDefaultSortOrder(String val) |
void |
setDir(String _dir) |
void |
setDisabledSelection(boolean _disabledSelection) |
void |
setDisabledTextSelection(boolean _disabledTextSelection) |
void |
setDraggableColumns(boolean _draggableColumns) |
void |
setDraggableRows(boolean _draggableRows) |
void |
setDynamicColumns(Columns value) |
void |
setEditable(boolean _editable) |
void |
setEditingRow(boolean _editingRow) |
void |
setEditMode(String _editMode) |
void |
setEmptyMessage(String _emptyMessage) |
void |
setExpandedRow(boolean _expandedRow) |
void |
setFilterDelay(int _filterDelay) |
void |
setFilteredValue(List _filteredValue) |
void |
setFilterEvent(String _filterEvent) |
void |
setFilterMetadata(List filterMetadata) |
void |
setFilters(Map<String,Object> filters) |
void |
setFrozenColumns(int _frozenColumns) |
void |
setFrozenRows(int _frozenRows) |
void |
setInitMode(String _initMode) |
void |
setLiveResize(boolean _liveResize) |
void |
setLiveScroll(boolean _liveScroll) |
void |
setLiveScrollBuffer(int _liveScrollBuffer) |
void |
setMultiSortMeta(List<SortMeta> value) |
void |
setNativeElements(boolean _nativeElements) |
void |
setNullSortOrder(int _nullSortOrder) |
void |
setOnExpandStart(String _onExpandStart) |
void |
setReflow(boolean _reflow) |
void |
setResizableColumns(boolean _resizableColumns) |
void |
setResizeMode(String _resizeMode) |
void |
setRowExpandMode(String _rowExpandMode) |
void |
setRowHover(boolean _rowHover) |
void |
setRowKey(Object _rowKey) |
void |
setRowSelectMode(String _rowSelectMode) |
void |
setRowStyleClass(String _rowStyleClass) |
void |
setScrollable(boolean _scrollable) |
void |
setScrollHeight(String _scrollHeight) |
void |
setScrollOffset(int scrollOffset) |
void |
setScrollRows(int _scrollRows) |
void |
setScrollWidth(String _scrollWidth) |
void |
setSelection(Object _selection) |
void |
setSelectionMode(String _selectionMode) |
void |
setSkipChildren(boolean _skipChildren) |
void |
setSortBy(Object _sortBy) |
void |
setSortByVE(javax.el.ValueExpression ve) |
void |
setSortColumn(UIColumn column) |
void |
setSortField(String _sortField) |
void |
setSortFunction(javax.el.MethodExpression _sortFunction) |
void |
setSortMode(String _sortMode) |
void |
setSortOrder(String _sortOrder) |
void |
setStickyHeader(boolean _stickyHeader) |
void |
setStyle(String _style) |
void |
setStyleClass(String _styleClass) |
void |
setSummary(String _summary) |
void |
setTabindex(String _tabindex) |
void |
setTableStyle(String _tableStyle) |
void |
setTableStyleClass(String _tableStyleClass) |
void |
setWidgetVar(String _widgetVar) |
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) |
calculateFirst, encodeBegin, getClientId, getContainerClientId, getCurrentPageReportTemplate, getDataModel, getPage, getPageCount, getPageLinks, getPaginatorPosition, getPaginatorTemplate, getRowIndex, getRowIndexVar, getRowsPerPageLabel, getRowsPerPageTemplate, getRowsToRender, isLazy, isNestedWithinIterator, isPaginationRequest, isPaginator, isPaginatorAlwaysVisible, isRowStatePreserved, markInitialState, process, processChildren, processDecodes, processFacets, processPhase, restoreDescendantState, restoreDescendantState, restoreState, saveDescendantState, saveDescendantState, setCurrentPageReportTemplate, setDataModel, setId, setLazy, setPageLinks, setPaginator, setPaginatorAlwaysVisible, setPaginatorPosition, setPaginatorTemplate, setRowIndex, setRowIndexVar, setRowModel, setRowsPerPageLabel, setRowsPerPageTemplate, setRowStatePreserved, shouldVisitChildren, shouldVisitRows, updatePaginationData, visitColumnContent, visitColumnFacets, visitColumnGroup, visitColumnsAndColumnFacets, visitFacets, visitRows, visitTree
broadcast, createUniqueId, getFirst, getFooter, getHeader, getRowCount, getRowData, getRows, getValue, getVar, invokeOnComponent, isRowAvailable, setFirst, setFooter, setHeader, setRows, setValue, setValueBinding, setValueExpression, setVar
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
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
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 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 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 EDITING_ROW_CLASS
public static final String STICKY_HEADER_CLASS
public static final String MOBILE_CONTAINER_CLASS
public static final String MOBILE_TABLE_CLASS
public static final String MOBILE_COLUMN_HEADER_CLASS
public static final String MOBILE_ROW_CLASS
public static final String MOBILE_SORT_ICON_CLASS
public static final String MOBILE_SORT_ICON_ASC_CLASS
public static final String MOBILE_SORT_ICON_DESC_CLASS
public static final String MOBILE_SORTED_COLUMN_CLASS
public static final String MOBILE_CELL_LABEL
public String getFamily()
getFamily
in class javax.faces.component.UIData
public String getWidgetVar()
public void setWidgetVar(String _widgetVar)
public boolean isScrollable()
public void setScrollable(boolean _scrollable)
public String getScrollHeight()
public void setScrollHeight(String _scrollHeight)
public String getScrollWidth()
public void setScrollWidth(String _scrollWidth)
public String getSelectionMode()
public void setSelectionMode(String _selectionMode)
public Object getSelection()
public void setSelection(Object _selection)
public String getEmptyMessage()
public void setEmptyMessage(String _emptyMessage)
public String getStyle()
public void setStyle(String _style)
public String getStyleClass()
public void setStyleClass(String _styleClass)
public boolean isLiveScroll()
public void setLiveScroll(boolean _liveScroll)
public String getRowStyleClass()
public void setRowStyleClass(String _rowStyleClass)
public String getOnExpandStart()
public void setOnExpandStart(String _onExpandStart)
public boolean isResizableColumns()
public void setResizableColumns(boolean _resizableColumns)
public Object getSortBy()
public void setSortBy(Object _sortBy)
public String getSortOrder()
public void setSortOrder(String _sortOrder)
public javax.el.MethodExpression getSortFunction()
public void setSortFunction(javax.el.MethodExpression _sortFunction)
public int getScrollRows()
public void setScrollRows(int _scrollRows)
public Object getRowKey()
public void setRowKey(Object _rowKey)
public String getFilterEvent()
public void setFilterEvent(String _filterEvent)
public int getFilterDelay()
public void setFilterDelay(int _filterDelay)
public String getTableStyle()
public void setTableStyle(String _tableStyle)
public String getTableStyleClass()
public void setTableStyleClass(String _tableStyleClass)
public boolean isDraggableColumns()
public void setDraggableColumns(boolean _draggableColumns)
public boolean isEditable()
public void setEditable(boolean _editable)
public List getFilteredValue()
public void setFilteredValue(List _filteredValue)
public String getSortMode()
public void setSortMode(String _sortMode)
public String getEditMode()
public void setEditMode(String _editMode)
public boolean isEditingRow()
public void setEditingRow(boolean _editingRow)
public String getCellSeparator()
public void setCellSeparator(String _cellSeparator)
public String getSummary()
public void setSummary(String _summary)
public int getFrozenRows()
public void setFrozenRows(int _frozenRows)
public String getDir()
public void setDir(String _dir)
public boolean isLiveResize()
public void setLiveResize(boolean _liveResize)
public boolean isStickyHeader()
public void setStickyHeader(boolean _stickyHeader)
public boolean isExpandedRow()
public void setExpandedRow(boolean _expandedRow)
public boolean isDisabledSelection()
public void setDisabledSelection(boolean _disabledSelection)
public String getRowSelectMode()
public void setRowSelectMode(String _rowSelectMode)
public String getRowExpandMode()
public void setRowExpandMode(String _rowExpandMode)
public Object getDataLocale()
public void setDataLocale(Object _dataLocale)
public boolean isNativeElements()
public void setNativeElements(boolean _nativeElements)
public int getFrozenColumns()
public void setFrozenColumns(int _frozenColumns)
public boolean isDraggableRows()
public void setDraggableRows(boolean _draggableRows)
public boolean isCaseSensitiveSort()
public void setCaseSensitiveSort(boolean _caseSensitiveSort)
public boolean isSkipChildren()
public void setSkipChildren(boolean _skipChildren)
public boolean isDisabledTextSelection()
public void setDisabledTextSelection(boolean _disabledTextSelection)
public String getSortField()
public void setSortField(String _sortField)
public String getInitMode()
public void setInitMode(String _initMode)
public int getNullSortOrder()
public void setNullSortOrder(int _nullSortOrder)
public String getTabindex()
public void setTabindex(String _tabindex)
public boolean isReflow()
public void setReflow(boolean _reflow)
public int getLiveScrollBuffer()
public void setLiveScrollBuffer(int _liveScrollBuffer)
public boolean isRowHover()
public void setRowHover(boolean _rowHover)
public String getResizeMode()
public void setResizeMode(String _resizeMode)
public DataTableFeature getFeature(DataTableFeatureKey key)
public boolean shouldEncodeFeature(javax.faces.context.FacesContext context)
public boolean isRowEditRequest(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 clientId, 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 List getFilterMetadata()
public void setFilterMetadata(List filterMetadata)
public boolean isReset()
public void resetValue()
public void reset()
public boolean isFilteringEnabled()
public void enableFiltering()
public RowExpansion getRowExpansion()
public Object getLocalSelection()
public Collection<String> getEventNames()
getEventNames
in interface javax.faces.component.behavior.ClientBehaviorHolder
getEventNames
in class javax.faces.component.UIComponentBase
public boolean isRequestSource(javax.faces.context.FacesContext context)
public boolean isBodyUpdate(javax.faces.context.FacesContext context)
public SubTable getSubTable()
public void findSelectedRowKeys()
protected void addToSelectedRowKeys(Object object, Map<String,Object> map, String var, boolean hasRowKey)
public String getSelectedRowKeysAsString()
public SummaryRow getSummaryRow()
public int getColumnsCount()
public int getColumnsCountWithSpan()
public String getScrollState()
protected boolean shouldSkipChildren(javax.faces.context.FacesContext context)
shouldSkipChildren
in class UIData
public void setSortColumn(UIColumn column)
public UIColumn getSortColumn()
public boolean isMultiSort()
public String resolveSelectionMode()
protected boolean requiresColumns()
requiresColumns
in class UIData
public void setDynamicColumns(Columns value)
public Columns getDynamicColumns()
protected void processColumnFacets(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
processColumnFacets
in class UIData
public void setSortByVE(javax.el.ValueExpression ve)
public javax.el.ValueExpression getSortByVE()
public void setDefaultSortByVE(javax.el.ValueExpression ve)
public javax.el.ValueExpression getDefaultSortByVE()
public void setDefaultSortOrder(String val)
public String getDefaultSortOrder()
public void setDefaultSortFunction(javax.el.MethodExpression obj)
public javax.el.MethodExpression getDefaultSortFunction()
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 String resolveWidgetVar()
resolveWidgetVar
in interface Widget
Copyright © 2015. All rights reserved.