- java.lang.Object
-
- javafx.beans.binding.MapExpression<K,V>
-
- javafx.beans.property.ReadOnlyMapProperty<K,V>
-
- javafx.beans.property.MapProperty<K,V>
-
- javafx.beans.property.MapPropertyBase<K,V>
-
- javafx.beans.property.SimpleMapProperty<K,V>
-
- 参数类型
-
K
-K
的关键元素的Map
-
V
-V
的值元素的Map
- All Implemented Interfaces:
-
Map<K,V>
,Observable
,Property<K>
,ReadOnlyProperty<K>
,ObservableMapValue<K,V>
,ObservableObjectValue<K>
,ObservableValue<K>
,WritableMapValue<K,V>
,WritableObjectValue<K>
,WritableValue<K>
,ObservableMap<K,V>
- 已知直接子类:
-
ReadOnlyMapWrapper
public class SimpleMapProperty<K,V> extends MapPropertyBase<K,V>
这个类提供了一个Property
包装一个ObservableMap
的完整实现。- 从以下版本开始:
- JavaFX 2.1
- 另请参见:
-
MapPropertyBase
-
-
Property Summary
-
Properties inherited from class javafx.beans.property.MapPropertyBase
empty, size
-
-
构造方法摘要
构造方法 Constructor 描述 SimpleMapProperty()
构造函数为SimpleMapProperty
SimpleMapProperty(Object bean, String name)
构造函数为SimpleMapProperty
SimpleMapProperty(Object bean, String name, ObservableMap<K,V> initialValue)
构造函数为SimpleMapProperty
SimpleMapProperty(ObservableMap<K,V> initialValue)
构造函数为SimpleMapProperty
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 Object
getBean()
返回包含此属性的Object
。String
getName()
返回此属性的名称。-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entry, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, of, of, of, of, of, of, of, of, of, of, of, ofEntries, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class javafx.beans.binding.MapExpression
asString, clear, containsKey, containsValue, entrySet, get, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, keySet, mapExpression, put, putAll, remove, size, valueAt, valueAt, values
-
Methods inherited from class javafx.beans.property.MapProperty
bindBidirectional, setValue, unbindBidirectional
-
Methods inherited from class javafx.beans.property.MapPropertyBase
addListener, addListener, addListener, bind, emptyProperty, fireValueChangedEvent, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, removeListener, set, sizeProperty, toString, unbind
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javafx.beans.value.ObservableValue
getValue
-
Methods inherited from class javafx.beans.property.ReadOnlyMapProperty
bindContent, bindContentBidirectional, equals, hashCode, unbindContent, unbindContentBidirectional
-
Methods inherited from interface javafx.beans.value.WritableValue
getValue
-
-
-
-
构造方法详细信息
-
SimpleMapProperty
public SimpleMapProperty()
构造函数为SimpleMapProperty
-
SimpleMapProperty
public SimpleMapProperty(ObservableMap<K,V> initialValue)
构造函数为SimpleMapProperty
- 参数
-
initialValue
- 包装值的初始值
-
SimpleMapProperty
public SimpleMapProperty(Object bean, String name)
构造函数为SimpleMapProperty
- 参数
-
bean
- 这个MapProperty
的bean -
name
- 这个名字MapProperty
-
SimpleMapProperty
public SimpleMapProperty(Object bean, String name, ObservableMap<K,V> initialValue)
构造函数为SimpleMapProperty
- 参数
-
bean
- 这个MapProperty
的豆 -
name
- 这个名字MapProperty
-
initialValue
- 包装值的初始值
-
-