E - The element type of the wrapped ObservableMultiset.public abstract class ReadOnlyMultisetProperty<E> extends MultisetExpression<E> implements javafx.beans.property.ReadOnlyProperty<ObservableMultiset<E>>
Property
wrapping an ObservableMultiset.
This class provides identical functionality for SetMultimap as
ReadOnlyMapProperty for Map, ReadOnlySetProperty for
Set, or ReadOnlyListProperty for List.
empty, sizeMultiset.Entry<E>| Constructor and Description |
|---|
ReadOnlyMultisetProperty() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendValueToString(java.lang.StringBuilder result)
Appends a representation of this
SetMultimapProperty's value to
the given StringBuilder. |
void |
bindContent(ObservableMultiset<E> target)
Creates a unidirectional content binding between the
ObservableMultiset, that is wrapped in this
ReadOnlyMultisetProperty, and the given
ObservableMultiset. |
void |
bindContentBidirectional(ObservableMultiset<E> other)
Creates a bidirectional content binding of the
ObservableMultiset
, that is wrapped in this ReadOnlyMultisetProperty, and the given
ObservableMultiset . |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
java.lang.String |
toString() |
void |
unbindContent(java.lang.Object target)
Deletes a content binding between the
ObservableSetMultimap, that
is wrapped in this ReadOnlyMultisetProperty, and another
Object. |
void |
unbindContentBidirectional(java.lang.Object other)
Deletes a bidirectional content binding between the
ObservableSetMultimap, that is wrapped in this
ReadOnlyMultisetProperty, and another Object. |
add, add, addAll, asString, clear, contains, containsAll, count, elementSet, emptyProperty, entrySet, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, multisetExpression, remove, remove, removeAll, replaceAll, retainAll, setCount, setCount, size, sizeProperty, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddListener, getValue, removeListeneraddListener, removeListenerforEach, forEachEntry, spliteratorprotected void appendValueToString(java.lang.StringBuilder result)
SetMultimapProperty's value to
the given StringBuilder. Gets called from toString() to
allow subclasses to provide a changed value representation.result - A StringBuilder to append the value representation to.public void bindContent(ObservableMultiset<E> target)
ObservableMultiset, that is wrapped in this
ReadOnlyMultisetProperty, and the given
ObservableMultiset.
A content binding ensures that the content of the wrapped
ObservableMultiset is the same as that of the other
ObservableMultiset. If the content of the other
ObservableMultiset changes, the wrapped
ObservableMultiset will be updated automatically.
target - The ObservableSetMultimap this property should be
unidirectionally bound to.public void bindContentBidirectional(ObservableMultiset<E> other)
ObservableMultiset
, that is wrapped in this ReadOnlyMultisetProperty, and the given
ObservableMultiset .
A bidirectional content binding ensures that the content of the two
ObservableMultisets are the same. If the
content of one of the ObservableMultiset
changes, the other one will be updated automatically.
other - The ObservableSetMultimap this property should be
bidirectionally bound to.public boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String toString()
public void unbindContent(java.lang.Object target)
ObservableSetMultimap, that
is wrapped in this ReadOnlyMultisetProperty, and another
Object.target - The Object to which the binding should be removed.public void unbindContentBidirectional(java.lang.Object other)
ObservableSetMultimap, that is wrapped in this
ReadOnlyMultisetProperty, and another Object.other - The Object to which the bidirectional binding should
be removed.Copyright (c) 2014 itemis AG and others. All rights reserved.