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> Observable
,ReadOnlyProperty<ObservableSetMultimap<K,
,V>> ObservableObjectValue<ObservableSetMultimap<K,
,V>> 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 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendValueToString
(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
Creates a bidirectional content binding of theObservableSetMultimap
, that is wrapped in thisReadOnlySetMultimapProperty
, and the givenObservableSetMultimap
.boolean
int
hashCode()
toString()
void
unbindContent
(Object target) Deletes a content binding between theObservableSetMultimap
, that is wrapped in thisReadOnlySetMultimapProperty
, and anotherObject
.void
unbindContentBidirectional
(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 javafx.beans.Observable
addListener, removeListener
Methods inherited from interface javafx.beans.value.ObservableObjectValue
get
Methods inherited from interface org.eclipse.gef.common.collections.ObservableSetMultimap
addListener, removeListener
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
Methods 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
- AStringBuilder
to 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
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
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
-
hashCode
public int hashCode() -
toString
-
unbindContent
Deletes a content binding between theObservableSetMultimap
, that is wrapped in thisReadOnlySetMultimapProperty
, and anotherObject
.- Parameters:
target
- TheObject
to which the binding should be removed.
-
unbindContentBidirectional
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.
-