MapProperty

class MapProperty[K, V](val delegate: MapProperty[K, V]) extends ReadOnlyMapProperty[K, V] with Property[ObservableMap[K, V], ObservableMap[K, V]] with SFXDelegate[MapProperty[K, V]]

Wraps a JavaFX MapProperty.

Wraps a JavaFX MapProperty.

Companion
object
trait Property[ObservableMap[K, V], ObservableMap[K, V]]
trait ReadOnlyProperty[ObservableMap[K, V], ObservableMap[K, V]]
trait ObservableValue[ObservableMap[K, V], ObservableMap[K, V]]
trait SFXDelegate[MapProperty[K, V]]
class MapExpression[K, V]
class Object
trait Matchable
class Any
class ReadOnlyMapWrapper[K, V]

Value members

Constructors

def this(value: ObservableMap[K, V])

The constructor of MapProperty

The constructor of MapProperty

Value Params
value

the initial value of the wrapped value

def this(bean: Any, name: String)

The constructor of MapProperty

The constructor of MapProperty

Value Params
bean

the bean of this MapProperty

name

the name of this MapProperty

def this(bean: Any, name: String, value: ObservableMap[K, V])

The constructor of MapProperty

The constructor of MapProperty

Value Params
bean

the bean of this MapProperty

name

the name of this MapProperty

value

the initial value of the wrapped value

Concrete methods

override def value_=(v: ObservableMap[K, V]): Unit

Set the wrapped value.

Set the wrapped value.

Value Params
v

The new value

Definition Classes

Inherited methods

def ++=(m: Map[K, V]): Unit
Inherited from
MapExpression
def +=(kv: (K, V)): V
Inherited from
MapExpression
def -=(key: Any): V
Inherited from
MapExpression
def ->(endVal: ObservableMap[K, V]): Tweenable[ObservableMap[K, V], ObservableMap[K, V]]

Returns a new scalafx.animation.Tweenable from a End Value.

Returns a new scalafx.animation.Tweenable from a End Value.

Value Params
endVal

End Value

Returns

a new Tweenable with this Property and end value passed.

Inherited from
Property
def <==(v: ObservableValue[_ <: ObservableMap[K, V], _ <: ObservableMap[K, V]]): Unit

Create a unidirectional binding for this Property.

Create a unidirectional binding for this Property.

Value Params
v

ScalaFX ObservableValue this Property should be bound to.

Inherited from
Property
def <==(v: ObservableValue[_ <: ObservableMap[K, V]]): Unit

Create a unidirectional binding for this Property.

Create a unidirectional binding for this Property.

Value Params
v

JavaFX ObservableValue this Property should be bound to.

Inherited from
Property
def <==>(v: Property[ObservableMap[K, V]]): Unit

Create a bidirectional binding between this Property and another JavaFX Property.

Create a bidirectional binding between this Property and another JavaFX Property.

Value Params
v

the other JavaFX Property

Inherited from
Property
def <==>(v: Property[ObservableMap[K, V], ObservableMap[K, V]]): Unit

Create a bidirectional binding between this Property and another ScalaFX Property.

Create a bidirectional binding between this Property and another ScalaFX Property.

Value Params
v

the other ScalaFX Property

Inherited from
Property
def apply(): ObservableMap[K, V]

Returns ObservableValue

Returns ObservableValue

Returns

ObservableValue

Inherited from
ObservableValue
def bean: AnyRef

Returns the Object that contains this property.

Returns the Object that contains this property.

Inherited from
ReadOnlyProperty
def bindContent(map: ObservableMap[K, V]): Unit

Creates a content binding between the ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another ObservableMap.

Creates a content binding between the ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another ObservableMap.

A content binding ensures that the content of the wrapped ObservableMaps is the same as that of the other map. If the content of the other map changes, the wrapped map will be updated automatically. Once the wrapped map is bound to another map, you must not change it directly.

Value Params
map

the ObservableMap this property should be bound to

Inherited from
ReadOnlyMapProperty

Creates a bidirectional content binding of the ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another ObservableMap.

Creates a bidirectional content binding of the ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another ObservableMap.

A bidirectional content binding ensures that the content of two ObservableMaps is the same. If the content of one of the maps changes, the other one will be updated automatically.

Value Params
map

the ObservableMap this property should be bound to

Inherited from
ReadOnlyMapProperty

A boolean property that is true, if the the map is empty.

A boolean property that is true, if the the map is empty.

Inherited from
MapExpression
override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate
def get(key: K): Option[V]

Optionally returns the value associated with a key.

Optionally returns the value associated with a key.

Value Params
key

the key value

Returns

an option value containing the value associated with key in this $MAP, or None if none exists.

Inherited from
MapExpression
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate

