scalafx.collections

Wraps `javafx.collections` package, adding Scala's collections features to original JavaFX collections.

Attributes

Members list

Type members

Classlikes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

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.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Includes
object Includes

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

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

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class ObservableArray[V, T <: ObservableArray[V, T, D], D <: ObservableArray[D]](val delegate: D)(implicit evidence$1: ClassTag[V]) extends Builder[V, T], Observable, SFXDelegate[D]

Abstract $OA base class.

Abstract $OA base class.

Attributes

Companion
object
Supertypes
trait Observable
trait SFXDelegate[D]
trait Builder[V, T]
trait Growable[V]
trait Clearable
class Object
trait Matchable
class Any
Show all
Known subtypes

Companion Object for scalafx.collections.ObservableBuffer.

Companion Object for scalafx.collections.ObservableBuffer.

Attributes

Companion
class
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Wrapper class to JavaFX's $OL.

Wrapper class to JavaFX's $OL.

Type parameters

T

Type of this $buf

Attributes

Companion
object
Supertypes
trait Observable
trait SFXDelegate[ObservableList[T]]
trait IndexedBuffer[T]
trait IndexedSeq[T]
trait IndexedSeq[T]
class AbstractBuffer[T]
trait Buffer[T]
trait Shrinkable[T]
trait Growable[T]
trait Clearable
class AbstractSeq[T]
trait Seq[T]
trait Cloneable
trait Iterable[T]
class AbstractSeq[T]
trait Seq[T]
trait Equals
trait PartialFunction[Int, T]
trait Int => T
class AbstractIterable[T]
trait Iterable[T]
trait IterableOnce[T]
class Object
trait Matchable
class Any
Show all
Known subtypes
class TransformationBuffer[E, F]
class FilteredBuffer[E]
class SortedBuffer[E]

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class ObservableBufferBase[E](val delegate: ObservableListBase[E]) extends ObservableBuffer[E], 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 $URL0 $TC]].

Type parameters

E
  • the type of the elements contained in the List

Attributes

Companion
object
Supertypes
class ObservableBuffer[E]
trait Observable
trait SFXDelegate[ObservableListBase[E]]
trait IndexedBuffer[E]
trait IndexedSeq[E]
trait IndexedSeq[E]
class AbstractBuffer[E]
trait Buffer[E]
trait Shrinkable[E]
trait Growable[E]
trait Clearable
class AbstractSeq[E]
trait Seq[E]
trait Cloneable
trait Iterable[E]
class AbstractSeq[E]
trait Seq[E]
trait Equals
trait PartialFunction[Int, E]
trait Int => E
class AbstractIterable[E]
trait Iterable[E]
trait IterableOnce[E]
class Object
trait Matchable
class Any
Show all
Known subtypes
class TransformationBuffer[E, F]
class FilteredBuffer[E]
class SortedBuffer[E]

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class ObservableFloatArray(delegate: ObservableFloatArray) extends ObservableArray[Float, ObservableFloatArray, ObservableFloatArray]

Wrapper class to JavaFX's ObservableFloatArray.

Wrapper class to JavaFX's ObservableFloatArray.

Value parameters

delegate

Wrapped JavaFX $OFA providing implementation.

Attributes

Companion
object
Supertypes
class ObservableArray[Float, ObservableFloatArray, ObservableFloatArray]
trait Observable
trait SFXDelegate[ObservableFloatArray]
trait Growable[Float]
trait Clearable
class Object
trait Matchable
class Any
Show all
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 parameters

delegate

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

Attributes

