Package eu.essilab.lablib.checkboxtree
Class TreeCheckingEvent
java.lang.Object
java.util.EventObject
eu.essilab.lablib.checkboxtree.TreeCheckingEvent
- All Implemented Interfaces:
Serializable
An event that characterizes a change in the current checking. The change is
related to a single checked/unchecked path. TreeCheckingListeners will
generally query the source of the event for the new checked status of each
potentially changed row.
- Author:
- Lorenzo Bigagli
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTreeCheckingEvent
(Object source, TreePath path, boolean checked) Represents a change in the checking of a TreeCheckingModel. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
changedPath
The path related to this event
-
-
Constructor Details
-
TreeCheckingEvent
Represents a change in the checking of a TreeCheckingModel. The specified path identifies the path that have been either checked or unchecked.- Parameters:
source
- source of eventpath
- the path that has changed in the checkingchecked
- whether or not the path is checked, false means that path was removed from the checking.
-
-
Method Details
-
getPath
- Returns:
- the path that was added or removed from the checking.
-
isCheckedPath
public boolean isCheckedPath()- Returns:
- true if the path related to the event is checked. A return value of false means that the path has been removed from the checking.
-