Class HasEventHandling
java.lang.Object
io.deephaven.web.client.api.event.HasEventHandling
- Direct Known Subclasses:
AbstractTableSubscription,CoreClient,HasLifecycle,IdeSession,JsChart,JsWidget,QueryConnectable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> RemoverFnaddEventListener(String name, EventFn<T> callback) Listen for events on this object.voidaddEventListenerOneShot(HasEventHandling.EventPair<?>... pairs) <T> voidaddEventListenerOneShot(String name, EventFn<T> callback) voidfailureHandled(String failure) <T> voidfireCriticalEvent(String type) <T> voidfireCriticalEvent(String type, T detail) <T> voidvoid<T> voidbooleanhasListener(String name, EventFn<?> fn) booleanhasListeners(String name) booleanprotected String<T> elemental2.promise.Promise<Event<T>><T> booleanremoveEventListener(String name, EventFn<T> callback) Removes an event listener added to this table.voidvoid
-
Field Details
-
INTERNAL_EVENT_RELEASED
- See Also:
-
-
Constructor Details
-
HasEventHandling
public HasEventHandling()
-
-
Method Details
-
logPrefix
-
addEventListener
Listen for events on this object.- Type Parameters:
T- the type of the data that the event will provide- Parameters:
name- the name of the event to listen forcallback- a function to call when the event occurs- Returns:
- Returns a cleanup function.
-
addEventListenerOneShot
-
addEventListenerOneShot
-
nextEvent
-
hasListeners
-
hasListener
-
removeEventListener
Removes an event listener added to this table.- Type Parameters:
T-- Parameters:
name-callback-- Returns:
-
fireEvent
-
fireEvent
-
fireEvent
-
fireCriticalEvent
-
fireCriticalEvent
-
failureHandled
-
suppressEvents
public void suppressEvents() -
unsuppressEvents
public void unsuppressEvents() -
isSuppress
public boolean isSuppress()
-