Class SetMultimapBinding<K,V> 
java.lang.Object
org.eclipse.gef.common.beans.binding.SetMultimapExpression<K,V>
 
org.eclipse.gef.common.beans.binding.SetMultimapBinding<K,V> 
- Type Parameters:
- K- The key type of the- ObservableSetMultimap.
- V- The value type of the- ObservableSetMultimap.
- All Implemented Interfaces:
- Multimap<K,,- V> - SetMultimap<K,,- V> - javafx.beans.binding.Binding<ObservableSetMultimap<K,,- V>> - javafx.beans.Observable,- javafx.beans.value.ObservableObjectValue<ObservableSetMultimap<K,,- V>> - javafx.beans.value.ObservableValue<ObservableSetMultimap<K,,- V>> - ObservableSetMultimapValue<K,,- V> - ObservableSetMultimap<K,- V> 
public abstract class SetMultimapBinding<K,V> 
extends SetMultimapExpression<K,V>
implements javafx.beans.binding.Binding<ObservableSetMultimap<K,V>>  
An abstract base class that provides functionality needed to realize a
 
Binding on an ObservableSetMultimap.
 
 This class provides identical functionality for SetMultimap as
 MapBinding for Map, SetBinding for Set, or
 ListBinding for List.
- 
Property SummaryPropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyBooleanPropertyA boolean property that reflects whether theSetMultimapis empty.javafx.beans.property.ReadOnlyIntegerPropertyAn integer property that represents the size of theSetMultimap.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddListener(javafx.beans.InvalidationListener listener) voidaddListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) voidaddListener(SetMultimapChangeListener<? super K, ? super V> listener) Adds aSetMultimapChangeListenerto thisObservableSetMultimap.protected voidbind(javafx.beans.Observable... dependencies) Start observing the given dependencies for changes.protected abstract ObservableSetMultimap<K,V> Computes the current value of thisSetMultimapBinding.voiddispose()javafx.beans.property.ReadOnlyBooleanPropertyA boolean property that reflects whether theSetMultimapis empty.protected voidFires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.protected voidfireValueChangedEvent(SetMultimapChangeListener.Change<? extends K, ? extends V> change) Fires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.get()javafx.collections.ObservableList<?>voidprotected voidCan be overwritten by subclasses to receive invalidation notifications.booleanisValid()voidremoveListener(javafx.beans.InvalidationListener listener) voidremoveListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) voidremoveListener(SetMultimapChangeListener<? super K, ? super V> listener) Removes aSetMultimapChangeListenerfrom thisObservableSetMultimap.javafx.beans.property.ReadOnlyIntegerPropertyAn integer property that represents the size of theSetMultimap.protected voidunbind(javafx.beans.Observable... dependencies) Stops observing the dependencies for changes.Methods inherited from class org.eclipse.gef.common.beans.binding.SetMultimapExpressionasMap, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javafx.beans.value.ObservableValuegetValueMethods inherited from interface com.google.common.collect.SetMultimapequals
- 
Property Details- 
emptypublic javafx.beans.property.ReadOnlyBooleanProperty emptyProperty- Specified by:
- emptyPropertyin class- SetMultimapExpression<K,- V> 
- Returns:
- A read-only property.
 
- 
sizepublic javafx.beans.property.ReadOnlyIntegerProperty sizeProperty- Specified by:
- sizePropertyin class- SetMultimapExpression<K,- V> 
- Returns:
- A read-only property.
 
 
- 
- 
Constructor Details- 
SetMultimapBindingpublic SetMultimapBinding()
 
- 
- 
Method Details- 
addListenerpublic void addListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) - Specified by:
- addListenerin interface- javafx.beans.value.ObservableValue<K>
 
- 
addListenerpublic void addListener(javafx.beans.InvalidationListener listener) - Specified by:
- addListenerin interface- javafx.beans.Observable
 
- 
addListenerDescription copied from interface:ObservableSetMultimapAdds aSetMultimapChangeListenerto thisObservableSetMultimap. If the same listener is registered more than once, it will be notified more than once.- Specified by:
- addListenerin interface- ObservableSetMultimap<K,- V> 
- Parameters:
- listener- The- SetMultimapChangeListenerto add.
 
- 
bindprotected void bind(javafx.beans.Observable... dependencies) Start observing the given dependencies for changes. If the value of one of the dependencies changes, the binding is marked as invalid.- Parameters:
- dependencies- The dependencies to observe.
 
- 
computeValueComputes the current value of thisSetMultimapBinding.- Returns:
- The current value of this SetMultimapBinding.
 
- 
disposepublic void dispose()- Specified by:
- disposein interface- javafx.beans.binding.Binding<K>
 
- 
emptyPropertypublic javafx.beans.property.ReadOnlyBooleanProperty emptyProperty()Description copied from class:SetMultimapExpressionA boolean property that reflects whether theSetMultimapis empty.- Specified by:
- emptyPropertyin class- SetMultimapExpression<K,- V> 
- Returns:
- A read-only property.
 
- 
fireValueChangedEventprotected void fireValueChangedEvent()Fires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.
- 
fireValueChangedEventprotected 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
 
- 
get- Specified by:
- getin interface- javafx.beans.value.ObservableObjectValue<K>
 
- 
getDependenciespublic javafx.collections.ObservableList<?> getDependencies()- Specified by:
- getDependenciesin interface- javafx.beans.binding.Binding<K>
 
- 
invalidatepublic void invalidate()- Specified by:
- invalidatein interface- javafx.beans.binding.Binding<K>
 
- 
invalidatedprotected void invalidated()Can be overwritten by subclasses to receive invalidation notifications. Does nothing by default.
- 
isValidpublic boolean isValid()- Specified by:
- isValidin interface- javafx.beans.binding.Binding<K>
 
- 
removeListenerpublic void removeListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) - Specified by:
- removeListenerin interface- javafx.beans.value.ObservableValue<K>
 
- 
removeListenerpublic void removeListener(javafx.beans.InvalidationListener listener) - Specified by:
- removeListenerin interface- javafx.beans.Observable
 
- 
removeListenerDescription copied from interface:ObservableSetMultimapRemoves aSetMultimapChangeListenerfrom 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.- Specified by:
- removeListenerin interface- ObservableSetMultimap<K,- V> 
- Parameters:
- listener- The- SetMultimapChangeListenerto remove.
 
- 
sizePropertypublic javafx.beans.property.ReadOnlyIntegerProperty sizeProperty()Description copied from class:SetMultimapExpressionAn integer property that represents the size of theSetMultimap.- Specified by:
- sizePropertyin class- SetMultimapExpression<K,- V> 
- Returns:
- A read-only property.
 
- 
unbindprotected void unbind(javafx.beans.Observable... dependencies) Stops observing the dependencies for changes. The binding will no longer be marked as invalid if one of the dependencies changes.- Parameters:
- dependencies- The dependencies to stop observing.
 
 
-