K
- The key type of the ObservableSetMultimap
.V
- The value type of the ObservableSetMultimap
.public abstract class SetMultimapBinding<K,V> extends SetMultimapExpression<K,V> implements javafx.beans.binding.Binding<ObservableSetMultimap<K,V>>
Binding
on an ObservableSetMultimap
.
This class provides identical functionality for SetMultimap
as
MapBinding
for Map
, SetBinding
for Set
, or
ListBinding
for List
.
Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
empty
A boolean property that reflects whether the
SetMultimap is
empty. |
javafx.beans.property.ReadOnlyIntegerProperty |
size
An integer property that represents the size of the
SetMultimap . |
Constructor and Description |
---|
SetMultimapBinding() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener) |
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
addListener(SetMultimapChangeListener<? super K,? super V> listener)
Adds a
SetMultimapChangeListener to this
ObservableSetMultimap . |
protected void |
bind(javafx.beans.Observable... dependencies)
Start observing the given dependencies for changes.
|
protected abstract ObservableSetMultimap<K,V> |
computeValue()
Computes the current value of this
SetMultimapBinding . |
void |
dispose() |
javafx.beans.property.ReadOnlyBooleanProperty |
emptyProperty()
A boolean property that reflects whether the
SetMultimap is
empty. |
protected void |
fireValueChangedEvent()
Fires notifications to all attached
InvalidationListeners ,
ChangeListeners , and
SetMultimapChangeListeners . |
protected void |
fireValueChangedEvent(SetMultimapChangeListener.Change<? extends K,? extends V> change)
Fires notifications to all attached
InvalidationListeners ,
ChangeListeners , and
SetMultimapChangeListeners . |
ObservableSetMultimap<K,V> |
get() |
javafx.collections.ObservableList<?> |
getDependencies() |
void |
invalidate() |
protected void |
invalidated()
Can be overwritten by subclasses to receive invalidation notifications.
|
boolean |
isValid() |
void |
removeListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener) |
void |
removeListener(javafx.beans.InvalidationListener listener) |
void |
removeListener(SetMultimapChangeListener<? super K,? super V> listener)
Removes a
SetMultimapChangeListener from this
ObservableSetMultimap . |
javafx.beans.property.ReadOnlyIntegerProperty |
sizeProperty()
An integer property that represents the size of the
SetMultimap . |
protected void |
unbind(javafx.beans.Observable... dependencies)
Stops observing the dependencies for changes.
|
asMap, asString, clear, containsEntry, containsKey, containsValue, entries, get, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, keys, keySet, put, putAll, putAll, remove, removeAll, replaceAll, replaceValues, setMultimapExpression, size, values, valuesAt, valuesAt
public javafx.beans.property.ReadOnlyBooleanProperty emptyProperty
emptyProperty
in class SetMultimapExpression<K,V>
public javafx.beans.property.ReadOnlyIntegerProperty sizeProperty
sizeProperty
in class SetMultimapExpression<K,V>
public void addListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener)
addListener
in interface javafx.beans.value.ObservableValue<ObservableSetMultimap<K,V>>
public void addListener(javafx.beans.InvalidationListener listener)
addListener
in interface javafx.beans.Observable
public void addListener(SetMultimapChangeListener<? super K,? super V> listener)
ObservableSetMultimap
SetMultimapChangeListener
to this
ObservableSetMultimap
. If the same listener is registered more
than once, it will be notified more than once.addListener
in interface ObservableSetMultimap<K,V>
listener
- The SetMultimapChangeListener
to add.protected void bind(javafx.beans.Observable... dependencies)
dependencies
- The dependencies to observe.protected abstract ObservableSetMultimap<K,V> computeValue()
SetMultimapBinding
.SetMultimapBinding
.public void dispose()
dispose
in interface javafx.beans.binding.Binding<ObservableSetMultimap<K,V>>
public javafx.beans.property.ReadOnlyBooleanProperty emptyProperty()
SetMultimapExpression
SetMultimap
is
empty.emptyProperty
in class SetMultimapExpression<K,V>
protected void fireValueChangedEvent()
InvalidationListeners
,
ChangeListeners
, and
SetMultimapChangeListeners
.protected void fireValueChangedEvent(SetMultimapChangeListener.Change<? extends K,? extends V> change)
InvalidationListeners
,
ChangeListeners
, and
SetMultimapChangeListeners
.change
- the change that needs to be propagatedpublic ObservableSetMultimap<K,V> get()
get
in interface javafx.beans.value.ObservableObjectValue<ObservableSetMultimap<K,V>>
public javafx.collections.ObservableList<?> getDependencies()
getDependencies
in interface javafx.beans.binding.Binding<ObservableSetMultimap<K,V>>
public void invalidate()
invalidate
in interface javafx.beans.binding.Binding<ObservableSetMultimap<K,V>>
protected void invalidated()
public boolean isValid()
isValid
in interface javafx.beans.binding.Binding<ObservableSetMultimap<K,V>>
public void removeListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener)
removeListener
in interface javafx.beans.value.ObservableValue<ObservableSetMultimap<K,V>>
public void removeListener(javafx.beans.InvalidationListener listener)
removeListener
in interface javafx.beans.Observable
public void removeListener(SetMultimapChangeListener<? super K,? super V> listener)
ObservableSetMultimap
SetMultimapChangeListener
from this
ObservableSetMultimap
. Will do nothing if the listener was not
attached to this ObservableSetMultimap
. If it was added more than
once, then only the first occurrence will be removed.removeListener
in interface ObservableSetMultimap<K,V>
listener
- The SetMultimapChangeListener
to remove.public javafx.beans.property.ReadOnlyIntegerProperty sizeProperty()
SetMultimapExpression
SetMultimap
.sizeProperty
in class SetMultimapExpression<K,V>
protected void unbind(javafx.beans.Observable... dependencies)
dependencies
- The dependencies to stop observing.Copyright (c) 2014 itemis AG and others. All rights reserved.