Class ReadOnlySetMultimapPropertyBase<K,V>
java.lang.Object
org.eclipse.gef.common.beans.binding.SetMultimapExpression<K,V>
org.eclipse.gef.common.beans.property.ReadOnlySetMultimapProperty<K,V>
org.eclipse.gef.common.beans.property.ReadOnlySetMultimapPropertyBase<K,V>
- Type Parameters:
K
- The key type of theObservableSetMultimap
.V
- The value type of theObservableSetMultimap
.
- All Implemented Interfaces:
Multimap<K,
,V> SetMultimap<K,
,V> Observable
,ReadOnlyProperty<ObservableSetMultimap<K,
,V>> ObservableObjectValue<ObservableSetMultimap<K,
,V>> ObservableValue<ObservableSetMultimap<K,
,V>> ObservableSetMultimapValue<K,
,V> ObservableSetMultimap<K,
V>
Abstract base class for implementing a read-only
Property
wrapping an
ObservableSetMultimap
.
This class provides identical functionality for SetMultimap
as
ReadOnlyMapPropertyBase
for Map
,
ReadOnlySetPropertyBase
for Set
, or
ReadOnlyListPropertyBase
for List
.
-
Property Summary
Properties inherited from class org.eclipse.gef.common.beans.binding.SetMultimapExpression
empty, size
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(InvalidationListener listener) void
addListener
(ChangeListener<? super ObservableSetMultimap<K, V>> listener) void
addListener
(SetMultimapChangeListener<? super K, ? super V> listener) Adds aSetMultimapChangeListener
to thisObservableSetMultimap
.protected void
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andSetMultimapChangeListeners
.protected void
fireValueChangedEvent
(SetMultimapChangeListener.Change<? extends K, ? extends V> change) Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andSetMultimapChangeListeners
.void
removeListener
(InvalidationListener listener) void
removeListener
(ChangeListener<? super ObservableSetMultimap<K, V>> listener) void
removeListener
(SetMultimapChangeListener<? super K, ? super V> listener) Removes aSetMultimapChangeListener
from thisObservableSetMultimap
.Methods inherited from class org.eclipse.gef.common.beans.property.ReadOnlySetMultimapProperty
appendValueToString, bindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectional
Methods inherited from class org.eclipse.gef.common.beans.binding.SetMultimapExpression
asMap, asString, clear, containsEntry, containsKey, containsValue, emptyProperty, entries, get, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, keys, keySet, put, putAll, putAll, remove, removeAll, replaceAll, replaceValues, setMultimapExpression, size, sizeProperty, values, valuesAt, valuesAt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface javafx.beans.value.ObservableObjectValue
get
Methods inherited from interface javafx.beans.value.ObservableValue
getValue
Methods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Constructor Details
-
ReadOnlySetMultimapPropertyBase
public ReadOnlySetMultimapPropertyBase()
-
-
Method Details
-
addListener
-
removeListener
-
addListener
-
removeListener
-
addListener
Description copied from interface:ObservableSetMultimap
Adds aSetMultimapChangeListener
to thisObservableSetMultimap
. If the same listener is registered more than once, it will be notified more than once.- Parameters:
listener
- TheSetMultimapChangeListener
to add.
-
removeListener
Description copied from interface:ObservableSetMultimap
Removes aSetMultimapChangeListener
from thisObservableSetMultimap
. Will do nothing if the listener was not attached to thisObservableSetMultimap
. If it was added more than once, then only the first occurrence will be removed.- Parameters:
listener
- TheSetMultimapChangeListener
to remove.
-
fireValueChangedEvent
protected void fireValueChangedEvent()Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andSetMultimapChangeListeners
. -
fireValueChangedEvent
protected void fireValueChangedEvent(SetMultimapChangeListener.Change<? extends K, ? extends V> change) Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andSetMultimapChangeListeners
.- Parameters:
change
- the change that needs to be propagated
-