Module javafx.base

Class ReadOnlyStringWrapper

All Implemented Interfaces:
Observable, Property<String>, ReadOnlyProperty<String>, ObservableObjectValue<String>, ObservableStringValue, ObservableValue<String>, WritableObjectValue<String>, WritableStringValue, WritableValue<String>

public class ReadOnlyStringWrapper extends SimpleStringProperty
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

    • ReadOnlyStringWrapper

      public ReadOnlyStringWrapper()
      The constructor of ReadOnlyStringWrapper
    • ReadOnlyStringWrapper

      public ReadOnlyStringWrapper(String initialValue)
      The constructor of ReadOnlyStringWrapper
      Parameters:
      initialValue - the initial value of the wrapped value
    • ReadOnlyStringWrapper

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

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

    • getReadOnlyProperty

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