Module javafx.base

Class ReadOnlyLongWrapper

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

public class ReadOnlyLongWrapper extends SimpleLongProperty
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

    • ReadOnlyLongWrapper

      public ReadOnlyLongWrapper()
      The constructor of ReadOnlyLongWrapper
    • ReadOnlyLongWrapper

      public ReadOnlyLongWrapper(long initialValue)
      The constructor of ReadOnlyLongWrapper
      Parameters:
      initialValue - the initial value of the wrapped value
    • ReadOnlyLongWrapper

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

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

    • getReadOnlyProperty

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