AI2 Component
(Version nb184)
|
Public Member Functions | |
boolean | canDispatchEvent (Component component, String eventName) |
boolean | dispatchEvent (Component component, String componentName, String eventName, Object[] args) |
void | dispatchErrorOccurredEvent (Component component, String functionName, int errorCode, Object... args) |
void | dispatchGenericEvent (Component component, String eventName, boolean notAlreadyHandled, Object[] args) |
Interface indicating that this object can handle event dispatching.
Definition at line 15 of file HandlesEventDispatching.java.
boolean com.google.appinventor.components.runtime.HandlesEventDispatching.canDispatchEvent | ( | Component | component, |
String | eventName | ||
) |
Implemented in com.google.appinventor.components.runtime.Form.
void com.google.appinventor.components.runtime.HandlesEventDispatching.dispatchErrorOccurredEvent | ( | Component | component, |
String | functionName, | ||
int | errorCode, | ||
Object... | args | ||
) |
Implemented in com.google.appinventor.components.runtime.Form.
boolean com.google.appinventor.components.runtime.HandlesEventDispatching.dispatchEvent | ( | Component | component, |
String | componentName, | ||
String | eventName, | ||
Object[] | args | ||
) |
Implemented in com.google.appinventor.components.runtime.Form.
void com.google.appinventor.components.runtime.HandlesEventDispatching.dispatchGenericEvent | ( | Component | component, |
String | eventName, | ||
boolean | notAlreadyHandled, | ||
Object[] | args | ||
) |
Request that the entity that handles the event send a generic event for corresponding component class, event name pair.
component | the component originating the event |
eventName | the name of the event to fire |
notAlreadyHandled | true if the event was not handled by an event handler on the component, otherwise false |
args | any event-specific arguments to pass to the event handler block |
Implemented in com.google.appinventor.components.runtime.Form.