◆ dispatchEvent()
static boolean com.google.appinventor.components.runtime.EventDispatcher.dispatchEvent |
( |
Component |
component, |
|
|
String |
eventName, |
|
|
Object... |
args |
|
) |
| |
|
static |
Dispatches an event based on its name to any registered handlers.
- Parameters
-
component | the component raising the event |
eventName | name of event being raised |
args | arguments to the event handler |
Definition at line 188 of file EventDispatcher.java.
◆ makeFullEventName()
static String com.google.appinventor.components.runtime.EventDispatcher.makeFullEventName |
( |
String |
componentId, |
|
|
String |
eventName |
|
) |
| |
|
static |
◆ registerEventForDelegation()
static void com.google.appinventor.components.runtime.EventDispatcher.registerEventForDelegation |
( |
HandlesEventDispatching |
dispatchDelegate, |
|
|
String |
componentId, |
|
|
String |
eventName |
|
) |
| |
|
static |
Registers a dispatchDelegate for handling event dispatching for the event with the specified component id and event name.
- Parameters
-
dispatchDelegate | object responsible for dispatching the event |
componentId | id of component associated with event handler |
eventName | name of event |
Definition at line 109 of file EventDispatcher.java.
◆ removeDispatchDelegate()
static void com.google.appinventor.components.runtime.EventDispatcher.removeDispatchDelegate |
( |
HandlesEventDispatching |
dispatchDelegate | ) |
|
|
static |
Removes event handlers previously registered with the given dispatchDelegate and clears all references to the dispatchDelegate in this class.
Called when a Form's onDestroy method is called.
Definition at line 174 of file EventDispatcher.java.
◆ unregisterAllEventsForDelegation()
static void com.google.appinventor.components.runtime.EventDispatcher.unregisterAllEventsForDelegation |
( |
| ) |
|
|
static |
◆ unregisterEventForDelegation()
static void com.google.appinventor.components.runtime.EventDispatcher.unregisterEventForDelegation |
( |
HandlesEventDispatching |
dispatchDelegate, |
|
|
String |
componentId, |
|
|
String |
eventName |
|
) |
| |
|
static |
Unregisters a dispatchDelegate for handling event dispatching for the event with the specified component id and event name.
- Parameters
-
dispatchDelegate | object responsible for dispatching the event |
componentId | id of component associated with event handler |
eventName | name of event |
Definition at line 134 of file EventDispatcher.java.
The documentation for this class was generated from the following file:
- C:/Users/Ulli/appinventor-sources/appinventor/components/src/com/google/appinventor/components/runtime/EventDispatcher.java