Class

scalaswingcontrib.event

TreePathSelected

Related Doc: package event

Permalink

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
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]])

    Permalink

    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: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

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

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

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

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

    Permalink

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

  12. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  13. final def notifyAll(): Unit

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

    Permalink

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

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

    Permalink

    a list of paths which have been added to the selection

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

    Permalink

    a list of paths which have been removed from the selection

  17. val source: Tree[A]

    Permalink

    the tree in which the selection has been made

    the tree in which the selection has been made

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

    Permalink
    Definition Classes
    AnyRef
  19. final def wait(): Unit

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

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

    Permalink
    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