|
|||||||||
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 adf.MapPoint, adf.MapLine, adf.MapOval 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 (adf.MapPoint) |
PointArgs |
ClientActions.MAP_LINE (adf.MapLine) |
LineArgs |
ClientActions.MAP_RECTANGLE (adf.MapRectangle) |
DragRectangleArgs |
ClientActions.MAP_CIRCLE (adf.MapCircle) |
CircleArgs |
ClientActions.MAP_OVAL (adf.MapOval) |
OvalArgs |
ClientActions.MAP_POLYLINE (adf.MapPolyline) |
PolylineArgs |
ClientActions.MAP_POLYGON (adf.MapPolygon) |
PolygonArgs |
ClientActions.MAP_PAN (adf.MapPan) |
DragImageArgs |
Field Summary | |
---|---|
protected String |
controlId
|
protected Map<?,?> |
requestParameters
The associated request parameters. |
Constructor Summary | |
---|---|
ClientActionArgs()
|
Method Summary | |
---|---|
static void |
addClientActionArgs(String clientAction,
String argsClassName)
Add a client action and ClientActionArgs class mapping. |
static ClientActionArgs |
getClientActionArgs(String clientAction,
Map<?,?> requestParameters,
String controlId)
Retrieves the ClientActionArgs responsible for the specified client action. |
String |
getControlId()
|
abstract WebGeometry |
getMapGeometry()
|
Map<?,?> |
getRequestParameters()
Returns the request parameters for this client action. |
abstract WebGeometry |
getWebGeometry()
|
abstract void |
init()
Initialize the sub-class of ClientActionArgs. |
void |
init(Map<?,?> parameters,
String ctrlId)
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 String controlId
protected Map<?,?> requestParameters
Constructor Detail |
---|
public ClientActionArgs()
Method Detail |
---|
public static ClientActionArgs getClientActionArgs(String clientAction, Map<?,?> requestParameters, String controlId)
clientAction
- a client action stringrequestParameters
- the request parameters
ClientActionArgs
- the ClientActionArgs objectpublic static void addClientActionArgs(String clientAction, String argsClassName)
clientAction
- the client action (usually a Javascript method)argsClassName
- a concrete sub-class of ClientActionArgs associated with this client actionpublic final void init(Map<?,?> parameters, String ctrlId) throws Exception
parameters
- the request parameters
Exception
public abstract void init() throws Exception
Exception
public Map<?,?> getRequestParameters()
Map
- the associated request parameters.public 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 |