Package org.reactfx

Class Indicator

java.lang.Object
org.reactfx.Indicator
All Implemented Interfaces:
javafx.beans.Observable, javafx.beans.value.ObservableBooleanValue, javafx.beans.value.ObservableValue<Boolean>, Guardian

@Deprecated public class Indicator extends Object implements javafx.beans.value.ObservableBooleanValue, Guardian
Deprecated.
Indicator is unsafe on recursion: it may report misleading changes. Use SuspendableNo instead.
  • Field Details

    • iListeners

      private ListHelper<javafx.beans.InvalidationListener> iListeners
      Deprecated.
    • cListeners

      private ListHelper<javafx.beans.value.ChangeListener<? super Boolean>> cListeners
      Deprecated.
    • on

      private int on
      Deprecated.
  • Constructor Details

    • Indicator

      public Indicator()
      Deprecated.
  • Method Details

    • on

      public Guard on()
      Deprecated.
      Turns this indicator on.
      Returns:
      a Guard that, when closed, resets this indicator to the original state.
    • release

      private void release()
      Deprecated.
    • guard

      public Guard guard()
      Deprecated.
      Equivalent to on().
      Specified by:
      guard in interface Guardian
    • onWhile

      public void onWhile(Runnable r)
      Deprecated.
      Runs the given computation, making sure this indicator is on. When done, this indicator is reset to the previous state.

      Equivalent to

       try(Guard g = on()) {
           r.run();
       }
       
    • onWhile

      public <T> T onWhile(Supplier<T> f)
      Deprecated.
      Runs the given computation, making sure this indicator is on. When done, this indicator is reset to the previous state.
       T t = indicator.onWhile(f);
       
      is equivalent to
       T t;
       try(Guard g = on()) {
           t = f.get();
       }
       
    • isOn

      public boolean isOn()
      Deprecated.
    • isOff

      public boolean isOff()
      Deprecated.
    • get

      public boolean get()
      Deprecated.
      Specified by:
      get in interface javafx.beans.value.ObservableBooleanValue
    • getValue

      public Boolean getValue()
      Deprecated.
      Specified by:
      getValue in interface javafx.beans.value.ObservableValue<Boolean>
    • ons

      public EventStream<Void> ons()
      Deprecated.
    • offs

      public EventStream<Void> offs()
      Deprecated.
    • notifyListeners

      private void notifyListeners(boolean value)
      Deprecated.
    • addListener

      public void addListener(javafx.beans.value.ChangeListener<? super Boolean> listener)
      Deprecated.
      Specified by:
      addListener in interface javafx.beans.value.ObservableValue<Boolean>
    • removeListener

      public void removeListener(javafx.beans.value.ChangeListener<? super Boolean> listener)
      Deprecated.
      Specified by:
      removeListener in interface javafx.beans.value.ObservableValue<Boolean>
    • addListener

      public void addListener(javafx.beans.InvalidationListener listener)
      Deprecated.
      Specified by:
      addListener in interface javafx.beans.Observable
    • removeListener

      public void removeListener(javafx.beans.InvalidationListener listener)
      Deprecated.
      Specified by:
      removeListener in interface javafx.beans.Observable