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-onlyProperty
wrapping anObservableSetMultimap
.This class provides identical functionality for
SetMultimap
asReadOnlyMapProperty
forMap
,ReadOnlySetProperty
forSet
, orReadOnlyListProperty
forList
.
-
-
Constructor Summary
Constructors Constructor Description ReadOnlySetMultimapProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendValueToString(java.lang.StringBuilder result)
Appends a representation of thisSetMultimapProperty
's value to the givenStringBuilder
.void
bindContent(ObservableSetMultimap<K,V> target)
Creates a unidirectional content binding between theObservableSetMultimap
, that is wrapped in thisReadOnlySetMultimapProperty
, and the givenObservableSetMultimap
.void
bindContentBidirectional(ObservableSetMultimap<K,V> other)
Creates a bidirectional content binding of theObservableSetMultimap
, that is wrapped in thisReadOnlySetMultimapProperty
, and the givenObservableSetMultimap
.boolean
equals(java.lang.Object other)
int
hashCode()
java.lang.String
toString()
void
unbindContent(java.lang.Object target)
Deletes a content binding between theObservableSetMultimap
, that is wrapped in thisReadOnlySetMultimapProperty
, and anotherObject
.void
unbindContentBidirectional(java.lang.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, valuesAt
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.gef.common.collections.ObservableSetMultimap
addListener, removeListener
-
-
-
-
Method Detail
-
appendValueToString
protected void appendValueToString(java.lang.StringBuilder result)
Appends a representation of thisSetMultimapProperty
's value to the givenStringBuilder
. Gets called fromtoString()
to allow subclasses to provide a changed value representation.- Parameters:
result
- AStringBuilder
to append the value representation to.
-
bindContent
public void bindContent(ObservableSetMultimap<K,V> target)
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
ObservableSetMultimap
is the same as that of the otherObservableSetMultimap
. If the content of the otherObservableSetMultimap
changes, the wrappedObservableSetMultimap
will be updated automatically.- Parameters:
target
- TheObservableSetMultimap
this property should be unidirectionally bound to.
-
bindContentBidirectional
public void bindContentBidirectional(ObservableSetMultimap<K,V> other)
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
ObservableSetMultimaps
are the same. If the content of one of theObservableSetMultimaps
changes, the other one will be updated automatically.- Parameters:
other
- TheObservableSetMultimap
this property should be bidirectionally bound to.
-
equals
public boolean equals(java.lang.Object other)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
unbindContent
public void unbindContent(java.lang.Object target)
Deletes a content binding between theObservableSetMultimap
, that is wrapped in thisReadOnlySetMultimapProperty
, and anotherObject
.- Parameters:
target
- TheObject
to which the binding should be removed.
-
unbindContentBidirectional
public void unbindContentBidirectional(java.lang.Object other)
Deletes a bidirectional content binding between theObservableSetMultimap
, that is wrapped in thisReadOnlySetMultimapProperty
, and anotherObject
.- Parameters:
other
- TheObject
to which the bidirectional binding should be removed.
-
-