E - The element type of the ObservableMultiset.public abstract class MultisetBinding<E> extends MultisetExpression<E> implements javafx.beans.binding.Binding<ObservableMultiset<E>>
Binding on an ObservableMultiset.
This class provides identical functionality for Multiset 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
Multiset is empty. |
javafx.beans.property.ReadOnlyIntegerProperty |
size
An integer property that represents the size of the
Multiset. |
| Constructor and Description |
|---|
MultisetBinding() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener) |
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
addListener(MultisetChangeListener<? super E> listener)
Adds a
MultisetChangeListener to this ObservableMultiset. |
protected void |
bind(javafx.beans.Observable... dependencies)
Start observing the given dependencies for changes.
|
protected abstract ObservableMultiset<E> |
computeValue()
Computes the current value of this
MultisetBinding. |
void |
dispose() |
javafx.beans.property.ReadOnlyBooleanProperty |
emptyProperty()
A boolean property that reflects whether the
Multiset is empty. |
protected void |
fireValueChangedEvent()
Fires notifications to all attached
InvalidationListeners,
ChangeListeners, and
SetMultimapChangeListeners. |
protected void |
fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
Fires notifications to all attached
InvalidationListeners,
ChangeListeners, and
MultisetChangeListeners. |
ObservableMultiset<E> |
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 ObservableMultiset<E>> listener) |
void |
removeListener(javafx.beans.InvalidationListener listener) |
void |
removeListener(MultisetChangeListener<? super E> listener)
Removes a
MultisetChangeListener from this
ObservableMultiset. |
javafx.beans.property.ReadOnlyIntegerProperty |
sizeProperty()
An integer property that represents the size of the
Multiset. |
protected void |
unbind(javafx.beans.Observable... dependencies)
Stops observing the dependencies for changes.
|
add, add, addAll, asString, clear, contains, containsAll, count, elementSet, entrySet, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, multisetExpression, remove, remove, removeAll, replaceAll, retainAll, setCount, setCount, size, toArray, toArraypublic javafx.beans.property.ReadOnlyBooleanProperty emptyProperty
emptyProperty in class MultisetExpression<E>public javafx.beans.property.ReadOnlyIntegerProperty sizeProperty
sizeProperty in class MultisetExpression<E>public void addListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
addListener in interface javafx.beans.value.ObservableValue<ObservableMultiset<E>>public void addListener(javafx.beans.InvalidationListener listener)
addListener in interface javafx.beans.Observablepublic void addListener(MultisetChangeListener<? super E> listener)
ObservableMultisetMultisetChangeListener to this ObservableMultiset.
If the same listener is registered more than once, it will be notified
more than once.addListener in interface ObservableMultiset<E>listener - The MultisetChangeListener to add.protected void bind(javafx.beans.Observable... dependencies)
dependencies - The dependencies to observe.protected abstract ObservableMultiset<E> computeValue()
MultisetBinding.MultisetBinding.public void dispose()
dispose in interface javafx.beans.binding.Binding<ObservableMultiset<E>>public javafx.beans.property.ReadOnlyBooleanProperty emptyProperty()
MultisetExpressionMultiset is empty.emptyProperty in class MultisetExpression<E>protected void fireValueChangedEvent()
InvalidationListeners,
ChangeListeners, and
SetMultimapChangeListeners.protected void fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
InvalidationListeners,
ChangeListeners, and
MultisetChangeListeners.change - the change that needs to be propagatedpublic ObservableMultiset<E> get()
get in interface javafx.beans.value.ObservableObjectValue<ObservableMultiset<E>>public javafx.collections.ObservableList<?> getDependencies()
getDependencies in interface javafx.beans.binding.Binding<ObservableMultiset<E>>public void invalidate()
invalidate in interface javafx.beans.binding.Binding<ObservableMultiset<E>>protected void invalidated()
public boolean isValid()
isValid in interface javafx.beans.binding.Binding<ObservableMultiset<E>>public void removeListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
removeListener in interface javafx.beans.value.ObservableValue<ObservableMultiset<E>>public void removeListener(javafx.beans.InvalidationListener listener)
removeListener in interface javafx.beans.Observablepublic void removeListener(MultisetChangeListener<? super E> listener)
ObservableMultisetMultisetChangeListener from this
ObservableMultiset. Will do nothing if the listener was not
attached to this ObservableMultiset. If it was added more than
once, then only the first occurrence will be removed.removeListener in interface ObservableMultiset<E>listener - The MultisetChangeListener to remove.public javafx.beans.property.ReadOnlyIntegerProperty sizeProperty()
MultisetExpressionMultiset.sizeProperty in class MultisetExpression<E>protected void unbind(javafx.beans.Observable... dependencies)
dependencies - The dependencies to stop observing.Copyright (c) 2014 itemis AG and others. All rights reserved.