|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.imp.TreeStateModelImp
Imploementation of the TreeStateModel interface
Field Summary | |
private java.util.HashSet |
expanded
List of Keys for the expanded Nodes |
private java.util.HashSet |
highlight
Collection with the highlight rows |
private java.lang.String |
selected
The selected Node |
private static long |
serialVersionUID
Serial Version UID |
Fields inherited from interface com.cc.framework.ui.model.TreeStateModel |
PROP_EXPANDED, PROP_SELECTED |
Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
Constructor Summary | |
TreeStateModelImp()
|
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 uniqueKey)
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 |
reset()
Resets the actual state of a control to the initial state |
void |
select(java.lang.String nodeKey)
Selects the specified node. |
void |
synchronizeState(PropertyMap properties)
This method applies the given state properties to the controls state model |
void |
unmark(java.lang.String uniqueKey)
Highlights a specified row. |
void |
unmarkAll()
Resets all highlighted rows |
void |
unselectAll()
Unselects the current selection of the tree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private java.util.HashSet expanded
private java.lang.String selected
private java.util.HashSet highlight
Constructor Detail |
public TreeStateModelImp()
Method Detail |
public void collapse(java.lang.String nodeKey)
TreeStateModel
collapse
in interface TreeStateModel
nodeKey
- the nodes unique keyTreeStateModel.collapse(java.lang.String)
public void collapseAll()
TreeStateModel
collapseAll
in interface TreeStateModel
TreeStateModel.collapseAll()
public void expand(java.lang.String nodeKey)
TreeStateModel
expand
in interface TreeStateModel
nodeKey
- the nodes unique keyTreeStateModel.expand(java.lang.String)
public boolean isExpanded(java.lang.String nodeKey)
TreeStateModel
isExpanded
in interface TreeStateModel
nodeKey
- the nodes unique key
TreeStateModel.isExpanded(java.lang.String)
public java.lang.String getSelected()
TreeStateModel
getSelected
in interface TreeStateModel
null
TreeStateModel.getSelected()
public boolean isSelected(java.lang.String nodeKey)
TreeStateModel
isSelected
in interface TreeStateModel
nodeKey
- the nodes unique key
TreeStateModel.isSelected(java.lang.String)
public void select(java.lang.String nodeKey)
TreeStateModel
select
in interface TreeStateModel
nodeKey
- the nodes unique keyTreeStateModel.select(java.lang.String)
public void unselectAll()
TreeStateModel
unselectAll
in interface TreeStateModel
TreeStateModel.unselectAll()
public boolean isMarked(java.lang.String uniqueKey)
TreeStateModel
isMarked
in interface TreeStateModel
uniqueKey
- the nodes unique key
TreeStateModel.isMarked(java.lang.String)
public java.lang.String[] getMarked()
TreeStateModel
getMarked
in interface TreeStateModel
TreeStateModel.getMarked()
public void mark(java.lang.String uniqueKey)
TreeStateModel
mark
in interface TreeStateModel
uniqueKey
- The unique key of the row which should be selectedTreeStateModel.mark(java.lang.String)
public void unmark(java.lang.String uniqueKey)
TreeStateModel
unmark
in interface TreeStateModel
uniqueKey
- the nodes unique keyTreeStateModel.unmark(java.lang.String)
public void unmarkAll()
TreeStateModel
unmarkAll
in interface TreeStateModel
TreeStateModel.unmarkAll()
public void reset()
StateModel
reset
in interface StateModel
StateModel.reset()
public void synchronizeState(PropertyMap properties) throws java.lang.Exception
StateModel
synchronizeState
in interface StateModel
properties
- State properties
java.lang.Exception
- is thrown when an error occurs during executionStateModel.synchronizeState(com.cc.framework.util.PropertyMap)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |