Fx.Selection

sealed class Selection[A](val target: Idx[A], val real: javafx.scene.control.SelectionModel[_]) extends Idx.Selection.Observable[A]
Source
__.scala
trait Idx.Selection[A]
trait Able.Doc
trait Able.Tag
trait Idx[A]
trait Collection[A]
trait Able.Size
trait Able.~[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

@scala.annotation.targetName("stream")
override def ~: ~[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').~.><

  l.~.tp  // Prints ~(a, b, c, d, e, f, g)
Definition Classes
Inherited from
Selection
Source
__.scala
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
override def isEmpty: Boolean

Empty check

Empty check

Returns true if instance is empty.

Definition Classes
Inherited from
Size
Source
Size.scala
@scala.annotation.targetName("map_View")
def map_^[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
protected def onObservableChange[U](l: () => U): Event.Control
Inherited from
Observable
Source
Observable.scala
override def property(dflt: A): Pro.Observable[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
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
@scala.annotation.targetName("value_Opt")
def value_?: Opt[A]

Optional selected value

Optional selected value

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

Inherited from
Selection
Source
__.scala