com.esri.adf.web.faces.event
Class ContinuousPanPhaseListener

java.lang.Object
  extended by com.esri.adf.web.faces.event.ContinuousPanPhaseListener
All Implemented Interfaces:
Serializable, EventListener, javax.faces.event.PhaseListener

public class ContinuousPanPhaseListener
extends Object
implements javax.faces.event.PhaseListener

Phase listener to handle ajax requests to handle following map operations:

Required parameters :
doContinuousPan=doContinuousPan : Identifier for phase listener to process request
formId=[value] : Id of form within which map is rendered
tocId=[value] : Id of map

Optional parameters :
resizeMap=resizeMap : Resize map control
width=[value] : New width
height=[value] : New height

JavaScript functions :
Request sender : adf.Map.resize()
Response handling : EsriControls.processPostBack()

Optional parameters :
At 9.3.1, the following map extent request parameters should be used instead of using the centerx/centery values.
getImage=getImage : Retrieve continuous pan images
xmin=[value] : minimum x value for the requested map image (in map coordinates)
ymax=[value] : maximum y value for the requested map image (in map coordinates)
xmax=[value] : maximum x value for the requested map image (in map coordinates)
ymin=[value] : minimum y value for the requested map image (in map coordinates)
index=[value] : Index of resource in map

JavaScript functions :
Request sender : adf.MapSourceDynamic.addImage()
Response handling : adf.MapSourceDynamic.process_getImageResponse()

Optional parameters :
At 9.3.1, the following getImage request parameters should no longer be used. Instead, use map extent values (see above). getImage=getImage : Retrieve continuous pan images
centerx=[value] : X offset of image tile from original center (in screen coordinates)
centery=[value] : Y offset of image tile from original center (in screen coordinates)
index=[value] : Index of resource in map

JavaScript functions :
Request sender : adf.MapSourceDynamic.addImage()
Response handling : adf.MapSourceDynamic.process_getImageResponse()

Optional parameters :
centerAt=centerAt : Set map's center and update context
centerx=[value] : X offset of image tile from previous center (in screen coordinates)
centery=[value] : Y offset of image tile from previous center (in screen coordinates)

JavaScript functions :
Request sender : adf.Map.centerAt()
Response handling : adf.Map.process_centerAtResponse()

Optional parameters :
changeLevel=changeLevel : Update map's zoom level and update context
level=[value] : New zoom level
source=[value] : Resource type (dynamic/tile)

JavaScript functions :
Request sender : adf.Map.changeLevel()
Response handling : EsriControls.processPostBack()

See Also:
Serialized Form

Field Summary
static String MIME_ID_PREFIX
          The unique MIME id prefix.
static String REQUEST_PARAM
           
 
Constructor Summary
ContinuousPanPhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
           
 void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
           
 javax.faces.event.PhaseId getPhaseId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_PARAM

public static final String REQUEST_PARAM
See Also:
Constant Field Values

MIME_ID_PREFIX

public static final String MIME_ID_PREFIX
The unique MIME id prefix.

See Also:
Constant Field Values
Constructor Detail

ContinuousPanPhaseListener

public ContinuousPanPhaseListener()
Method Detail

getPhaseId

public javax.faces.event.PhaseId getPhaseId()
Specified by:
getPhaseId in interface javax.faces.event.PhaseListener

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
Specified by:
beforePhase in interface javax.faces.event.PhaseListener

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
Specified by:
afterPhase in interface javax.faces.event.PhaseListener