public abstract class StyleableFloatProperty extends FloatPropertyBase implements StyleableProperty<Number>
FloatPropertyBase
and provides a partial
implementation of a StyleableProperty
. The method
StyleableProperty.getCssMetaData()
is not implemented.
This class is used to make a FloatProperty
,
that would otherwise be implemented as a FloatPropertyBase
,
style‑able by CSS.FloatPropertyBase
,
CssMetaData
,
StyleableProperty
Constructor and Description |
---|
StyleableFloatProperty()
The constructor of the
StyleableFloatProperty . |
StyleableFloatProperty(float initialValue)
The constructor of the
StyleableFloatProperty . |
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(float v)
Set the wrapped value.
|
addListener, addListener, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbind
asObject, bindBidirectional, floatProperty, setValue, unbindBidirectional
readOnlyFloatProperty
add, add, add, add, divide, divide, divide, divide, doubleValue, floatExpression, floatExpression, floatValue, getValue, intValue, longValue, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCssMetaData
getValue, setValue
getBean, getName
getValue
public StyleableFloatProperty()
StyleableFloatProperty
.public StyleableFloatProperty(float initialValue)
StyleableFloatProperty
.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 FloatPropertyBase
observable
- The observable this Property
should be bound to.public void set(float v)
WritableFloatValue.setValue(java.lang.Number)
,
this method uses primitive float.set
in interface WritableFloatValue
set
in class FloatPropertyBase
v
- The new valuepublic StyleOrigin getStyleOrigin()
getStyleOrigin
in interface StyleableProperty<Number>
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.