Class ReadOnlySetMultimapProperty<K,V>
java.lang.Object
org.eclipse.gef.common.beans.binding.SetMultimapExpression<K,V>
org.eclipse.gef.common.beans.property.ReadOnlySetMultimapProperty<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.ReadOnlyProperty<ObservableSetMultimap<K,,V>> javafx.beans.value.ObservableObjectValue<ObservableSetMultimap<K,,V>> javafx.beans.value.ObservableValue<ObservableSetMultimap<K,,V>> ObservableSetMultimapValue<K,,V> ObservableSetMultimap<K,V>
- Direct Known Subclasses:
ReadOnlySetMultimapPropertyBase,SetMultimapProperty
public abstract class ReadOnlySetMultimapProperty<K,V>
extends SetMultimapExpression<K,V>
implements javafx.beans.property.ReadOnlyProperty<ObservableSetMultimap<K,V>>
Abstract base class defining contract for a read-only
Property
wrapping an ObservableSetMultimap.
This class provides identical functionality for SetMultimap as
ReadOnlyMapProperty for Map, ReadOnlySetProperty for
Set, or ReadOnlyListProperty for List.
-
Property Summary
Properties inherited from class org.eclipse.gef.common.beans.binding.SetMultimapExpression
empty, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendValueToString(StringBuilder result) Appends a representation of thisSetMultimapProperty's value to the givenStringBuilder.voidbindContent(ObservableSetMultimap<K, V> target) Creates a unidirectional content binding between theObservableSetMultimap, that is wrapped in thisReadOnlySetMultimapProperty, and the givenObservableSetMultimap.voidCreates a bidirectional content binding of theObservableSetMultimap, that is wrapped in thisReadOnlySetMultimapProperty, and the givenObservableSetMultimap.booleaninthashCode()toString()voidunbindContent(Object target) Deletes a content binding between theObservableSetMultimap, that is wrapped in thisReadOnlySetMultimapProperty, and anotherObject.voidunbindContentBidirectional(Object other) Deletes a bidirectional content binding between theObservableSetMultimap, that is wrapped in thisReadOnlySetMultimapProperty, and anotherObject.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, valuesAtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.beans.Observable
addListener, removeListenerMethods inherited from interface javafx.beans.value.ObservableObjectValue
getMethods inherited from interface org.eclipse.gef.common.collections.ObservableSetMultimap
addListener, removeListenerMethods inherited from interface javafx.beans.value.ObservableValue
addListener, getValue, removeListenerMethods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Constructor Details
-
ReadOnlySetMultimapProperty
public ReadOnlySetMultimapProperty()
-
-
Method Details
-
appendValueToString
Appends a representation of thisSetMultimapProperty's value to the givenStringBuilder. Gets called fromtoString()to allow subclasses to provide a changed value representation.- Parameters:
result- AStringBuilderto append the value representation to.
-
bindContent
Creates a unidirectional content binding between theObservableSetMultimap, that is wrapped in thisReadOnlySetMultimapProperty, and the givenObservableSetMultimap.A content binding ensures that the content of the wrapped
ObservableSetMultimapis the same as that of the otherObservableSetMultimap. If the content of the otherObservableSetMultimapchanges, the wrappedObservableSetMultimapwill be updated automatically.- Parameters:
target- TheObservableSetMultimapthis property should be unidirectionally bound to.
-
bindContentBidirectional
Creates a bidirectional content binding of theObservableSetMultimap, that is wrapped in thisReadOnlySetMultimapProperty, and the givenObservableSetMultimap.A bidirectional content binding ensures that the content of the two
ObservableSetMultimapsare the same. If the content of one of theObservableSetMultimapschanges, the other one will be updated automatically.- Parameters:
other- TheObservableSetMultimapthis property should be bidirectionally bound to.
-
equals
-
hashCode
public int hashCode() -
toString
-
unbindContent
Deletes a content binding between theObservableSetMultimap, that is wrapped in thisReadOnlySetMultimapProperty, and anotherObject.- Parameters:
target- TheObjectto which the binding should be removed.
-
unbindContentBidirectional
Deletes a bidirectional content binding between theObservableSetMultimap, that is wrapped in thisReadOnlySetMultimapProperty, and anotherObject.- Parameters:
other- TheObjectto which the bidirectional binding should be removed.
-