Class TreeCheckingEvent

java.lang.Object
java.util.EventObject
eu.essilab.lablib.checkboxtree.TreeCheckingEvent
All Implemented Interfaces:
Serializable

public class TreeCheckingEvent extends EventObject
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 Details

    • changedPath

      protected TreePath changedPath
      The path related to this event
  • Constructor Details

    • TreeCheckingEvent

      public TreeCheckingEvent(Object source, TreePath path, boolean checked)
      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 event
      path - the path that has changed in the checking
      checked - whether or not the path is checked, false means that path was removed from the checking.
  • Method Details

    • getPath

      public TreePath 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.