|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.model.DataModel
com.sun.rave.web.ui.faces.TableDataProviderDataModel
public class TableDataProviderDataModel
DataModel implementation that wraps a specified
TableDataProvider with the standard JavaServer Faces API.
Note that setting the rowIndex property of this
DataModel does NOT cause the cursor of
the wrapped TableDataProvider to be repositioned.
| Constructor Summary | |
|---|---|
TableDataProviderDataModel()
Construct an unitialized TableDataProviderDataModel. |
|
TableDataProviderDataModel(com.sun.data.provider.TableDataProvider tdp)
Construct an TableDataProviderDataModel that wraps the
specified TableDataProvider. |
|
| Method Summary | |
|---|---|
int |
getRowCount()
Return the number of rows available in the wrapped TableDataProvider, or -1 if unknown. |
java.lang.Object |
getRowData()
Return a Map representing the data elements in the
current row, keyed by the canonical identifier for each element. |
int |
getRowIndex()
Return the currently selected rowIndex, or -1 for
no current position. |
com.sun.data.provider.RowKey |
getRowKey()
|
com.sun.data.provider.TableDataProvider |
getTableDataProvider()
Return the TableDataProvider we are wrapping. |
java.lang.Object |
getWrappedData()
Return the wrapped TableDataProvider instance, if any. |
boolean |
isRowAvailable()
Return true if the wrapped TableDataProvider
has an available row at the currently specified rowIndex. |
void |
setRowIndex(int rowIndex)
Set the currently selected rowIndex. |
void |
setTableDataProvider(com.sun.data.provider.TableDataProvider tdp)
Set the TableDataProvider we are wrapping. |
void |
setWrappedData(java.lang.Object data)
Set the wrapped TableDataProvider instance (if any). |
| Methods inherited from class javax.faces.model.DataModel |
|---|
addDataModelListener, getDataModelListeners, removeDataModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableDataProviderDataModel()
Construct an unitialized TableDataProviderDataModel.
public TableDataProviderDataModel(com.sun.data.provider.TableDataProvider tdp)
Construct an TableDataProviderDataModel that wraps the
specified TableDataProvider.
| Method Detail |
|---|
public com.sun.data.provider.TableDataProvider getTableDataProvider()
Return the TableDataProvider we are wrapping.
public void setTableDataProvider(com.sun.data.provider.TableDataProvider tdp)
Set the TableDataProvider we are wrapping.
tdp - The TableDataProvider to be wraappedpublic boolean isRowAvailable()
Return true if the wrapped TableDataProvider
has an available row at the currently specified rowIndex.
isRowAvailable in class javax.faces.model.DataModelpublic int getRowCount()
Return the number of rows available in the wrapped
TableDataProvider, or -1 if unknown.
getRowCount in class javax.faces.model.DataModelpublic java.lang.Object getRowData()
Return a Map representing the data elements in the
current row, keyed by the canonical identifier for each element.
Any call to get() or put() operations on
this Map will be delegated to corresponding
getValue() and setValue() calls on the
wrapped TableDataProvider. Operations that attempt to add,
delete, or replace keys will be rejected.
getRowData in class javax.faces.model.DataModelpublic int getRowIndex()
Return the currently selected rowIndex, or -1 for
no current position.
getRowIndex in class javax.faces.model.DataModelpublic com.sun.data.provider.RowKey getRowKey()
public void setRowIndex(int rowIndex)
Set the currently selected rowIndex. The cursor
position of the wrapped TableDataProvider is NOT
updated.
setRowIndex in class javax.faces.model.DataModelrowIndex - The new selected row index, or -1 for no selectionpublic java.lang.Object getWrappedData()
Return the wrapped TableDataProvider instance, if any.
getWrappedData in class javax.faces.model.DataModelpublic void setWrappedData(java.lang.Object data)
Set the wrapped TableDataProvider instance (if any).
setWrappedData in class javax.faces.model.DataModeldata - New TableDataProvider instance, or null
to disassociate from any instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||