public class CancellationController extends BaseClass
config, configOnly, factoryCreated, factoryProperties, id, scClassName
Constructor and Description |
---|
CancellationController() |
CancellationController(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
cancel()
Requests cancellation of all asynchronous processes that are polling
canceled or observing this method. |
java.lang.Boolean |
cancel(java.lang.String reason)
Requests cancellation of all asynchronous processes that are polling
canceled or observing this method. |
com.google.gwt.core.client.JavaScriptObject |
create() |
java.lang.Boolean |
getCanceled()
Whether
cancel() has been called. |
java.lang.String |
getCancellationReason()
The reason, if any, passed to the first call to
cancel() . |
com.google.gwt.core.client.JavaScriptObject |
getJsObj() |
com.google.gwt.core.client.JavaScriptObject |
getOrCreateJsObj() |
static CancellationController |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
boolean |
isCreated() |
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, isFactoryCreated, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setFactoryCreated, setID, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
public CancellationController()
public CancellationController(com.google.gwt.core.client.JavaScriptObject jsObj)
public static CancellationController getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
in class BaseClass
public com.google.gwt.core.client.JavaScriptObject create()
public com.google.gwt.core.client.JavaScriptObject getJsObj()
public com.google.gwt.core.client.JavaScriptObject getOrCreateJsObj()
getOrCreateJsObj
in class BaseClass
public java.lang.Boolean getCanceled() throws java.lang.IllegalStateException
cancel()
has been called.
Note : This method should be called only after the underlying component has been created.
java.lang.IllegalStateException
- if the underlying component has not yet been created.public java.lang.String getCancellationReason() throws java.lang.IllegalStateException
cancel()
.
Note : This method should be called only after the underlying component has been created.
java.lang.IllegalStateException
- if the underlying component has not yet been created.public java.lang.Boolean cancel()
canceled
or observing this method. this.cancellationReason
is set to the provided
reason
only on the first call to cancel().
true
if this was the first call to cancel(); false
otherwise.public java.lang.Boolean cancel(java.lang.String reason)
canceled
or observing this method. this.cancellationReason
is set to the provided
reason
only on the first call to cancel().
reason
- an optional reason for cancellation.true
if this was the first call to cancel(); false
otherwise.