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

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

public class SelectByExtent
extends EditAction

Selects features in the given bounds.

 SelectByExtent select = new SelectByExtent(EditUtil.toEnvelope(-2309712.539, -887434.291, -1023725.086, 411499.344, map
     .getSpatialReference(), ctx));
 
 workspace.perform(context, select);
 
The feature may fire the following event:
  • FeatureSelectedEvent
  • FeatureUnselectedEvent
  • See Also:
    Serialized Form

    Field Summary
     
    Fields inherited from class com.esri.adf.web.ags.data.edit.EditAction
    eventListeners
     
    Constructor Summary
    SelectByExtent(com.esri.arcgis.geometry.IEnvelope extent)
              Instantiates an object of SelectByExtent.
     
    Method Summary
     void action(ActionContext context)
              Performs the action.
     com.esri.arcgis.geometry.IEnvelope getExtent()
              Gets the search bounds.
     int getMaxCount()
              Gets the maximum number of return features.
     boolean isXorMode()
              Sets to true if use XOR select mode.
     void setExtent(com.esri.arcgis.geometry.IEnvelope extent)
              Sets the search bounds.
     void setMaxCount(int maxCount)
              Sets the maximum number of return features.
     void setXorMode(boolean xorMode)
              Returns true if use XOR select mode.
     
    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

    SelectByExtent

    public SelectByExtent(com.esri.arcgis.geometry.IEnvelope extent)
    Instantiates an object of SelectByExtent.

    Parameters:
    extent - the search bounds
    Method Detail

    getExtent

    public com.esri.arcgis.geometry.IEnvelope getExtent()
    Gets the search bounds.

    Returns:
    Returns the extent.

    setExtent

    public void setExtent(com.esri.arcgis.geometry.IEnvelope extent)
    Sets the search bounds.

    Parameters:
    extent - The extent to set.

    getMaxCount

    public int getMaxCount()
    Gets the maximum number of return features. Return -1 for return all.

    Returns:
    Returns the maxCount.

    setMaxCount

    public void setMaxCount(int maxCount)
    Sets the maximum number of return features. Return -1 for return all.

    Parameters:
    maxCount - The maxCount to set.

    isXorMode

    public boolean isXorMode()
    Sets to true if use XOR select mode.

    Returns:
    Returns true to use XOR select mode.

    setXorMode

    public void setXorMode(boolean xorMode)
    Returns true if use XOR select mode.

    Parameters:
    xorMode - Sets to true to use XOR select mode.

    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