com.esri.adf.web.ags.data.edit.action
Class CopyFeature

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

public class CopyFeature
extends EditAction

Duplicates the selected features at the given position.

 SelectByExtent select = new SelectByExtent(EditUtil.toEnvelope(-2309712.539, -887434.291, -1023725.086, 411499.344, map
     .getSpatialReference(), ctx));
 CopyFeature copy = new CopyFeature(EditUtil.toILine(-2309712.539, -887434.291, -1023725.086, 411499.344, map
     .getSpatialReference(), ctx));
 workspace.perform(context, select, copy);
 
The feature may fire the following events:
  • PreFeatureStoreEvent
  • FeatureCreatedEvent
  • See Also:
    Serialized Form

    Field Summary
     
    Fields inherited from class com.esri.adf.web.ags.data.edit.EditAction
    eventListeners
     
    Constructor Summary
    CopyFeature(com.esri.arcgis.geometry.ILine offset)
              Instantiates an object of CopyFeature.
     
    Method Summary
     void action(ActionContext context)
              Performs the action.
     com.esri.arcgis.geometry.ILine getOffset()
              Gets the offset of the new feature.
     void setOffset(com.esri.arcgis.geometry.ILine offset)
              Sets the offset of the new feature.
     
    Methods inherited from class com.esri.adf.web.ags.data.edit.EditAction
    addEventListener, fireEvent, isEnabled, isSessionAware, removeEventListener, setEnabled, setSessionAware
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    CopyFeature

    public CopyFeature(com.esri.arcgis.geometry.ILine offset)
    Instantiates an object of CopyFeature.

    Parameters:
    offset - the offset the copy.
    Method Detail

    getOffset

    public com.esri.arcgis.geometry.ILine getOffset()
    Gets the offset of the new feature.

    Returns:
    Returns the offset.

    setOffset

    public void setOffset(com.esri.arcgis.geometry.ILine offset)
    Sets the offset of the new feature.

    Parameters:
    offset - The offset to set.

    action

    public void action(ActionContext context)
                throws Exception
    Description copied from class: EditAction
    Performs the action.

    Specified by:
    action in class EditAction
    Parameters:
    context - the action context.
    Throws:
    Exception