|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.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 rowKeys and sorting.
| Constructor Summary | |
CollectionModel()
|
|
| Method Summary | |
java.lang.Object |
getRowData(int rowIndex)
Gets the rowData at the given index. |
abstract java.lang.Object |
getRowKey()
Gets the rowKey of the current row. |
java.util.List |
getSortCriteria()
Gets the criteria that this collection is sorted by. |
boolean |
isRowAvailable(int rowIndex)
Checks to see if the row at the given index is available. |
boolean |
isSortable(java.lang.String property)
Return true if this collection is sortable by the given property. |
abstract void |
setRowKey(java.lang.Object key)
Finds the row with the matching key and makes it current |
void |
setSortCriteria(java.util.List criteria)
Sorts this collection by the given criteria. |
| 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 |
| Methods inherited from interface oracle.adf.view.faces.model.RowKeyIndex |
getRowCount, getRowData, getRowIndex, isRowAvailable, setRowIndex |
| Constructor Detail |
public CollectionModel()
| Method Detail |
public abstract java.lang.Object getRowKey()
Object.equals(java.lang.Object) and Object.hashCode() as they will be used
as keys in hashtables. rowKeys should also be Serializable, so that the
application can run under all JSF state-saving schemes.
getRowKey in interface RowKeyIndexsetRowKey(java.lang.Object)public abstract void setRowKey(java.lang.Object key)
setRowKey in interface RowKeyIndexkey - the rowKey, previously obtained from getRowKey().public boolean isRowAvailable(int rowIndex)
DataModel.isRowAvailable().
Finally, the row that was current before this method was called
is made current again.
isRowAvailable in interface RowKeyIndexrowIndex - the index of the row to check.
public java.lang.Object getRowData(int rowIndex)
DataModel.getRowData().
Finally, the row that was current before this method was called
is made current again.
getRowData in interface RowKeyIndexrowIndex - the index of the row to get data from.
public boolean isSortable(java.lang.String property)
public java.util.List getSortCriteria()
SortCriterionpublic void setSortCriteria(java.util.List criteria)
criteria - Each element in this List must be of type SortCriterion.
The empty list may be used to cancel any sort order. null should be treated
the same as an empty list.SortCriterion
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||