public abstract class AbstractDataGrid extends org.richfaces.component.UISequence implements Row, org.richfaces.ui.common.meta.MetaComponentResolver, org.richfaces.ui.common.meta.MetaComponentEncoder
The <rich:dataGrid> component is used to arrange data objects in a grid. Values in the grid can be updated dynamically from the data model, and Ajax updates can be limited to specific rows. The component supports header, footer, and caption facets.
| Modifier and Type | Field and Description |
|---|---|
static String |
BODY |
static String |
CAPTION_FACET_NAME |
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static String |
FOOTER |
static String |
FOOTER_FACET_NAME |
static String |
HEADER |
static String |
HEADER_FACET_NAME |
static String |
NODATA_FACET_NAME |
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_KEY| Constructor and Description |
|---|
AbstractDataGrid() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<javax.faces.component.UIComponent> |
columns()
Get iterator for all columns contained in this row.
|
void |
encodeMetaComponent(javax.faces.context.FacesContext context,
String metaComponentId) |
abstract javax.faces.component.UIComponent |
getCaption() |
int |
getColumns()
Number of columns to display
|
abstract int |
getElements()
Number of elements displayed in the grid
|
abstract javax.faces.component.UIComponent |
getFooter() |
abstract javax.faces.component.UIComponent |
getHeader() |
abstract javax.faces.component.UIComponent |
getNoData() |
abstract int |
getRows() |
String |
resolveClientId(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent contextComponent,
String metaComponentId) |
void |
setColumns(int count) |
String |
substituteUnresolvedClientId(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent contextComponent,
String metaComponentId) |
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) |
captureOrigValue, createComponentState, createExtendedDataModel, createFacesModel, getActualFirst, getActualRows, getFirst, getIterationStatusVar, getRelativeClientId, getRelativeRowIndex, getRowIndex, getRowKeyConverter, getValue, preEncodeBegin, restoreOrigValue, setFirst, setIterationStatusVar, setRows, setupVariable, setValue, setValueBinding, setValueExpression, updateState, updateStateallFixedChildren, broadcast, clearExtendedDataModel, clearInitialState, createUniqueId, dataChildren, doUpdate, extractKeySegment, fixedChildren, 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, queueEvent, resetChildState, resetDataModel, restoreChildState, 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, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInViewpublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public static final String HEADER_FACET_NAME
public static final String FOOTER_FACET_NAME
public static final String CAPTION_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 int getElements()
public abstract int getRows()
getRows in class org.richfaces.component.UISequencepublic abstract javax.faces.component.UIComponent getHeader()
public abstract javax.faces.component.UIComponent getFooter()
public abstract javax.faces.component.UIComponent getCaption()
public abstract javax.faces.component.UIComponent getNoData()
public int getColumns()
public void setColumns(int count)
public Iterator<javax.faces.component.UIComponent> columns()
Rowpublic void encodeMetaComponent(javax.faces.context.FacesContext context,
String metaComponentId)
throws IOException
encodeMetaComponent in interface org.richfaces.ui.common.meta.MetaComponentEncoderIOExceptionprotected boolean visitFixedChildren(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback)
visitFixedChildren in class org.richfaces.component.UIDataAdaptorprotected boolean visitDataChildren(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback,
boolean visitRows)
visitDataChildren in class org.richfaces.component.UIDataAdaptorpublic String resolveClientId(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent contextComponent, String metaComponentId)
resolveClientId in interface org.richfaces.ui.common.meta.MetaComponentResolverpublic String substituteUnresolvedClientId(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent contextComponent, String metaComponentId)
substituteUnresolvedClientId in interface org.richfaces.ui.common.meta.MetaComponentResolverCopyright © 2013 JBoss by Red Hat. All Rights Reserved.