ObservableHashMap
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`.
Value members
Inherited methods
Adds a new key/value pair to this Map
.
Adds a new key/value pair to this Map
.
- Value Params
- kv
the key/value pair.
- Returns
The
ObservableMap
itself- Definition Classes
- ObservableMap -> Growable
- Inherited from
- ObservableMap
- Inherited from
- MapOps
Removes all elements from the Map
. After this operation has completed, the Map
will be empty.
Removes all elements from the Map
. After this operation has completed, the Map
will be empty.
- Definition Classes
- Inherited from
- ObservableMap
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Inherited from
- IterableOnceOps
- Inherited from
- IterableOnceOps
- Inherited from
- MapOps
The empty map of the same type as this Map
.
The empty map of the same type as this Map
.
- Returns
An empty
ObservableMap
- Definition Classes
- Inherited from
- ObservableMap
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
- SFXDelegate -> Any
- Inherited from
- SFXDelegate
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
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.- Definition Classes
- ObservableMap -> MapOps
- Inherited from
- ObservableMap
Creates a new `Iterator` over all
key/value pairs of this ObservableMap
.
Creates a new `Iterator` over all
key/value pairs of this ObservableMap
.
- Returns
The new
iterator
.- Inherited from
- ObservableMap
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Inherited from
- IterableOnceOps
Add a listener function to Map
's changes. This function '''will not handle''' this Map
's modifications data.
Add a listener function to Map
's changes. This function '''will not handle''' this Map
's modifications data.
- Value Params
- op
No-argument function to be activated when some change in this
ObservableMap
was made.
- Inherited from
- ObservableMap
Add a listener function to Map
's changes. This function '''will handle''' this map's modifications data.
Add a listener function to Map
's changes. This function '''will handle''' this map's modifications data.
- Value Params
- op
Function that will handle this
ObservableMap
's modifications data to be activated when some change was made.
- Inherited from
- ObservableMap
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
The result when this Map
is used as a builder.
The result when this Map
is used as a builder.
- Definition Classes
- Inherited from
- ObservableMap
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
This Map
's size.
This Map
's size.
- Returns
This
Map
's size.- Definition Classes
- ObservableMap -> IterableOnceOps
- Inherited from
- ObservableMap
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
Removes a key from this Map
.
Removes a key from this Map
.
- Value Params
- key
the key to be removed
- Returns
The
ObservableMap
itself.- Definition Classes
- ObservableMap -> Shrinkable
- Inherited from
- ObservableMap
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Returns
Returns the original delegate's
toString()
adding a[SFX]
prefix.- Definition Classes
- SFXDelegate -> Any
- Inherited from
- SFXDelegate
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- MapFactoryDefaults -> IterableOps
- Inherited from
- MapFactoryDefaults
Deprecated and Inherited methods
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- Growable
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- Shrinkable
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- MapOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- Iterable
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- MapOps