|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.tasks.SimpleTaskInfo
com.esri.adf.web.tasks.GeocodeTask
public class GeocodeTask
Field Summary | |
---|---|
static String |
DEFAULT_DISPLAY_NAME
|
static String |
DEFAULT_FIND_BUTTON_TEXT
|
static String |
DEFAULT_FIND_BUTTON_TOOL_TIP
|
Constructor Summary | |
---|---|
GeocodeTask()
|
Method Summary | |
---|---|
void |
clearLocations(TaskEvent event)
|
void |
clearLocations(WebContext webContext)
|
void |
destroy()
The cleaup chores (such as releasing held resources) of attributes of a WebContext should be performed in
this method. |
void |
find(TaskEvent event)
|
List<AddressCandidate> |
find(WebContext webContext)
|
TaskActionDescriptorModel[] |
getActionDescriptors()
Claims there are no custom task action descriptors provided. |
String |
getCalloutTemplate()
Returns the callout template. |
String |
getFindButtonText()
|
String |
getFindButtonToolTip()
|
GeocodeFunctionality |
getGeocodeFunctionality()
|
GISResource |
getGeocodeResource()
|
String |
getHelpURL()
|
WebRenderer |
getHighlightRenderer()
Returns the highlight renderer for callout. |
TaskParamDescriptorModel[] |
getParamDescriptors()
Claims there are no custom task param descriptors provided. |
WebRenderer |
getRenderer()
Returns the default renderer for callout. |
String |
getResourceId()
|
TaskDescriptor |
getTaskDescriptor()
Claims there is no custom TaskDescriptor provided. |
String |
getTaskName()
|
void |
init(WebContext context)
The initialization chores of attributes of a WebContext should be performed in this method. |
boolean |
isFetchResultDetails()
|
boolean |
isShowInfoWindow()
Returns true if the geocode task result(s) to be shown in the info window. |
void |
locate(TaskEvent event)
|
AddressCandidate |
locate(WebContext webContext)
|
void |
setCalloutTemplate(String calloutTemplate)
Sets the template used for displaying the callout. |
void |
setFetchResultDetails(boolean fetchResultDetails)
|
void |
setFindButtonText(String findButtonText)
|
void |
setFindButtonToolTip(String findButtonToolTip)
|
void |
setGeocodeResource(GISResource resource)
Deprecated. As of ArcGIS Java Server 9.3, instead use setResourceId(java.lang.String) |
void |
setHelpURL(String helpURL)
|
void |
setHighlightRenderer(WebRenderer highlightRenderer)
Sets the highligh renderer for callout. |
void |
setRenderer(WebRenderer renderer)
Sets the default renderer for callout. |
void |
setResourceId(String geocodeResourceId)
|
void |
setShowInfoWindow(boolean showInfoWindow)
Sets whether the geocode task result(s) to be shown in the info window or not. |
void |
setTaskName(String taskName)
|
Methods inherited from class com.esri.adf.web.data.tasks.SimpleTaskInfo |
---|
getTaskLayout, getToolDescriptors, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_DISPLAY_NAME
public static final String DEFAULT_FIND_BUTTON_TEXT
public static final String DEFAULT_FIND_BUTTON_TOOL_TIP
Constructor Detail |
---|
public GeocodeTask()
Method Detail |
---|
public void init(WebContext context)
WebContextInitialize
The initialization chores of attributes of a WebContext
should be performed in this method.
Typically this method is called by the WebContext
when the context itself is initialized. It is important
to note that this method is again called by the context when a GISResource
is dynamically added to or
removed from the context. Classes that implement this method should keep this in mind and adapt the method to react
to the callbacks in these circumstances as well.
A WebContext
attribute is usable only after this method has been called.
init
in interface WebContextInitialize
context
- WebContext
- the WebContextWebContext.init(WebContext)
,
WebContext.addResource(String, GISResource, int)
,
WebContext.removeResource(GISResource)
public void destroy()
WebContextInitialize
The cleaup chores (such as releasing held resources) of attributes of a WebContext
should be performed in
this method.
Typically this method is called by the WebContext
when the context itself is destroyed.
The WebContext
attribute is unusable after this method has been called.
destroy
in interface WebContextInitialize
WebContext.destroy()
public void find(TaskEvent event)
public List<AddressCandidate> find(WebContext webContext)
public void locate(TaskEvent event)
public AddressCandidate locate(WebContext webContext)
public void clearLocations(TaskEvent event)
public void clearLocations(WebContext webContext)
public GISResource getGeocodeResource()
public GeocodeFunctionality getGeocodeFunctionality()
public String getResourceId()
public void setResourceId(String geocodeResourceId)
public String getTaskName()
public void setTaskName(String taskName)
public String getHelpURL()
public void setHelpURL(String helpURL)
public String getFindButtonToolTip()
public void setFindButtonToolTip(String findButtonToolTip)
public String getFindButtonText()
public void setFindButtonText(String findButtonText)
public void setShowInfoWindow(boolean showInfoWindow)
showInfoWindow
- if true, info window is shownpublic boolean isShowInfoWindow()
public void setRenderer(WebRenderer renderer)
renderer
- the default renderer for calloutpublic WebRenderer getRenderer()
public void setHighlightRenderer(WebRenderer highlightRenderer)
highlightRenderer
- the highlight renderer for calloutpublic WebRenderer getHighlightRenderer()
public void setCalloutTemplate(String calloutTemplate)
LayerDefinition.DEFAULT_TEMPLATE
for default formatting.
By default the callout template is <header>${ADDRESS}</header><body>${ADDRESS}</body>
calloutTemplate
- the template used for displaying calloutpublic String getCalloutTemplate()
public TaskDescriptor getTaskDescriptor()
SimpleTaskInfo
TaskDescriptor
provided.
You can override this if you wish to provide an explicit descriptor.
getTaskDescriptor
in interface TaskInfo
getTaskDescriptor
in class SimpleTaskInfo
null
public TaskParamDescriptorModel[] getParamDescriptors()
SimpleTaskInfo
getParamDescriptors
in interface TaskInfo
getParamDescriptors
in class SimpleTaskInfo
null
public TaskActionDescriptorModel[] getActionDescriptors()
SimpleTaskInfo
getActionDescriptors
in interface TaskInfo
getActionDescriptors
in class SimpleTaskInfo
null
public void setFetchResultDetails(boolean fetchResultDetails)
fetchResultDetails
- the fetchResultDetails to setpublic boolean isFetchResultDetails()
@Deprecated public void setGeocodeResource(GISResource resource)
setResourceId(java.lang.String)
resource
- the GISResource
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |