public abstract class MenuModel extends TreeModel
MenuModel extends TreeModel and adds a single method, getFocusRowKey(), which returns the rowKey of the focus page for the current view id.
Work on modeling menus continues and it is very possible that this class will change in a future release.
LocalRowKeyIndex.Confidence, LocalRowKeyIndex.LocalCachingStrategy
Constructor and Description |
---|
MenuModel() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
getFocusRowKey()
Gets the focus rowKey for the current viewId.
|
areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, enterContainer, exitContainer, getAllAncestorContainerRowKeys, getContainerRowKey, getContainerRowKey, getDepth, getDepth, isChildCollectionLocallyAvailable, isChildCollectionLocallyAvailable, isChildCollectionLocallyAvailable, isContainer, isContainerEmpty
addRowKeyChangeListener, areRowsAvailable, areRowsAvailable, areRowsAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearLocalCache, fireRowKeyChange, getCachingStrategy, getEstimatedRowCount, getEstimatedRowCountConfidence, getRowData, getRowData, getRowKey, getSortCriteria, isRowAvailable, isRowAvailable, isRowLocallyAvailable, isRowLocallyAvailable, isSortable, removeRowKeyChangeListener, setRowKey, setSortCriteria
addDataModelListener, getDataModelListeners, getRowCount, getRowData, getRowIndex, getWrappedData, isRowAvailable, removeDataModelListener, setRowIndex, setWrappedData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRowCount, getRowData, getRowIndex, isRowAvailable, setRowIndex
public abstract Object getFocusRowKey()
The value returned from calling CollectionModel.getRowKey()
should remain the
same before and after calling getFocusRowKey().
Meaning initialPath and currPath should
always be equal in the following example
Object initialPath = model.getRowKey();
Object focusPath = model.getFocusRowKey();
Object currPath = model.getRowKey();
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.