| java.lang.Object nextapp.echo2.webrender.servermessage.EventProcessor
EventProcessor | public class EventProcessor (Code) | | A utility class to add EchoEventProcessor message parts to the
ServerMessage . EchoEventProcessor message parts
are used to register/unregister client-side event listeners.
|
Method Summary | |
public static void | renderEventAdd(ServerMessage serverMessage, String eventType, String elementId, String eventHandler) Creates an event-add operation to register a client event
listener of a particular type on an HTML element. | public static void | renderEventRemove(ServerMessage serverMessage, String eventType, String elementId) Creates an event-remove operation to unregister a client
event listener of a particular type on an HTML element. |
renderEventAdd | public static void renderEventAdd(ServerMessage serverMessage, String eventType, String elementId, String eventHandler)(Code) | | Creates an event-add operation to register a client event
listener of a particular type on an HTML element.
Parameters: serverMessage - the outgoing ServerMessage Parameters: eventType - the type of event (the "on" prefix should beomitted, e.g., "onmousedown" would be expressed as"mousedown") Parameters: elementId - the id of the listened-to DOM element Parameters: eventHandler - the name of the handler method to be invoked when the event occurs, e.g., "EchoButton.processAction" |
renderEventRemove | public static void renderEventRemove(ServerMessage serverMessage, String eventType, String elementId)(Code) | | Creates an event-remove operation to unregister a client
event listener of a particular type on an HTML element.
Parameters: serverMessage - the outgoing ServerMessage Parameters: eventType - the type of event (the "on" prefix should beomitted, e.g., "onmousedown" would be expressed as"mousedown") Parameters: elementId - the id of the listened-to DOM element |
|
|