public class RowKeyPropertyTreeModel extends ChildPropertyTreeModel
ChildPropertyTreeModel
that supports row keys by creating
RowKeyPropertyModel
(s) for its child models.
Ooverrides the protected createChildModel method in ChildPropertyTreeModel
so that it can instantiate
RowKeyPropertyModels as it encounters child data.LocalRowKeyIndex.Confidence, LocalRowKeyIndex.LocalCachingStrategy
UNKNOWN_ROW_LIMIT, UNLIMITED_ROW
Constructor and Description |
---|
RowKeyPropertyTreeModel()
No-arg constructor for use with managed-beans.
|
RowKeyPropertyTreeModel(Object model,
String childProperty,
String rowKeyProperty)
Creates a RowKeyPropertyTreeModel
|
Modifier and Type | Method and Description |
---|---|
protected CollectionModel |
createChildModel(Object childData)
Overrides ChildPropertyTreeModel.createChildModel().
|
String |
getRowKeyProperty()
Gets the row key property name for this model
|
void |
setRowKeyProperty(String rowKeyProperty)
Sets the row key property for this model
|
enterContainer, exitContainer, getChildData, getChildProperty, getContainerRowKey, getRowCount, getRowData, getRowIndex, getRowKey, getSortCriteria, getWrappedData, isContainer, isRowAvailable, isSortable, setChildProperty, setRowIndex, setRowKey, setSortCriteria, setWrappedData
areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, getAllAncestorContainerRowKeys, getContainerRowKey, getDepth, getDepth, isChildCollectionLocallyAvailable, isChildCollectionLocallyAvailable, isChildCollectionLocallyAvailable, isContainerEmpty
addRowKeyChangeListener, areRowsAvailable, areRowsAvailable, areRowsAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearLocalCache, ensureRowsAvailable, fireRowKeyChange, getCachingStrategy, getEstimatedRowCount, getEstimatedRowCountConfidence, getRowData, getRowData, getRowLimit, isRowAvailable, isRowAvailable, isRowLocallyAvailable, isRowLocallyAvailable, removeRowKeyChangeListener
public RowKeyPropertyTreeModel(Object model, String childProperty, String rowKeyProperty)
model
- The underlying model. This will be converted into a DataModel
if necessarychildProperty
- The property by which the child data can be accessed.rowKeyProperty
- The property by which the row key can be accessed.public RowKeyPropertyTreeModel()
ChildPropertyTreeModel.setChildProperty(java.lang.String)
,
ChildPropertyTreeModel.setWrappedData(java.lang.Object)
and setRowKeyProperty(java.lang.String)
methods after constructing this instance.protected CollectionModel createChildModel(Object childData)
createChildModel
in class ChildPropertyTreeModel
childData
- the data to convert. This can be a List or array.public String getRowKeyProperty()
public void setRowKeyProperty(String rowKeyProperty)
rowKeyProperty
- row key property to setCopyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.