public interface IEventDispatcher
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(String type, IEventHandler handler)
Adds new event handler.
|
void |
dispatchEvent(Event event)
Dispatches an event.
|
void |
dispatchEvent(Event event, boolean delayed)
Dispatches a delayed event.
|
boolean |
hasEventHandler(String type)
Checks if event dispatcher as an event handler assigned for a certain event type.
|
void |
removeAllHandlers()
Remove all event handlers.
|
void |
removeEventHandler(String type, IEventHandler handler)
Removes event handler.
|
void addEventHandler(String type, IEventHandler handler)
type
- a type of event to be handled
handler
- event handler
void dispatchEvent(Event event)
event
- the Event
to be dispatched
void dispatchEvent(Event event, boolean delayed)
boolean hasEventHandler(String type)
type
- a type of the Event
void removeEventHandler(String type, IEventHandler handler)
type
- a type of the Event
handler
- event handler IEventHandler
void removeAllHandlers()
Copyright © 1998–2022 iText Group NV. All rights reserved.