Creates a new BooleanBinding that holds true if this map is equal to another ObservableMap.

Creates a new BooleanBinding that holds true if this map is equal to another ObservableMap.

Value Params
other

the other ObservableMap

Returns

the new BooleanBinding

Inherited from
MapExpression

Creates a new BooleanBinding that holds true if this map is not equal to another ObservableMap.

Creates a new BooleanBinding that holds true if this map is not equal to another ObservableMap.

Value Params
other

the other ObservableMap

Returns

the new BooleanBinding

Inherited from
MapExpression
def name: String

Returns the name of this property.

Returns the name of this property.

Inherited from
ReadOnlyProperty
def onChange[J1 >: ObservableMap[K, V]](op: => Unit): Subscription

Adds a function as a `ChangeListener`. This function has no arguments because it will not handle values changed.

Adds a function as a `ChangeListener`. This function has no arguments because it will not handle values changed.

Value Params
op

A Function with no arguments. It will be called when value changes.

Returns

A new scalafx.event.subscriptions.Subscription to remove ObservableValue.

Inherited from
ObservableValue
def onChange[J1 >: ObservableMap[K, V]](op: (ObservableValue[ObservableMap[K, V], ObservableMap[K, V]], J1, J1) => Unit): Subscription

Adds a function as a `ChangeListener`. This function has all arguments from T, T) `changed` method from ChangeListener.

Adds a function as a `ChangeListener`. This function has all arguments from T, T) `changed` method from ChangeListener.

Type Params
J1

J superclass.

Value Params
op

Function that receives a `ObservableValue`, the old value and the new value. It will be called when value changes.

Returns

A new scalafx.event.subscriptions.Subscription to remove ObservableValue.

Inherited from
ObservableValue
def onInvalidate(op: => Unit): Subscription

Adds a no argument function as a JavaFX `InvalidationListener`. This function has no arguments because it will not handle invalidated values.

Adds a no argument function as a JavaFX `InvalidationListener`. This function has no arguments because it will not handle invalidated values.

Value Params
op

A Function with no arguments. It will be called when value was invalidated.

Returns

A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

Inherited from
Observable

Adds a function as a JavaFX `InvalidationListener`. This function has all arguments from `invalidated` method from InvalidationListener.

Adds a function as a JavaFX `InvalidationListener`. This function has all arguments from `invalidated` method from InvalidationListener.

Value Params
op

Function that receives a ScalaFX Observable. It will be called when value was invalidated.

Returns

A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

Inherited from
Observable

An integer property that represents the size of the map.

An integer property that represents the size of the map.

Inherited from
MapExpression
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate
def unbind(v: Property[ObservableMap[K, V]]): Unit

Remove a bidirectional binding between this Property and another JavaFX one. If no bidirectional binding between the properties exists, calling this method has no effect.

Remove a bidirectional binding between this Property and another JavaFX one. If no bidirectional binding between the properties exists, calling this method has no effect.

Value Params
v
  • the other Property
Inherited from
Property
def unbind(v: Property[ObservableMap[K, V], ObservableMap[K, V]]): Unit

Remove a bidirectional binding between this Property and another ScalaFX one. If no bidirectional binding between the properties exists, calling this method has no effect.

Remove a bidirectional binding between this Property and another ScalaFX one. If no bidirectional binding between the properties exists, calling this method has no effect.

Value Params
v
  • the other Property
Inherited from
Property
def unbind(): Unit

Remove the unidirectional binding for this Property. If the Property is not bound, calling this method has no effect.

Remove the unidirectional binding for this Property. If the Property is not bound, calling this method has no effect.

Inherited from
Property
def unbindContent[T <: Object](sfx: SFXDelegate[T]): Unit

Deletes a content binding between the ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another Object.

Deletes a content binding between the ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another Object.

This is a helper method that calls the JavaFX counterpart with a delegate rather than the original object.

Value Params
sfx

the SFXDelegate object to which the binding should be removed

Inherited from
ReadOnlyMapProperty
def unbindContentBidirectional[T <: Object](sfx: SFXDelegate[T]): Unit

Deletes a bidirectional content binding between the ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another Object.

Deletes a bidirectional content binding between the ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another Object.

This is a helper method that calls the JavaFX counterpart with a delegate rather than the original object.

Value Params
sfx

the SFXDelegate object to which the binding should be removed

Inherited from
ReadOnlyMapProperty
def update(v: ObservableMap[K, V]): Unit

Set the wrapped value.

Set the wrapped value.

Value Params
v

The new value

Inherited from
Property
override def value: ObservableMap[K, V]
Definition Classes
Inherited from
ReadOnlyMapProperty
def values(): Iterable[V]
Inherited from
MapExpression

Concrete fields

override val delegate: MapProperty[K, V]