|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.faces.model.DataModel | +--oracle.adf.view.faces.model.CollectionModel
The data model that is used by ADF Table components. This extends the faces DataModel class and adds on support for row-keys and sorting.
Constructor Summary | |
CollectionModel()
|
Method Summary | |
abstract java.lang.String |
getRowKey()
Gets the row key of the current row |
java.lang.String |
getSortBy()
Gets the property that this collection is sorted on. |
boolean |
getSortOrder()
Gets the sort order |
boolean |
isSortable(java.lang.String property)
Return true iff this collection is sortable by the given property |
abstract void |
setRowKey(java.lang.String key)
Finds the row with the matching key and makes it current |
void |
sort(java.lang.String sortBy,
boolean sortOrder)
Sort this collection by the given property |
Methods inherited from class javax.faces.model.DataModel |
addDataModelListener, getDataModelListeners, getRowCount, getRowData, getRowIndex, getWrappedData, isRowAvailable, removeDataModelListener, setRowIndex, setWrappedData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectionModel()
Method Detail |
public abstract java.lang.String getRowKey()
public abstract void setRowKey(java.lang.String key)
key
- this String cannot contain spacespublic boolean isSortable(java.lang.String property)
public java.lang.String getSortBy()
public boolean getSortOrder()
public void sort(java.lang.String sortBy, boolean sortOrder)
sortBy
- the property to sort onsortOrder
- true for ascending. false for descending
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |