scalafx.collections

Type members

Classlikes

Contains implicit methods to convert from `javafx.collections` Classes to their ScalaFX counterparts.

Contains implicit methods to convert from `javafx.collections` Classes to their ScalaFX counterparts.

Companion
object

Companion Object for [[scalafx.collections.ObservableArray]].

Companion Object for [[scalafx.collections.ObservableArray]].

Companion
class
abstract class ObservableArray[V, T <: ObservableArray[V, T, D], D <: ObservableArray[D]](val delegate: D)(`evidence$1`: ClassTag[V]) extends Builder[V, T] with Observable with SFXDelegate[D]

Abstract ObservableArray base class.

Abstract ObservableArray base class.

Companion
object
object ObservableBuffer extends StrictOptimizedSeqFactory[[T] =>> ObservableBuffer[T]]
Companion
class
class ObservableBuffer[T](val delegate: ObservableList[T]) extends AbstractBuffer[T] with IndexedBuffer[T] with IndexedSeqOps[T, [T] =>> ObservableBuffer[T], ObservableBuffer[T]] with StrictOptimizedSeqOps[T, [T] =>> ObservableBuffer[T], ObservableBuffer[T]] with IterableFactoryDefaults[T, [T] =>> ObservableBuffer[T]] with Observable with SFXDelegate[ObservableList[T]]

Wrapper class to JavaFX's `ObservableList`.

Wrapper class to JavaFX's `ObservableList`.

Type Params
T

Type of this Buffer

Companion
object
Companion
class
abstract class ObservableBufferBase[E](val delegate: ObservableListBase[E]) extends ObservableBuffer[E] with SFXDelegate[ObservableListBase[E]]

There is no need in ScalaFX to use this class. ObservableListBase is really an implementation detail of JavaFX, that is added in ScalaFX as ObservableBufferBase to keep type hierarchies in scalafx.collections.transformation correct. Note that Buffer is used instead of Java List, since it is a closer equivalent to java List than Scala List (Java and Scala List are quite different). There should be bo need to use this class from ScalaFX. On JavaFX side this is an abstract class that serves as a base class for ObservableList implementations that wa added in JavFX 8. In ScalaFX 8 the implementation is actually in ObservableBuffer.

There is no need in ScalaFX to use this class. ObservableListBase is really an implementation detail of JavaFX, that is added in ScalaFX as ObservableBufferBase to keep type hierarchies in scalafx.collections.transformation correct. Note that Buffer is used instead of Java List, since it is a closer equivalent to java List than Scala List (Java and Scala List are quite different). There should be bo need to use this class from ScalaFX. On JavaFX side this is an abstract class that serves as a base class for ObservableList implementations that wa added in JavFX 8. In ScalaFX 8 the implementation is actually in ObservableBuffer.

Wraps a JavaFX ObservableListBase.

Type Params
E
  • the type of the elements contained in the List
Companion
object
object ObservableFloatArray extends ObservableArrayCompanionBase[Float, ObservableFloatArray, ObservableFloatArray]
class ObservableFloatArray(delegate: ObservableFloatArray) extends ObservableArray[Float, ObservableFloatArray, ObservableFloatArray]

Wrapper class to JavaFX's ObservableFloatArray.

Wrapper class to JavaFX's ObservableFloatArray.

Value Params
delegate

Wrapped JavaFX ObservableFloatArray providing implementation.

Companion
object
class ObservableHashMap[K, V](val delegate: ObservableMap[K, V]) extends ObservableMap[K, V]

scalafx.collections.ObservableMap implementation backed for a `HashMap` from Java Collection.

scalafx.collections.ObservableMap implementation backed for a `HashMap` from Java Collection.

Value Params
delegate

JavaFX `ObservableMap` instance to be wrapped by this class. By default it is a `HashMap` wrapped by `observableMap` method from `FXCollections`.

class ObservableHashSet[T](val delegate: ObservableSet[T]) extends ObservableSet[T]

scalafx.collections.ObservableSet implementation backed for a `HashSet` from Java Collection.

