Package eu.essilab.lablib.checkboxtree
Class PropagatePreservingCheckTreeCheckingMode
java.lang.Object
eu.essilab.lablib.checkboxtree.TreeCheckingMode
eu.essilab.lablib.checkboxtree.PropagatePreservingCheckTreeCheckingMode
PropagatePreservingCheckTreeCheckingMode define a TreeCheckingMode with down
and up recursion of the check when nodes are clicked. It propagates the
change not only to descendants but also to ancestors. With regard to
descendants this mode behaves exactly like the Propagate mode. With regard to
ancestors it checks/unchecks them as needed so that a node is checked if and
only if all of its children are checked.
- Author:
- Boldrini
-
Field Summary
Fields inherited from class eu.essilab.lablib.checkboxtree.TreeCheckingMode
model
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks the specified path and propagates the checking according to the strategyvoid
uncheckPath
(TreePath path) Unchecks the specified path and propagates the checking according to the strategyvoid
Update the check of the given path after the insertion of some of its children, according to the strategyvoid
Update the check of the given path after the removal of some of its children, according to the strategyvoid
Update the check of the given path after the structure change, according to the strategy
-
Method Details
-
checkPath
Description copied from class:TreeCheckingMode
Checks the specified path and propagates the checking according to the strategy- Specified by:
checkPath
in classTreeCheckingMode
- Parameters:
path
- the path to be added.
-
uncheckPath
Description copied from class:TreeCheckingMode
Unchecks the specified path and propagates the checking according to the strategy- Specified by:
uncheckPath
in classTreeCheckingMode
- Parameters:
path
- the path to be removed.
-
updateCheckAfterChildrenInserted
Description copied from class:TreeCheckingMode
Update the check of the given path after the insertion of some of its children, according to the strategy- Specified by:
updateCheckAfterChildrenInserted
in classTreeCheckingMode
-
updateCheckAfterChildrenRemoved
Description copied from class:TreeCheckingMode
Update the check of the given path after the removal of some of its children, according to the strategy- Specified by:
updateCheckAfterChildrenRemoved
in classTreeCheckingMode
-
updateCheckAfterStructureChanged
Description copied from class:TreeCheckingMode
Update the check of the given path after the structure change, according to the strategy- Specified by:
updateCheckAfterStructureChanged
in classTreeCheckingMode
-