|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.faces.event.ClientActionArgs
public abstract class ClientActionArgs
ClientActionArgs can be created for known client actions (on the map controls) such as EsriMapPoint, EsriMapLine, EsriMapOval etc. Concrete sub-classes of this class represent the actual client action arguments. They construct themselves by extracting the required parameters from the request. Below is a table of the client actions and their corresponding ClientActionArgs classes:
| Client JavaScript Action | ClientActionArgs Class |
|---|---|
ClientActions.MAP_POINT(EsriMapPoint) |
PointArgs |
ClientActions.MAP_LINE(EsriMapLine) |
LineArgs |
ClientActions.MAP_RECTANGLE(EsriMapRectangle) |
DragRectangleArgs |
ClientActions.MAP_CIRCLE(EsriMapCircle) |
CircleArgs |
ClientActions.MAP_OVAL(EsriMapOval) |
OvalArgs |
ClientActions.MAP_POLYLINE(EsriMapPolyline) |
PolylineArgs |
ClientActions.MAP_POLYGON(EsriMapPolygon) |
PolygonArgs |
ClientActions.MAP_PAN(EsriMapPan) |
DragImageArgs |
| Field Summary | |
|---|---|
protected java.lang.String |
controlId
|
protected java.util.Map<?,?> |
requestParameters
The associated request parameters. |
| Constructor Summary | |
|---|---|
ClientActionArgs()
|
|
| Method Summary | |
|---|---|
static void |
addClientActionArgs(java.lang.String clientAction,
java.lang.String argsClassName)
Add a client action and ClientActionArgs class mapping. |
static ClientActionArgs |
getClientActionArgs(java.lang.String clientAction,
java.util.Map<?,?> requestParameters,
java.lang.String controlId)
Retrieves the ClientActionArgs responsible for the specified client action. |
java.lang.String |
getControlId()
|
abstract WebGeometry |
getMapGeometry()
|
java.util.Map<?,?> |
getRequestParameters()
Returns the request parameters for this client action. |
abstract WebGeometry |
getWebGeometry()
|
abstract void |
init()
Initialize the sub-class of ClientActionArgs. |
void |
init(java.util.Map<?,?> parameters,
java.lang.String controlId)
Initialize the request parameters and call the abstract init method implemented by all concrete sub-classes of ClientActionArgs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String controlId
protected java.util.Map<?,?> requestParameters
| Constructor Detail |
|---|
public ClientActionArgs()
| Method Detail |
|---|
public static ClientActionArgs getClientActionArgs(java.lang.String clientAction,
java.util.Map<?,?> requestParameters,
java.lang.String controlId)
clientAction - a client action stringrequestParameters - the request parameters
ClientActionArgs- the ClientActionArgs object
public static void addClientActionArgs(java.lang.String clientAction,
java.lang.String argsClassName)
clientAction - the client action (usually a Javascript method)argsClassName - a concrete sub-class of ClientActionArgs associated with this client action
public final void init(java.util.Map<?,?> parameters,
java.lang.String controlId)
throws java.lang.Exception
parameters - the request parameters
java.lang.Exception
public abstract void init()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map<?,?> getRequestParameters()
Map- the associated request parameters.public java.lang.String getControlId()
public abstract WebGeometry getWebGeometry()
public abstract WebGeometry getMapGeometry()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||