scalafx.collections.ObservableSet implementation backed for a `HashSet` from Java Collection.

Value Params
delegate

JavaFX ObservableSet instance to be wrapped by this class. By default it is a HashSet wrapped by observableSet method from FXCollections.

object ObservableIntegerArray extends ObservableArrayCompanionBase[Int, ObservableIntegerArray, ObservableIntegerArray]
class ObservableIntegerArray(delegate: ObservableIntegerArray) extends ObservableArray[Int, ObservableIntegerArray, ObservableIntegerArray]

Wrapper class to JavaFX's ObservableIntegerArray.

Wrapper class to JavaFX's ObservableIntegerArray.

Value Params
delegate

Wrapped JavaFX ObservableIntegerArray providing implementation.

Companion
object
object ObservableMap extends MapFactory[[K, V] =>> ObservableMap[K, V]]

Companion Object for [[scalafx.collections.ObservableMap]].

Companion Object for [[scalafx.collections.ObservableMap]].

Companion
class
trait ObservableMap[K, V] extends Map[K, V] with MapOps[K, V, Map, ObservableMap[K, V]] with StrictOptimizedIterableOps[(K, V), Iterable, ObservableMap[K, V]] with MapFactoryDefaults[K, V, [K, V] =>> ObservableMap[K, V], Iterable] with Observable with SFXDelegate[ObservableMap[K, V]]

Wrapper class to JavaFX's `ObservableMap`.

Wrapper class to JavaFX's `ObservableMap`.

Type Params
K

Key type

V

Value type. returned by observableHashMap method from FXCollections.

Companion
object
object ObservableSet extends IterableFactory[[T] =>> ObservableSet[T]]

Companion Object for [[scalafx.collections.ObservableSet]].

Companion Object for [[scalafx.collections.ObservableSet]].

Companion
class
trait ObservableSet[T] extends AbstractSet[T] with Observable with SFXDelegate[ObservableSet[T]]

Wrapper class to JavaFX's `ObservableSet` .

Wrapper class to JavaFX's `ObservableSet` .

Type Params
T

Type of this Set

Companion
object

Value members

Concrete methods

def fillCollection[T](originalList: ObservableList[T], filler: Iterable[T]): Unit

Inserts all elements from a Iterable in a JavaFX ObservableList, replacing original content. If this iterable was null, the list will be cleaned.

Inserts all elements from a Iterable in a JavaFX ObservableList, replacing original content. If this iterable was null, the list will be cleaned.

Type Params
T

Iterable and ObservableList type

Value Params
filler

Iterable which will fill originalList

originalList

List to be filled

def fillCollectionWithOne[T](originalList: ObservableList[T], element: T): Unit

Replaces all content in an ObservableList of type T for a single element. If this element was null, the list will be cleaned.

Replaces all content in an ObservableList of type T for a single element. If this element was null, the list will be cleaned.

Type Params
T

Element and ObservableList type

Value Params
element

Element which will replace originalList content.

originalList

List to be filled

def fillSFXCollection[J <: Object](originalList: ObservableList[J], filler: Iterable[SFXDelegate[J]]): Unit

Inserts all elements from a Iterable of type SFXDelegate[J] in a JavaFX ObservableList of type J, replacing its original content. If this iterable was null, the list will be cleaned.

Inserts all elements from a Iterable of type SFXDelegate[J] in a JavaFX ObservableList of type J, replacing its original content. If this iterable was null, the list will be cleaned.

Type Params
J

Iterable and ObservableList type

Value Params
filler

Iterable which will fill originalList

originalList

List to be filled

def fillSFXCollectionWithOne[J <: Object](originalList: ObservableList[J], element: SFXDelegate[J]): Unit

Replaces all content in an JavaFX ObservableList of type J for a single SFXDelegate[J] element. If this element was null, the list will be cleaned.

Replaces all content in an JavaFX ObservableList of type J for a single SFXDelegate[J] element. If this element was null, the list will be cleaned.

Type Params
J

Iterable and ObservableList type

Value Params
element

Element which will replace originalList content. Actually, it will used its delegate.

originalList

List to be filled