|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.model.DataModel<E>
org.ajax4jsf.model.ExtendedDataModel<E>
public abstract class ExtendedDataModel<E>
Extesion for DataModel , for support complex data structure, like tree, spreadsheet etc
in iterable components.
| Constructor Summary | |
|---|---|
ExtendedDataModel()
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
getRowKey()
|
SerializableDataModel |
getSerializableModel(Range range)
Iteration component can support save data for use at decoding/validation/update phases to avoid unnessesary calls to original models, for example - to avoid requests to database until all data is validated. |
abstract void |
setRowKey(java.lang.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,
java.lang.Object argument)
Iterate over model by "visitor" pattern, for given range |
| Methods inherited from class javax.faces.model.DataModel |
|---|
addDataModelListener, getDataModelListeners, getRowCount, getRowData, getRowIndex, getWrappedData, isRowAvailable, iterator, removeDataModelListener, setRowIndex, setWrappedData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedDataModel()
| Method Detail |
|---|
public abstract void setRowKey(java.lang.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 java.lang.Object getRowKey()
nullpublic SerializableDataModel getSerializableModel(Range range)
public abstract void walk(javax.faces.context.FacesContext context,
DataVisitor visitor,
Range range,
java.lang.Object argument)
context - current JSF context.visitor - instance of DataVisitor, for process each row.range - Implementation-specific range of data keys.argument - Implementation-specific argument
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||