|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.ags.data.edit.ActionContext
public class ActionContext
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
.
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 |
---|
public ActionContext()
Method Detail |
---|
public com.esri.arcgis.server.IServerContext getServerContext()
public void setServerContext(com.esri.arcgis.server.IServerContext serverContext)
serverContext
- The IServerContext to set.public com.esri.arcgis.carto.IFeatureLayer getLayer()
public void setLayer(com.esri.arcgis.carto.IFeatureLayer layer)
layer
- The layer to set.public int getLayerID()
public void setLayerID(int layerID)
layerID
- The layer index to set.public com.esri.arcgisws.LayerDescription getLayerDescription()
public void setLayerDescription(com.esri.arcgisws.LayerDescription layerDescription)
layerDescription
- The layer description to set.public com.esri.arcgis.geometry.IEnvelope getMapExtent()
public void setMapExtent(com.esri.arcgis.geometry.IEnvelope mapExtent)
mapExtent
- The map extent to set.public int getMapHeight()
public void setMapHeight(int mapHeight)
mapHeight
- The map height to set.public int getMapWidth()
public void setMapWidth(int mapWidth)
mapWidth
- The map width to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |