public class JQueryCallback extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier | Constructor and Description |
---|---|
protected |
JQueryCallback(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static JQueryCallback |
$as(Object obj) |
JQueryCallback |
add(Function callbacks)
Add a callback or a collection of callbacks to a callback list.
|
JQueryCallback |
add(Function[] callbacks)
Add a callback or a collection of callbacks to a callback list.
|
JQueryCallback |
disable()
Disable a callback list from doing anything more.
|
Boolean |
disabled()
Determine if the callbacks list has been disabled.
|
JQueryCallback |
empty()
Remove all of the callbacks from a list.
|
JQueryCallback |
fire(Object... args)
Call all of the callbacks with the given args
|
Boolean |
fired()
Determine if the callbacks have already been called at least once.
|
JQueryCallback |
fireWith()
Call all callbacks in a list with the given context and args.
|
JQueryCallback |
fireWith(Object context)
Call all callbacks in a list with the given context and args.
|
JQueryCallback |
fireWith(Object context,
Object[] args)
Call all callbacks in a list with the given context and args.
|
Boolean |
has(Function callback)
Determine whether a supplied callback is in a list
|
JQueryCallback |
lock()
Lock a callback list in its current state.
|
Boolean |
locked()
Determine if the callbacks list has been locked.
|
JQueryCallback |
remove(Function callbacks)
Remove a callback or a collection of callbacks from a callback list.
|
JQueryCallback |
remove(Function[] callbacks)
Remove a callback or a collection of callbacks from a callback list.
|
$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 JQueryCallback(Objs.Constructor<?> c, Object js)
public static JQueryCallback $as(Object obj)
public JQueryCallback add(Function callbacks)
callbacks
- A function, or array of functions, that are to be added to the callback list.public JQueryCallback add(Function[] callbacks)
callbacks
- A function, or array of functions, that are to be added to the callback list.public JQueryCallback disable()
public Boolean disabled()
public JQueryCallback empty()
public JQueryCallback fire(Object... args)
args
- The argument or list of args to pass back to the callback list.public JQueryCallback fireWith(Object context, Object[] args)
context
- A reference to the context in which the callbacks in the list should be fired.args
- An argument, or array of args, to pass to the callbacks in the list.public JQueryCallback fireWith()
context
- A reference to the context in which the callbacks in the list should be fired.args
- An argument, or array of args, to pass to the callbacks in the list.public JQueryCallback fireWith(Object context)
context
- A reference to the context in which the callbacks in the list should be fired.args
- An argument, or array of args, to pass to the callbacks in the list.public Boolean fired()
public Boolean has(Function callback)
callback
- The callback to search for.public JQueryCallback lock()
public Boolean locked()
public JQueryCallback remove(Function callbacks)
callbacks
- A function, or array of functions, that are to be removed from the callback list.public JQueryCallback remove(Function[] callbacks)
callbacks
- A function, or array of functions, that are to be removed from the callback list.Copyright © 2018. All rights reserved.