Class TreeCheckingMode

java.lang.Object
eu.essilab.lablib.checkboxtree.TreeCheckingMode
Direct Known Subclasses:
PropagatePreservingCheckTreeCheckingMode, PropagatePreservingUncheckTreeCheckingMode, PropagateTreeCheckingMode, PropagateUpWhiteTreeCheckingMode, SimpleTreeCheckingMode, SingleTreeCheckingMode

public abstract class TreeCheckingMode extends Object
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 Details

  • Method Details

    • checkPath

      public abstract void checkPath(TreePath path)
      Checks the specified path and propagates the checking according to the strategy
      Parameters:
      path - the path to be added.
    • uncheckPath

      public abstract void uncheckPath(TreePath path)
      Unchecks the specified path and propagates the checking according to the strategy
      Parameters:
      path - the path to be removed.
    • updateCheckAfterChildrenInserted

      public abstract void updateCheckAfterChildrenInserted(TreePath path)
      Update the check of the given path after the insertion of some of its children, according to the strategy
      Parameters:
      path -
    • updateCheckAfterChildrenRemoved

      public abstract void updateCheckAfterChildrenRemoved(TreePath path)
      Update the check of the given path after the removal of some of its children, according to the strategy
      Parameters:
      path -
    • updateCheckAfterStructureChanged

      public abstract void updateCheckAfterStructureChanged(TreePath path)
      Update the check of the given path after the structure change, according to the strategy
      Parameters:
      path -