Top Fields Constructors Methods
org.reactfx

pack-priv Class ToggleFromVal

Located in compilation unit of org.reactfx.Toggle.

extends ProxyVal<Boolean, Boolean>
implements Toggle
Class Inheritance
All Implemented Interfaces
org.reactfx.Toggle, org.reactfx.Suspendable, org.reactfx.value.Val, org.reactfx.Observable, javafx.beans.value.ObservableValue, javafx.beans.Observable

Field Summary

Modifier and TypeField and Description
private Suspendable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Consumer<? super Boolean>
adaptObserver(Consumer<? super Boolean> observer)

Implements abstract org.reactfx.ProxyObservable.adaptObserver.

Adapts the given observer to observer of the underlying Observable.

public Boolean
getValue()

Implements javafx.beans.value.ObservableValue.getValue.

Returns the current value of this ObservableValue

public Guard
suspend()

Implements org.reactfx.Suspendable.suspend.

Suspends this suspendable object.

Field Detail

suspenderback to summary
private Suspendable suspender

Constructor Detail

ToggleFromValback to summary
public ToggleFromVal(Val<Boolean> obs, Suspendable suspender)

Method Detail

adaptObserverback to summary
protected Consumer<? super Boolean> adaptObserver(Consumer<? super Boolean> observer)

Implements abstract org.reactfx.ProxyObservable.adaptObserver.

Doc from org.reactfx.ProxyObservable.adaptObserver.

Adapts the given observer to observer of the underlying Observable.

Important Note

It is required that the transformation applied to two observers that are _equal_ yields two adapted observers that are _equal_. In other words, if `o1.equals(o2)`, then it must be the case that `adaptObserver(o1).equals(adaptObserver(o2))`.

Annotations
@Override
getValueback to summary
public Boolean getValue()

Implements javafx.beans.value.ObservableValue.getValue.

Doc from javafx.beans.value.ObservableValue.getValue.

Returns the current value of this ObservableValue

Annotations
@Override
suspendback to summary
public Guard suspend()

Implements org.reactfx.Suspendable.suspend.

Doc from org.reactfx.Suspendable.suspend.

Suspends this suspendable object.

In case of suspendable Observable, suspends notification delivery for this observable object. Notifications produced while suspended may be queued for later delivery, accumulated into a single cumulative notification, or discarded completely, depending on the concrete implementation.

Annotations
@Override