-
- All Implemented Interfaces:
-
NumberExpression
,Observable
,Property<Number>
,ReadOnlyProperty<Number>
,ObservableFloatValue
,ObservableNumberValue
,ObservableValue<Number>
,WritableFloatValue
,WritableNumberValue
,WritableValue<Number>
,StyleableProperty<Number>
public class SimpleStyleableFloatProperty extends StyleableFloatProperty
该课程扩展了SimpleFloatProperty
并提供了一个StyleableProperty
的完整实现。 这个类用于制作一个FloatProperty
,否则将被实现为一个SimpleFloatProperty
,由CSS风格化。- 从以下版本开始:
- JavaFX 8.0
- 另请参见:
-
SimpleFloatProperty
,CssMetaData
,StyleableProperty
,StyleableFloatProperty
-
-
构造方法摘要
构造方法 Constructor 描述 SimpleStyleableFloatProperty(CssMetaData<? extends Styleable,Number> cssMetaData)
SimpleStyleableFloatProperty
的构造SimpleStyleableFloatProperty
。SimpleStyleableFloatProperty(CssMetaData<? extends Styleable,Number> cssMetaData, Float initialValue)
SimpleStyleableFloatProperty
的构造SimpleStyleableFloatProperty
。SimpleStyleableFloatProperty(CssMetaData<? extends Styleable,Number> cssMetaData, Object bean, String name)
SimpleStyleableFloatProperty
的构造SimpleStyleableFloatProperty
。SimpleStyleableFloatProperty(CssMetaData<? extends Styleable,Number> cssMetaData, Object bean, String name, Float initialValue)
SimpleStyleableFloatProperty
的构造SimpleStyleableFloatProperty
。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 Object
getBean()
返回包含此属性的Object
。CssMetaData<? extends Styleable,Number>
getCssMetaData()
反映对应于这个javafx.beans.property.StyleableProperty
String
getName()
返回此属性的名称。-
Methods inherited from class javafx.beans.binding.FloatExpression
add, add, add, add, divide, divide, divide, divide, doubleValue, floatExpression, floatExpression, floatValue, getValue, intValue, longValue, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract
-
Methods inherited from class javafx.beans.property.FloatProperty
asObject, bindBidirectional, floatProperty, setValue, unbindBidirectional
-
Methods inherited from class javafx.beans.property.FloatPropertyBase
addListener, addListener, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbind
-
Methods inherited from class javafx.beans.binding.NumberExpressionBase
add, asString, asString, asString, divide, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, multiply, numberExpression, subtract
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javafx.beans.value.ObservableValue
getValue
-
Methods inherited from class javafx.beans.property.ReadOnlyFloatProperty
readOnlyFloatProperty
-
Methods inherited from class javafx.css.StyleableFloatProperty
applyStyle, bind, getStyleOrigin, set
-
Methods inherited from interface javafx.beans.value.WritableValue
getValue, setValue
-
-
-
-
构造方法详细信息
-
SimpleStyleableFloatProperty
public SimpleStyleableFloatProperty(CssMetaData<? extends Styleable,Number> cssMetaData)
SimpleStyleableFloatProperty
的构造SimpleStyleableFloatProperty
。- 参数
-
cssMetaData
- 与此StyleableProperty
相关联的StyleableProperty
-
SimpleStyleableFloatProperty
public SimpleStyleableFloatProperty(CssMetaData<? extends Styleable,Number> cssMetaData, Float initialValue)
SimpleStyleableFloatProperty
的构造SimpleStyleableFloatProperty
。- 参数
-
cssMetaData
- 与此StyleableProperty
相关联的StyleableProperty
-
initialValue
- 包装的初始值Object
-
SimpleStyleableFloatProperty
public SimpleStyleableFloatProperty(CssMetaData<? extends Styleable,Number> cssMetaData, Object bean, String name)
SimpleStyleableFloatProperty
的构造SimpleStyleableFloatProperty
。- 参数
-
cssMetaData
- 与此StyleableProperty
相关联的StyleableProperty
-
bean
- 这个FloatProperty
的豆 -
name
- 这个名字FloatProperty
-
SimpleStyleableFloatProperty
public SimpleStyleableFloatProperty(CssMetaData<? extends Styleable,Number> cssMetaData, Object bean, String name, Float initialValue)
SimpleStyleableFloatProperty
的构造SimpleStyleableFloatProperty
。- 参数
-
cssMetaData
- 与此StyleableProperty
相关联的StyleableProperty
-
bean
- 这个FloatProperty
的豆 -
name
- 这个名字FloatProperty
-
initialValue
- 包装的初始值Object
-
-
方法详细信息
-
getBean
public Object getBean()
返回包含此属性的Object
。 如果此属性不包含在Object
,则返回null
。- 结果
-
包含
Object
或null
-
getName
public String getName()
返回此属性的名称。 如果该属性没有名称,此方法返回一个空的String
。- 结果
-
名称或空的
String
-
getCssMetaData
public final CssMetaData<? extends Styleable,Number> getCssMetaData()
反映对应于这个javafx.beans.property.StyleableProperty
- 结果
- the corresponding CssMetaData
-
-