public abstract class StyleableDoubleProperty extends DoublePropertyBase implements StyleableProperty<Number>
DoublePropertyBase
and provides a partial
implementation of a StyleableProperty
. The method
StyleableProperty.getCssMetaData()
is not implemented.
This class is used to make a DoubleProperty
,
that would otherwise be implemented as a DoublePropertyBase
,
style‑able by CSS.DoublePropertyBase
,
CssMetaData
,
StyleableProperty
Constructor and Description |
---|
StyleableDoubleProperty()
The constructor of the
StyleableDoubleProperty . |
StyleableDoubleProperty(double initialValue)
The constructor of the
StyleableDoubleProperty . |
Modifier and Type | Method and Description |
---|---|
void |
applyStyle(StyleOrigin origin,
Number v)
This method is called from CSS code to set the value of the property.
|
void |
bind(ObservableValue<? extends Number> observable)
Create a unidirection binding for this
Property . |
StyleOrigin |
getStyleOrigin()
Tells the origin of the value of the property.
|
void |
set(double v)
Set the wrapped value.
|
addListener, addListener, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbind
asObject, bindBidirectional, doubleProperty, setValue, unbindBidirectional
readOnlyDoubleProperty
add, add, add, add, add, divide, divide, divide, divide, divide, doubleExpression, doubleExpression, doubleValue, floatValue, getValue, intValue, longValue, multiply, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract, subtract
asString, asString, asString, 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, numberExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCssMetaData
getValue, setValue
getBean, getName
getValue
public StyleableDoubleProperty()
StyleableDoubleProperty
.public StyleableDoubleProperty(double initialValue)
StyleableDoubleProperty
.initialValue
- the initial value of the wrapped Object
public void applyStyle(StyleOrigin origin, Number v)
applyStyle
in interface StyleableProperty<Number>
public void bind(ObservableValue<? extends Number> observable)
Property
.
Note that JavaFX has all the bind calls implemented through weak listeners. This means the bound property can be garbage collected and stopped from being updated.
bind
in interface Property<Number>
bind
in class DoublePropertyBase
observable
- The observable this Property
should be bound to.public void set(double v)
WritableDoubleValue.setValue(java.lang.Number)
,
this method uses primitive double.set
in interface WritableDoubleValue
set
in class DoublePropertyBase
v
- The new valuepublic StyleOrigin getStyleOrigin()
getStyleOrigin
in interface StyleableProperty<Number>
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.