Supertypes
trait ObservableMap[K, V]
trait Observable
trait SFXDelegate[ObservableMap[K, V]]
trait Map[K, V]
trait MapOps[K, V, Map, ObservableMap[K, V]]
trait Shrinkable[K]
trait Builder[(K, V), ObservableMap[K, V]]
trait Growable[(K, V)]
trait Clearable
trait Cloneable[ObservableMap[K, V]]
trait Cloneable
trait Map[K, V]
trait Equals
trait MapOps[K, V, ObservableMap, ObservableMap[K, V]]
trait PartialFunction[K, V]
trait K => V
trait Iterable[(K, V)]
trait Iterable[(K, V)]
trait IterableOps[(K, V), Iterable, ObservableMap[K, V]]
trait IterableOnceOps[(K, V), Iterable, ObservableMap[K, V]]
trait IterableOnce[(K, V)]
class Object
trait Matchable
class Any
Show all
class ObservableHashSet[T](aDelegate: 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 parameters

aDelegate

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

Attributes

Supertypes
trait ObservableSet[T]
trait Observable
trait SFXDelegate[ObservableSet[T]]
class AbstractSet[T]
trait Set[T]
trait SetOps[T, Set, Set[T]]
trait Shrinkable[T]
trait Builder[T, Set[T]]
trait Growable[T]
trait Clearable
trait Cloneable[Set[T]]
trait Cloneable
trait Iterable[T]
class AbstractSet[T]
trait Set[T]
trait Equals
trait SetOps[T, Set, Set[T]]
trait T => Boolean
class AbstractIterable[T]
trait Iterable[T]
trait IterableOps[T, Set, Set[T]]
trait IterableOnceOps[T, Set, Set[T]]
trait IterableOnce[T]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class ObservableIntegerArray(delegate: ObservableIntegerArray) extends ObservableArray[Int, ObservableIntegerArray, ObservableIntegerArray]

Wrapper class to JavaFX's ObservableIntegerArray.

Wrapper class to JavaFX's ObservableIntegerArray.

Value parameters

delegate

Wrapped JavaFX $OIA providing implementation.

Attributes

Companion
object
Supertypes
class ObservableArray[Int, ObservableIntegerArray, ObservableIntegerArray]
trait Observable
trait SFXDelegate[ObservableIntegerArray]
trait Growable[Int]
trait Clearable
class Object
trait Matchable
class Any
Show all

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

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

Attributes

Companion
trait
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Self type
trait ObservableMap[K, V] extends Map[K, V], MapOps[K, V, Map, ObservableMap[K, V]], StrictOptimizedIterableOps[(K, V), Iterable, ObservableMap[K, V]], MapFactoryDefaults[K, V, ObservableMap, Iterable], Observable, SFXDelegate[ObservableMap[K, V]]

Wrapper class to JavaFX's `ObservableMap`.

Wrapper class to JavaFX's `ObservableMap`.

Type parameters

K

Key type

V

Value type. returned by observableHashMap method from FXCollections.

Attributes

Companion
object
Supertypes
trait Observable
trait SFXDelegate[ObservableMap[K, V]]
trait Map[K, V]
trait MapOps[K, V, Map, ObservableMap[K, V]]
trait Shrinkable[K]
trait Builder[(K, V), ObservableMap[K, V]]
trait Growable[(K, V)]
trait Clearable
trait Cloneable[ObservableMap[K, V]]
trait Cloneable
trait Map[K, V]
trait Equals
trait MapOps[K, V, ObservableMap, ObservableMap[K, V]]
trait PartialFunction[K, V]
trait K => V
trait Iterable[(K, V)]
trait Iterable[(K, V)]
trait IterableOps[(K, V), Iterable, ObservableMap[K, V]]
trait IterableOnceOps[(K, V), Iterable, ObservableMap[K, V]]
trait IterableOnce[(K, V)]
class Object
trait Matchable
class Any
Show all
Known subtypes
class ObservableHashMap[K, V]

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

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

Attributes

Companion
trait
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Self type
trait ObservableSet[T] extends AbstractSet[T], Observable, SFXDelegate[ObservableSet[T]]

Wrapper class to JavaFX's `ObservableSet` .

Wrapper class to JavaFX's `ObservableSet` .

Type parameters

T

Type of this Set

Attributes

Companion
object
Supertypes
trait Observable
trait SFXDelegate[ObservableSet[T]]
class AbstractSet[T]
trait Set[T]
trait SetOps[T, Set, Set[T]]
trait Shrinkable[T]
trait Builder[T, Set[T]]
trait Growable[T]
trait Clearable
trait Cloneable[Set[T]]
trait Cloneable
trait Iterable[T]
class AbstractSet[T]
trait Set[T]
trait Equals
trait SetOps[T, Set, Set[T]]
trait T => Boolean
class AbstractIterable[T]
trait Iterable[T]
trait IterableOps[T, Set, Set[T]]
trait IterableOnceOps[T, Set, Set[T]]
trait IterableOnce[T]
class Object
trait Matchable
class Any
Show all
Known subtypes

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 parameters

T

Iterable and ObservableList type

Value parameters

filler

Iterable which will fill originalList

originalList

List to be filled

Attributes

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 parameters

T

Element and ObservableList type

Value parameters

element

Element which will replace originalList content.

originalList

List to be filled

Attributes

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 parameters

J

Iterable and ObservableList type

Value parameters

filler

Iterable which will fill originalList

originalList

List to be filled

Attributes

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 parameters

J

Iterable and ObservableList type

Value parameters

element

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

originalList

List to be filled

Attributes