package event
- Alphabetic
- Public
- Protected
Type Members
- final case class CellEditingCancelled[A](source: CellEditor[A]) extends CellEditorEvent[A] with Product with Serializable
- final case class CellEditingStopped[A](source: CellEditor[A]) extends CellEditorEvent[A] with Product with Serializable
- sealed trait CellEditorEvent[+A] extends Event
- case class ColorChangeEvent(c: Color) extends Event with Product with Serializable
- final case class TreeCollapsed[A](source: Tree[A], path: Path[A]) extends TreeExpansionEvent[A] with Product with Serializable
- sealed trait TreeEvent[A] extends ComponentEvent
The common trait of all events dispatched by a scalaswingcontrib.tree.Tree.
- final case class TreeExpanded[A](source: Tree[A], path: Path[A]) extends TreeExpansionEvent[A] with Product with Serializable
- sealed trait TreeExpansionEvent[A] extends TreeEvent[A]
- sealed trait TreeModelEvent[A] extends TreeEvent[A]
- final case class TreeNodesChanged[A](source: Tree[A], path: Path[A], childIndices: List[Int], children: List[A]) extends TreeModelEvent[A] with Product with Serializable
- final case class TreeNodesInserted[A](source: Tree[A], path: Path[A], childIndices: List[Int], children: List[A]) extends TreeModelEvent[A] with Product with Serializable
- final case class TreeNodesRemoved[A](source: Tree[A], path: Path[A], childIndices: List[Int], children: List[A]) extends TreeModelEvent[A] with Product with Serializable
- 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 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
, whereaspathsRemoved
is empty (no elements were deselected). If in the next step, the selection is replaced by C, an event will be produced whosepathsAdded
containsC
and whosepathsRemoved
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
andoldLeadSelectionPath
. The second example event will show A inoldLeadSelectionPath
andC
innewLeadSelectionPath
.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)
- final case class TreeStructureChanged[A](source: Tree[A], path: Path[A], childIndices: List[Int], children: List[A]) extends TreeModelEvent[A] with Product with Serializable
- final case class TreeWillCollapse[A](source: Tree[A], path: Path[A]) extends TreeExpansionEvent[A] with Product with Serializable
- final case class TreeWillExpand[A](source: Tree[A], path: Path[A]) extends TreeExpansionEvent[A] with Product with Serializable
Value Members
- object TreeNodeSelected