com.esri.adf.web.ags.data.edit
Class ActionContext

java.lang.Object
  extended by com.esri.adf.web.ags.data.edit.ActionContext
All Implemented Interfaces:
Serializable

public class ActionContext
extends Object
implements Serializable

A context object maintaining references to the target layer, map bounds, map image size etc when an edit action occurs. When perform an EditAction, the context will be pasted to the action. For detail see EditWorkspace.perform.

See Also:
Serialized Form

Constructor Summary
ActionContext()
          Instantiates an object of ActionContext.
 
Method Summary
 com.esri.arcgis.carto.IFeatureLayer getLayer()
          Gets the current target layer that is being edited.
 com.esri.arcgisws.LayerDescription getLayerDescription()
          Gets the LayerDescription of the target layer.
 int getLayerID()
          Gets the index of the target layer.
 com.esri.arcgis.geometry.IEnvelope getMapExtent()
          Gets the map bounds.
 int getMapHeight()
          Gets the map height in pixels.
 int getMapWidth()
          Gets the map width in pixels.
 com.esri.arcgis.server.IServerContext getServerContext()
          Gets the IServerContext of the action.
 void setLayer(com.esri.arcgis.carto.IFeatureLayer layer)
          Sets the target layer that is being edited.
 void setLayerDescription(com.esri.arcgisws.LayerDescription layerDescription)
          Sets the LayerDescription of the target layer.
 void setLayerID(int layerID)
          Sets the index of the target layer.
 void setMapExtent(com.esri.arcgis.geometry.IEnvelope mapExtent)
          Sets the map bounds.
 void setMapHeight(int mapHeight)
          Sets the map height in pixels.
 void setMapWidth(int mapWidth)
          Sets the map width in pixels.
 void setServerContext(com.esri.arcgis.server.IServerContext serverContext)
          Sets the IServerContext of the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionContext

public ActionContext()
Instantiates an object of ActionContext.

Method Detail

getServerContext

public com.esri.arcgis.server.IServerContext getServerContext()
Gets the IServerContext of the action.

Returns:
Returns the IServerContext.

setServerContext

public void setServerContext(com.esri.arcgis.server.IServerContext serverContext)
Sets the IServerContext of the action.

Parameters:
serverContext - The IServerContext to set.

getLayer

public com.esri.arcgis.carto.IFeatureLayer getLayer()
Gets the current target layer that is being edited.

Returns:
Returns the layer.

setLayer

public void setLayer(com.esri.arcgis.carto.IFeatureLayer layer)
Sets the target layer that is being edited.

Parameters:
layer - The layer to set.

getLayerID

public int getLayerID()
Gets the index of the target layer. The id is same as the id returned in other ADF layer index methods.

Returns:
Returns the layer index.

setLayerID

public void setLayerID(int layerID)
Sets the index of the target layer.

Parameters:
layerID - The layer index to set.

getLayerDescription

public com.esri.arcgisws.LayerDescription getLayerDescription()
Gets the LayerDescription of the target layer.

Returns:
Returns the layer description.

setLayerDescription

public void setLayerDescription(com.esri.arcgisws.LayerDescription layerDescription)
Sets the LayerDescription of the target layer.

Parameters:
layerDescription - The layer description to set.

getMapExtent

public com.esri.arcgis.geometry.IEnvelope getMapExtent()
Gets the map bounds.

Returns:
Returns the map extent.

setMapExtent

public void setMapExtent(com.esri.arcgis.geometry.IEnvelope mapExtent)
Sets the map bounds.

Parameters:
mapExtent - The map extent to set.

getMapHeight

public int getMapHeight()
Gets the map height in pixels.

Returns:
Returns the map height.

setMapHeight

public void setMapHeight(int mapHeight)
Sets the map height in pixels.

Parameters:
mapHeight - The map height to set.

getMapWidth

public int getMapWidth()
Gets the map width in pixels.

Returns:
Returns the map width.

setMapWidth

public void setMapWidth(int mapWidth)
Sets the map width in pixels.

Parameters:
mapWidth - The map width to set.