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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ListHelper
<javafx.beans.value.ChangeListener<? super Boolean>> Deprecated.private ListHelper
<javafx.beans.InvalidationListener> Deprecated.private int
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(javafx.beans.InvalidationListener listener) Deprecated.void
addListener
(javafx.beans.value.ChangeListener<? super Boolean> listener) Deprecated.boolean
get()
Deprecated.getValue()
Deprecated.guard()
Deprecated.Equivalent toon()
.boolean
isOff()
Deprecated.boolean
isOn()
Deprecated.private void
notifyListeners
(boolean value) Deprecated.offs()
Deprecated.on()
Deprecated.Turns this indicator on.ons()
Deprecated.void
Deprecated.Runs the given computation, making sure this indicator is on.<T> T
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 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 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
Deprecated.Equivalent toon()
. -
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:
get
in interfacejavafx.beans.value.ObservableBooleanValue
-
getValue
Deprecated.- Specified by:
getValue
in interfacejavafx.beans.value.ObservableValue<Boolean>
-
ons
Deprecated. -
offs
Deprecated. -
notifyListeners
private void notifyListeners(boolean value) Deprecated. -
addListener
Deprecated.- Specified by:
addListener
in interfacejavafx.beans.value.ObservableValue<Boolean>
-
removeListener
Deprecated.- Specified by:
removeListener
in interfacejavafx.beans.value.ObservableValue<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
-
SuspendableNo
instead.