public class PrintTask
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
PrintTask.PrintResult
A json object that contains the url of the printed image.
|
Modifier and Type | Method and Description |
---|---|
void |
addCompleteHandler(PrintTaskHandler handler)
Fired when the print job has completed.
|
void |
addErrorHandler(ErrorHandler handler)
Fired when an error occurs while executing the print task.
|
static boolean |
assertLoaded()
Check that the esri.layers.PrintTask has been loaded
|
static PrintTask |
create(java.lang.String url)
Creates a new PrintTask object.
|
Deferred |
execute(PrintParameters params)
Sends a request to the print service resource to create a print page using the information specified in the printParameters argument.
|
Deferred |
execute(PrintParameters params,
PrintTaskCallback callback)
Sends a request to the print service resource to create a print page using the information specified in the printParameters argument.
|
java.lang.String |
getUrl()
The url to the Export Web Map Task.
|
public static PrintTask create(java.lang.String url)
url
- - The url to the Export Web Map Task. Requires ArcGIS Server 10.1 or later.public static boolean assertLoaded()
public final java.lang.String getUrl()
public final Deferred execute(PrintParameters params, PrintTaskCallback callback)
params
- - A PrintParameters object that defines the printing options.callback
- - The function to call when the method has completed.public final Deferred execute(PrintParameters params)
params
- - A PrintParameters object that defines the printing options.public final void addCompleteHandler(PrintTaskHandler handler)
handler
- - Fires when the print operation is complete.public final void addErrorHandler(ErrorHandler handler)
handler
- - Error message returned in a JavaScript error object.