Deprecated
Indicator is unsafe on recursion: it may report misleading
changes. Use SuspendableNo instead.
| Modifier and Type | Field and Description |
|---|---|
| private ListHelper | |
| private ListHelper | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(ChangeListener<? super Boolean> listener)
Implements javafx. Adds a |
| public void | addListener(InvalidationListener listener)
Implements javafx. Adds an |
| public boolean | get()
Implements javafx. Returns the current value of this |
| public Boolean | getValue()
Implements javafx. Returns the current value of this |
| public Guard | |
| public boolean | |
| public boolean | |
| private void | |
| public EventStream | |
| public Guard | Returns: a Guard that, when closed, resets this indicator to the original state.Turns this indicator on. |
| public EventStream | |
| public void | |
| public <T> T | |
| private void | |
| public void | removeListener(ChangeListener<? super Boolean> listener)
Implements javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the |
| public void | removeListener(InvalidationListener listener)
Implements javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the |
| cListeners | back to summary |
|---|---|
| private ListHelper<ChangeListener<? super Boolean>> cListeners | |
| iListeners | back to summary |
|---|---|
| private ListHelper<InvalidationListener> iListeners | |
| on | back to summary |
|---|---|
| private int on | |
| Indicator | back to summary |
|---|---|
| public Indicator() | |
| addListener | back to summary |
|---|---|
| public void addListener(ChangeListener<? super Boolean> listener) Implements javafx. Doc from javafx. Adds a
Note that the same actual
The
| |
| addListener | back to summary |
|---|---|
| public void addListener(InvalidationListener listener) Implements javafx. Doc from javafx. Adds an
Note that the same actual
The
| |
| get | back to summary |
|---|---|
| public boolean get() Implements javafx. Doc from javafx. Returns the current value of this
| |
| getValue | back to summary |
|---|---|
| public Boolean getValue() Implements javafx. Doc from javafx. Returns the current value of this
| |
| guard | back to summary |
|---|---|
| public Guard guard() Implements org. Equivalent to
| |
| isOff | back to summary |
|---|---|
| public boolean isOff() | |
| isOn | back to summary |
|---|---|
| public boolean isOn() | |
| notifyListeners | back to summary |
|---|---|
| private void notifyListeners(boolean value) | |
| offs | back to summary |
|---|---|
| public EventStream | |
| on | back to summary |
|---|---|
| public Guard on() Turns this indicator on.
| |
| ons | back to summary |
|---|---|
| public EventStream | |
| onWhile | back to summary |
|---|---|
| public void onWhile(Runnable r) 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 | back to summary |
|---|---|
| public <T> T onWhile(Supplier<T> f) 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();
}
| |
| release | back to summary |
|---|---|
| private void release() | |
| removeListener | back to summary |
|---|---|
| public void removeListener(ChangeListener<? super Boolean> listener) Implements javafx. Doc from javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(InvalidationListener listener) Implements javafx. Doc from javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
| |