public class BoundPropertiesTableContentProvider extends BoundPropertiesContentProvider implements ITableContentProvider
m_keys, m_provider, m_var
Constructor and Description |
---|
BoundPropertiesTableContentProvider()
Blank provider.
|
BoundPropertiesTableContentProvider(ITableContentProvider provider,
Map<String,?> keys,
String var)
Provider limiting specified provider to specified keys.
|
Modifier and Type | Method and Description |
---|---|
Object |
getCurrentRow()
Returns wrapped current row object.
|
int |
getRowCount()
Return the number of rows of data objects represented by this DataModel.
|
int |
getRowIndex()
Return the zero-relative index of the currently selected row.
|
String |
getRowVariable()
Returns row variable name.
|
protected ITableContentProvider |
getTableProvider() |
boolean |
isRowAvailable()
Return a flag indicating whether there is rowData available at the
current rowIndex.
|
void |
setRowIndex(int rowIndex)
Set the zero-relative index of the currently selected row, or -1 to
indicate that we are not positioned on a row.
|
void |
setRowVariable(String var)
Sets row variable name to use for accessing row specific data.
|
createDefaultKeyExpressions, createDefaultKeys, getKeyExpressions, getKeys, getPropertyKeys, getProvider, getType, getValue, getVar, hasProperty, isReadOnly, setKeyExpressions, setKeys, setProvider, setValue, setVar, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPropertyKeys, getType, getValue, hasProperty, toString
public BoundPropertiesTableContentProvider()
public BoundPropertiesTableContentProvider(ITableContentProvider provider, Map<String,?> keys, String var)
public int getRowCount()
ITableContentProvider
Return -1, if the number of rows is unknown, or no wrappedData is available.
getRowCount
in interface ITableContentProvider
DataModel.getRowCount()
public int getRowIndex()
ITableContentProvider
If we are not currently positioned on a row, or no wrappedData is available, return -1.
getRowIndex
in interface ITableContentProvider
DataModel.getRowIndex()
public boolean isRowAvailable()
ITableContentProvider
isRowAvailable
in interface ITableContentProvider
DataModel.isRowAvailable()
public void setRowIndex(int rowIndex)
ITableContentProvider
setRowIndex
in interface ITableContentProvider
DataModel.getRowIndex()
public String getRowVariable()
ITableContentProvider
Returns row variable name.
If specified row variable can be used to access current row data for the provider internal needs, like sorting or addressing.
getRowVariable
in interface ITableContentProvider
ITableContentProvider.setRowVariable(String)
public void setRowVariable(String var)
ITableContentProvider
Sets row variable name to use for accessing row specific data. For
example, if the provider wrapps an array of a data objects with
id
property and the variable name is item
, then
the provider implementation can access id
property of each
record as item.id
.
This property should set only once at the provider initialization time
setRowVariable
in interface ITableContentProvider
public Object getCurrentRow()
ITableContentProvider
Returns wrapped current row object. Can be null
if not data
is available
getCurrentRow
in interface ITableContentProvider
ITableContentProvider.isRowAvailable()
protected ITableContentProvider getTableProvider()