scalaswingcontrib.event

TreePathSelected

final case class TreePathSelected[A](source: Tree[A], pathsAdded: List[Path[A]], pathsRemoved: List[Path[A]], newLeadSelectionPath: Option[Path[A]], oldLeadSelectionPath: Option[Path[A]]) extends TreeEvent[A] with SelectionEvent with Product with Serializable

The event denoting a change in selected paths of a scalaswingcontrib.tree.Tree.

The event provides information about which paths have been removed or added to the selection. For example, if a tree contains three elements, A, B, C, and initially A was selected, then an additional selection of B will produce an event which contains the path to B in pathsAdded, whereas pathsRemoved is empty (no elements were deselected). If in the next step, the selection is replaced by C, an event will be produced whose pathsAdded contains C and whose pathsRemoved contains A and B.

If the client does not want to keep track of the total set of selected paths, it may retrieve them through the tree's selection object.

For convenience, the event contains the optional first paths in the previous and current total selection set. In the example above, assuming an order of A, B, C, the first event will show A as both newLeadSelectionPath and oldLeadSelectionPath. The second example event will show A in oldLeadSelectionPath and C in newLeadSelectionPath.

There is an additional extractor in the TreePathSelected companion object which yields the last element the new lead selection path.

source

the tree in which the selection has been made

pathsAdded

a list of paths which have been added to the selection

pathsRemoved

a list of paths which have been removed from the selection

newLeadSelectionPath

the first path in the list of currently selected paths (if any)

oldLeadSelectionPath

the first path in the list of previously selected paths (if any)

Linear Supertypes
Serializable, Serializable, Product, Equals, SelectionEvent, TreeEvent[A], ComponentEvent, UIEvent, Event, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TreePathSelected
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SelectionEvent
  7. TreeEvent
  8. ComponentEvent
  9. UIEvent
  10. Event
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TreePathSelected(source: Tree[A], pathsAdded: List[Path[A]], pathsRemoved: List[Path[A]], newLeadSelectionPath: Option[Path[A]], oldLeadSelectionPath: Option[Path[A]])

    source

    the tree in which the selection has been made

    pathsAdded

    a list of paths which have been added to the selection

    pathsRemoved

    a list of paths which have been removed from the selection

    newLeadSelectionPath

    the first path in the list of currently selected paths (if any)

    oldLeadSelectionPath

    the first path in the list of previously selected paths (if any)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. val newLeadSelectionPath: Option[Path[A]]

    the first path in the list of currently selected paths (if any)

  14. final def notify(): Unit

    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  16. val oldLeadSelectionPath: Option[Path[A]]

    the first path in the list of previously selected paths (if any)

  17. val pathsAdded: List[Path[A]]

    a list of paths which have been added to the selection

  18. val pathsRemoved: List[Path[A]]

    a list of paths which have been removed from the selection

  19. val source: Tree[A]

    the tree in which the selection has been made

    the tree in which the selection has been made

    Definition Classes
    TreePathSelectedTreeEvent → ComponentEvent → UIEvent
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SelectionEvent

Inherited from TreeEvent[A]

Inherited from ComponentEvent

Inherited from UIEvent

Inherited from Event

Inherited from AnyRef

Inherited from Any

Ungrouped