Interface WritableFloatValue

All Superinterfaces:
WritableNumberValue, WritableValue<Number>

public interface WritableFloatValue extends WritableNumberValue
A writable float value.
Since:
JavaFX 2.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    get()
    Get the wrapped value.
    void
    set(float value)
    Set the wrapped value.
    void
    Set the wrapped value.

    Methods inherited from interface javafx.beans.value.WritableValue

    getValue
  • Method Details

    • get

      float get()
      Get the wrapped value. Unlike WritableValue.getValue(), this method returns primitive float. Needs to be identical to WritableValue.getValue().
      Returns:
      The current value
    • set

      void set(float value)
      Set the wrapped value. Unlike setValue(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:
      setValue in interface WritableValue<Number>
      Parameters:
      value - The new value