|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface TreeStateModel
Field Summary | |
static java.lang.String |
PROP_EXPANDED
State property for the expanded nodes |
static java.lang.String |
PROP_SELECTED
State property for the selected node |
Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
Method Summary | |
void |
collapse(java.lang.String nodeKey)
The specified group node will be collapsed |
void |
collapseAll()
Collapses all tree nodes |
void |
expand(java.lang.String nodeKey)
The specified group node will be expanded |
java.lang.String[] |
getMarked()
Retrieves all marked items |
java.lang.String |
getSelected()
Returns the key of the selected node |
boolean |
isExpanded(java.lang.String nodeKey)
Checks if the specified group node is expanded |
boolean |
isMarked(java.lang.String nodeKey)
Checks if the specified row is highlighted. |
boolean |
isSelected(java.lang.String nodeKey)
Checks if the specified node is selected. |
void |
mark(java.lang.String uniqueKey)
Selects a specified row. |
void |
select(java.lang.String nodeKey)
Selects the specified node. |
void |
unmark(java.lang.String nodeKey)
Highlights a specified row. |
void |
unmarkAll()
Resets all highlighted rows |
void |
unselectAll()
Unselects the current selection of the tree |
Methods inherited from interface com.cc.framework.ui.model.StateModel |
reset, synchronizeState |
Field Detail |
public static final java.lang.String PROP_EXPANDED
public static final java.lang.String PROP_SELECTED
Method Detail |
public boolean isExpanded(java.lang.String nodeKey)
nodeKey
- the nodes unique key
public void expand(java.lang.String nodeKey)
nodeKey
- the nodes unique keypublic void collapseAll()
public void collapse(java.lang.String nodeKey)
nodeKey
- the nodes unique keypublic void select(java.lang.String nodeKey)
nodeKey
- the nodes unique keypublic void unselectAll()
public boolean isSelected(java.lang.String nodeKey)
nodeKey
- the nodes unique key
public java.lang.String getSelected()
null
public void mark(java.lang.String uniqueKey)
uniqueKey
- The unique key of the row which should be selectedpublic boolean isMarked(java.lang.String nodeKey)
nodeKey
- the nodes unique key
public java.lang.String[] getMarked()
public void unmark(java.lang.String nodeKey)
nodeKey
- the nodes unique keypublic void unmarkAll()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |