public abstract class UIDataTableBase extends UISequence implements Row, MetaComponentResolver, MetaComponentEncoder, ColumnProps, EventsRowProps, StyleProps
| Modifier and Type | Class and Description |
|---|---|
protected static class |
UIDataTableBase.PropertyKeys |
UIDataAdaptor.ComponentVisitor| Modifier and Type | Field and Description |
|---|---|
static String |
BODY |
static String |
COMPONENT_FAMILY |
static String |
FOOTER |
static String |
FOOTER_FACET_NAME |
static String |
HEADER |
static String |
HEADER_FACET_NAME |
static String |
NODATA_FACET_NAME |
COMPONENT_TYPE, decodeVisitor, updateVisitor, validateVisitorATTRS_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_KEYMETA_COMPONENT_SEPARATOR_CHAR| Constructor and Description |
|---|
UIDataTableBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilteringListener(FilteringListener listener) |
void |
addSortingListener(SortingListener listener) |
Iterator<javax.faces.component.UIComponent> |
columns()
Get iterator for all columns contained in this row.
|
protected ExtendedDataModel<?> |
createExtendedDataModel() |
protected Iterator<javax.faces.component.UIComponent> |
dataChildren() |
void |
encodeMetaComponent(javax.faces.context.FacesContext context,
String metaComponentId) |
protected Iterator<javax.faces.component.UIComponent> |
fixedChildren() |
abstract String |
getColumnClasses()
Assigns one or more space-separated CSS class names to the columns of the table.
|
FilteringListener[] |
getFilteringListeners() |
abstract String |
getFilterVar()
Name of the variable used in EL expression provided in filterExpression in order to decide about displaying particular
row.
|
abstract javax.faces.component.UIComponent |
getFooter()
The footer of the table
|
abstract javax.faces.component.UIComponent |
getHeader()
The header of the table
|
abstract javax.faces.component.UIComponent |
getNoData()
The content to be displayed when table contains no rows (no data provided).
|
abstract String |
getNoDataLabel()
The label to be displayed when table contains no rows (no data provided).
|
boolean |
getRendersChildren() |
abstract String |
getRowClass()
Assigns one or more space-separated CSS class names to the table cells
|
abstract String |
getRowClasses()
Assigns one or more space-separated CSS class names to the rows of the table.
|
SortingListener[] |
getSortingListeners() |
abstract SortMode |
getSortMode()
Specifies when table will be sorted according to one column (single) or multiple columns (multi).
|
abstract Collection<Object> |
getSortPriority()
Comma-separated list of column names determining priority of row sorting.
|
static Set<String> |
getSupportedMetaComponents() |
protected boolean |
hasRowChildren() |
boolean |
isColumnFacetPresent(String facetName) |
void |
queueEvent(javax.faces.event.FacesEvent event) |
void |
removeFilteringListener(FilteringListener listener) |
void |
removeSortingListener(SortingListener listener) |
String |
resolveClientId(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent contextComponent,
String metaComponentId)
Resolves and returns string identifying supported meta-component or
null if provided meta-component name is
not a supported one. |
protected void |
restoreChildState(javax.faces.context.FacesContext facesContext) |
String |
substituteUnresolvedClientId(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent contextComponent,
String metaComponentId)
Provides replacement for unresolved meta-component names.
|
protected boolean |
visitDataChildren(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback,
boolean visitRows) |
protected boolean |
visitFixedChildren(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback) |
void |
walk(javax.faces.context.FacesContext faces,
DataVisitor visitor,
Range range,
Object argument)
Walk ( visit ) this component on all data-aware children for each row from range.
|
captureOrigValue, createComponentState, createFacesModel, getActualFirst, getActualRows, getFirst, getIterationStatusVar, getRelativeClientId, getRelativeRowIndex, getRowIndex, getRowKeyConverter, getRows, getValue, preEncodeBegin, restoreOrigValue, setFirst, setIterationStatusVar, setRows, setupVariable, setValue, setValueBinding, setValueExpression, updateState, updateStateallFixedChildren, broadcast, clearExtendedDataModel, clearInitialState, createUniqueId, doUpdate, extractKeySegment, getComponentState, getContainerClientId, getContainerClientId, getExtendedDataModel, getFamily, getIterationState, getLocalComponentState, getRowCount, getRowData, getRowKey, getRowKeyVar, getStateVar, getVar, getVariablesMap, invokeOnComponent, invokeOnRow, isKeepSaved, isListenerForSource, isRowAvailable, iterate, keepSaved, markInitialState, preDecode, preUpdate, preValidate, processDecodes, processDecodesChildren, processEvent, processEvent, processUpdates, processUpdatesChildren, processValidatesChildren, processValidators, resetChildState, resetDataModel, restoreChildState, restoreState, saveChildState, saveChildState, saveState, setExtendedDataModel, setId, setIterationState, setKeepSaved, setRowKey, setRowKey, setRowKeyConverter, setRowKeyVar, setStateVar, setVar, visitDataChildrenMetaComponents, visitTree, walk, wrapEventaddClientBehavior, addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInViewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFooterClass, getHeaderClassgetOnrowclick, getOnrowdblclick, getOnrowkeydown, getOnrowkeypress, getOnrowkeyup, getOnrowmousedown, getOnrowmousemove, getOnrowmouseout, getOnrowmouseover, getOnrowmouseupgetStylepublic static final String COMPONENT_FAMILY
public static final String HEADER_FACET_NAME
public static final String FOOTER_FACET_NAME
public static final String NODATA_FACET_NAME
public static final String HEADER
public static final String FOOTER
public static final String BODY
public abstract javax.faces.component.UIComponent getHeader()
public abstract javax.faces.component.UIComponent getFooter()
public abstract javax.faces.component.UIComponent getNoData()
public abstract String getNoDataLabel()
public abstract String getFilterVar()
public abstract String getRowClass()
public abstract String getColumnClasses()
public abstract String getRowClasses()
public abstract Collection<Object> getSortPriority()
public abstract SortMode getSortMode()
public Iterator<javax.faces.component.UIComponent> columns()
Rowprotected Iterator<javax.faces.component.UIComponent> fixedChildren()
fixedChildren in class UIDataAdaptorprotected Iterator<javax.faces.component.UIComponent> dataChildren()
dataChildren in class UIDataAdaptorprotected boolean hasRowChildren()
public boolean isColumnFacetPresent(String facetName)
public boolean getRendersChildren()
getRendersChildren in class javax.faces.component.UIComponentBaseprotected ExtendedDataModel<?> createExtendedDataModel()
createExtendedDataModel in class UISequencepublic void walk(javax.faces.context.FacesContext faces,
DataVisitor visitor,
Range range,
Object argument)
faces - visitor - range - argument - public String resolveClientId(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent contextComponent, String metaComponentId)
MetaComponentResolvernull if provided meta-component name is
not a supported one.resolveClientId in interface MetaComponentResolverfacesContext - - current instance of FacesContextcontextComponent - - instance of UIComponent that requested resolution of meta-componentmetaComponentId - - name of meta-component (without leading '@' sign)nullpublic String substituteUnresolvedClientId(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent contextComponent, String metaComponentId)
MetaComponentResolvernullsubstituteUnresolvedClientId in interface MetaComponentResolverfacesContext - - current instance of FacesContextcontextComponent - - instance of UIComponent that requested resolution of meta-componentmetaComponentId - - name of meta-component (without leading '@' sign)nullpublic void encodeMetaComponent(javax.faces.context.FacesContext context,
String metaComponentId)
throws IOException
encodeMetaComponent in interface MetaComponentEncoderIOExceptionprotected boolean visitFixedChildren(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback)
visitFixedChildren in class UIDataAdaptorprotected void restoreChildState(javax.faces.context.FacesContext facesContext)
restoreChildState in class UIDataAdaptorprotected boolean visitDataChildren(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback,
boolean visitRows)
visitDataChildren in class UIDataAdaptorpublic void addSortingListener(SortingListener listener)
public void removeSortingListener(SortingListener listener)
public void addFilteringListener(FilteringListener listener)
public void removeFilteringListener(FilteringListener listener)
public FilteringListener[] getFilteringListeners()
public SortingListener[] getSortingListeners()
public void queueEvent(javax.faces.event.FacesEvent event)
queueEvent in class UIDataAdaptorCopyright © 2014 JBoss by Red Hat. All Rights Reserved.