public interface ITreeContentProvider extends IAddressableTableContentProvider
Modifier and Type | Method and Description |
---|---|
Iterator<String> |
getChildIds()
String ids of child rows, in order. |
int |
getDepth()
Depth of current row.
|
boolean |
getHasChildren()
True if current row has children.
|
boolean[] |
getLastChildAncestors()
isLastChild() value of ancestors to the current row,
from the root to the current row's parent. |
Collection<String> |
getOpenIds()
Collection of
String ids of open rows. |
String |
getParentId()
Id of parent row.
|
Iterator<String> |
getRootIds()
String ids of root rows, in order. |
Collection<String> |
getUnopenIds()
Collection of
String ids of un-open rows
(all other rows are open implicitly). |
boolean |
getUseUnopenModel()
True if it's more effecient to use the un-open model
(
getUnopenIds() ) rather than the open model (getOpenIds() ). |
boolean |
isFirstChild()
True if current row is first child of parent
(not whether or not current row is first row in tree).
|
boolean |
isLastChild()
True if current row is last child of parent
(not whether or not current row is last row in tree).
|
boolean |
isOpen()
True if current row is open.
|
boolean |
isVisible()
True if ancestors of current row are all open.
|
void |
setOpen(boolean open)
True if current row is open.
|
void |
setOpenIds(Collection<String> ids)
Collection of
String ids of open rows. |
void |
setUnopenIds(Collection<String> ids)
Collection of
String ids of un-open rows
(all other rows are open implicitly). |
getRowId, isAddressable, setRowById
getCurrentRow, getRowCount, getRowIndex, getRowVariable, isRowAvailable, setRowIndex, setRowVariable
getPropertyKeys, getType, getValue, hasProperty, toString
Iterator<String> getRootIds()
String
ids of root rows, in order. Empty iterator (not null) if tree is empty.int getDepth()
String getParentId()
Iterator<String> getChildIds()
String
ids of child rows, in order. Empty iterator (not null) if row has no children.
Child depth must be exactly one more than current depth.boolean getHasChildren()
boolean isFirstChild()
boolean isLastChild()
boolean[] getLastChildAncestors()
isLastChild()
value of ancestors to the current row,
from the root to the current row's parent.
Zero-length array (non-null) for root.boolean isOpen()
void setOpen(boolean open)
boolean isVisible()
Collection<String> getOpenIds()
String
ids of open rows.
May be empty or contain non-existent ids; never null, never contains null.void setOpenIds(Collection<String> ids)
String
ids of open rows.
May be empty or contain non-existent ids; never null, never contains null.boolean getUseUnopenModel()
getUnopenIds()
) rather than the open model (getOpenIds()
).Collection<String> getUnopenIds()
String
ids of un-open rows
(all other rows are open implicitly).
May be empty or contain non-existent ids; never null, never contains null.void setUnopenIds(Collection<String> ids)
String
ids of un-open rows
(all other rows are open implicitly).
May be empty or contain non-existent ids; never null, never contains null.