public class SequenceDataModel<E> extends ExtendedDataModel<E>
| Constructor and Description |
|---|
SequenceDataModel(javax.faces.model.DataModel<E> wrapped) |
| Modifier and Type | Method and Description |
|---|---|
int |
getRowCount() |
E |
getRowData() |
int |
getRowIndex() |
Object |
getRowKey() |
Object |
getWrappedData() |
protected javax.faces.model.DataModel<E> |
getWrappedModel() |
boolean |
isRowAvailable() |
void |
setRowIndex(int rowIndex) |
void |
setRowKey(Object key)
Instead of simple
int for current state selection, this model can use any object for select current data. |
void |
setWrappedData(Object data) |
protected void |
setWrappedModel(javax.faces.model.DataModel<E> wrappedModel) |
void |
walk(javax.faces.context.FacesContext context,
DataVisitor visitor,
Range range,
Object argument)
Iterate over model by "visitor" pattern, for given range
|
public SequenceDataModel(javax.faces.model.DataModel<E> wrapped)
wrapped - public void walk(javax.faces.context.FacesContext context,
DataVisitor visitor,
Range range,
Object argument)
ExtendedDataModelwalk in class ExtendedDataModel<E>context - current JSF context.visitor - instance of DataVisitor, for process each row.range - Implementation-specific range of data keys.argument - Implementation-specific argumentpublic Object getRowKey()
getRowKey in class ExtendedDataModel<E>nullpublic void setRowKey(Object key)
ExtendedDataModel
Instead of simple int for current state selection, this model can use any object for select current data.
Implementation depend on model, with any restrictions :
Serializable.Object.toString() method must return representation compatible with
UIComponent.getClientId(javax.faces.context.FacesContext), as far as this string will be
appended to clientId of iterator component.setRowKey in class ExtendedDataModel<E>key - key for select current data, or null for clear selection.public int getRowCount()
getRowCount in class javax.faces.model.DataModel<E>public int getRowIndex()
getRowIndex in class javax.faces.model.DataModel<E>public Object getWrappedData()
getWrappedData in class javax.faces.model.DataModel<E>public boolean isRowAvailable()
isRowAvailable in class javax.faces.model.DataModel<E>public void setRowIndex(int rowIndex)
setRowIndex in class javax.faces.model.DataModel<E>public void setWrappedData(Object data)
setWrappedData in class javax.faces.model.DataModel<E>protected javax.faces.model.DataModel<E> getWrappedModel()
protected void setWrappedModel(javax.faces.model.DataModel<E> wrappedModel)
wrappedModel - the wrappedModel to setCopyright © 2012 JBoss by Red Hat. All Rights Reserved.