Module javafx.base

Class ReadOnlyBooleanWrapper

All Implemented Interfaces:
Observable, Property<Boolean>, ReadOnlyProperty<Boolean>, ObservableBooleanValue, ObservableValue<Boolean>, WritableBooleanValue, WritableValue<Boolean>

public class ReadOnlyBooleanWrapper extends SimpleBooleanProperty
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

    • ReadOnlyBooleanWrapper

      public ReadOnlyBooleanWrapper()
      The constructor of ReadOnlyBooleanWrapper
    • ReadOnlyBooleanWrapper

      public ReadOnlyBooleanWrapper(boolean initialValue)
      The constructor of ReadOnlyBooleanWrapper
      Parameters:
      initialValue - the initial value of the wrapped value
    • ReadOnlyBooleanWrapper

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

      public ReadOnlyBooleanWrapper(Object bean, String name, boolean initialValue)
      The constructor of ReadOnlyBooleanWrapper
      Parameters:
      bean - the bean of this ReadOnlyBooleanProperty
      name - the name of this ReadOnlyBooleanProperty
      initialValue - the initial value of the wrapped value
  • Method Details

    • getReadOnlyProperty

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