AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.HandlesEventDispatching Interface Reference
Inheritance diagram for com.google.appinventor.components.runtime.HandlesEventDispatching:
com.google.appinventor.components.runtime.Form com.google.appinventor.components.runtime.ReplForm

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)
 

Detailed Description

Interface indicating that this object can handle event dispatching.

Author
markf.nosp@m.@goo.nosp@m.gle.c.nosp@m.om (Mark Friedman)

Definition at line 15 of file HandlesEventDispatching.java.

Member Function Documentation

◆ canDispatchEvent()

boolean com.google.appinventor.components.runtime.HandlesEventDispatching.canDispatchEvent ( Component  component,
String  eventName 
)

◆ dispatchErrorOccurredEvent()

void com.google.appinventor.components.runtime.HandlesEventDispatching.dispatchErrorOccurredEvent ( Component  component,
String  functionName,
int  errorCode,
Object...  args 
)

◆ dispatchEvent()

boolean com.google.appinventor.components.runtime.HandlesEventDispatching.dispatchEvent ( Component  component,
String  componentName,
String  eventName,
Object[]  args 
)

◆ dispatchGenericEvent()

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.

Parameters
componentthe component originating the event
eventNamethe name of the event to fire
notAlreadyHandledtrue if the event was not handled by an event handler on the component, otherwise false
argsany event-specific arguments to pass to the event handler block

Implemented in com.google.appinventor.components.runtime.Form.


The documentation for this interface was generated from the following file: