K
- the type of the key elements of the mapV
- the type of the value elements of the mappublic abstract class ReadOnlyMapProperty<K,V> extends MapExpression<K,V> implements ReadOnlyProperty<ObservableMap<K,V>>
ObservableMap
.ObservableMap
,
ObservableMapValue
,
MapExpression
,
ReadOnlyProperty
empty, size
Constructor and Description |
---|
ReadOnlyMapProperty()
The constructor of
ReadOnlyMapProperty . |
Modifier and Type | Method and Description |
---|---|
void |
bindContent(ObservableMap<K,V> map)
Creates a content binding between the
ObservableMap , that is
wrapped in this ReadOnlyMapProperty , and another ObservableMap . |
void |
bindContentBidirectional(ObservableMap<K,V> map)
Creates a bidirectional content binding of the
ObservableMap , that is
wrapped in this ReadOnlyMapProperty , and another ObservableMap . |
boolean |
equals(Object obj) |
int |
hashCode()
Returns a hash code for this
ReadOnlyMapProperty object. |
String |
toString()
Returns a string representation of this
ReadOnlyMapProperty object. |
void |
unbindContent(Object object)
Deletes a content binding between the
ObservableMap , that is
wrapped in this ReadOnlyMapProperty , and another Object . |
void |
unbindContentBidirectional(Object object)
Deletes a bidirectional content binding between the
ObservableMap , that is
wrapped in this ReadOnlyMapProperty , and another Object . |
asString, clear, containsKey, containsValue, emptyProperty, entrySet, get, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, keySet, mapExpression, put, putAll, remove, size, sizeProperty, valueAt, valueAt, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBean, getName
addListener, getValue, removeListener
addListener, removeListener
get
addListener, removeListener
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public ReadOnlyMapProperty()
ReadOnlyMapProperty
.public void bindContentBidirectional(ObservableMap<K,V> map)
ObservableMap
, that is
wrapped in this ReadOnlyMapProperty
, and another ObservableMap
.
A bidirectional content binding ensures that the content of two ObservableMaps
is the
same. If the content of one of the maps changes, the other one will be updated automatically.
map
- the ObservableMap
this property should be bound toNullPointerException
- if map
is null
IllegalArgumentException
- if map
is the same map that this ReadOnlyMapProperty
points topublic void unbindContentBidirectional(Object object)
ObservableMap
, that is
wrapped in this ReadOnlyMapProperty
, and another Object
.object
- the Object
to which the bidirectional binding should be removedNullPointerException
- if object
is null
IllegalArgumentException
- if object
is the same map that this ReadOnlyMapProperty
points topublic void bindContent(ObservableMap<K,V> map)
ObservableMap
, that is
wrapped in this ReadOnlyMapProperty
, and another ObservableMap
.
A content binding ensures that the content of the wrapped ObservableMaps
is the
same as that of the other map. If the content of the other map changes, the wrapped map will be updated
automatically. Once the wrapped list is bound to another map, you must not change it directly.
map
- the ObservableMap
this property should be bound toNullPointerException
- if map
is null
IllegalArgumentException
- if map
is the same map that this ReadOnlyMapProperty
points topublic void unbindContent(Object object)
ObservableMap
, that is
wrapped in this ReadOnlyMapProperty
, and another Object
.object
- the Object
to which the binding should be removedNullPointerException
- if object
is null
IllegalArgumentException
- if object
is the same map that this ReadOnlyMapProperty
points topublic boolean equals(Object obj)
public int hashCode()
ReadOnlyMapProperty
object.Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.