K
- The key type of the wrapped ObservableSetMultimap
.V
- The value type of the wrapped ObservableSetMultimap
.public abstract class SetMultimapPropertyBase<K,V> extends SetMultimapProperty<K,V>
Property
wrapping an
ObservableSetMultimap
.
This class provides identical functionality for SetMultimap
as
MapPropertyBase
for Map
, SetPropertyBase
for
Set
, or ListPropertyBase
for List
.
Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
empty
A boolean property that reflects whether the
SetMultimap is
empty. |
javafx.beans.property.ReadOnlyIntegerProperty |
size
An integer property that represents the size of the
SetMultimap . |
Constructor and Description |
---|
SetMultimapPropertyBase()
Creates a new
SetMultimapPropertyBase with no initial value. |
SetMultimapPropertyBase(ObservableSetMultimap<K,V> initialValue)
Creates a new
SetMultimapPropertyBase with the given
ObservableSetMultimap as initial value. |
Modifier and Type | Method and Description |
---|---|
void |
addListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener) |
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
addListener(SetMultimapChangeListener<? super K,? super V> listener)
Adds a
SetMultimapChangeListener to this
ObservableSetMultimap . |
protected void |
appendValueToString(java.lang.StringBuilder result)
Appends a representation of this
SetMultimapProperty 's value to
the given StringBuilder . |
void |
bind(javafx.beans.value.ObservableValue<? extends ObservableSetMultimap<K,V>> observedValue) |
javafx.beans.property.ReadOnlyBooleanProperty |
emptyProperty()
A boolean property that reflects whether the
SetMultimap is
empty. |
protected void |
fireValueChangedEvent()
Fires notifications to all attached
InvalidationListeners ,
ChangeListeners , and
SetMultimapChangeListeners . |
protected void |
fireValueChangedEvent(SetMultimapChangeListener.Change<? extends K,? extends V> change)
Fires notifications to all attached
InvalidationListeners ,
ChangeListeners , and
SetMultimapChangeListeners . |
ObservableSetMultimap<K,V> |
get() |
protected void |
invalidated()
Can be overwritten by subclasses to receive invalidation notifications.
|
boolean |
isBound() |
void |
removeListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener) |
void |
removeListener(javafx.beans.InvalidationListener listener) |
void |
removeListener(SetMultimapChangeListener<? super K,? super V> listener)
Removes a
SetMultimapChangeListener from this
ObservableSetMultimap . |
void |
set(ObservableSetMultimap<K,V> newValue) |
javafx.beans.property.ReadOnlyIntegerProperty |
sizeProperty()
An integer property that represents the size of the
SetMultimap . |
void |
unbind() |
bindBidirectional, setValue, unbindBidirectional
bindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectional
asMap, 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, valuesAt
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll
asMap, entries, equals, get, removeAll, replaceValues
public javafx.beans.property.ReadOnlyBooleanProperty emptyProperty
emptyProperty
in class SetMultimapExpression<K,V>
SetMultimapExpression.isEmpty()
public javafx.beans.property.ReadOnlyIntegerProperty sizeProperty
sizeProperty
in class SetMultimapExpression<K,V>
public SetMultimapPropertyBase()
SetMultimapPropertyBase
with no initial value.public SetMultimapPropertyBase(ObservableSetMultimap<K,V> initialValue)
SetMultimapPropertyBase
with the given
ObservableSetMultimap
as initial value.initialValue
- The initial value of the to be created
SetMultimapPropertyBase
.public void addListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener)
public void addListener(javafx.beans.InvalidationListener listener)
public void addListener(SetMultimapChangeListener<? super K,? super V> listener)
ObservableSetMultimap
SetMultimapChangeListener
to this
ObservableSetMultimap
. If the same listener is registered more
than once, it will be notified more than once.listener
- The SetMultimapChangeListener
to add.protected void appendValueToString(java.lang.StringBuilder result)
ReadOnlySetMultimapProperty
SetMultimapProperty
's value to
the given StringBuilder
. Gets called from ReadOnlySetMultimapProperty.toString()
to
allow subclasses to provide a changed value representation.appendValueToString
in class ReadOnlySetMultimapProperty<K,V>
result
- A StringBuilder
to append the value representation to.public void bind(javafx.beans.value.ObservableValue<? extends ObservableSetMultimap<K,V>> observedValue)
public javafx.beans.property.ReadOnlyBooleanProperty emptyProperty()
SetMultimapExpression
SetMultimap
is
empty.emptyProperty
in class SetMultimapExpression<K,V>
SetMultimapExpression.isEmpty()
protected void fireValueChangedEvent()
InvalidationListeners
,
ChangeListeners
, and
SetMultimapChangeListeners
.protected void fireValueChangedEvent(SetMultimapChangeListener.Change<? extends K,? extends V> change)
InvalidationListeners
,
ChangeListeners
, and
SetMultimapChangeListeners
.change
- the change that needs to be propagatedpublic ObservableSetMultimap<K,V> get()
protected void invalidated()
public boolean isBound()
public void removeListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K,V>> listener)
public void removeListener(javafx.beans.InvalidationListener listener)
public void removeListener(SetMultimapChangeListener<? super K,? super V> listener)
ObservableSetMultimap
SetMultimapChangeListener
from this
ObservableSetMultimap
. Will do nothing if the listener was not
attached to this ObservableSetMultimap
. If it was added more than
once, then only the first occurrence will be removed.listener
- The SetMultimapChangeListener
to remove.public void set(ObservableSetMultimap<K,V> newValue)
public javafx.beans.property.ReadOnlyIntegerProperty sizeProperty()
SetMultimapExpression
SetMultimap
.sizeProperty
in class SetMultimapExpression<K,V>
public void unbind()
Copyright (c) 2014 itemis AG and others. All rights reserved.