Spec-Zone .ru
спецификации, руководства, описания, API
|
K
- the type of the key elements of the Map
V
- the type of the value elements of the Map
public abstract class MapProperty<K,V> extends ReadOnlyMapProperty<K,V> implements Property<ObservableMap<K,V>>, WritableMapValue<K,V>
Property
wrapping a
ObservableMap
.
The value of a MapProperty
can be get and set with ObservableObjectValue.get()
,
MapExpression.getValue()
, WritableObjectValue.set(Object)
, and setValue(javafx.collections.ObservableMap)
.
A property can be bound and unbound unidirectional with
Property.bind(javafx.beans.value.ObservableValue)
and Property.unbind()
. Bidirectional bindings
can be created and removed with bindBidirectional(Property)
and
unbindBidirectional(Property)
.
The context of a MapProperty
can be read with ReadOnlyProperty.getBean()
and ReadOnlyProperty.getName()
.empty, size
Constructor and Description |
---|
MapProperty() |
Modifier and Type | Method and Description |
---|---|
void |
bindBidirectional(Property<ObservableMap<K,V>> other)
Create a bidirectional binding between this
Property and another
one. |
void |
setValue(ObservableMap<K,V> v)
Set the wrapped value.
|
java.lang.String |
toString()
Returns a string representation of this
MapProperty object. |
void |
unbindBidirectional(Property<ObservableMap<K,V>> other)
Remove a bidirectional binding between this
Property and another
one. |
bindContent, bindContentBidirectional, equals, hashCode, unbindContent, unbindContentBidirectional
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, set
getValue
addListener, removeListener
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
get
public void setValue(ObservableMap<K,V> v)
setValue
in interface WritableValue<ObservableMap<K,V>>
v
- The new valuepublic void bindBidirectional(Property<ObservableMap<K,V>> other)
Property
and another
one.bindBidirectional
in interface Property<ObservableMap<K,V>>
other
- the other Property
public void unbindBidirectional(Property<ObservableMap<K,V>> other)
Property
and another
one.
If no bidirectional binding between the properties exists, calling this
method has no effect.unbindBidirectional
in interface Property<ObservableMap<K,V>>
other
- the other Property
public java.lang.String toString()
MapProperty
object.toString
in class ReadOnlyMapProperty<K,V>
MapProperty
object.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to