Interface ObservableProperty<T>

All Superinterfaces:
Property<T>

public interface ObservableProperty<T> extends Property<T>
  • Method Details

    • addChangeListener

      void addChangeListener(@NotNull @NotNull ValueListener<T> listener)
      Bind changes to passed listener
      Parameters:
      listener - the listener object
    • removeListener

      void removeListener(@NotNull @NotNull ValueListener<T> listener)
      Remove the listener from instance
      Parameters:
      listener - the listener to remove
    • create

      @Contract(" -> new") @NotNull static <T> @NotNull ObservableProperty<T> create()
      Generate new instance of property without initial value
      Type Parameters:
      T - property type value
      Returns:
      property instance
    • create

      @NotNull static <T> @NotNull ObservableProperty<T> create(@Nullable T initial)
      Generate new instance of property with initial value
      Type Parameters:
      T - property type value
      Returns:
      property instance