| java.lang.Object com.sun.data.provider.impl.AbstractDataProvider com.sun.data.provider.impl.AbstractTableDataProvider
All known Subclasses: com.sun.data.provider.impl.ObjectArrayDataProvider, com.sun.data.provider.impl.ListDataProvider, com.sun.data.provider.impl.ObjectListDataProvider, com.sun.data.provider.impl.CachedRowSetDataProvider, com.sun.data.provider.impl.FilteredTableDataProvider, com.sun.data.provider.impl.BasicTransactionalTableDataProvider,
Method Summary | |
public void | addTableCursorListener(TableCursorListener listener) | public void | addTableDataListener(TableDataListener l) | abstract public RowKey | appendRow() | abstract public boolean | canAppendRow() | abstract public boolean | canInsertRow(RowKey beforeRow) | abstract public boolean | canRemoveRow(RowKey row) | public boolean | cursorFirst() | public boolean | cursorLast() | public boolean | cursorNext() | public boolean | cursorPrevious() | public RowKey[] | findAll(String fieldId, Object value) | public RowKey[] | findAll(String[] fieldIds, Object[] values) | public RowKey[] | findAll(FieldKey fieldKey, Object value) Finds all rows with the specified value stored under the specified field
key. | public RowKey[] | findAll(FieldKey[] fieldKeys, Object[] values) Finds all rows with the specified values stored under the specified field
keys. | public RowKey | findFirst(String fieldId, Object value) | public RowKey | findFirst(String[] fieldIds, Object[] values) | public RowKey | findFirst(FieldKey fieldKey, Object value) Finds the first row with the specified value stored under the specified
field key. | public RowKey | findFirst(FieldKey[] fieldKeys, Object[] values) Finds the first row with the specified values stored under the specified
field keys. | protected void | fireCursorChanged(RowKey oldRow, RowKey newRow) | protected void | fireCursorChanging(RowKey oldRow, RowKey newRow) Fires a cursorChanging event to all registered
TableCursorListener s. | protected void | fireRowAdded(RowKey newRow) | protected void | fireRowRemoved(RowKey oldRow) | protected void | fireValueChanged(FieldKey fieldKey, RowKey row, Object oldValue, Object newValue) | public RowKey[] | getAllRows() Returns all the RowKeys, which may force the underlying dataprovider to
go and perform an expensive operation to fetch them. | protected int | getCursorIndex() | public RowKey | getCursorRow() | abstract public int | getRowCount() | public RowKey | getRowKey(String rowId) | public RowKey[] | getRowKeys(int count, RowKey afterRow) | public TableCursorListener[] | getTableCursorListeners() | public TableDataListener[] | getTableDataListeners() | abstract public Class | getType(FieldKey fieldKey) | abstract public Object | getValue(FieldKey fieldKey, RowKey row) | public Object | getValue(String fieldId, RowKey row) | public Object | getValue(FieldKey fieldKey) | abstract public RowKey | insertRow(RowKey beforeRow) | abstract public boolean | isReadOnly(FieldKey fieldKey) | public boolean | isRowAvailable(RowKey row) | abstract public void | removeRow(RowKey row) | public void | removeTableCursorListener(TableCursorListener listener) | public void | removeTableDataListener(TableDataListener l) | protected boolean | setCursorIndex(int index) | public void | setCursorRow(RowKey row) | abstract public void | setValue(FieldKey fieldKey, RowKey row, Object value) | public void | setValue(String fieldId, RowKey row, Object value) | public void | setValue(FieldKey fieldKey, Object value) |
cursorRow | protected RowKey cursorRow(Code) | | storage for the current cursor row
|
findAll | public RowKey[] findAll(FieldKey fieldKey, Object value) throws DataProviderException(Code) | | Finds all rows with the specified value stored under the specified field
key.
Parameters: fieldKey - FieldKey Parameters: value - Object RowKey[] |
findAll | public RowKey[] findAll(FieldKey[] fieldKeys, Object[] values) throws DataProviderException(Code) | | Finds all rows with the specified values stored under the specified field
keys.
Parameters: fieldKeys - FieldKey[] Parameters: values - Object[] RowKey[] |
findFirst | public RowKey findFirst(FieldKey fieldKey, Object value) throws DataProviderException(Code) | | Finds the first row with the specified value stored under the specified
field key.
Parameters: fieldKey - FieldKey Parameters: value - Object RowKey |
findFirst | public RowKey findFirst(FieldKey[] fieldKeys, Object[] values) throws DataProviderException(Code) | | Finds the first row with the specified values stored under the specified
field keys.
Parameters: fieldKeys - FieldKey[] Parameters: values - Object[] RowKey |
fireCursorChanged | protected void fireCursorChanged(RowKey oldRow, RowKey newRow)(Code) | | Fires a cursorChanged event to all registered
TableCursorListener s
Parameters: oldRow - The old cursor row (before the cursor change) Parameters: newRow - The new cursor row (after the cursor change) |
fireCursorChanging | protected void fireCursorChanging(RowKey oldRow, RowKey newRow) throws TableCursorVetoException(Code) | | Fires a cursorChanging event to all registered
TableCursorListener s. If a TableCursorVetoException is thrown by any
listeners, the cursor will not be changed.
Parameters: oldRow - The old cursor row (before the cursor change) Parameters: newRow - The new cursor row (after the cursor change) throws: TableCursorVetoException - This method may throw aTableCursorVetoException if one of registered listeners throwsan exception. This will prevent the cursor move from occurring. |
fireRowAdded | protected void fireRowAdded(RowKey newRow)(Code) | | Fires a rowAdded event to all registered
TableDataListener s
Parameters: newRow - The newly added row |
fireRowRemoved | protected void fireRowRemoved(RowKey oldRow)(Code) | | Fires a rowRemoved event to all registered
TableDataListener s
Parameters: oldRow - The removed row |
fireValueChanged | protected void fireValueChanged(FieldKey fieldKey, RowKey row, Object oldValue, Object newValue)(Code) | | Fires a valueChanged event to all registered
TableDataListener s
Parameters: row - The row of the value change Parameters: fieldKey - The FieldKey of the value change Parameters: oldValue - The old value (before the value change) Parameters: newValue - The new value (after the value change) |
getAllRows | public RowKey[] getAllRows() throws DataProviderException(Code) | | Returns all the RowKeys, which may force the underlying dataprovider to
go and perform an expensive operation to fetch them.
RowKey[] All of the row keys in this TableDataProvider |
getCursorIndex | protected int getCursorIndex()(Code) | | |
setCursorIndex | protected boolean setCursorIndex(int index)(Code) | | |
|
|