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

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

public class MergeFeatures
extends EditAction

Merges the selected features to a new Feature.

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

    Field Summary
     
    Fields inherited from class com.esri.adf.web.ags.data.edit.EditAction
    eventListeners
     
    Constructor Summary
    MergeFeatures()
              Instantiates an object of MergeFeatures.
     
    Method Summary
     void action(ActionContext context)
              Performs the action.
     
    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

    MergeFeatures

    public MergeFeatures()
    Instantiates an object of MergeFeatures.

    Method Detail

    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