|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeLocalRowKeyIndex
Defines a set of "local" APIs for a TreeModel. The "local" APIs allow a client to query the tree model and determine if a set of rows are locally available. "Locally available" can mean the model has the given set of rows in a local cache and can honor a fetch request efficiently (for example, without performing a SQL query).
Method Summary | |
---|---|
boolean |
areRowsLocallyAvailable(int startIndex,
int rowCount,
RowKeySet disclosedRowKeys)
Check if a range of rows is locally available starting from a row index. |
boolean |
areRowsLocallyAvailable(int rowCount,
RowKeySet disclosedRowKeys)
Check if a range of rows is locally available starting from current position. |
boolean |
areRowsLocallyAvailable(Object startRowKey,
int rowCount,
RowKeySet disclosedRowKeys)
Check if a range of rows is locally available starting from a row key. |
boolean |
isChildCollectionLocallyAvailable()
Indicates whether data for a child model (children of the current node) is locally available. |
boolean |
isChildCollectionLocallyAvailable(int index)
Indicates whether child data for the node with the given index is locally available. |
boolean |
isChildCollectionLocallyAvailable(Object rowKey)
Indicates whether child data for the node with the given row key is locally available. |
Method Detail |
---|
boolean isChildCollectionLocallyAvailable()
enterContainer
.
boolean isChildCollectionLocallyAvailable(int index)
index
- row index to check
boolean isChildCollectionLocallyAvailable(Object rowKey)
rowKey
- row key to check
boolean areRowsLocallyAvailable(int startIndex, int rowCount, RowKeySet disclosedRowKeys)
startIndex
- staring index for the rangerowCount
- number of rows in the rangedisclosedRowKeys
- set of expanded nodes which may fall within the range to check for
availability
true
if range of rows is locally available flase
otherwiseboolean areRowsLocallyAvailable(Object startRowKey, int rowCount, RowKeySet disclosedRowKeys)
startRowKey
- staring row key for the rangerowCount
- number of rows in the rangedisclosedRowKeys
- set of expanded nodes which may fall within the range to check for
availability
true
if range of rows is locally available flase
otherwiseboolean areRowsLocallyAvailable(int rowCount, RowKeySet disclosedRowKeys)
rowCount
- number of rows in the rangedisclosedRowKeys
- set of expanded nodes which may fall within the range to check for
availability
true
if range of rows is locally available flase
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |