public abstract class ActiveTreeModelDecorator extends org.apache.myfaces.trinidad.model.TreeModelDecorator implements ActiveDataModel
ActiveDataModel.ActiveDataPolicy| Constructor and Description |
|---|
ActiveTreeModelDecorator() |
| Modifier and Type | Method and Description |
|---|---|
abstract ActiveDataModel |
getActiveDataModel()
returns the ActiveDataModel implementation
|
ActiveDataModel.ActiveDataPolicy |
getActiveDataPolicy()
always return
ActiveDataPolicy.ACTIVE |
int |
getCurrentChangeCount()
Returns the current monotonically increasing change count for this ActiveDataModel This change count is used by the UI components to maintain read consistency between model data fetches and the active data updates.
|
void |
startActiveData(Collection<Object> rowKeys, int startChangeCount, ActiveDataListener listener)
Called by the DataUpdateManager to notify the ActiveDataModel to start delivering change notifications for the collections of the containers identified by the rowKeys.
|
void |
stopActiveData(Collection<Object> rowKeys, ActiveDataListener listener)
Called by the DataUpdateManager to notify the ActiveDataModel to stop delivering change notifications for the collections of the container identified by the given rowKeys The rowKeys are for the wrapped collection model by the
CollectionModelDecorator |
enterContainer, exitContainer, getContainerRowKey, getRowCount, getRowData, getRowIndex, getRowKey, getTreeModel, getWrappedData, isContainer, isRowAvailable, setRowIndex, setRowKey, setWrappedDataareRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, getAllAncestorContainerRowKeys, getContainerRowKey, getDepth, getDepth, isChildCollectionLocallyAvailable, isChildCollectionLocallyAvailable, isChildCollectionLocallyAvailable, isContainerEmptyaddRowKeyChangeListener, areRowsAvailable, areRowsAvailable, areRowsAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearLocalCache, ensureRowsAvailable, fireRowKeyChange, getCachingStrategy, getEstimatedRowCount, getEstimatedRowCountConfidence, getRowData, getRowData, getRowLimit, getSortCriteria, hasRowKeyChangeListener, isRowAvailable, isRowAvailable, isRowLocallyAvailable, isRowLocallyAvailable, isSortable, removeRowKeyChangeListener, setSortCriteriapublic ActiveDataModel.ActiveDataPolicy getActiveDataPolicy()
ActiveDataPolicy.ACTIVEgetActiveDataPolicy in interface ActiveDataModelActiveDataModel.ActiveDataPolicypublic void startActiveData(Collection<Object> rowKeys, int startChangeCount, ActiveDataListener listener)
CollectionModelDecoratorstartActiveData in interface ActiveDataModelrowKeys - the container row keys of the collection, from which the ActiveDataListener receives active events. Pass null or empty collection for root collection.startChangeCount - Change count to start sending active data from.listener - ActiveDataListener for the ActiceDataModel to use when notifying the DataUpdateManager of changesIllegalStateException - if ActiveDataPolicy is STATICIllegalArgumentException - if listener is null or the startChangeCount is greater than the current change count.stopActiveData(java.util.Collection<java.lang.Object>, oracle.adf.view.rich.event.ActiveDataListener)public void stopActiveData(Collection<Object> rowKeys, ActiveDataListener listener)
CollectionModelDecoratorstopActiveData in interface ActiveDataModelrowKeys - the container row keys of the collections, from which the ActiveDataListener receives active events. Pass null or empty collection for root collection.listener - the ActiveDataListener to be removed ActiveDataListener receives active events. Pass null for root collection.IllegalStateException - If called on an ActiveDataModel that was never started by calling startActiveDatastartActiveData(java.util.Collection<java.lang.Object>, int, oracle.adf.view.rich.event.ActiveDataListener)public int getCurrentChangeCount()
getCurrentChangeCount in interface ActiveDataModelpublic abstract ActiveDataModel getActiveDataModel()