Top Description Inners Fields Constructors Methods
javafx.beans.property

public Class ReadOnlyMapWrapper<K, V>

extends SimpleMapProperty<K, V>
Class Inheritance
Type Parameters
<K>
the map key type
<V>
the map value type
Imports
javafx.collections.ObservableMap

This class provides a convenient class to define read-only properties. It creates two properties that are synchronized. One property is read-only and can be passed to external users. The other property is read- and writable and should be used internally only.
Since
JavaFX 2.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private ReadOnlyMapWrapper<K, V>.ReadOnlyPropertyImpl

Constructor Summary

AccessConstructor and Description
public
ReadOnlyMapWrapper()

The constructor of ReadOnlyMapWrapper

public
ReadOnlyMapWrapper(ObservableMap<K, V>
the initial value of the wrapped value
initialValue
)

The constructor of ReadOnlyMapWrapper

public
ReadOnlyMapWrapper(Object
the bean of this ReadOnlyMapWrapper
bean
,
String
the name of this ReadOnlyMapWrapper
name
)

The constructor of ReadOnlyMapWrapper

public
ReadOnlyMapWrapper(Object
the bean of this ReadOnlyMapWrapper
bean
,
String
the name of this ReadOnlyMapWrapper
name
,
ObservableMap<K, V>
the initial value of the wrapped value
initialValue
)

The constructor of ReadOnlyMapWrapper

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
public ReadOnlyMapProperty<K, V>

Returns:

the readonly property
getReadOnlyProperty
()

Returns the readonly property, that is synchronized with this ReadOnlyMapWrapper.

Inherited from javafx.beans.property.SimpleMapProperty:
getBeangetName

Field Detail

readOnlyPropertyback to summary
private ReadOnlyMapWrapper<K, V>.ReadOnlyPropertyImpl readOnlyProperty

Constructor Detail

ReadOnlyMapWrapperback to summary
public ReadOnlyMapWrapper()

The constructor of ReadOnlyMapWrapper

ReadOnlyMapWrapperback to summary
public ReadOnlyMapWrapper(ObservableMap<K, V> initialValue)

The constructor of ReadOnlyMapWrapper

Parameters
initialValue:ObservableMap<K, V>

the initial value of the wrapped value

ReadOnlyMapWrapperback to summary
public ReadOnlyMapWrapper(Object bean, String name)

The constructor of ReadOnlyMapWrapper

Parameters
bean:Object

the bean of this ReadOnlyMapWrapper

name:String

the name of this ReadOnlyMapWrapper

ReadOnlyMapWrapperback to summary
public ReadOnlyMapWrapper(Object bean, String name, ObservableMap<K, V> initialValue)

The constructor of ReadOnlyMapWrapper

Parameters
bean:Object

the bean of this ReadOnlyMapWrapper

name:String

the name of this ReadOnlyMapWrapper

initialValue:ObservableMap<K, V>

the initial value of the wrapped value

Method Detail

fireValueChangedEventback to summary
protected void fireValueChangedEvent()

Overrides javafx.beans.property.MapPropertyBase.fireValueChangedEvent.

Doc from javafx.beans.property.MapPropertyBase.fireValueChangedEvent.

Sends notifications to all attached InvalidationListeners, ChangeListeners, and javafx.collections.MapChangeListener. This method is called when the value is changed, either manually by calling set(javafx.collections.ObservableMap) or in case of a bound property, if the binding becomes invalid.

Annotations
@Override
fireValueChangedEventback to summary
protected void fireValueChangedEvent(MapChangeListener.Change<? extends K, ? extends V> change)

Overrides javafx.beans.property.MapPropertyBase.fireValueChangedEvent.

Doc from javafx.beans.property.MapPropertyBase.fireValueChangedEvent.

Sends notifications to all attached InvalidationListeners, ChangeListeners, and javafx.collections.MapChangeListener. This method is called when the content of the list changes.

Annotations
@Override
getReadOnlyPropertyback to summary
public ReadOnlyMapProperty<K, V> getReadOnlyProperty()

Returns the readonly property, that is synchronized with this ReadOnlyMapWrapper.

Returns:ReadOnlyMapProperty<K, V>

the readonly property

javafx.beans.property back to summary

private Class ReadOnlyMapWrapper.ReadOnlyPropertyImpl

extends ReadOnlyMapPropertyBase<K, V>
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ReadOnlyBooleanProperty
emptyProperty()

Implements abstract javafx.beans.binding.MapExpression.emptyProperty.

A boolean property that is true, if the map is empty.

public ObservableMap<K, V>
get()

Implements javafx.beans.value.ObservableObjectValue.get.

Returns the current value of this ObservableObjectValue<T>.

public Object
getBean()

Implements javafx.beans.property.ReadOnlyProperty.getBean.

Returns the Object that contains this property.

public String
getName()

Implements javafx.beans.property.ReadOnlyProperty.getName.

Returns the name of this property.

public ReadOnlyIntegerProperty
sizeProperty()

Implements abstract javafx.beans.binding.MapExpression.sizeProperty.

An integer property that represents the size of the map.

Inherited from javafx.beans.property.ReadOnlyMapPropertyBase:
addListeneraddListeneraddListenerfireValueChangedEventfireValueChangedEventremoveListenerremoveListenerremoveListener

Constructor Detail

ReadOnlyPropertyImplback to summary
private ReadOnlyPropertyImpl()

Method Detail

emptyPropertyback to summary
public ReadOnlyBooleanProperty emptyProperty()

Implements abstract javafx.beans.binding.MapExpression.emptyProperty.

Doc from javafx.beans.binding.MapExpression.emptyProperty.

A boolean property that is true, if the map is empty.

Annotations
@Override
getback to summary
public ObservableMap<K, V> get()

Implements javafx.beans.value.ObservableObjectValue.get.

Doc from javafx.beans.value.ObservableObjectValue.get.

Returns the current value of this ObservableObjectValue<T>.

Annotations
@Override
getBeanback to summary
public Object getBean()

Implements javafx.beans.property.ReadOnlyProperty.getBean.

Doc from javafx.beans.property.ReadOnlyProperty.getBean.

Returns the Object that contains this property. If this property is not contained in an Object, null is returned.

Annotations
@Override
getNameback to summary
public String getName()

Implements javafx.beans.property.ReadOnlyProperty.getName.

Doc from javafx.beans.property.ReadOnlyProperty.getName.

Returns the name of this property. If the property does not have a name, this method returns an empty String.

Annotations
@Override
sizePropertyback to summary
public ReadOnlyIntegerProperty sizeProperty()

Implements abstract javafx.beans.binding.MapExpression.sizeProperty.

Doc from javafx.beans.binding.MapExpression.sizeProperty.

An integer property that represents the size of the map.

Annotations
@Override