Top Description Constructors Methods
javafx.beans.property

public abstract Class ReadOnlyMapProperty<K, V>

extends MapExpression<K, V>
implements ReadOnlyProperty<ObservableMap<K, V>>
Class Inheritance
All Implemented Interfaces
javafx.beans.property.ReadOnlyProperty, javafx.beans.value.ObservableValue, javafx.beans.Observable
Known Direct Subclasses
javafx.beans.property.ReadOnlyMapPropertyBase, javafx.beans.property.MapProperty
Type Parameters
<K>
the type of the key elements of the map
<V>
the type of the value elements of the map
Imports
java.util.Map, javafx.beans.binding.Bindings, .MapExpression, javafx.collections.ObservableMap

Superclass for all readonly properties wrapping an javafx.collections.ObservableMap.
Since
JavaFX 2.1
See Also
javafx.collections.ObservableMap, javafx.beans.value.ObservableMapValue, javafx.beans.binding.MapExpression, ReadOnlyProperty

Constructor Summary

AccessConstructor and Description
public
ReadOnlyMapProperty()

The constructor of ReadOnlyMapProperty.

Method Summary

Modifier and TypeMethod and Description
public void
bindContent(ObservableMap<K, V>
the ObservableMap this property should be bound to
map
)

Creates a content binding between the javafx.collections.ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another ObservableMap.

public void
bindContentBidirectional(ObservableMap<K, V>
the ObservableMap this property should be bound to
map
)

Creates a bidirectional content binding of the javafx.collections.ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another ObservableMap.

public boolean
equals(Object obj)

Overrides java.lang.Object.equals.

Implements java.util.Map.equals.

Compares the specified object with this map for equality.

public int

Returns:

a hash code for this ReadOnlyMapProperty object.
hashCode
()

Overrides java.lang.Object.hashCode.

Implements java.util.Map.hashCode.

Returns a hash code for this ReadOnlyMapProperty object.

public String

Returns:

a string representation of this ReadOnlyMapProperty object.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this ReadOnlyMapProperty object.

public void
unbindContent(Object
the Object to which the binding should be removed
object
)

Deletes a content binding between the javafx.collections.ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another Object.

public void
unbindContentBidirectional(Object
the Object to which the bidirectional binding should be removed
object
)

Deletes a bidirectional content binding between the javafx.collections.ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another Object.

Inherited from javafx.beans.binding.MapExpression:
asStringclearcontainsKeycontainsValueemptyPropertyentrySetgetgetSizegetValueisEmptyisEqualToisNotEqualToisNotNullisNullkeySetmapExpressionputputAllremovesizesizePropertyvalueAtvalueAtvalues

Constructor Detail

ReadOnlyMapPropertyback to summary
public ReadOnlyMapProperty()

The constructor of ReadOnlyMapProperty.

Method Detail

bindContentback to summary
public void bindContent(ObservableMap<K, V> map)

Creates a content binding between the javafx.collections.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.

Parameters
map:ObservableMap<K, V>

the ObservableMap this property should be bound to

Exceptions
NullPointerException:
if map is null
IllegalArgumentException:
if map is the same map that this ReadOnlyMapProperty points to
bindContentBidirectionalback to summary
public void bindContentBidirectional(ObservableMap<K, V> map)

Creates a bidirectional content binding of the javafx.collections.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.

Parameters
map:ObservableMap<K, V>

the ObservableMap this property should be bound to

Exceptions
NullPointerException:
if map is null
IllegalArgumentException:
if map is the same map that this ReadOnlyMapProperty points to
equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Implements java.util.Map.equals.

Doc from java.util.Map.equals.

Compares the specified object with this map for equality. Returns true if the given object is also a map and the two maps represent the same mappings. More formally, two maps m1 and m2 represent the same mappings if m1.entrySet().equals(m2.entrySet()). This ensures that the equals method works properly across different implementations of the Map interface.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements java.util.Map.hashCode.

Returns a hash code for this ReadOnlyMapProperty object.

Returns:int

a hash code for this ReadOnlyMapProperty object.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this ReadOnlyMapProperty object.

Returns:String

a string representation of this ReadOnlyMapProperty object.

Annotations
@Override
unbindContentback to summary
public void unbindContent(Object object)

Deletes a content binding between the javafx.collections.ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another Object.

Parameters
object:Object

the Object to which the binding should be removed

Exceptions
NullPointerException:
if object is null
IllegalArgumentException:
if object is the same map that this ReadOnlyMapProperty points to
unbindContentBidirectionalback to summary
public void unbindContentBidirectional(Object object)

Deletes a bidirectional content binding between the javafx.collections.ObservableMap, that is wrapped in this ReadOnlyMapProperty, and another Object.

Parameters
object:Object

the Object to which the bidirectional binding should be removed

Exceptions
NullPointerException:
if object is null
IllegalArgumentException:
if object is the same map that this ReadOnlyMapProperty points to