Class ReadOnlySetMultimapWrapper<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.SetMultimapProperty<K,V>
org.eclipse.gef.common.beans.property.SetMultimapPropertyBase<K,V>
org.eclipse.gef.common.beans.property.SimpleSetMultimapProperty<K,V>
org.eclipse.gef.common.beans.property.ReadOnlySetMultimapWrapper<K,V>
- Type Parameters:
K- The key type of the wrappedObservableSetMultimap.V- The value type of the wrappedObservableSetMultimap.
- All Implemented Interfaces:
Multimap<K,,V> SetMultimap<K,,V> javafx.beans.Observable,javafx.beans.property.Property<ObservableSetMultimap<K,,V>> javafx.beans.property.ReadOnlyProperty<ObservableSetMultimap<K,,V>> javafx.beans.value.ObservableObjectValue<ObservableSetMultimap<K,,V>> javafx.beans.value.ObservableValue<ObservableSetMultimap<K,,V>> javafx.beans.value.WritableObjectValue<ObservableSetMultimap<K,,V>> javafx.beans.value.WritableValue<ObservableSetMultimap<K,,V>> ObservableSetMultimapValue<K,,V> WritableSetMultimapValue<K,,V> ObservableSetMultimap<K,V>
A
ReadOnlySetMultimapWrapper is a writable Property wrapping
an ObservableSetMultimap, which provides an additional read-only
Property (based on a concrete, non-exposed implementation of
ReadOnlySetMultimapProperty), whose value is synchronized with the
value of this ReadOnlyMapWrapper.
This class provides identical functionality for SetMultimap as
ReadOnlyMapWrapper for Map, ReadOnlySetWrapper for
Set, or ReadOnlyListWrapper for List.
-
Property Summary
Properties inherited from class org.eclipse.gef.common.beans.property.SetMultimapPropertyBase
empty, size -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new unnamedReadOnlySetMultimapWrapper.ReadOnlySetMultimapWrapper(Object bean, String name) Constructs a newReadOnlySetMultimapWrapperfor the given bean and with the given name.ReadOnlySetMultimapWrapper(Object bean, String name, ObservableSetMultimap<K, V> initialValue) Constructs a newReadOnlySetMultimapWrapperfor the given bean and with the given name and initial value.ReadOnlySetMultimapWrapper(ObservableSetMultimap<K, V> initialValue) Constructs a new unnamedReadOnlySetMultimapWrapperwith the given initial value. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidFires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.protected voidfireValueChangedEvent(SetMultimapChangeListener.Change<? extends K, ? extends V> change) Fires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.Returns the read-onlyProperty, whose value is synchronized with thisReadOnlySetMultimapWrapper.Methods inherited from class org.eclipse.gef.common.beans.property.SimpleSetMultimapProperty
getBean, getNameMethods inherited from class org.eclipse.gef.common.beans.property.SetMultimapPropertyBase
addListener, addListener, addListener, appendValueToString, bind, emptyProperty, get, invalidated, isBound, removeListener, removeListener, removeListener, set, sizeProperty, unbindMethods inherited from class org.eclipse.gef.common.beans.property.SetMultimapProperty
bindBidirectional, setValue, unbindBidirectionalMethods inherited from class org.eclipse.gef.common.beans.property.ReadOnlySetMultimapProperty
bindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectionalMethods inherited from class org.eclipse.gef.common.beans.binding.SetMultimapExpression
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, valuesAtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.common.collect.Multimap
clear, containsEntry, containsKey, containsValue, forEach, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size, valuesMethods inherited from interface org.eclipse.gef.common.collections.ObservableSetMultimap
replaceAllMethods inherited from interface javafx.beans.value.ObservableValue
getValueMethods inherited from interface com.google.common.collect.SetMultimap
asMap, entries, equals, get, removeAll, replaceValuesMethods inherited from interface javafx.beans.value.WritableValue
getValue
-
Constructor Details
-
ReadOnlySetMultimapWrapper
public ReadOnlySetMultimapWrapper()Constructs a new unnamedReadOnlySetMultimapWrapper. -
ReadOnlySetMultimapWrapper
Constructs a newReadOnlySetMultimapWrapperfor the given bean and with the given name.- Parameters:
bean- The bean the to be createdReadOnlySetMultimapWrapperis to be related to.name- The name of the to be createdReadOnlySetMultimapWrapper
-
ReadOnlySetMultimapWrapper
public ReadOnlySetMultimapWrapper(Object bean, String name, ObservableSetMultimap<K, V> initialValue) Constructs a newReadOnlySetMultimapWrapperfor the given bean and with the given name and initial value.- Parameters:
bean- The bean the to be createdReadOnlySetMultimapWrapperis to be related to.name- The name of the to be createdReadOnlySetMultimapWrapperinitialValue- The initial value for the to be createdReadOnlySetMultimapWrapper.
-
ReadOnlySetMultimapWrapper
Constructs a new unnamedReadOnlySetMultimapWrapperwith the given initial value.- Parameters:
initialValue- The initial value for the to be createdReadOnlySetMultimapWrapper.
-
-
Method Details
-
fireValueChangedEvent
protected void fireValueChangedEvent()Description copied from class:SetMultimapPropertyBaseFires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.- Overrides:
fireValueChangedEventin classSetMultimapPropertyBase<K,V>
-
fireValueChangedEvent
protected void fireValueChangedEvent(SetMultimapChangeListener.Change<? extends K, ? extends V> change) Description copied from class:SetMultimapPropertyBaseFires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.- Overrides:
fireValueChangedEventin classSetMultimapPropertyBase<K,V> - Parameters:
change- the change that needs to be propagated
-
getReadOnlyProperty
Returns the read-onlyProperty, whose value is synchronized with thisReadOnlySetMultimapWrapper.- Returns:
- The
ReadOnlySetMultimapPropertythat is synchronized with thisReadOnlySetMultimapWrapper.
-