|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.data.provider.impl.AbstractDataProvider
com.sun.data.provider.impl.TableRowDataProvider
public class TableRowDataProvider
The TableRowDataProvider class provides a single-row DataProvider
view of a TableDataProvider. Set the 'tableDataProvider' and
'tableRow' properties to create a single-row view of the table.
| Field Summary |
|---|
| Fields inherited from class com.sun.data.provider.impl.AbstractDataProvider |
|---|
dpListeners, fieldKeys |
| Constructor Summary | |
|---|---|
TableRowDataProvider()
Constructs a TableRowDataProvider with no tableDataProvider or tableRow setting. |
|
TableRowDataProvider(TableDataProvider provider)
Constructs a TableRowDataProvider with the specified tableDataProvider |
|
TableRowDataProvider(TableDataProvider provider,
RowKey tableRow)
Constructs a TableRowDataProvider with the specified tableDataProvider and tableRow. |
|
| Method Summary | |
|---|---|
FieldKey |
getFieldKey(java.lang.String fieldId)
Returns the |
FieldKey[] |
getFieldKeys()
|
TableDataProvider |
getTableDataProvider()
|
RowKey |
getTableRow()
|
java.lang.Class |
getType(FieldKey fieldKey)
Returns the data type of the data element referenced by the specified data key. |
java.lang.Object |
getValue(FieldKey fieldKey)
Returns value of the data element referenced by the specified
|
boolean |
isReadOnly(FieldKey fieldKey)
Return a flag indicating whether the value of the data element
represented by the specified |
void |
setTableDataProvider(TableDataProvider provider)
|
void |
setTableRow(RowKey tableRow)
|
void |
setValue(FieldKey fieldKey,
java.lang.Object value)
Set the value of the data element represented by the specified
|
| Methods inherited from class com.sun.data.provider.impl.AbstractDataProvider |
|---|
addDataListener, addFieldKey, addFieldKeys, clearFieldKeys, fireProviderChanged, fireValueChanged, getDataListeners, getFakeData, getFakeData, getType, getValue, isReadOnly, removeDataListener, removeFieldKey, removeFieldKeys, setValue, sortFieldKeys |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableRowDataProvider()
public TableRowDataProvider(TableDataProvider provider)
provider - TableDataProvider
public TableRowDataProvider(TableDataProvider provider,
RowKey tableRow)
provider - TableDataProvidertableRow - RowKey| Method Detail |
|---|
public void setTableDataProvider(TableDataProvider provider)
provider - TableDataProviderpublic TableDataProvider getTableDataProvider()
public void setTableRow(RowKey tableRow)
tableRow - intpublic RowKey getTableRow()
public FieldKey[] getFieldKeys()
throws DataProviderException
AbstractDataProvider
getFieldKeys in interface DataProvidergetFieldKeys in class AbstractDataProviderDataProviderException - Implementations may wish to surface
internal exceptions (nested in DataProviderException) rather
than simply returning null or an empty array. Consult the
documentation of the specific DataProvider implementation for
details on what exceptions might be wrapped by a DPE.
public FieldKey getFieldKey(java.lang.String fieldId)
throws DataProviderException
AbstractDataProviderReturns the FieldKey associated with the specified data
element canonical id, if any; otherwise, return null.
getFieldKey in interface DataProvidergetFieldKey in class AbstractDataProviderfieldId - String
DataProviderException - Implementations may wish to surface
internal exceptions (nested in DataProviderException) rather
than simply returning null. A DPE may also indicate that the
passed fieldId is not valid. Consult the documentation of the
specific DataProvider implementation for details on what
exceptions might be wrapped by a DPE.
public java.lang.Class getType(FieldKey fieldKey)
throws DataProviderException
AbstractDataProviderReturns the data type of the data element referenced by the specified data key.
getType in interface DataProvidergetType in class AbstractDataProviderfieldKey - FieldKey
DataProviderException - Implementations may wish to surface
internal exceptions (nested in DataProviderException) rather
than simply returning null. A DPE may also indicate that the
passed fieldKey is not valid. Consult the documentation of the
specific DataProvider implementation for details on what
exceptions might be wrapped by a DPE.
public boolean isReadOnly(FieldKey fieldKey)
throws DataProviderException
AbstractDataProviderReturn a flag indicating whether the value of the data element
represented by the specified FieldKey can be modified via the
setValue() method.
isReadOnly in interface DataProviderisReadOnly in class AbstractDataProviderfieldKey - FieldKey
DataProviderException - Implementations may wish to surface
internal exceptions (nested in DataProviderException) rather
than simply returning true. A DPE may also indicate that the
passed fieldKey is not valid. Consult the documentation of the
specific DataProvider implementation for details on what
exceptions might be wrapped by a DPE.
public java.lang.Object getValue(FieldKey fieldKey)
throws DataProviderException
AbstractDataProviderReturns value of the data element referenced by the specified
FieldKey.
getValue in interface DataProvidergetValue in class AbstractDataProviderfieldKey - FieldKey
DataProviderException - Implementations may wish to surface
internal exceptions (nested in DataProviderException) rather
than simply returning null. A DPE may also indicate that the
passed fieldKey is not valid. Consult the documentation of the
specific DataProvider implementation for details on what
exceptions might be wrapped by a DPE.
public void setValue(FieldKey fieldKey,
java.lang.Object value)
throws DataProviderException
AbstractDataProviderSet the value of the data element represented by the specified
FieldKey to the specified new value.
setValue in interface DataProvidersetValue in class AbstractDataProviderfieldKey - FieldKeyvalue - Object
DataProviderException - Implementations may wish to surface
internal exceptions (nested in DataProviderException) rather
than simply returning null. A DPE may also indicate that the
passed fieldKey is not valid. Consult the documentation of the
specific DataProvider implementation for details on what
exceptions might be wrapped by a DPE.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||