public class MapControlClientEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENT_EVENT_TARGET_EVENT_NAME
Event handler (ie, method) in this Class that will respond to push to client events
|
Constructor and Description |
---|
MapControlClientEvent(ControlInstance control) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ClientEvent> |
getClientEvents()
This will return a COPY of the list of the client events that need to
sent to the client.
|
boolean |
hasClientEvents()
Returns true if there are pending client events that need to be pushed to
the browser.
|
static WebClientEvent |
pushClientEvent(WebClientSession clientSession,
java.lang.String controlId,
java.lang.String eventName,
java.lang.String eventArgs)
Convenience method for creating and pushing a client event to a map control.
|
int |
pushMapControlClientEventHandler()
means for the server code to dispatch
ClientEvent instances to the browser map control. |
static WebClientEvent |
sendClientEvent(WebClientSession clientSession,
java.lang.String controlId,
java.lang.String eventName,
java.lang.String eventArgs)
Convenience shortcut method to handleEvent(WebClientSession, WebClientEvent) to a map control.
|
public static final java.lang.String CLIENT_EVENT_TARGET_EVENT_NAME
public MapControlClientEvent(ControlInstance control)
public int pushMapControlClientEventHandler()
ClientEvent
instances to the browser map control.
ClientEvent
instances are sent using dojo's topic subscription modelpublic static WebClientEvent pushClientEvent(WebClientSession clientSession, java.lang.String controlId, java.lang.String eventName, java.lang.String eventArgs)
clientSession
- current WebClientSessioncontrolId
- control id (ie, map control id to handle the event)eventName
- dojo event name the client will have subscribed toeventArgs
- an option string contain some data to pass along in the eventpublic static WebClientEvent sendClientEvent(WebClientSession clientSession, java.lang.String controlId, java.lang.String eventName, java.lang.String eventArgs)
clientSession
- current WebClientSessioncontrolId
- control id (ie, map control id to handle the event)eventName
- dojo event name the client will have subscribed toeventArgs
- an option string contain some data to pass along in the eventhandleEvent(WebClientSession, WebClientEvent)
public boolean hasClientEvents()
public java.util.List<ClientEvent> getClientEvents()