Package eu.essilab.lablib.checkboxtree
Class NullTreeCheckingModel
java.lang.Object
eu.essilab.lablib.checkboxtree.NullTreeCheckingModel
- All Implemented Interfaces:
- TreeCheckingModel
Convenience class representing an empty tree checking model (cf. the Null
 Object pattern), whose paths are always enabled, unchecked and ungreyed. This
 class is a singleton.
- Author:
- Lorenzo Bigagli
- 
Nested Class SummaryNested classes/interfaces inherited from interface eu.essilab.lablib.checkboxtree.TreeCheckingModelTreeCheckingModel.CheckingMode
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddCheckingPath(TreePath path) add a path to the checking set.voidaddCheckingPaths(TreePath[] paths) add paths to the checking set.voidAdds the specified listener to the list of those being notified upon changes in the the checking set.voidClears the checking.TreePath[]TreePath[]TreePath[]static NullTreeCheckingModelbooleanisPathChecked(TreePath path) Returns true if the item identified by the path is currently checked.booleanisPathEnabled(TreePath path) Returns whether the specified path checking state can be toggled.booleanisPathGreyed(TreePath path) Returns whether the specified path is greyed.voidremoveCheckingPath(TreePath path) Removes a path from the checking set.voidremoveCheckingPaths(TreePath[] paths) Remove the specified paths from the checking set.voidRemoves the specified listener from the list of those being notified upon changes in the checking set.voidSets the specified checking mode.voidsetCheckingPath(TreePath path) (Re)sets the checking to the specified path.voidsetCheckingPaths(TreePath[] paths) (Re)sets the checking to the specified paths.voidsetPathEnabled(TreePath path, boolean enable) Sets whether or not the specified path can be toggled.voidsetPathsEnabled(TreePath[] paths, boolean enable) Sets whether or not the specified paths can be toggled.voidtoggleCheckingPath(TreePath pathForRow) Toggles (check/uncheck) the checking state of the specified path, if this is enabled, and possibly propagate the change, according to the checking mode.
- 
Method Details- 
getInstance
- 
addCheckingPathDescription copied from interface:TreeCheckingModeladd a path to the checking set.- Specified by:
- addCheckingPathin interface- TreeCheckingModel
- Parameters:
- path- the path to be added.
 
- 
addCheckingPathsDescription copied from interface:TreeCheckingModeladd paths to the checking set.- Specified by:
- addCheckingPathsin interface- TreeCheckingModel
- Parameters:
- paths- the paths to be added.
 
- 
addTreeCheckingListenerDescription copied from interface:TreeCheckingModelAdds the specified listener to the list of those being notified upon changes in the the checking set.- Specified by:
- addTreeCheckingListenerin interface- TreeCheckingModel
- Parameters:
- tcl- the new listener to be added.
 
- 
clearCheckingpublic void clearChecking()Description copied from interface:TreeCheckingModelClears the checking.- Specified by:
- clearCheckingin interface- TreeCheckingModel
 
- 
getCheckingMode- Specified by:
- getCheckingModein interface- TreeCheckingModel
- Returns:
- Returns the CheckingMode.
 
- 
getCheckingPaths- Specified by:
- getCheckingPathsin interface- TreeCheckingModel
- Returns:
- Returns the paths that are in the checking set.
 
- 
getCheckingRoots- Specified by:
- getCheckingRootsin interface- TreeCheckingModel
- Returns:
- Returns the paths that are in the checking set and are the (upper) roots of checked trees.
 
- 
getGreyingPaths- Specified by:
- getGreyingPathsin interface- TreeCheckingModel
- Returns:
- Returns the paths that are in the greying set.
 
- 
isPathCheckedDescription copied from interface:TreeCheckingModelReturns true if the item identified by the path is currently checked.- Specified by:
- isPathCheckedin interface- TreeCheckingModel
- Parameters:
- path- a- TreePathidentifying a node
- Returns:
- true if the node is checked
 
- 
isPathEnabledDescription copied from interface:TreeCheckingModelReturns whether the specified path checking state can be toggled.- Specified by:
- isPathEnabledin interface- TreeCheckingModel
 
- 
isPathGreyedDescription copied from interface:TreeCheckingModelReturns whether the specified path is greyed.- Specified by:
- isPathGreyedin interface- TreeCheckingModel
 
- 
removeCheckingPathDescription copied from interface:TreeCheckingModelRemoves a path from the checking set.- Specified by:
- removeCheckingPathin interface- TreeCheckingModel
- Parameters:
- path- the path to be removed.
 
- 
removeCheckingPathsDescription copied from interface:TreeCheckingModelRemove the specified paths from the checking set.- Specified by:
- removeCheckingPathsin interface- TreeCheckingModel
- Parameters:
- paths- the paths to be added.
 
- 
removeTreeCheckingListenerDescription copied from interface:TreeCheckingModelRemoves the specified listener from the list of those being notified upon changes in the checking set.- Specified by:
- removeTreeCheckingListenerin interface- TreeCheckingModel
- Parameters:
- tcl- the listener to remove.
 
- 
setCheckingModeDescription copied from interface:TreeCheckingModelSets the specified checking mode.- Specified by:
- setCheckingModein interface- TreeCheckingModel
- Parameters:
- mode- the checking mode to set.
 
- 
setCheckingPathDescription copied from interface:TreeCheckingModel(Re)sets the checking to the specified path.- Specified by:
- setCheckingPathin interface- TreeCheckingModel
 
- 
setCheckingPathsDescription copied from interface:TreeCheckingModel(Re)sets the checking to the specified paths.- Specified by:
- setCheckingPathsin interface- TreeCheckingModel
 
- 
setPathEnabledDescription copied from interface:TreeCheckingModelSets whether or not the specified path can be toggled.- Specified by:
- setPathEnabledin interface- TreeCheckingModel
- Parameters:
- path- the path to enable/disable
 
- 
setPathsEnabledDescription copied from interface:TreeCheckingModelSets whether or not the specified paths can be toggled.- Specified by:
- setPathsEnabledin interface- TreeCheckingModel
- Parameters:
- paths- the paths to enable/disable
 
- 
toggleCheckingPathDescription copied from interface:TreeCheckingModelToggles (check/uncheck) the checking state of the specified path, if this is enabled, and possibly propagate the change, according to the checking mode.- Specified by:
- toggleCheckingPathin interface- TreeCheckingModel
 
 
-