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

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

package net.java.html.lib.jquery;
public class JQueryGenericPromise extends net.java.html.lib.Objs {
  protected JQueryGenericPromise(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(JQueryGenericPromise.class);
    }
    @Override
    public JQueryGenericPromise create(java.lang.Object obj) {
      return obj == null ? null : new JQueryGenericPromise(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static JQueryGenericPromise $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  /**
  * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
  *
  * @param doneFilter A function that is called when the Deferred is resolved.
  * @param failFilter An optional function that is called when the Deferred is rejected.
  */
  public net.java.html.lib.jquery.JQueryPromise then(net.java.html.lib.Function.A2,? extends java.lang.Void> doneFilter, net.java.html.lib.Function.A1,? extends java.lang.Object> failFilter, net.java.html.lib.Function.A1,? extends java.lang.Object> progressFilter) {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.then$537($js(this), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(doneFilter, new Class[] {null, null})), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(failFilter, new Class[] {null})), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(progressFilter, new Class[] {null}))));
  }
  /**
  * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
  *
  * @param doneFilter A function that is called when the Deferred is resolved.
  * @param failFilter An optional function that is called when the Deferred is rejected.
  */
  public net.java.html.lib.jquery.JQueryPromise then(net.java.html.lib.Function.A2,? extends java.lang.Void> doneFilter) {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.then$538($js(this), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(doneFilter, new Class[] {null, null}))));
  }
  /**
  * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
  *
  * @param doneFilter A function that is called when the Deferred is resolved.
  * @param failFilter An optional function that is called when the Deferred is rejected.
  */
  public net.java.html.lib.jquery.JQueryPromise then(net.java.html.lib.Function.A2,? extends java.lang.Void> doneFilter, net.java.html.lib.Function.A1,? extends java.lang.Object> failFilter) {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.then$539($js(this), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(doneFilter, new Class[] {null, null})), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(failFilter, new Class[] {null}))));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy