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>
,javafx.beans.Observable
,javafx.beans.property.ReadOnlyProperty<ObservableSetMultimap<K,V>>
,javafx.beans.value.ObservableObjectValue<ObservableSetMultimap<K,V>>
,javafx.beans.value.ObservableValue<ObservableSetMultimap<K,V>>
,ObservableSetMultimapValue<K,V>
,ObservableSetMultimap<K,V>
public abstract class ReadOnlySetMultimapPropertyBase<K,V> extends ReadOnlySetMultimapProperty<K,V>
Abstract base class for implementing a read-onlyProperty
wrapping anObservableSetMultimap
.This class provides identical functionality for
SetMultimap
asReadOnlyMapPropertyBase
forMap
,ReadOnlySetPropertyBase
forSet
, orReadOnlyListPropertyBase
forList
.
-
-
Constructor Summary
Constructors Constructor Description ReadOnlySetMultimapPropertyBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(javafx.beans.InvalidationListener listener)
void
addListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener)
void
addListener(SetMultimapChangeListener<? super K,? super V> listener)
Adds aSetMultimapChangeListener
to thisObservableSetMultimap
.protected void
fireValueChangedEvent()
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(javafx.beans.InvalidationListener listener)
void
removeListener(javafx.beans.value.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
-
-
-
-
Method Detail
-
addListener
public void addListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener)
-
removeListener
public void removeListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener)
-
addListener
public void addListener(javafx.beans.InvalidationListener listener)
-
removeListener
public void removeListener(javafx.beans.InvalidationListener listener)
-
addListener
public void addListener(SetMultimapChangeListener<? super K,? super V> listener)
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
public void removeListener(SetMultimapChangeListener<? super K,? super V> listener)
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
-
-