|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITreeContentProvider
Tree content provider. Must always iterate over tree data source in depth-first order. May have multiple roots (rows at depth zero).
Method Summary | |
---|---|
Iterator |
getChildIds()
String ids of child rows, in order. |
int |
getDepth()
Depth of current row. |
boolean |
getHasChildren()
True if current row has children. |
boolean[] |
getLastChildAncestors()
ITreeContentProvider.isLastChild() value of ancestors to the current row,
from the root to the current row's parent. |
Collection |
getOpenIds()
Collection of String ids of open rows. |
String |
getParentId()
Id of parent row. |
Iterator |
getRootIds()
String ids of root rows, in order. |
Collection |
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 ( ITreeContentProvider.getUnopenIds() ) rather than the open model (ITreeContentProvider.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 ids)
Collection of String ids of open rows. |
void |
setUnopenIds(Collection ids)
Collection of String ids of un-open rows
(all other rows are open implicitly). |
Methods inherited from interface com.webmethods.caf.faces.data.IAddressableTableContentProvider |
---|
getRowId, isAddressable, setRowById |
Methods inherited from interface com.webmethods.caf.faces.data.ITableContentProvider |
---|
getCurrentRow, getRowCount, getRowIndex, getRowVariable, isRowAvailable, setRowIndex, setRowVariable |
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider |
---|
getPropertyKeys, getType, getValue, hasProperty, toString |
Method Detail |
---|
Iterator getRootIds()
String
ids of root rows, in order. Empty iterator (not null) if tree is empty.
int getDepth()
String getParentId()
Iterator 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()
ITreeContentProvider.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 getOpenIds()
String
ids of open rows.
May be empty or contain non-existent ids; never null, never contains null.
void setOpenIds(Collection ids)
String
ids of open rows.
May be empty or contain non-existent ids; never null, never contains null.
boolean getUseUnopenModel()
ITreeContentProvider.getUnopenIds()
) rather than the open model (ITreeContentProvider.getOpenIds()
).
Collection 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 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |