public class FindTask
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
FindTask.Options |
Modifier and Type | Method and Description |
---|---|
void |
addErrorHandler(ErrorHandler handler)
Add error handler.
|
void |
addFindTaskCompleteHandler(FindTaskCompleteHandler handler)
Add complete handler.
|
static FindTask |
create(java.lang.String url)
Creates a new FindTask object.
|
static FindTask |
create(java.lang.String url,
FindTask.Options options)
Creates a new FindTask object.
|
Deferred |
execute(FindParameters params)
Sends a request to the ArcGIS REST map service resource to perform a search based on the FindParameters specified in the findParameters argument.
|
Deferred |
execute(FindParameters params,
FindTaskCallback taskCallback)
Sends a request to the ArcGIS REST map service resource to perform a search based on the FindParameters specified in the findParameters argument.
|
java.lang.String |
getUrl()
URL to the ArcGIS Server REST resource that represents a map service.
|
public static FindTask create(java.lang.String url)
url
- - URL to the ArcGIS Server REST resource that represents a layer in a service.public static FindTask create(java.lang.String url, FindTask.Options options)
url
- - URL to the ArcGIS Server REST resource that represents a layer in a service.options
- - Optional parameters.public final java.lang.String getUrl()
public final Deferred execute(FindParameters params, FindTaskCallback taskCallback)
params
- - Specifies the layers and fields that are used to search against.taskCallback
- - fired when server respondspublic final Deferred execute(FindParameters params)
params
- - Specifies the layers and fields that are used to search against.public final void addFindTaskCompleteHandler(FindTaskCompleteHandler handler)
handler
- - Fires when the find operation is complete. The result is an array of FindResult.public final void addErrorHandler(ErrorHandler handler)
handler
- - Fires when an error occurs when executing the task.