Package eu.essilab.lablib.checkboxtree
Class TreeCheckingMode
java.lang.Object
eu.essilab.lablib.checkboxtree.TreeCheckingMode
- Direct Known Subclasses:
PropagatePreservingCheckTreeCheckingMode
,PropagatePreservingUncheckTreeCheckingMode
,PropagateTreeCheckingMode
,PropagateUpWhiteTreeCheckingMode
,SimpleTreeCheckingMode
,SingleTreeCheckingMode
The model for checking/unchecking the nodes of a CheckboxTree. Alterations of
a node state may propagate on descendants/ascendants, according to the
behavior of the model. Several default behavioral modes are defined. The
models must use the methods addToCheckedSet and removeFromCheckedSet from
DefaultTreeCheckingModel to add/remove the single paths from the checking
set.
- Author:
- bigagli, boldrini
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Checks the specified path and propagates the checking according to the strategyabstract void
uncheckPath
(TreePath path) Unchecks the specified path and propagates the checking according to the strategyabstract void
Update the check of the given path after the insertion of some of its children, according to the strategyabstract void
Update the check of the given path after the removal of some of its children, according to the strategyabstract void
Update the check of the given path after the structure change, according to the strategy
-
Field Details
-
model
-
-
Method Details
-
checkPath
Checks the specified path and propagates the checking according to the strategy- Parameters:
path
- the path to be added.
-
uncheckPath
Unchecks the specified path and propagates the checking according to the strategy- Parameters:
path
- the path to be removed.
-
updateCheckAfterChildrenInserted
Update the check of the given path after the insertion of some of its children, according to the strategy- Parameters:
path
-
-
updateCheckAfterChildrenRemoved
Update the check of the given path after the removal of some of its children, according to the strategy- Parameters:
path
-
-
updateCheckAfterStructureChanged
Update the check of the given path after the structure change, according to the strategy- Parameters:
path
-
-