|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface WebAppEventContainer
Interface for getting/setting WebApp fired events System events on the WebApp, and Page events on a page.
| Method Summary | |
|---|---|
void |
addEventListener(java.lang.String eventName,
java.lang.String listenerName)
Add an Event Listener to WebApp or Page |
java.util.Iterator |
getEventListeners()
Gets list of all the event listener names in use. |
java.util.Iterator |
getEventListeners(java.lang.String eventName)
Gets list of event listeners for the specified event name. |
| Method Detail |
|---|
void addEventListener(java.lang.String eventName,
java.lang.String listenerName)
eventName - The name of the event to listen tolistenerName - The name of the method or ActionList that should be calledAdd an OnLoad event handler that calls an action which was specified in builder input:
String onLoadAction = builderInputs.getString("OnLoadAction", null);
webApp.addEventListener(WebApp.EVENT_ONLOAD, onLoadAction);java.util.Iterator getEventListeners()
This lists all the listeners for all the event names in use.
// get all the event names
Iterator i = webApp.getEventListeners();
while (i.hasNext()) {
String eventName = (String)i.next();
System.out.println("Event listeners for event " + eventName + ":");
// get all the listeners for this event name
Iterator j = webApp.getEventListeners(eventName);
while (j.hasNext()) {
String listener = (String)j.next();
System.out.println(" " + listener);
}
}java.util.Iterator getEventListeners(java.lang.String eventName)
eventName - The name of the event to get listeners for.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||