Fx.Selection

sealed class Selection[A](val target: Idx[A], val real: javafx.scene.control.SelectionModel[_]) extends Idx.Selection.O[A]
Source
__.scala
trait Idx.Selection.Observable[Fx.Selection.A]
trait Idx.Selection[Fx.Selection.A]
trait Able.Doc
trait Able.Tag
trait Idx[Fx.Selection.A]
trait Collection[Fx.Selection.A]
trait Able.Size
trait Able.Stream[Fx.Selection.A]
class java.lang.Object
trait scala.Matchable
class Any

Member

enum Mode(val real: javafx.scene.control.SelectionMode) extends Fx.JavaFx.Enum[javafx.scene.control.SelectionMode]

Def

def apply(i: Int): A

Get value

Get value

Get selected value at given index

Inherited from
Selection
Source
__.scala
def clear: Unit
Source
__.scala
def doc: Doc
Inherited from
Selection
Source
__.scala
lazy val indexes: Idx[Int]
Source
__.scala
@targetName("map_View")
def mapView[B](f: A => B): Fx.Selection[B]
Source
__.scala
def mode_=(v: Fx.Selection.Mode): Unit
Source
__.scala
def onChange[U](f: this.type => U): Event.Control
Source
__.scala
def onChangeRun[U](f: => U): Event.Control
Inherited from
Observable
Source
Observable.scala
def onObservableChange[U](l: () => U): Event.Control
Inherited from
Observable
Source
Observable.scala
override def property(dflt: A): Pro.O[A]

Selected property

Selected property

Returns property instance wich will be updated real-time with the first selected value. Because the Selection can be empty, this property needs a default value to provide in this case.

Definition Classes
Inherited from
Observable
Source
Observable.scala
val real: javafx.scene.control.SelectionModel[_]
Source
__.scala
def select(a: A): Unit
Source
__.scala
def selectAt(i: Int): Unit
Source
__.scala
def size: Int

Count of selected values

Count of selected values

Returns total number of selected values

Inherited from
Selection
Source
__.scala
override def stream: Stream[A]

Returns a Stream of all elements

Returns a Stream of all elements

The element order is same as in the Idx itself

  val l: Idx[Char] = ('a' <> 'g').stream.pack

  l.stream.tp  // Prints Stream(a, b, c, d, e, f, g)
Definition Classes
Inherited from
Selection
Source
__.scala
def tag: String

Make String

Make String

tag returns this instance String representation, which should be used insted of toString

Inherited from
Doc
Source
Doc.scala
val target: Idx[A]
Source
__.scala
inline def value: A
Inherited from
Selection
Source
__.scala
def valueOpt: Opt[A]

Optional selected value

Optional selected value

Returns first selected value or void option, if selection is empty

Inherited from
Selection
Source
__.scala