-
- All Superinterfaces:
WritableNumberValue,WritableValue<Number>
- All Known Implementing Classes:
FloatProperty,FloatPropertyBase,JavaBeanFloatProperty,ReadOnlyFloatWrapper,SimpleFloatProperty,SimpleStyleableFloatProperty,StyleableFloatProperty
public interface WritableFloatValue extends WritableNumberValue
A writable float value.- Since:
- JavaFX 2.0
- See Also:
WritableValue,WritableNumberValue
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatget()Get the wrapped value.voidset(float value)Set the wrapped value.voidsetValue(Number value)Set the wrapped value.-
Methods inherited from interface javafx.beans.value.WritableValue
getValue
-
-
-
-
Method Detail
-
get
float get()
Get the wrapped value. UnlikeWritableValue.getValue(), this method returns primitive float. Needs to be identical toWritableValue.getValue().- Returns:
- The current value
-
set
void set(float value)
Set the wrapped value. UnlikesetValue(java.lang.Number), this method uses primitive float.- Parameters:
value- The new value
-
setValue
void setValue(Number value)
Set the wrapped value.Note: this method should accept null without throwing an exception, setting "0.0" instead.
- Specified by:
setValuein interfaceWritableValue<Number>- Parameters:
value- The new value
-
-