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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ListHelper<javafx.beans.value.ChangeListener<? super Boolean>> Deprecated.private ListHelper<javafx.beans.InvalidationListener> Deprecated.private intDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(javafx.beans.InvalidationListener listener) Deprecated.voidaddListener(javafx.beans.value.ChangeListener<? super Boolean> listener) Deprecated.booleanget()Deprecated.getValue()Deprecated.guard()Deprecated.Equivalent toon().booleanisOff()Deprecated.booleanisOn()Deprecated.private voidnotifyListeners(boolean value) Deprecated.offs()Deprecated.on()Deprecated.Turns this indicator on.ons()Deprecated.voidDeprecated.Runs the given computation, making sure this indicator is on.<T> TDeprecated.Runs the given computation, making sure this indicator is on.private voidrelease()Deprecated.voidremoveListener(javafx.beans.InvalidationListener listener) Deprecated.voidremoveListener(javafx.beans.value.ChangeListener<? super Boolean> listener) Deprecated.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Guardian
guardWhile, guardWhile
-
Field Details
-
iListeners
Deprecated. -
cListeners
Deprecated. -
on
private int onDeprecated.
-
-
Constructor Details
-
Indicator
public Indicator()Deprecated.
-
-
Method Details
-
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
-
onWhile
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
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:
getin interfacejavafx.beans.value.ObservableBooleanValue
-
getValue
-
ons
Deprecated. -
offs
Deprecated. -
notifyListeners
private void notifyListeners(boolean value) Deprecated. -
addListener
-
removeListener
-
addListener
public void addListener(javafx.beans.InvalidationListener listener) Deprecated.- Specified by:
addListenerin interfacejavafx.beans.Observable
-
removeListener
public void removeListener(javafx.beans.InvalidationListener listener) Deprecated.- Specified by:
removeListenerin interfacejavafx.beans.Observable
-
SuspendableNoinstead.