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>
public class ReadOnlySetMultimapWrapper<K,V> extends SimpleSetMultimapProperty<K,V>
AReadOnlySetMultimapWrapperis a writablePropertywrapping anObservableSetMultimap, which provides an additional read-onlyProperty(based on a concrete, non-exposed implementation ofReadOnlySetMultimapProperty), whose value is synchronized with the value of thisReadOnlyMapWrapper.This class provides identical functionality for
SetMultimapasReadOnlyMapWrapperforMap,ReadOnlySetWrapperforSet, orReadOnlyListWrapperforList.
-
-
Constructor Summary
Constructors Constructor Description ReadOnlySetMultimapWrapper()Constructs a new unnamedReadOnlySetMultimapWrapper.ReadOnlySetMultimapWrapper(java.lang.Object bean, java.lang.String name)Constructs a newReadOnlySetMultimapWrapperfor the given bean and with the given name.ReadOnlySetMultimapWrapper(java.lang.Object bean, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfireValueChangedEvent()Fires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.protected voidfireValueChangedEvent(SetMultimapChangeListener.Change<? extends K,? extends V> change)Fires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.ReadOnlySetMultimapProperty<K,V>getReadOnlyProperty()Returns the read-onlyProperty, whose value is synchronized with thisReadOnlySetMultimapWrapper.-
Methods inherited from class org.eclipse.gef.common.beans.property.SimpleSetMultimapProperty
getBean, getName
-
Methods inherited from class org.eclipse.gef.common.beans.property.SetMultimapPropertyBase
addListener, addListener, addListener, appendValueToString, bind, emptyProperty, get, invalidated, isBound, removeListener, removeListener, removeListener, set, sizeProperty, unbind
-
Methods inherited from class org.eclipse.gef.common.beans.property.SetMultimapProperty
bindBidirectional, setValue, unbindBidirectional
-
Methods inherited from class org.eclipse.gef.common.beans.property.ReadOnlySetMultimapProperty
bindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectional
-
Methods 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, valuesAt
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.common.collect.Multimap
clear, containsEntry, containsKey, containsValue, forEach, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size, values
-
Methods inherited from interface org.eclipse.gef.common.collections.ObservableSetMultimap
replaceAll
-
Methods inherited from interface com.google.common.collect.SetMultimap
asMap, entries, equals, get, removeAll, replaceValues
-
-
-
-
Constructor Detail
-
ReadOnlySetMultimapWrapper
public ReadOnlySetMultimapWrapper()
Constructs a new unnamedReadOnlySetMultimapWrapper.
-
ReadOnlySetMultimapWrapper
public ReadOnlySetMultimapWrapper(java.lang.Object bean, java.lang.String name)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(java.lang.Object bean, java.lang.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
public ReadOnlySetMultimapWrapper(ObservableSetMultimap<K,V> initialValue)
Constructs a new unnamedReadOnlySetMultimapWrapperwith the given initial value.- Parameters:
initialValue- The initial value for the to be createdReadOnlySetMultimapWrapper.
-
-
Method Detail
-
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
public ReadOnlySetMultimapProperty<K,V> getReadOnlyProperty()
Returns the read-onlyProperty, whose value is synchronized with thisReadOnlySetMultimapWrapper.- Returns:
- The
ReadOnlySetMultimapPropertythat is synchronized with thisReadOnlySetMultimapWrapper.
-
-