public class RowKeyPropertyModel extends SortableModel
SortableModel.Decomposition, SortableModel.Strength
LocalRowKeyIndex.Confidence, LocalRowKeyIndex.LocalCachingStrategy
Constructor and Description |
---|
RowKeyPropertyModel()
No arg constructor for use as a managed-bean.
|
RowKeyPropertyModel(Object model,
String rowKeyProperty)
Creates a RowKeyPropertyModel.
|
Modifier and Type | Method and Description |
---|---|
Object |
getRowKey()
Gets the row key for the current row
|
protected Object |
getRowKey(Object row)
gets the row key for the given row by resolving the _rowKeyProperty
|
String |
getRowKeyProperty()
Gets the row key property name for this model
|
void |
setRowKey(Object key)
Moves the model to the row identified by the key.
|
void |
setRowKeyProperty(String rowKeyProperty)
Sets the row key property for this model
|
addDataModelListener, getComparator, getDataModelListeners, getRowCount, getRowData, getRowIndex, getSortCriteria, getWrappedData, isRowAvailable, isSortable, removeDataModelListener, setCollator, setComparator, setRowIndex, setSortCriteria, setWrappedData, toString
addRowKeyChangeListener, areRowsAvailable, areRowsAvailable, areRowsAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearLocalCache, ensureRowsAvailable, fireRowKeyChange, getCachingStrategy, getEstimatedRowCount, getEstimatedRowCountConfidence, getRowData, getRowData, isRowAvailable, isRowAvailable, isRowLocallyAvailable, isRowLocallyAvailable, removeRowKeyChangeListener
public RowKeyPropertyModel(Object model, String rowKeyProperty)
model
- The underlying model. If necessary, this will be converted into a DataModel
rowKeyProperty
- The property by which the row key can be accessed. Row key value must be uniquepublic RowKeyPropertyModel()
SortableModel.setWrappedData(java.lang.Object)
and setRowKeyProperty(java.lang.String)
before using this instance.public Object getRowKey()
getRowKey
in interface RowKeyIndex
getRowKey
in class SortableModel
CollectionModel.setRowKey(java.lang.Object)
public void setRowKey(Object key)
setRowKey
in interface RowKeyIndex
setRowKey
in class SortableModel
key
- target row keypublic String getRowKeyProperty()
public void setRowKeyProperty(String rowKeyProperty)
rowKeyProperty
- row key property to setCopyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.