ScalarDataModel is a convenience implementation of DataModel that wraps an individual Java
object.
| Access | Constructor and Description |
|---|---|
| public | |
| public | ScalarDataModel(E
Scalar to be wrapped (if any) scalar)
Construct a new |
| Modifier and Type | Method and Description |
|---|---|
| public int | getRowCount()
Implements abstract jakarta.
If there is |
| public E | getRowData()
Implements abstract jakarta. If wrapped data is available, return the wrapped data instance. |
| public int | getRowIndex()
Implements abstract jakarta. Return the zero-relative index of the currently selected row. |
| public Object | getWrappedData()
Implements abstract jakarta.
Return the object representing the data wrapped by this |
| public boolean | isRowAvailable()
Implements abstract jakarta.
Return |
| public void | setRowIndex(int
The new zero-relative index (must be non-negative) rowIndex)Implements abstract jakarta. Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. |
| public void | setWrappedData(Object
Data collection to be wrapped, or data)null to detach from any previous data collectionImplements abstract jakarta.
Set the object representing the data collection wrapped by this |
| ScalarDataModel | back to summary |
|---|---|
| public ScalarDataModel()
Construct a new | |
| ScalarDataModel | back to summary |
|---|---|
| public ScalarDataModel(E scalar)
Construct a new
| |
| getRowCount | back to summary |
|---|---|
| public int getRowCount() Implements abstract jakarta.
If there is
| |
| getRowData | back to summary |
|---|---|
| public E getRowData() Implements abstract jakarta.
If wrapped data is available, return the wrapped data instance. Otherwise, return
| |
| getRowIndex | back to summary |
|---|---|
| public int getRowIndex() Implements abstract jakarta. Doc from jakarta.
Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no
| |
| getWrappedData | back to summary |
|---|---|
| public Object getWrappedData() Implements abstract jakarta. Doc from jakarta.
Return the object representing the data wrapped by this | |
| isRowAvailable | back to summary |
|---|---|
| public boolean isRowAvailable() Implements abstract jakarta.
Return
| |
| setRowIndex | back to summary |
|---|---|
| public void setRowIndex(int rowIndex) Implements abstract jakarta. Doc from jakarta.
Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It
is possible to set the row index at a value for which the underlying data collection does not contain any row data.
Therefore, callers may use the
If there is no
| |
| setWrappedData | back to summary |
|---|---|
| public void setWrappedData(Object data) Implements abstract jakarta. Doc from jakarta.
Set the object representing the data collection wrapped by this
If
| |