Package io.keikai.doc.collab.lib0
Class ObservableV2
java.lang.Object
io.keikai.doc.collab.lib0.ObservableV2
- Direct Known Subclasses:
Doc,UndoManager
Handles named events.
This is basically a (better typed) duplicate of Observable, which will replace Observable in the
next release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voidEmit a named event.booleanhasObserver(String name) <T,S, U> void off(String name, TriConsumer<T, S, U> f) <T,S, U, V> void off(String name, QuadConsumer<T, S, U, V> f) <T,S> void off(String name, BiConsumer<T, S> f) <T> void<T,S, U> void on(String name, TriConsumer<T, S, U> f) <T,S, U, V> void on(String name, QuadConsumer<T, S, U, V> f) <T,S> void on(String name, BiConsumer<T, S> f) <T> void<T,S, U> void once(String name, TriConsumer<T, S, U> f) <T,S, U, V> void once(String name, QuadConsumer<T, S, U, V> f) <T,S> void once(String name, BiConsumer<T, S> f) <T> void
-
Constructor Details
-
ObservableV2
public ObservableV2()
-
-
Method Details
-
on
-
on
-
on
-
on
-
once
-
once
-
once
-
once
-
off
-
off
-
off
-
off
-
hasObserver
-
emit
Emit a named event. All registered event listeners that listen to the specified name will receive the event.- Parameters:
name-args-
-
destroy
public void destroy()
-