Map
Map
MapPropertyBase is the base class for a property
wrapping an javafx.collections.ObservableMap .
It provides all the functionality required for a property except for the
getBean() and getName() methods, which must be implemented
by extending classes.
javafx.collections.ObservableMap , MapProperty
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private MapPropertyBase | |
| private MapExpressionHelper | |
| private InvalidationListener | |
| private final MapChangeListener | |
| private ObservableValue | |
| private MapPropertyBase | |
| private boolean | |
| private ObservableMap |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MapPropertyBase(ObservableMap<K, V>
the initial value of the wrapped value initialValue)The constructor of the |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(InvalidationListener listener)
Implements javafx. Adds an |
| public void | addListener(ChangeListener<? super ObservableMap<K, V>> listener)
Implements javafx. Adds a |
| public void | addListener(MapChangeListener<? super K, ? super V> listener)
Implements javafx. Add a listener to this observable map. |
| public void | bind(final ObservableValue<? extends ObservableMap<K, V>> newObservable)
Implements javafx. Create a unidirection binding for this |
| public ReadOnlyBooleanProperty | emptyProperty()
Implements abstract javafx. A boolean property that is |
| protected void | fireValueChangedEvent()
Sends notifications to all attached
|
| protected void | fireValueChangedEvent(MapChangeListener.
the change that needs to be propagated changeSends notifications to all attached
|
| public ObservableMap | get()
Implements javafx. Get the wrapped value. |
| protected void | |
| private void | |
| public boolean | isBound()
Implements javafx. Can be used to check, if a |
| private void | |
| public void | removeListener(InvalidationListener listener)
Implements javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the |
| public void | removeListener(ChangeListener<? super ObservableMap<K, V>> listener)
Implements javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the |
| public void | removeListener(MapChangeListener<? super K, ? super V> listener)
Implements javafx. Tries to removed a listener from this observable map. |
| public void | set(ObservableMap<K, V> newValue)
Implements javafx. Set the wrapped value. |
| public ReadOnlyIntegerProperty | sizeProperty()
Implements abstract javafx. An integer property that represents the size of the map. |
| public String | Returns: a string representation of thisMapPropertyBase object.Overrides javafx. Returns a string representation of this |
| public void | unbind()
Implements javafx. Remove the unidirectional binding for this |
| empty0 | back to summary |
|---|---|
| private MapPropertyBase<K, V>. | |
| helper | back to summary |
|---|---|
| private MapExpressionHelper<K, V> helper | |
| listener | back to summary |
|---|---|
| private InvalidationListener listener | |
| mapChangeListener | back to summary |
|---|---|
| private final MapChangeListener<K, V> mapChangeListener | |
| observable | back to summary |
|---|---|
| private ObservableValue<? extends ObservableMap<K, V>> observable | |
| size0 | back to summary |
|---|---|
| private MapPropertyBase<K, V>. | |
| valid | back to summary |
|---|---|
| private boolean valid | |
| value | back to summary |
|---|---|
| private ObservableMap<K, V> value | |
| MapPropertyBase | back to summary |
|---|---|
| public MapPropertyBase() The Constructor of | |
| MapPropertyBase | back to summary |
|---|---|
| public MapPropertyBase(ObservableMap<K, V> initialValue) The constructor of the
| |
| addListener | back to summary |
|---|---|
| public void addListener(InvalidationListener listener) Implements javafx. Doc from javafx. Adds an
Note that the same actual
The
| |
| addListener | back to summary |
|---|---|
| public void addListener(ChangeListener<? super ObservableMap<K, V>> listener) Implements javafx. Doc from javafx. Adds a
Note that the same actual
The
| |
| addListener | back to summary |
|---|---|
| public void addListener(MapChangeListener<? super K, ? super V> listener) Implements javafx. Doc from javafx. Add a listener to this observable map.
| |
| bind | back to summary |
|---|---|
| public void bind(final ObservableValue<? extends ObservableMap<K, V>> newObservable) Implements javafx. Doc from javafx. Create a unidirection binding for this Note that JavaFX has all the bind calls implemented through weak listeners. This means the bound property can be garbage collected and stopped from being updated.
| |
| emptyProperty | back to summary |
|---|---|
| public ReadOnlyBooleanProperty emptyProperty() Implements abstract javafx. Doc from javafx. A boolean property that is
| |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Sends notifications to all attached
| |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent(MapChangeListener. Sends notifications to all attached
| |
| get | back to summary |
|---|---|
| public ObservableMap Implements javafx. Doc from javafx. Get the wrapped value. This must be identical to
the value returned from
This method exists only to align WritableObjectValue API with
| |
| invalidated | back to summary |
|---|---|
| protected void invalidated() The method | |
| invalidateProperties | back to summary |
|---|---|
| private void invalidateProperties() | |
| isBound | back to summary |
|---|---|
| public boolean isBound() Implements javafx. Doc from javafx. Can be used to check, if a
| |
| markInvalid | back to summary |
|---|---|
| private void markInvalid(ObservableMap<K, V> oldValue) | |
| removeListener | back to summary |
|---|---|
| public void removeListener(InvalidationListener listener) Implements javafx. Doc from javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(ChangeListener<? super ObservableMap<K, V>> listener) Implements javafx. Doc from javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(MapChangeListener<? super K, ? super V> listener) Implements javafx. Doc from javafx. Tries to removed a listener from this observable map. If the listener is not attached to this map, nothing happens.
| |
| set | back to summary |
|---|---|
| public void set(ObservableMap<K, V> newValue) Implements javafx. Doc from javafx. Set the wrapped value.
Should be equivalent to
| |
| sizeProperty | back to summary |
|---|---|
| public ReadOnlyIntegerProperty sizeProperty() Implements abstract javafx. Doc from javafx. An integer property that represents the size of the map.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |
| unbind | back to summary |
|---|---|
| public void unbind() Implements javafx. Doc from javafx. Remove the unidirectional binding for this
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | fireValueChangedEvent()
Overrides javafx. Sends notifications to all attached
|
| public boolean | get()
Implements javafx. Returns the current value of this |
| public Object | getBean()
Implements javafx. Returns the |
| public String | getName()
Implements javafx. Returns the name of this property. |
| EmptyProperty | back to summary |
|---|---|
| private EmptyProperty() | |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Overrides javafx. Doc from javafx. Sends notifications to all attached
| |
| get | back to summary |
|---|---|
| public boolean get() Implements javafx. Doc from javafx. Returns the current value of this
| |
| getBean | back to summary |
|---|---|
| public Object getBean() Implements javafx. Doc from javafx. Returns the
| |
| getName | back to summary |
|---|---|
| public String getName() Implements javafx. Doc from javafx. Returns the name of this property. If the property does not have a name,
this method returns an empty
| |
| Modifier and Type | Field and Description |
|---|---|
| private final WeakReference |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | invalidated(Observable observable)
Implements javafx. This method needs to be provided by an implementation of
|
| public boolean | wasGarbageCollected()
Implements javafx. Returns |
| wref | back to summary |
|---|---|
| private final WeakReference<MapPropertyBase<K, V>> wref | |
| Listener | back to summary |
|---|---|
| public Listener(MapPropertyBase<K, V> ref) | |
| invalidated | back to summary |
|---|---|
| public void invalidated(Observable observable) Implements javafx. Doc from javafx. This method needs to be provided by an implementation of
In general, it is considered bad practice to modify the observed value in this method.
| |
| wasGarbageCollected | back to summary |
|---|---|
| public boolean wasGarbageCollected() Implements javafx. Doc from javafx. Returns
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | fireValueChangedEvent()
Overrides javafx. Sends notifications to all attached
|
| public int | get()
Implements javafx. Returns the current value of this |
| public Object | getBean()
Implements javafx. Returns the |
| public String | getName()
Implements javafx. Returns the name of this property. |
| SizeProperty | back to summary |
|---|---|
| private SizeProperty() | |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Overrides javafx. Doc from javafx. Sends notifications to all attached
| |
| get | back to summary |
|---|---|
| public int get() Implements javafx. Doc from javafx. Returns the current value of this
| |
| getBean | back to summary |
|---|---|
| public Object getBean() Implements javafx. Doc from javafx. Returns the
| |
| getName | back to summary |
|---|---|
| public String getName() Implements javafx. Doc from javafx. Returns the name of this property. If the property does not have a name,
this method returns an empty
| |