public class JQueryStatic extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<JQueryAjaxSettings> |
ajaxSettings |
Objs.Property<Objs> |
cssHooks
Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.
|
Objs.Property<Object> |
cssNumber |
Objs.Property<JQueryEasingFunctions> |
easing
Effects
|
Objs.Property<JQueryEventConstructor> |
Event |
Objs.Property<Object> |
expr |
Objs.Property<Object> |
fn |
Objs.Property<Objs> |
fx |
Objs.Property<Boolean> |
isReady |
Objs.Property<JQueryParam> |
param
Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
|
Objs.Property<JQuerySupport> |
support |
Modifier | Constructor and Description |
---|---|
protected |
JQueryStatic(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
JQuery |
$apply() |
JQuery |
$apply(Element element) |
JQuery |
$apply(Element[] elementArray) |
JQuery |
$apply(Function.A1<? super JQueryStatic,? extends Object> callback) |
JQuery |
$apply(JQuery object) |
JQuery |
$apply(Objs object) |
JQuery |
$apply(String selector) |
JQuery |
$apply(String html,
Document ownerDocument) |
JQuery |
$apply(String selector,
Element context) |
JQuery |
$apply(String selector,
JQuery context) |
JQuery |
$apply(String html,
Objs attributes) |
static JQueryStatic |
$as(Object obj) |
JQueryXHR |
ajax(JQueryAjaxSettings settings)
Perform an asynchronous HTTP (Ajax) request.
|
JQueryXHR |
ajax(String url)
Perform an asynchronous HTTP (Ajax) request.
|
JQueryXHR |
ajax(String url,
JQueryAjaxSettings settings)
Perform an asynchronous HTTP (Ajax) request.
|
void |
ajaxPrefilter(Function.A3<? super Object,? super JQueryAjaxSettings,? super JQueryXHR,? extends Object> handler)
Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
|
void |
ajaxPrefilter(String dataTypes,
Function.A3<? super Object,? super JQueryAjaxSettings,? super JQueryXHR,? extends Object> handler)
Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
|
JQueryAjaxSettings |
ajaxSettings() |
void |
ajaxSetup(JQueryAjaxSettings options)
Set default values for future Ajax requests.
|
JQueryCallback |
Callbacks()
A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
|
JQueryCallback |
Callbacks(String flags)
A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
|
Boolean |
contains(Element container,
Element contained)
Check to see if a DOM element is a descendant of another DOM element.
|
Object |
data(Element element)
Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element.
|
Object |
data(Element element,
String key)
Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element.
|
<T> T |
data(Element element,
String key,
T value)
Store arbitrary data associated with the specified element.
|
<T> JQueryDeferred<T> |
Deferred()
A constructor function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.
|
<T> JQueryDeferred<T> |
Deferred(Function.A1<? super JQueryDeferred<T>,? extends Object> beforeStart)
A constructor function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.
|
void |
dequeue(Element element)
Execute the next function on the queue for the matched element.
|
void |
dequeue(Element element,
String queueName)
Execute the next function on the queue for the matched element.
|
Object |
each(Object collection,
Function.A2<? super Object,? super Object,? extends Object> callback)
A generic iterator function, which can be used to seamlessly iterate over both objects and arrays.
|
<T> Object |
each(T[] collection,
Function.A2<? super Number,? super T,? extends Object> callback)
A generic iterator function, which can be used to seamlessly iterate over both objects and arrays.
|
JQueryEasingFunctions |
easing() |
JQuery |
error(Object message)
Takes a string and throws an exception containing it.
|
JQueryEventObject |
Event(String name) |
JQueryEventObject |
Event(String name,
Object eventProperties) |
Object |
extend(Boolean deep,
Object target,
Object object1)
Merge the contents of two or more objects together into the first object.
|
Object |
extend(Boolean deep,
Object target,
Object object1,
Object... objectN)
Merge the contents of two or more objects together into the first object.
|
Object |
extend(Object target,
Object object1)
Merge the contents of two or more objects together into the first object.
|
Object |
extend(Object target,
Object object1,
Object... objectN)
Merge the contents of two or more objects together into the first object.
|
JQueryXHR |
get(String url)
Load data from the server using a HTTP GET request.
|
JQueryXHR |
get(String url,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
Load data from the server using a HTTP GET request.
|
JQueryXHR |
get(String url,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success,
String dataType)
Load data from the server using a HTTP GET request.
|
JQueryXHR |
get(String url,
Objs data)
Load data from the server using a HTTP GET request.
|
JQueryXHR |
get(String url,
Objs data,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
Load data from the server using a HTTP GET request.
|
JQueryXHR |
get(String url,
Objs data,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success,
String dataType)
Load data from the server using a HTTP GET request.
|
JQueryXHR |
get(String url,
String data)
Load data from the server using a HTTP GET request.
|
JQueryXHR |
get(String url,
String data,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
Load data from the server using a HTTP GET request.
|
JQueryXHR |
get(String url,
String data,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success,
String dataType)
Load data from the server using a HTTP GET request.
|
JQueryXHR |
getJSON(String url)
Load JSON-encoded data from the server using a GET HTTP request.
|
JQueryXHR |
getJSON(String url,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
Load JSON-encoded data from the server using a GET HTTP request.
|
JQueryXHR |
getJSON(String url,
Objs data)
Load JSON-encoded data from the server using a GET HTTP request.
|
JQueryXHR |
getJSON(String url,
Objs data,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
Load JSON-encoded data from the server using a GET HTTP request.
|
JQueryXHR |
getJSON(String url,
String data)
Load JSON-encoded data from the server using a GET HTTP request.
|
JQueryXHR |
getJSON(String url,
String data,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
Load JSON-encoded data from the server using a GET HTTP request.
|
JQueryXHR |
getScript(String url)
Load a JavaScript file from the server using a GET HTTP request, then execute it.
|
JQueryXHR |
getScript(String url,
Function.A3<? super String,? super String,? super JQueryXHR,? extends Object> success)
Load a JavaScript file from the server using a GET HTTP request, then execute it.
|
Object |
globalEval(String code)
Execute some JavaScript code globally.
|
<T> Array<T> |
grep(T[] array,
Function.A2<? super T,? super Number,? extends Boolean> func)
Finds the elements of an array which satisfy a filter function.
|
<T> Array<T> |
grep(T[] array,
Function.A2<? super T,? super Number,? extends Boolean> func,
Boolean invert)
Finds the elements of an array which satisfy a filter function.
|
Boolean |
hasData(Element element)
Determine whether an element has any jQuery data associated with it.
|
void |
holdReady(Boolean hold)
Holds or releases the execution of jQuery's ready event.
|
<T> double |
inArray(T value,
T[] array)
Search for a specified value within an array and return its index (or -1 if not found).
|
<T> double |
inArray(T value,
T[] array,
double fromIndex)
Search for a specified value within an array and return its index (or -1 if not found).
|
Boolean |
isArray(Object obj)
Determine whether the argument is an array.
|
Boolean |
isEmptyObject(Object obj)
Check to see if an object is empty (contains no enumerable properties).
|
Boolean |
isFunction(Object obj)
Determine if the argument passed is a Javascript function object.
|
Boolean |
isNumeric(Object value)
Determines whether its argument is a number.
|
Boolean |
isPlainObject(Object obj)
Check to see if an object is a plain object (created using "{}" or "new Object").
|
Boolean |
isReady() |
Boolean |
isWindow(Object obj)
Determine whether the argument is a window.
|
Boolean |
isXMLDoc(Node node)
Check to see if a DOM node is within an XML document (or is an XML document).
|
Array<Object> |
makeArray(Object obj)
Convert an array-like object into a true JavaScript array.
|
Object |
map(Object arrayOrObject,
Function.A2<? super Object,? super Object,? extends Object> callback)
Translate all items in an array or object to new array of items.
|
<T,U> Array<U> |
map(T[] array,
Function.A2<? super T,? super Number,? extends U> callback)
Translate all items in an array or object to new array of items.
|
<T> Array<T> |
merge(T[] first,
T[] second)
Merge the contents of two arrays together into the first array.
|
JQueryStatic |
noConflict()
Relinquish jQuery's control of the $ variable.
|
JQueryStatic |
noConflict(Boolean removeAll)
Relinquish jQuery's control of the $ variable.
|
Object |
noop()
An empty function.
|
double |
now()
Return a number representing the current time.
|
String |
param(Object obj)
Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
|
String |
param(Object obj,
Boolean traditional)
Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
|
Array<Object> |
parseHTML(String data)
Parses a string into an array of DOM nodes.
|
Array<Object> |
parseHTML(String data,
Document context)
Parses a string into an array of DOM nodes.
|
Array<Object> |
parseHTML(String data,
Document context,
Boolean keepScripts)
Parses a string into an array of DOM nodes.
|
Array<Object> |
parseHTML(String data,
HTMLElement context)
Parses a string into an array of DOM nodes.
|
Array<Object> |
parseHTML(String data,
HTMLElement context,
Boolean keepScripts)
Parses a string into an array of DOM nodes.
|
Object |
parseJSON(String json)
Takes a well-formed JSON string and returns the resulting JavaScript object.
|
XMLDocument |
parseXML(String data)
Parses a string into an XML document.
|
JQueryXHR |
post(String url)
Load data from the server using a HTTP POST request.
|
JQueryXHR |
post(String url,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
Load data from the server using a HTTP POST request.
|
JQueryXHR |
post(String url,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success,
String dataType)
Load data from the server using a HTTP POST request.
|
JQueryXHR |
post(String url,
Objs data)
Load data from the server using a HTTP POST request.
|
JQueryXHR |
post(String url,
Objs data,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
Load data from the server using a HTTP POST request.
|
JQueryXHR |
post(String url,
Objs data,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success,
String dataType)
Load data from the server using a HTTP POST request.
|
JQueryXHR |
post(String url,
String data)
Load data from the server using a HTTP POST request.
|
JQueryXHR |
post(String url,
String data,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
Load data from the server using a HTTP POST request.
|
JQueryXHR |
post(String url,
String data,
Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success,
String dataType)
Load data from the server using a HTTP POST request.
|
Object |
proxy(Function.A1<? super Array<Object>,? extends Object> fnction,
Objs context,
Object... additionalArguments)
Takes a function and returns a new one that will always have a particular context.
|
Object |
proxy(Objs context,
String name,
Object... additionalArguments)
Takes a function and returns a new one that will always have a particular context.
|
Array<Object> |
queue(Element element)
Show the queue of functions to be executed on the matched element.
|
Array<Object> |
queue(Element element,
String queueName)
Show the queue of functions to be executed on the matched element.
|
JQuery |
queue(Element element,
String queueName,
Function callback)
Manipulate the queue of functions to be executed on the matched element.
|
JQuery |
queue(Element element,
String queueName,
Function[] newQueue)
Manipulate the queue of functions to be executed on the matched element.
|
JQuery |
removeData(Element element)
Remove a previously-stored piece of data.
|
JQuery |
removeData(Element element,
String name)
Remove a previously-stored piece of data.
|
JQuerySupport |
support() |
String |
trim(String str)
Remove the whitespace from the beginning and end of a string.
|
String |
type(Object obj)
Determine the internal JavaScript [[Class]] of an object.
|
Array<Element> |
unique(Element[] array)
Sorts an array of DOM elements, in place, with the duplicates removed.
|
<T> JQueryPromise<T> |
when(Array<Union.A2<T,JQueryPromise<T>>> deferreds)
Provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events.
|
$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
public Objs.Property<JQueryAjaxSettings> ajaxSettings
public Objs.Property<JQueryParam> param
public Objs.Property<Objs> cssHooks
public Objs.Property<Object> cssNumber
public Objs.Property<JQueryEasingFunctions> easing
public Objs.Property<Objs> fx
public Objs.Property<JQueryEventConstructor> Event
public Objs.Property<Object> expr
public Objs.Property<Object> fn
public Objs.Property<Boolean> isReady
public Objs.Property<JQuerySupport> support
protected JQueryStatic(Objs.Constructor<?> c, Object js)
public static JQueryStatic $as(Object obj)
public JQueryAjaxSettings ajaxSettings()
public String param(Object obj)
public String param(Object obj, Boolean traditional)
public JQuery $apply(Function.A1<? super JQueryStatic,? extends Object> callback)
public JQuery $apply()
public JQueryEasingFunctions easing()
public JQueryEventObject Event(String name, Object eventProperties)
public JQueryEventObject Event(String name)
public Boolean isReady()
public JQuerySupport support()
public JQueryCallback Callbacks(String flags)
flags
- An optional list of space-separated flags that change how the callback list behaves.public JQueryCallback Callbacks()
flags
- An optional list of space-separated flags that change how the callback list behaves.public <T> JQueryDeferred<T> Deferred(Function.A1<? super JQueryDeferred<T>,? extends Object> beforeStart)
beforeStart
- A function that is called just before the constructor returns.public <T> JQueryDeferred<T> Deferred()
beforeStart
- A function that is called just before the constructor returns.public JQueryXHR ajax(String url, JQueryAjaxSettings settings)
url
- A string containing the URL to which the request is sent.settings
- A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup().public JQueryXHR ajax(String url)
url
- A string containing the URL to which the request is sent.settings
- A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup().public JQueryXHR ajax(JQueryAjaxSettings settings)
settings
- A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup().public void ajaxPrefilter(String dataTypes, Function.A3<? super Object,? super JQueryAjaxSettings,? super JQueryXHR,? extends Object> handler)
dataTypes
- An optional string containing one or more space-separated dataTypeshandler
- A handler to set default values for future Ajax requests.public void ajaxPrefilter(Function.A3<? super Object,? super JQueryAjaxSettings,? super JQueryXHR,? extends Object> handler)
handler
- A handler to set default values for future Ajax requests.public void ajaxSetup(JQueryAjaxSettings options)
options
- A set of key/value pairs that configure the default Ajax request. All options are optional.public Boolean contains(Element container, Element contained)
container
- The DOM element that may contain the other element.contained
- The DOM element that may be contained by (a descendant of) the other element.public Object data(Element element)
element
- The DOM element to associate with the data.public Object data(Element element, String key)
element
- The DOM element to associate with the data.key
- A string naming the piece of data to set.public <T> T data(Element element, String key, T value)
element
- The DOM element to associate with the data.key
- A string naming the piece of data to set.value
- The new data value.public void dequeue(Element element, String queueName)
element
- A DOM element from which to remove and execute a queued function.queueName
- A string containing the name of the queue. Defaults to fx, the standard effects queue.public void dequeue(Element element)
element
- A DOM element from which to remove and execute a queued function.queueName
- A string containing the name of the queue. Defaults to fx, the standard effects queue.public Object each(Object collection, Function.A2<? super Object,? super Object,? extends Object> callback)
collection
- The object or array to iterate over.callback
- The function that will be executed on every object.public <T> Object each(T[] collection, Function.A2<? super Number,? super T,? extends Object> callback)
collection
- The object or array to iterate over.callback
- The function that will be executed on every object.public JQuery error(Object message)
message
- The message to send out.public Object extend(Boolean deep, Object target, Object object1, Object... objectN)
deep
- If true, the merge becomes recursive (aka. deep copy).target
- The object to extend. It will receive the new properties.object1
- An object containing additional properties to merge in.objectN
- Additional objects containing properties to merge in.public Object extend(Boolean deep, Object target, Object object1)
deep
- If true, the merge becomes recursive (aka. deep copy).target
- The object to extend. It will receive the new properties.object1
- An object containing additional properties to merge in.objectN
- Additional objects containing properties to merge in.public Object extend(Object target, Object object1, Object... objectN)
target
- An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.object1
- An object containing additional properties to merge in.objectN
- Additional objects containing properties to merge in.public Object extend(Object target, Object object1)
target
- An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.object1
- An object containing additional properties to merge in.objectN
- Additional objects containing properties to merge in.public JQueryXHR get(String url, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success, String dataType)
url
- A string containing the URL to which the request is sent.success
- A callback function that is executed if the request succeeds.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).public JQueryXHR get(String url)
url
- A string containing the URL to which the request is sent.success
- A callback function that is executed if the request succeeds.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).public JQueryXHR get(String url, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
url
- A string containing the URL to which the request is sent.success
- A callback function that is executed if the request succeeds.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).public JQueryXHR get(String url, Objs data, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success, String dataType)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).public JQueryXHR get(String url, String data, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success, String dataType)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).public JQueryXHR get(String url, Objs data)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).public JQueryXHR get(String url, String data)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).public JQueryXHR get(String url, Objs data, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).public JQueryXHR get(String url, String data, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).public JQueryXHR getJSON(String url, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
url
- A string containing the URL to which the request is sent.success
- A callback function that is executed if the request succeeds.public JQueryXHR getJSON(String url)
url
- A string containing the URL to which the request is sent.success
- A callback function that is executed if the request succeeds.public JQueryXHR getJSON(String url, Objs data, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds.public JQueryXHR getJSON(String url, String data, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds.public JQueryXHR getJSON(String url, Objs data)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds.public JQueryXHR getJSON(String url, String data)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds.public JQueryXHR getScript(String url, Function.A3<? super String,? super String,? super JQueryXHR,? extends Object> success)
url
- A string containing the URL to which the request is sent.success
- A callback function that is executed if the request succeeds.public JQueryXHR getScript(String url)
url
- A string containing the URL to which the request is sent.success
- A callback function that is executed if the request succeeds.public Object globalEval(String code)
code
- The JavaScript code to execute.public <T> Array<T> grep(T[] array, Function.A2<? super T,? super Number,? extends Boolean> func, Boolean invert)
array
- The array to search through.func
- The function to process each item against. The first argument to the function is the item, and the second argument is the index. The function should return a Boolean value. this will be the global window object.invert
- If "invert" is false, or not provided, then the function returns an array consisting of all elements for which "callback" returns true. If "invert" is true, then the function returns an array consisting of all elements for which "callback" returns false.public <T> Array<T> grep(T[] array, Function.A2<? super T,? super Number,? extends Boolean> func)
array
- The array to search through.func
- The function to process each item against. The first argument to the function is the item, and the second argument is the index. The function should return a Boolean value. this will be the global window object.invert
- If "invert" is false, or not provided, then the function returns an array consisting of all elements for which "callback" returns true. If "invert" is true, then the function returns an array consisting of all elements for which "callback" returns false.public Boolean hasData(Element element)
element
- A DOM element to be checked for data.public void holdReady(Boolean hold)
hold
- Indicates whether the ready hold is being requested or releasedpublic <T> double inArray(T value, T[] array, double fromIndex)
value
- The value to search for.array
- An array through which to search.fromIndex
- he index of the array at which to begin the search. The default is 0, which will search the whole array.public <T> double inArray(T value, T[] array)
value
- The value to search for.array
- An array through which to search.fromIndex
- he index of the array at which to begin the search. The default is 0, which will search the whole array.public Boolean isArray(Object obj)
obj
- Object to test whether or not it is an array.public Boolean isEmptyObject(Object obj)
obj
- The object that will be checked to see if it's empty.public Boolean isFunction(Object obj)
obj
- Object to test whether or not it is a function.public Boolean isNumeric(Object value)
obj
- The value to be tested.public Boolean isPlainObject(Object obj)
obj
- The object that will be checked to see if it's a plain object.public Boolean isWindow(Object obj)
obj
- Object to test whether or not it is a window.public Boolean isXMLDoc(Node node)
node
- he DOM node that will be checked to see if it's in an XML document.public Array<Object> makeArray(Object obj)
obj
- Any object to turn into a native Array.public Object map(Object arrayOrObject, Function.A2<? super Object,? super Object,? extends Object> callback)
arrayOrObject
- The Array or Object to translate.callback
- The function to process each item against. The first argument to the function is the value; the second argument is the index or key of the array or object property. The function can return any value to add to the array. A returned array will be flattened into the resulting array. Within the function, this refers to the global (window) object.public <T,U> Array<U> map(T[] array, Function.A2<? super T,? super Number,? extends U> callback)
array
- The Array to translate.callback
- The function to process each item against. The first argument to the function is the array item, the second argument is the index in array The function can return any value. Within the function, this refers to the global (window) object.public <T> Array<T> merge(T[] first, T[] second)
first
- The first array to merge, the elements of second added.second
- The second array to merge into the first, unaltered.public JQueryStatic noConflict(Boolean removeAll)
removeAll
- A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself).public JQueryStatic noConflict()
removeAll
- A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself).public Object noop()
public double now()
public Array<Object> parseHTML(String data, Document context, Boolean keepScripts)
data
- HTML string to be parsedcontext
- DOM element to serve as the context in which the HTML fragment will be createdkeepScripts
- A Boolean indicating whether to include scripts passed in the HTML stringpublic Array<Object> parseHTML(String data)
data
- HTML string to be parsedcontext
- DOM element to serve as the context in which the HTML fragment will be createdkeepScripts
- A Boolean indicating whether to include scripts passed in the HTML stringpublic Array<Object> parseHTML(String data, Document context)
data
- HTML string to be parsedcontext
- DOM element to serve as the context in which the HTML fragment will be createdkeepScripts
- A Boolean indicating whether to include scripts passed in the HTML stringpublic Array<Object> parseHTML(String data, HTMLElement context, Boolean keepScripts)
data
- HTML string to be parsedcontext
- DOM element to serve as the context in which the HTML fragment will be createdkeepScripts
- A Boolean indicating whether to include scripts passed in the HTML stringpublic Array<Object> parseHTML(String data, HTMLElement context)
data
- HTML string to be parsedcontext
- DOM element to serve as the context in which the HTML fragment will be createdkeepScripts
- A Boolean indicating whether to include scripts passed in the HTML stringpublic Object parseJSON(String json)
json
- The JSON string to parse.public XMLDocument parseXML(String data)
data
- a well-formed XML string to be parsedpublic JQueryXHR post(String url, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success, String dataType)
url
- A string containing the URL to which the request is sent.success
- A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).public JQueryXHR post(String url)
url
- A string containing the URL to which the request is sent.success
- A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).public JQueryXHR post(String url, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
url
- A string containing the URL to which the request is sent.success
- A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).public JQueryXHR post(String url, Objs data, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success, String dataType)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).public JQueryXHR post(String url, String data, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success, String dataType)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).public JQueryXHR post(String url, Objs data)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).public JQueryXHR post(String url, String data)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).public JQueryXHR post(String url, Objs data, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).public JQueryXHR post(String url, String data, Function.A3<? super Object,? super String,? super JQueryXHR,? extends Object> success)
url
- A string containing the URL to which the request is sent.data
- A plain object or string that is sent to the server with the request.success
- A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.dataType
- The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).public Object proxy(Function.A1<? super Array<Object>,? extends Object> fnction, Objs context, Object... additionalArguments)
fnction
- The function whose context will be changed.context
- The object to which the context (this) of the function should be set.additionalArguments
- Any number of args to be passed to the function referenced in the function argument.public Object proxy(Objs context, String name, Object... additionalArguments)
context
- The object to which the context (this) of the function should be set.name
- The name of the function whose context will be changed (should be a property of the context object).additionalArguments
- Any number of args to be passed to the function named in the name argument.public Array<Object> queue(Element element, String queueName)
element
- A DOM element to inspect for an attached queue.queueName
- A string containing the name of the queue. Defaults to fx, the standard effects queue.public Array<Object> queue(Element element)
element
- A DOM element to inspect for an attached queue.queueName
- A string containing the name of the queue. Defaults to fx, the standard effects queue.public JQuery queue(Element element, String queueName, Function callback)
element
- A DOM element on which to add a queued function.queueName
- A string containing the name of the queue. Defaults to fx, the standard effects queue.callback
- The new function to add to the queue.public JQuery queue(Element element, String queueName, Function[] newQueue)
element
- A DOM element where the array of queued functions is attached.queueName
- A string containing the name of the queue. Defaults to fx, the standard effects queue.newQueue
- An array of functions to replace the current queue contents.public JQuery removeData(Element element, String name)
element
- A DOM element from which to remove data.name
- A string naming the piece of data to remove.public JQuery removeData(Element element)
element
- A DOM element from which to remove data.name
- A string naming the piece of data to remove.public String trim(String str)
str
- Remove the whitespace from the beginning and end of a string.public String type(Object obj)
obj
- Object to get the internal JavaScript [[Class]] of.public Array<Element> unique(Element[] array)
array
- The Array of DOM elements.public <T> JQueryPromise<T> when(Array<Union.A2<T,JQueryPromise<T>>> deferreds)
deferreds
- One or more Deferred objects, or plain JavaScript objects.Copyright © 2018. All rights reserved.