Package

scalaswingcontrib

event

Permalink

package event

Visibility
  1. Public
  2. All

Type Members

  1. final case class CellEditingCancelled[A](source: CellEditor[A]) extends CellEditorEvent[A] with Product with Serializable

    Permalink
  2. final case class CellEditingStopped[A](source: CellEditor[A]) extends CellEditorEvent[A] with Product with Serializable

    Permalink
  3. sealed trait CellEditorEvent[+A] extends Event

    Permalink
  4. case class ColorChangeEvent(c: Color) extends Event with Product with Serializable

    Permalink
  5. final case class TreeCollapsed[A](source: Tree[A], path: Path[A]) extends TreeExpansionEvent[A] with Product with Serializable

    Permalink
  6. sealed trait TreeEvent[A] extends ComponentEvent

    Permalink

    The common trait of all events dispatched by a scalaswingcontrib.tree.Tree.

  7. final case class TreeExpanded[A](source: Tree[A], path: Path[A]) extends TreeExpansionEvent[A] with Product with Serializable

    Permalink
  8. sealed trait TreeExpansionEvent[A] extends TreeEvent[A]

    Permalink
  9. sealed trait TreeModelEvent[A] extends TreeEvent[A]

    Permalink
  10. final case class TreeNodesChanged[A](source: Tree[A], path: Path[A], childIndices: List[Int], children: List[A]) extends TreeModelEvent[A] with Product with Serializable

    Permalink
  11. final case class TreeNodesInserted[A](source: Tree[A], path: Path[A], childIndices: List[Int], children: List[A]) extends TreeModelEvent[A] with Product with Serializable

    Permalink
  12. final case class TreeNodesRemoved[A](source: Tree[A], path: Path[A], childIndices: List[Int], children: List[A]) extends TreeModelEvent[A] with Product with Serializable

    Permalink
  13. 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

    Permalink

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

    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)

  14. final case class TreeStructureChanged[A](source: Tree[A], path: Path[A], childIndices: List[Int], children: List[A]) extends TreeModelEvent[A] with Product with Serializable

    Permalink
  15. final case class TreeWillCollapse[A](source: Tree[A], path: Path[A]) extends TreeExpansionEvent[A] with Product with Serializable

    Permalink
  16. final case class TreeWillExpand[A](source: Tree[A], path: Path[A]) extends TreeExpansionEvent[A] with Product with Serializable

    Permalink

Value Members

  1. object TreeNodeSelected

    Permalink

Ungrouped