E
- The element type of the ObservableMultiset
.public abstract class ReadOnlyMultisetPropertyBase<E> extends ReadOnlyMultisetProperty<E>
Property
wrapping an
ObservableMultiset
.
This class provides identical functionality for Multiset
as
ReadOnlyMapPropertyBase
for Map
,
ReadOnlySetPropertyBase
for Set
, or
ReadOnlyListPropertyBase
for List
.
empty, size
Constructor and Description |
---|
ReadOnlyMultisetPropertyBase() |
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 |
fireValueChangedEvent()
Fires notifications to all attached
InvalidationListeners ,
ChangeListeners , and
MultisetChangeListeners . |
protected void |
fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
Fires notifications to all attached
InvalidationListeners ,
ChangeListeners , and
MultisetChangeListeners . |
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 . |
appendValueToString, bindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectional
add, add, addAll, asString, clear, contains, containsAll, count, elementSet, emptyProperty, entrySet, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, multisetExpression, remove, remove, removeAll, replaceAll, retainAll, setCount, setCount, size, sizeProperty, toArray, toArray
public void addListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
public void removeListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
public void addListener(javafx.beans.InvalidationListener listener)
public void removeListener(javafx.beans.InvalidationListener listener)
public void addListener(MultisetChangeListener<? super E> listener)
ObservableMultiset
MultisetChangeListener
to this ObservableMultiset
.
If the same listener is registered more than once, it will be notified
more than once.listener
- The MultisetChangeListener
to add.public void removeListener(MultisetChangeListener<? super E> listener)
ObservableMultiset
MultisetChangeListener
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.listener
- The MultisetChangeListener
to remove.protected void fireValueChangedEvent()
InvalidationListeners
,
ChangeListeners
, and
MultisetChangeListeners
.protected void fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
InvalidationListeners
,
ChangeListeners
, and
MultisetChangeListeners
.change
- the change that needs to be propagatedCopyright (c) 2014 itemis AG and others. All rights reserved.