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> RemoverFn
addEventListener
(String name, EventFn<T> callback) Listen for events on this object.void
addEventListenerOneShot
(HasEventHandling.EventPair<?>... pairs) <T> void
addEventListenerOneShot
(String name, EventFn<T> callback) void
failureHandled
(String failure) <T> void
fireCriticalEvent
(String type) <T> void
fireCriticalEvent
(String type, T detail) <T> void
void
<T> void
boolean
hasListener
(String name, EventFn<?> fn) boolean
hasListeners
(String name) boolean
protected String
<T> elemental2.promise.Promise<Event<T>>
<T> boolean
removeEventListener
(String name, EventFn<T> callback) Removes an event listener added to this table.void
void
-
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()
-