public abstract class ExtendedDataModel<E>
extends javax.faces.model.DataModel<E>
DataModel
, for support complex data structure, like tree, spreadsheet etc in iterable components.Constructor and Description |
---|
ExtendedDataModel() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
getRowKey() |
abstract void |
setRowKey(Object key)
Instead of simple
int for current state selection, this model can use any object for select current data. |
abstract void |
walk(javax.faces.context.FacesContext context,
DataVisitor visitor,
Range range,
Object argument)
Iterate over model by "visitor" pattern, for given range
|
addDataModelListener, getDataModelListeners, getRowCount, getRowData, getRowIndex, getWrappedData, isRowAvailable, iterator, removeDataModelListener, setRowIndex, setWrappedData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public abstract void setRowKey(Object key)
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.key
- key for select current data, or null for clear selection.public abstract Object getRowKey()
null
public abstract void walk(javax.faces.context.FacesContext context, DataVisitor visitor, Range range, Object argument)
context
- current JSF context.visitor
- instance of DataVisitor
, for process each row.range
- Implementation-specific range of data keys.argument
- Implementation-specific argumentIOException
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.