|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeCheckingModel<E extends javax.swing.tree.DefaultMutableTreeNode>
Special checking model for WebCheckBoxTree.
Method Summary | |
---|---|
void |
addCheckStateChangeListener(CheckStateChangeListener listener)
Adds check state change listener. |
void |
checkAll()
Checks all tree nodes. |
void |
checkingModeChanged(boolean recursive)
Notifies model about checking mode change. |
java.util.List<E> |
getCheckedNodes(boolean optimize)
Returns list of checked nodes. |
CheckState |
getCheckState(E node)
Returns specified tree node check state. |
java.util.List<E> |
getMixedNodes()
Returns list of nodes in mixed state. |
void |
invertCheck(java.util.Collection<E> nodes)
Inverts tree nodes check. |
void |
invertCheck(E node)
Inverts tree node check. |
void |
removeCheckStateChangeListener(CheckStateChangeListener listener)
Removes check state change listener. |
void |
setChecked(java.util.Collection<E> nodes,
boolean checked)
Sets specified nodes state to checked. |
void |
setChecked(E node,
boolean checked)
Sets whether the specified tree node is checked or not. |
void |
uncheckAll()
Unchecks all tree nodes. |
Method Detail |
---|
java.util.List<E> getCheckedNodes(boolean optimize)
optimize
- whether should optimize the resulting list by removing checked node childs or not
java.util.List<E> getMixedNodes()
void setChecked(java.util.Collection<E> nodes, boolean checked)
nodes
- nodes to checkchecked
- whether the specified tree nodes should be checked or notCheckState getCheckState(E node)
node
- tree node to process
void setChecked(E node, boolean checked)
node
- tree node to processchecked
- whether the specified tree node should be checked or notvoid invertCheck(E node)
node
- tree node to processvoid invertCheck(java.util.Collection<E> nodes)
nodes
- list of tree nodes to processvoid uncheckAll()
void checkAll()
void checkingModeChanged(boolean recursive)
recursive
- whether checked or unchecked node childs should be checked or unchecked recursively or notvoid addCheckStateChangeListener(CheckStateChangeListener listener)
listener
- check state change listener to addvoid removeCheckStateChangeListener(CheckStateChangeListener listener)
listener
- check state change listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |