Module javafx.base

Class ReadOnlyFloatWrapper

All Implemented Interfaces:
NumberExpression, Observable, Property<Number>, ReadOnlyProperty<Number>, ObservableFloatValue, ObservableNumberValue, ObservableValue<Number>, WritableFloatValue, WritableNumberValue, WritableValue<Number>

public class ReadOnlyFloatWrapper extends SimpleFloatProperty
This class provides a convenient class to define read-only properties. It creates two properties that are synchronized. One property is read-only and can be passed to external users. The other property is read- and writable and should be used internally only.
Since:
JavaFX 2.0
  • Constructor Details

    • ReadOnlyFloatWrapper

      public ReadOnlyFloatWrapper()
      The constructor of ReadOnlyFloatWrapper
    • ReadOnlyFloatWrapper

      public ReadOnlyFloatWrapper(float initialValue)
      The constructor of ReadOnlyFloatWrapper
      Parameters:
      initialValue - the initial value of the wrapped value
    • ReadOnlyFloatWrapper

      public ReadOnlyFloatWrapper(Object bean, String name)
      The constructor of ReadOnlyFloatWrapper
      Parameters:
      bean - the bean of this ReadOnlyFloatProperty
      name - the name of this ReadOnlyFloatProperty
    • ReadOnlyFloatWrapper

      public ReadOnlyFloatWrapper(Object bean, String name, float initialValue)
      The constructor of ReadOnlyFloatWrapper
      Parameters:
      bean - the bean of this ReadOnlyFloatProperty
      name - the name of this ReadOnlyFloatProperty
      initialValue - the initial value of the wrapped value
  • Method Details

    • getReadOnlyProperty

      public ReadOnlyFloatProperty getReadOnlyProperty()
      Returns the readonly property, that is synchronized with this ReadOnlyFloatWrapper.
      Returns:
      the readonly property