net.java.html.lib.jquery.JQueryCallback Maven / Gradle / Ivy
package net.java.html.lib.jquery;
public class JQueryCallback extends net.java.html.lib.Objs {
protected JQueryCallback(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(JQueryCallback.class);
}
@Override
public JQueryCallback create(java.lang.Object obj) {
return obj == null ? null : new JQueryCallback(this, obj);
}
};
private static final $Constructor $AS = new $Constructor();
public static JQueryCallback $as(java.lang.Object obj) {
return $AS.create(obj);
}
/**
* Add a callback or a collection of callbacks to a callback list.
*
* @param callbacks A function, or array of functions, that are to be added to the callback list.
*/
public net.java.html.lib.jquery.JQueryCallback add(net.java.html.lib.Function callbacks) {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.add$489($js(this), /* FirstTypeNode*/$js(callbacks)));
}
/**
* Add a callback or a collection of callbacks to a callback list.
*
* @param callbacks A function, or array of functions, that are to be added to the callback list.
*/
public net.java.html.lib.jquery.JQueryCallback add(net.java.html.lib.Function[] callbacks) {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.add$490($js(this), /* ArrayType*/$js(callbacks)));
}
/**
* Disable a callback list from doing anything more.
*/
public net.java.html.lib.jquery.JQueryCallback disable() {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.disable$491($js(this)));
}
/**
* Determine if the callbacks list has been disabled.
*/
public java.lang.Boolean disabled() {
return $Typings$.disabled$492($js(this));
}
/**
* Remove all of the callbacks from a list.
*/
public net.java.html.lib.jquery.JQueryCallback empty() {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.empty$493($js(this)));
}
/**
* Call all of the callbacks with the given args
*
* @param args The argument or list of args to pass back to the callback list.
*/
public net.java.html.lib.jquery.JQueryCallback fire(java.lang.Object... args) {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.fire$494($js(this), /* ArrayType*/$js(args)));
}
/**
* Call all callbacks in a list with the given context and args.
*
* @param context A reference to the context in which the callbacks in the list should be fired.
* @param args An argument, or array of args, to pass to the callbacks in the list.
*/
public net.java.html.lib.jquery.JQueryCallback fireWith(java.lang.Object context, java.lang.Object[] args) {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.fireWith$495($js(this), /* AnyKeyword*/$js(context), /* ArrayType*/$js(args)));
}
/**
* Call all callbacks in a list with the given context and args.
*
* @param context A reference to the context in which the callbacks in the list should be fired.
* @param args An argument, or array of args, to pass to the callbacks in the list.
*/
public net.java.html.lib.jquery.JQueryCallback fireWith() {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.fireWith$496($js(this)));
}
/**
* Call all callbacks in a list with the given context and args.
*
* @param context A reference to the context in which the callbacks in the list should be fired.
* @param args An argument, or array of args, to pass to the callbacks in the list.
*/
public net.java.html.lib.jquery.JQueryCallback fireWith(java.lang.Object context) {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.fireWith$497($js(this), /* AnyKeyword*/$js(context)));
}
/**
* Determine if the callbacks have already been called at least once.
*/
public java.lang.Boolean fired() {
return $Typings$.fired$498($js(this));
}
/**
* Determine whether a supplied callback is in a list
*
* @param callback The callback to search for.
*/
public java.lang.Boolean has(net.java.html.lib.Function callback) {
return $Typings$.has$499($js(this), /* FirstTypeNode*/$js(callback));
}
/**
* Lock a callback list in its current state.
*/
public net.java.html.lib.jquery.JQueryCallback lock() {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.lock$500($js(this)));
}
/**
* Determine if the callbacks list has been locked.
*/
public java.lang.Boolean locked() {
return $Typings$.locked$501($js(this));
}
/**
* Remove a callback or a collection of callbacks from a callback list.
*
* @param callbacks A function, or array of functions, that are to be removed from the callback list.
*/
public net.java.html.lib.jquery.JQueryCallback remove(net.java.html.lib.Function callbacks) {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.remove$502($js(this), /* FirstTypeNode*/$js(callbacks)));
}
/**
* Remove a callback or a collection of callbacks from a callback list.
*
* @param callbacks A function, or array of functions, that are to be removed from the callback list.
*/
public net.java.html.lib.jquery.JQueryCallback remove(net.java.html.lib.Function[] callbacks) {
return (net.java.html.lib.jquery.JQueryCallback)net.java.html.lib.jquery.JQueryCallback.$as($Typings$.remove$503($js(this), /* ArrayType*/$js(callbacks)));
}
}