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<java.lang.Boolean>
,Guardian
@Deprecated public class Indicator extends java.lang.Object implements javafx.beans.value.ObservableBooleanValue, Guardian
Deprecated.Indicator is unsafe on recursion: it may report misleading changes. UseSuspendableNo
instead.
-
-
Field Summary
Fields Modifier and Type Field Description private ListHelper<javafx.beans.value.ChangeListener<? super java.lang.Boolean>>
cListeners
Deprecated.private ListHelper<javafx.beans.InvalidationListener>
iListeners
Deprecated.private int
on
Deprecated.
-
Constructor Summary
Constructors Constructor Description Indicator()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addListener(javafx.beans.InvalidationListener listener)
Deprecated.void
addListener(javafx.beans.value.ChangeListener<? super java.lang.Boolean> listener)
Deprecated.boolean
get()
Deprecated.java.lang.Boolean
getValue()
Deprecated.Guard
guard()
Deprecated.Equivalent toon()
.boolean
isOff()
Deprecated.boolean
isOn()
Deprecated.private void
notifyListeners(boolean value)
Deprecated.EventStream<java.lang.Void>
offs()
Deprecated.Guard
on()
Deprecated.Turns this indicator on.EventStream<java.lang.Void>
ons()
Deprecated.void
onWhile(java.lang.Runnable r)
Deprecated.Runs the given computation, making sure this indicator is on.<T> T
onWhile(java.util.function.Supplier<T> f)
Deprecated.Runs the given computation, making sure this indicator is on.private void
release()
Deprecated.void
removeListener(javafx.beans.InvalidationListener listener)
Deprecated.void
removeListener(javafx.beans.value.ChangeListener<? super java.lang.Boolean> listener)
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.reactfx.Guardian
guardWhile, guardWhile
-
-
-
-
Field Detail
-
iListeners
private ListHelper<javafx.beans.InvalidationListener> iListeners
Deprecated.
-
cListeners
private ListHelper<javafx.beans.value.ChangeListener<? super java.lang.Boolean>> cListeners
Deprecated.
-
on
private int on
Deprecated.
-
-
Method Detail
-
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.
-
onWhile
public void onWhile(java.lang.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(java.util.function.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 toT 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 interfacejavafx.beans.value.ObservableBooleanValue
-
getValue
public java.lang.Boolean getValue()
Deprecated.- Specified by:
getValue
in interfacejavafx.beans.value.ObservableValue<java.lang.Boolean>
-
ons
public EventStream<java.lang.Void> ons()
Deprecated.
-
offs
public EventStream<java.lang.Void> offs()
Deprecated.
-
notifyListeners
private void notifyListeners(boolean value)
Deprecated.
-
addListener
public void addListener(javafx.beans.value.ChangeListener<? super java.lang.Boolean> listener)
Deprecated.- Specified by:
addListener
in interfacejavafx.beans.value.ObservableValue<java.lang.Boolean>
-
removeListener
public void removeListener(javafx.beans.value.ChangeListener<? super java.lang.Boolean> listener)
Deprecated.- Specified by:
removeListener
in interfacejavafx.beans.value.ObservableValue<java.lang.Boolean>
-
addListener
public void addListener(javafx.beans.InvalidationListener listener)
Deprecated.- Specified by:
addListener
in interfacejavafx.beans.Observable
-
removeListener
public void removeListener(javafx.beans.InvalidationListener listener)
Deprecated.- Specified by:
removeListener
in interfacejavafx.beans.Observable
-
-