java.lang.Object
javafx.beans.binding.MapExpression<K,V>
javafx.beans.property.ReadOnlyMapProperty<K,V>
- Type Parameters:
- K- the type of the key elements of the map
- V- the type of the value elements of the map
- All Implemented Interfaces:
- Map<K,V>,- Observable,- ReadOnlyProperty<ObservableMap<K,V>>,- ObservableMapValue<K,V>,- ObservableObjectValue<ObservableMap<K,V>>,- ObservableValue<ObservableMap<K,V>>,- ObservableMap<K,V>
- Direct Known Subclasses:
- MapProperty,- ReadOnlyMapPropertyBase
public abstract class ReadOnlyMapProperty<K,V> extends MapExpression<K,V> implements ReadOnlyProperty<ObservableMap<K,V>>
Superclass for all readonly properties wrapping an 
ObservableMap.- Since:
- JavaFX 2.1
- See Also:
- ObservableMap,- ObservableMapValue,- MapExpression,- ReadOnlyProperty
- 
Property SummaryProperties declared in class javafx.beans.binding.MapExpressionempty, size
- 
Nested Class Summary
- 
Constructor SummaryConstructors Constructor Description ReadOnlyMapProperty()The constructor ofReadOnlyMapProperty.
- 
Method SummaryModifier and Type Method Description voidbindContent(ObservableMap<K,V> map)Creates a content binding between theObservableMap, that is wrapped in thisReadOnlyMapProperty, and anotherObservableMap.voidbindContentBidirectional(ObservableMap<K,V> map)Creates a bidirectional content binding of theObservableMap, that is wrapped in thisReadOnlyMapProperty, and anotherObservableMap.inthashCode()Returns a hash code for thisReadOnlyMapPropertyobject.StringtoString()Returns a string representation of thisReadOnlyMapPropertyobject.voidunbindContent(Object object)Deletes a content binding between theObservableMap, that is wrapped in thisReadOnlyMapProperty, and anotherObject.voidunbindContentBidirectional(Object object)Deletes a bidirectional content binding between theObservableMap, that is wrapped in thisReadOnlyMapProperty, and anotherObject.Methods declared in class javafx.beans.binding.MapExpressionasString, emptyProperty, getSize, isEqualTo, isNotEqualTo, isNotNull, isNull, mapExpression, sizeProperty, valueAt, valueAtMethods declared in class java.lang.Objectclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods declared in interface java.util.Mapclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods declared in interface javafx.beans.ObservableaddListener, removeListenerMethods declared in interface javafx.collections.ObservableMapaddListener, removeListenerMethods declared in interface javafx.beans.value.ObservableObjectValuegetMethods declared in interface javafx.beans.value.ObservableValueaddListener, getValue, removeListenerMethods declared in interface javafx.beans.property.ReadOnlyPropertygetBean, getName
- 
Constructor Details- 
ReadOnlyMapPropertypublic ReadOnlyMapProperty()The constructor ofReadOnlyMapProperty.
 
- 
- 
Method Details- 
bindContentBidirectionalCreates a bidirectional content binding of theObservableMap, that is wrapped in thisReadOnlyMapProperty, and anotherObservableMap.A bidirectional content binding ensures that the content of two ObservableMapsis the same. If the content of one of the maps changes, the other one will be updated automatically.- Parameters:
- map- the- ObservableMapthis property should be bound to
- Throws:
- NullPointerException- if- mapis- null
- IllegalArgumentException- if- mapis the same map that this- ReadOnlyMapPropertypoints to
 
- 
unbindContentBidirectionalDeletes a bidirectional content binding between theObservableMap, that is wrapped in thisReadOnlyMapProperty, and anotherObject.- Parameters:
- object- the- Objectto which the bidirectional binding should be removed
- Throws:
- NullPointerException- if- objectis- null
- IllegalArgumentException- if- objectis the same map that this- ReadOnlyMapPropertypoints to
 
- 
bindContentCreates a content binding between theObservableMap, that is wrapped in thisReadOnlyMapProperty, and anotherObservableMap.A content binding ensures that the content of the wrapped ObservableMapsis 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.- Parameters:
- map- the- ObservableMapthis property should be bound to
- Throws:
- NullPointerException- if- mapis- null
- IllegalArgumentException- if- mapis the same map that this- ReadOnlyMapPropertypoints to
 
- 
unbindContentDeletes a content binding between theObservableMap, that is wrapped in thisReadOnlyMapProperty, and anotherObject.- Parameters:
- object- the- Objectto which the binding should be removed
- Throws:
- NullPointerException- if- objectis- null
- IllegalArgumentException- if- objectis the same map that this- ReadOnlyMapPropertypoints to
 
- 
hashCodepublic int hashCode()Returns a hash code for thisReadOnlyMapPropertyobject.
- 
toStringReturns a string representation of thisReadOnlyMapPropertyobject.
 
-