All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.html.lib.jquery.JQueryDeferred Maven / Gradle / Ivy

package net.java.html.lib.jquery;
public class JQueryDeferred extends net.java.html.lib.jquery.JQueryGenericPromise {
  protected JQueryDeferred(net.java.html.lib.Objs.Constructor c, java.lang.Object js) {
    super(c, js);
  }
  private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
    $Constructor() {
      super(JQueryDeferred.class);
    }
    @Override
    public JQueryDeferred create(java.lang.Object obj) {
      return obj == null ? null : new JQueryDeferred(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static JQueryDeferred $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  /**
  * Add handlers to be called when the Deferred object is either resolved or rejected.
  *
  * @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected.
  * @param alwaysCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
  */
  public net.java.html.lib.jquery.JQueryDeferred always(net.java.html.lib.jquery.JQueryPromiseCallback alwaysCallback1, net.java.html.lib.Array,net.java.html.lib.jquery.JQueryPromiseCallback[]>> alwaysCallbacksN) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.always$504($js(this), /* UnionType*/$js(alwaysCallback1), /* FirstTypeNode*/$js(alwaysCallbacksN)));
  }
  /**
  * Add handlers to be called when the Deferred object is either resolved or rejected.
  *
  * @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected.
  * @param alwaysCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
  */
  public net.java.html.lib.jquery.JQueryDeferred always(net.java.html.lib.jquery.JQueryPromiseCallback[] alwaysCallback1, net.java.html.lib.Array,net.java.html.lib.jquery.JQueryPromiseCallback[]>> alwaysCallbacksN) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.always$504($js(this), /* UnionType*/$js(alwaysCallback1), /* FirstTypeNode*/$js(alwaysCallbacksN)));
  }
  /**
  * Add handlers to be called when the Deferred object is either resolved or rejected.
  *
  * @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected.
  * @param alwaysCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
  */
  public net.java.html.lib.jquery.JQueryDeferred always(net.java.html.lib.jquery.JQueryPromiseCallback alwaysCallback1) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.always$505($js(this), /* UnionType*/$js(alwaysCallback1)));
  }
  /**
  * Add handlers to be called when the Deferred object is either resolved or rejected.
  *
  * @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected.
  * @param alwaysCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
  */
  public net.java.html.lib.jquery.JQueryDeferred always(net.java.html.lib.jquery.JQueryPromiseCallback[] alwaysCallback1) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.always$505($js(this), /* UnionType*/$js(alwaysCallback1)));
  }
  /**
  * Add handlers to be called when the Deferred object is resolved.
  *
  * @param doneCallbacks1 A function, or array of functions, that are called when the Deferred is resolved.
  * @param doneCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
  */
  public net.java.html.lib.jquery.JQueryDeferred done(net.java.html.lib.jquery.JQueryPromiseCallback doneCallback1, net.java.html.lib.Array,net.java.html.lib.jquery.JQueryPromiseCallback[]>> doneCallbackN) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.done$506($js(this), /* UnionType*/$js(doneCallback1), /* FirstTypeNode*/$js(doneCallbackN)));
  }
  /**
  * Add handlers to be called when the Deferred object is resolved.
  *
  * @param doneCallbacks1 A function, or array of functions, that are called when the Deferred is resolved.
  * @param doneCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
  */
  public net.java.html.lib.jquery.JQueryDeferred done(net.java.html.lib.jquery.JQueryPromiseCallback[] doneCallback1, net.java.html.lib.Array,net.java.html.lib.jquery.JQueryPromiseCallback[]>> doneCallbackN) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.done$506($js(this), /* UnionType*/$js(doneCallback1), /* FirstTypeNode*/$js(doneCallbackN)));
  }
  /**
  * Add handlers to be called when the Deferred object is resolved.
  *
  * @param doneCallbacks1 A function, or array of functions, that are called when the Deferred is resolved.
  * @param doneCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
  */
  public net.java.html.lib.jquery.JQueryDeferred done(net.java.html.lib.jquery.JQueryPromiseCallback doneCallback1) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.done$507($js(this), /* UnionType*/$js(doneCallback1)));
  }
  /**
  * Add handlers to be called when the Deferred object is resolved.
  *
  * @param doneCallbacks1 A function, or array of functions, that are called when the Deferred is resolved.
  * @param doneCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
  */
  public net.java.html.lib.jquery.JQueryDeferred done(net.java.html.lib.jquery.JQueryPromiseCallback[] doneCallback1) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.done$507($js(this), /* UnionType*/$js(doneCallback1)));
  }
  /**
  * Add handlers to be called when the Deferred object is rejected.
  *
  * @param failCallbacks1 A function, or array of functions, that are called when the Deferred is rejected.
  * @param failCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
  */
  public net.java.html.lib.jquery.JQueryDeferred fail(net.java.html.lib.jquery.JQueryPromiseCallback failCallback1, net.java.html.lib.Array,net.java.html.lib.jquery.JQueryPromiseCallback[]>> failCallbacksN) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.fail$508($js(this), /* UnionType*/$js(failCallback1), /* FirstTypeNode*/$js(failCallbacksN)));
  }
  /**
  * Add handlers to be called when the Deferred object is rejected.
  *
  * @param failCallbacks1 A function, or array of functions, that are called when the Deferred is rejected.
  * @param failCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
  */
  public net.java.html.lib.jquery.JQueryDeferred fail(net.java.html.lib.jquery.JQueryPromiseCallback[] failCallback1, net.java.html.lib.Array,net.java.html.lib.jquery.JQueryPromiseCallback[]>> failCallbacksN) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.fail$508($js(this), /* UnionType*/$js(failCallback1), /* FirstTypeNode*/$js(failCallbacksN)));
  }
  /**
  * Add handlers to be called when the Deferred object is rejected.
  *
  * @param failCallbacks1 A function, or array of functions, that are called when the Deferred is rejected.
  * @param failCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
  */
  public net.java.html.lib.jquery.JQueryDeferred fail(net.java.html.lib.jquery.JQueryPromiseCallback failCallback1) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.fail$509($js(this), /* UnionType*/$js(failCallback1)));
  }
  /**
  * Add handlers to be called when the Deferred object is rejected.
  *
  * @param failCallbacks1 A function, or array of functions, that are called when the Deferred is rejected.
  * @param failCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
  */
  public net.java.html.lib.jquery.JQueryDeferred fail(net.java.html.lib.jquery.JQueryPromiseCallback[] failCallback1) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.fail$509($js(this), /* UnionType*/$js(failCallback1)));
  }
  /**
  * Call the progressCallbacks on a Deferred object with the given args.
  *
  * @param args Optional args that are passed to the progressCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred notify(java.lang.Object value, java.lang.Object... args) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.notify$510($js(this), /* AnyKeyword*/$js(value), /* ArrayType*/$js(args)));
  }
  /**
  * Call the progressCallbacks on a Deferred object with the given args.
  *
  * @param args Optional args that are passed to the progressCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred notify(java.lang.Object value) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.notify$511($js(this), /* AnyKeyword*/$js(value)));
  }
  /**
  * Call the progressCallbacks on a Deferred object with the given context and args.
  *
  * @param context Context passed to the progressCallbacks as the this object.
  * @param args Optional args that are passed to the progressCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred notifyWith(java.lang.Object context, java.lang.Object[] value) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.notifyWith$512($js(this), /* AnyKeyword*/$js(context), /* ArrayType*/$js(value)));
  }
  /**
  * Call the progressCallbacks on a Deferred object with the given context and args.
  *
  * @param context Context passed to the progressCallbacks as the this object.
  * @param args Optional args that are passed to the progressCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred notifyWith(java.lang.Object context) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.notifyWith$513($js(this), /* AnyKeyword*/$js(context)));
  }
  // Deprecated - given no typings
  public net.java.html.lib.jquery.JQueryPromise pipe(net.java.html.lib.Function.A1 doneFilter, net.java.html.lib.Function.A1 failFilter, net.java.html.lib.Function.A1 progressFilter) {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.pipe$514($js(this), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(doneFilter, new Class[] {java.lang.Object.class})), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(failFilter, new Class[] {java.lang.Object.class})), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(progressFilter, new Class[] {java.lang.Object.class}))));
  }
  // Deprecated - given no typings
  public net.java.html.lib.jquery.JQueryPromise pipe() {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.pipe$515($js(this)));
  }
  // Deprecated - given no typings
  public net.java.html.lib.jquery.JQueryPromise pipe(net.java.html.lib.Function.A1 doneFilter) {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.pipe$516($js(this), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(doneFilter, new Class[] {java.lang.Object.class}))));
  }
  // Deprecated - given no typings
  public net.java.html.lib.jquery.JQueryPromise pipe(net.java.html.lib.Function.A1 doneFilter, net.java.html.lib.Function.A1 failFilter) {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.pipe$517($js(this), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(doneFilter, new Class[] {java.lang.Object.class})), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(failFilter, new Class[] {java.lang.Object.class}))));
  }
  /**
  * Add handlers to be called when the Deferred object generates progress notifications.
  *
  * @param progressCallbacks A function, or array of functions, to be called when the Deferred generates progress notifications.
  */
  public net.java.html.lib.jquery.JQueryDeferred progress(net.java.html.lib.jquery.JQueryPromiseCallback progressCallback1, net.java.html.lib.Array,net.java.html.lib.jquery.JQueryPromiseCallback[]>> progressCallbackN) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.progress$518($js(this), /* UnionType*/$js(progressCallback1), /* FirstTypeNode*/$js(progressCallbackN)));
  }
  /**
  * Add handlers to be called when the Deferred object generates progress notifications.
  *
  * @param progressCallbacks A function, or array of functions, to be called when the Deferred generates progress notifications.
  */
  public net.java.html.lib.jquery.JQueryDeferred progress(net.java.html.lib.jquery.JQueryPromiseCallback[] progressCallback1, net.java.html.lib.Array,net.java.html.lib.jquery.JQueryPromiseCallback[]>> progressCallbackN) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.progress$518($js(this), /* UnionType*/$js(progressCallback1), /* FirstTypeNode*/$js(progressCallbackN)));
  }
  /**
  * Add handlers to be called when the Deferred object generates progress notifications.
  *
  * @param progressCallbacks A function, or array of functions, to be called when the Deferred generates progress notifications.
  */
  public net.java.html.lib.jquery.JQueryDeferred progress(net.java.html.lib.jquery.JQueryPromiseCallback progressCallback1) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.progress$519($js(this), /* UnionType*/$js(progressCallback1)));
  }
  /**
  * Add handlers to be called when the Deferred object generates progress notifications.
  *
  * @param progressCallbacks A function, or array of functions, to be called when the Deferred generates progress notifications.
  */
  public net.java.html.lib.jquery.JQueryDeferred progress(net.java.html.lib.jquery.JQueryPromiseCallback[] progressCallback1) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.progress$519($js(this), /* UnionType*/$js(progressCallback1)));
  }
  /**
  * Return a Deferred's Promise object.
  *
  * @param target Object onto which the promise methods have to be attached
  */
  public net.java.html.lib.jquery.JQueryPromise promise(java.lang.Object target) {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.promise$520($js(this), /* AnyKeyword*/$js(target)));
  }
  /**
  * Return a Deferred's Promise object.
  *
  * @param target Object onto which the promise methods have to be attached
  */
  public net.java.html.lib.jquery.JQueryPromise promise() {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.promise$521($js(this)));
  }
  /**
  * Reject a Deferred object and call any failCallbacks with the given args.
  *
  * @param args Optional args that are passed to the failCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred reject(java.lang.Object value, java.lang.Object... args) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.reject$522($js(this), /* AnyKeyword*/$js(value), /* ArrayType*/$js(args)));
  }
  /**
  * Reject a Deferred object and call any failCallbacks with the given args.
  *
  * @param args Optional args that are passed to the failCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred reject(java.lang.Object value) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.reject$523($js(this), /* AnyKeyword*/$js(value)));
  }
  /**
  * Reject a Deferred object and call any failCallbacks with the given context and args.
  *
  * @param context Context passed to the failCallbacks as the this object.
  * @param args An optional array of args that are passed to the failCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred rejectWith(java.lang.Object context, java.lang.Object[] value) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.rejectWith$524($js(this), /* AnyKeyword*/$js(context), /* ArrayType*/$js(value)));
  }
  /**
  * Reject a Deferred object and call any failCallbacks with the given context and args.
  *
  * @param context Context passed to the failCallbacks as the this object.
  * @param args An optional array of args that are passed to the failCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred rejectWith(java.lang.Object context) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.rejectWith$525($js(this), /* AnyKeyword*/$js(context)));
  }
  /**
  * Resolve a Deferred object and call any doneCallbacks with the given args.
  *
  * @param value First argument passed to doneCallbacks.
  * @param args Optional subsequent args that are passed to the doneCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred resolve(T value, java.lang.Object... args) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.resolve$526($js(this), /* FirstTypeNode*/$js(value), /* ArrayType*/$js(args)));
  }
  /**
  * Resolve a Deferred object and call any doneCallbacks with the given args.
  *
  * @param value First argument passed to doneCallbacks.
  * @param args Optional subsequent args that are passed to the doneCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred resolve(T value) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.resolve$527($js(this), /* FirstTypeNode*/$js(value)));
  }
  /**
  * Resolve a Deferred object and call any doneCallbacks with the given context and args.
  *
  * @param context Context passed to the doneCallbacks as the this object.
  * @param args An optional array of args that are passed to the doneCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred resolveWith(java.lang.Object context, T[] value) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.resolveWith$528($js(this), /* AnyKeyword*/$js(context), /* ArrayType*/$js(value)));
  }
  /**
  * Resolve a Deferred object and call any doneCallbacks with the given context and args.
  *
  * @param context Context passed to the doneCallbacks as the this object.
  * @param args An optional array of args that are passed to the doneCallbacks.
  */
  public net.java.html.lib.jquery.JQueryDeferred resolveWith(java.lang.Object context) {
    return (net.java.html.lib.jquery.JQueryDeferred)net.java.html.lib.jquery.JQueryDeferred.$as($Typings$.resolveWith$529($js(this), /* AnyKeyword*/$js(context)));
  }
  /**
  * Determine the current state of a Deferred object.
  */
  public java.lang.String state() {
    return $Typings$.state$530($js(this));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy