org.reactfx.EventSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of richtextfx Show documentation
Show all versions of richtextfx Show documentation
FX-Text-Area for formatted text and other special effects.
package org.reactfx;
/**
* EventSource is an EventSink that serves also as an EventStream - every value
* pushed to EventSource is immediately emitted by it.
* @param type of values this EventSource accepts and emits.
*/
public class EventSource
extends EventStreamBase
implements EventSink {
/**
* Make this event stream immediately emit the given value.
*/
@Override
public final void push(T value) {
emit(value);
}
@Override
protected final Subscription observeInputs() {
return Subscription.EMPTY;
}
}