public class JQueryDeferred<T> extends JQueryGenericPromise<T>
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier | Constructor and Description |
---|---|
protected |
JQueryDeferred(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static JQueryDeferred |
$as(Object obj) |
JQueryDeferred<T> |
always(JQueryPromiseCallback<Object> alwaysCallback1)
Add handlers to be called when the Deferred object is either resolved or rejected.
|
JQueryDeferred<T> |
always(JQueryPromiseCallback<Object>[] alwaysCallback1)
Add handlers to be called when the Deferred object is either resolved or rejected.
|
JQueryDeferred<T> |
always(JQueryPromiseCallback<Object>[] alwaysCallback1,
Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> alwaysCallbacksN)
Add handlers to be called when the Deferred object is either resolved or rejected.
|
JQueryDeferred<T> |
always(JQueryPromiseCallback<Object> alwaysCallback1,
Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> alwaysCallbacksN)
Add handlers to be called when the Deferred object is either resolved or rejected.
|
JQueryDeferred<T> |
done(JQueryPromiseCallback<T> doneCallback1)
Add handlers to be called when the Deferred object is resolved.
|
JQueryDeferred<T> |
done(JQueryPromiseCallback<T>[] doneCallback1)
Add handlers to be called when the Deferred object is resolved.
|
JQueryDeferred<T> |
done(JQueryPromiseCallback<T>[] doneCallback1,
Array<Union.A2<JQueryPromiseCallback<T>,JQueryPromiseCallback<T>[]>> doneCallbackN)
Add handlers to be called when the Deferred object is resolved.
|
JQueryDeferred<T> |
done(JQueryPromiseCallback<T> doneCallback1,
Array<Union.A2<JQueryPromiseCallback<T>,JQueryPromiseCallback<T>[]>> doneCallbackN)
Add handlers to be called when the Deferred object is resolved.
|
JQueryDeferred<T> |
fail(JQueryPromiseCallback<Object> failCallback1)
Add handlers to be called when the Deferred object is rejected.
|
JQueryDeferred<T> |
fail(JQueryPromiseCallback<Object>[] failCallback1)
Add handlers to be called when the Deferred object is rejected.
|
JQueryDeferred<T> |
fail(JQueryPromiseCallback<Object>[] failCallback1,
Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> failCallbacksN)
Add handlers to be called when the Deferred object is rejected.
|
JQueryDeferred<T> |
fail(JQueryPromiseCallback<Object> failCallback1,
Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> failCallbacksN)
Add handlers to be called when the Deferred object is rejected.
|
JQueryDeferred<T> |
notify(Object value)
Call the progressCallbacks on a Deferred object with the given args.
|
JQueryDeferred<T> |
notify(Object value,
Object... args)
Call the progressCallbacks on a Deferred object with the given args.
|
JQueryDeferred<T> |
notifyWith(Object context)
Call the progressCallbacks on a Deferred object with the given context and args.
|
JQueryDeferred<T> |
notifyWith(Object context,
Object[] value)
Call the progressCallbacks on a Deferred object with the given context and args.
|
JQueryPromise<Object> |
pipe() |
JQueryPromise<Object> |
pipe(Function.A1<? super Object,? extends Object> doneFilter) |
JQueryPromise<Object> |
pipe(Function.A1<? super Object,? extends Object> doneFilter,
Function.A1<? super Object,? extends Object> failFilter) |
JQueryPromise<Object> |
pipe(Function.A1<? super Object,? extends Object> doneFilter,
Function.A1<? super Object,? extends Object> failFilter,
Function.A1<? super Object,? extends Object> progressFilter) |
JQueryDeferred<T> |
progress(JQueryPromiseCallback<Object> progressCallback1)
Add handlers to be called when the Deferred object generates progress notifications.
|
JQueryDeferred<T> |
progress(JQueryPromiseCallback<Object>[] progressCallback1)
Add handlers to be called when the Deferred object generates progress notifications.
|
JQueryDeferred<T> |
progress(JQueryPromiseCallback<Object>[] progressCallback1,
Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> progressCallbackN)
Add handlers to be called when the Deferred object generates progress notifications.
|
JQueryDeferred<T> |
progress(JQueryPromiseCallback<Object> progressCallback1,
Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> progressCallbackN)
Add handlers to be called when the Deferred object generates progress notifications.
|
JQueryPromise<T> |
promise()
Return a Deferred's Promise object.
|
JQueryPromise<T> |
promise(Object target)
Return a Deferred's Promise object.
|
JQueryDeferred<T> |
reject(Object value)
Reject a Deferred object and call any failCallbacks with the given args.
|
JQueryDeferred<T> |
reject(Object value,
Object... args)
Reject a Deferred object and call any failCallbacks with the given args.
|
JQueryDeferred<T> |
rejectWith(Object context)
Reject a Deferred object and call any failCallbacks with the given context and args.
|
JQueryDeferred<T> |
rejectWith(Object context,
Object[] value)
Reject a Deferred object and call any failCallbacks with the given context and args.
|
JQueryDeferred<T> |
resolve(T value)
Resolve a Deferred object and call any doneCallbacks with the given args.
|
JQueryDeferred<T> |
resolve(T value,
Object... args)
Resolve a Deferred object and call any doneCallbacks with the given args.
|
JQueryDeferred<T> |
resolveWith(Object context)
Resolve a Deferred object and call any doneCallbacks with the given context and args.
|
JQueryDeferred<T> |
resolveWith(Object context,
T[] value)
Resolve a Deferred object and call any doneCallbacks with the given context and args.
|
String |
state()
Determine the current state of a Deferred object.
|
then, then, then
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
protected JQueryDeferred(Objs.Constructor<?> c, Object js)
public static JQueryDeferred $as(Object obj)
public JQueryDeferred<T> always(JQueryPromiseCallback<Object> alwaysCallback1, Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> alwaysCallbacksN)
alwaysCallbacks1
- A function, or array of functions, that is called when the Deferred is resolved or rejected.alwaysCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.public JQueryDeferred<T> always(JQueryPromiseCallback<Object>[] alwaysCallback1, Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> alwaysCallbacksN)
alwaysCallbacks1
- A function, or array of functions, that is called when the Deferred is resolved or rejected.alwaysCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.public JQueryDeferred<T> always(JQueryPromiseCallback<Object> alwaysCallback1)
alwaysCallbacks1
- A function, or array of functions, that is called when the Deferred is resolved or rejected.alwaysCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.public JQueryDeferred<T> always(JQueryPromiseCallback<Object>[] alwaysCallback1)
alwaysCallbacks1
- A function, or array of functions, that is called when the Deferred is resolved or rejected.alwaysCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.public JQueryDeferred<T> done(JQueryPromiseCallback<T> doneCallback1, Array<Union.A2<JQueryPromiseCallback<T>,JQueryPromiseCallback<T>[]>> doneCallbackN)
doneCallbacks1
- A function, or array of functions, that are called when the Deferred is resolved.doneCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.public JQueryDeferred<T> done(JQueryPromiseCallback<T>[] doneCallback1, Array<Union.A2<JQueryPromiseCallback<T>,JQueryPromiseCallback<T>[]>> doneCallbackN)
doneCallbacks1
- A function, or array of functions, that are called when the Deferred is resolved.doneCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.public JQueryDeferred<T> done(JQueryPromiseCallback<T> doneCallback1)
doneCallbacks1
- A function, or array of functions, that are called when the Deferred is resolved.doneCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.public JQueryDeferred<T> done(JQueryPromiseCallback<T>[] doneCallback1)
doneCallbacks1
- A function, or array of functions, that are called when the Deferred is resolved.doneCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.public JQueryDeferred<T> fail(JQueryPromiseCallback<Object> failCallback1, Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> failCallbacksN)
failCallbacks1
- A function, or array of functions, that are called when the Deferred is rejected.failCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.public JQueryDeferred<T> fail(JQueryPromiseCallback<Object>[] failCallback1, Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> failCallbacksN)
failCallbacks1
- A function, or array of functions, that are called when the Deferred is rejected.failCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.public JQueryDeferred<T> fail(JQueryPromiseCallback<Object> failCallback1)
failCallbacks1
- A function, or array of functions, that are called when the Deferred is rejected.failCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.public JQueryDeferred<T> fail(JQueryPromiseCallback<Object>[] failCallback1)
failCallbacks1
- A function, or array of functions, that are called when the Deferred is rejected.failCallbacks2
- Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.public JQueryDeferred<T> notify(Object value, Object... args)
args
- Optional args that are passed to the progressCallbacks.public JQueryDeferred<T> notify(Object value)
args
- Optional args that are passed to the progressCallbacks.public JQueryDeferred<T> notifyWith(Object context, Object[] value)
context
- Context passed to the progressCallbacks as the this object.args
- Optional args that are passed to the progressCallbacks.public JQueryDeferred<T> notifyWith(Object context)
context
- Context passed to the progressCallbacks as the this object.args
- Optional args that are passed to the progressCallbacks.public JQueryPromise<Object> pipe(Function.A1<? super Object,? extends Object> doneFilter, Function.A1<? super Object,? extends Object> failFilter, Function.A1<? super Object,? extends Object> progressFilter)
public JQueryPromise<Object> pipe()
public JQueryPromise<Object> pipe(Function.A1<? super Object,? extends Object> doneFilter)
public JQueryPromise<Object> pipe(Function.A1<? super Object,? extends Object> doneFilter, Function.A1<? super Object,? extends Object> failFilter)
public JQueryDeferred<T> progress(JQueryPromiseCallback<Object> progressCallback1, Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> progressCallbackN)
progressCallbacks
- A function, or array of functions, to be called when the Deferred generates progress notifications.public JQueryDeferred<T> progress(JQueryPromiseCallback<Object>[] progressCallback1, Array<Union.A2<JQueryPromiseCallback<Object>,JQueryPromiseCallback<Object>[]>> progressCallbackN)
progressCallbacks
- A function, or array of functions, to be called when the Deferred generates progress notifications.public JQueryDeferred<T> progress(JQueryPromiseCallback<Object> progressCallback1)
progressCallbacks
- A function, or array of functions, to be called when the Deferred generates progress notifications.public JQueryDeferred<T> progress(JQueryPromiseCallback<Object>[] progressCallback1)
progressCallbacks
- A function, or array of functions, to be called when the Deferred generates progress notifications.public JQueryPromise<T> promise(Object target)
target
- Object onto which the promise methods have to be attachedpublic JQueryPromise<T> promise()
target
- Object onto which the promise methods have to be attachedpublic JQueryDeferred<T> reject(Object value, Object... args)
args
- Optional args that are passed to the failCallbacks.public JQueryDeferred<T> reject(Object value)
args
- Optional args that are passed to the failCallbacks.public JQueryDeferred<T> rejectWith(Object context, Object[] value)
context
- Context passed to the failCallbacks as the this object.args
- An optional array of args that are passed to the failCallbacks.public JQueryDeferred<T> rejectWith(Object context)
context
- Context passed to the failCallbacks as the this object.args
- An optional array of args that are passed to the failCallbacks.public JQueryDeferred<T> resolve(T value, Object... args)
value
- First argument passed to doneCallbacks.args
- Optional subsequent args that are passed to the doneCallbacks.public JQueryDeferred<T> resolve(T value)
value
- First argument passed to doneCallbacks.args
- Optional subsequent args that are passed to the doneCallbacks.public JQueryDeferred<T> resolveWith(Object context, T[] value)
context
- Context passed to the doneCallbacks as the this object.args
- An optional array of args that are passed to the doneCallbacks.public JQueryDeferred<T> resolveWith(Object context)
context
- Context passed to the doneCallbacks as the this object.args
- An optional array of args that are passed to the doneCallbacks.public String state()
Copyright © 2018. All rights reserved.