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

gwt.material.design.jquery.client.api.JQueryElement Maven / Gradle / Ivy

The newest version!
/*
* Copyright 2014 Cristian Rinaldi & Andres Testi.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package gwt.material.design.jquery.client.api;

/*
 * #%L
 * GwtMaterial
 * %%
 * Copyright (C) 2015 - 2017 GwtMaterialDesign
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */


import com.google.gwt.dom.client.Element;
import gwt.material.design.jquery.client.api.Functions.EventFunc;
import gwt.material.design.jquery.client.api.Functions.EventFunc1;
import gwt.material.design.jquery.client.api.Functions.EventFunc2;
import gwt.material.design.jquery.client.api.Functions.EventFunc3;
import gwt.material.design.jquery.client.api.Functions.Func;
import gwt.material.design.jquery.client.api.Functions.Func1;
import gwt.material.design.jquery.client.api.Functions.Func2;
import gwt.material.design.jquery.client.api.Functions.Func3;
import gwt.material.design.jquery.client.api.Functions.FuncRet1;
import gwt.material.design.jquery.client.api.Functions.FuncRet2;
import gwt.material.design.jquery.client.api.Functions.FuncRet3;
import gwt.material.design.jquery.client.api.Functions.KeyEventFunc;
import gwt.material.design.jquery.client.api.Functions.MouseEventFunc;
import gwt.material.design.jscore.client.api.core.Node;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

/**
 * Represent a JQuery Element.
 *
 * @author Cristian Rinaldi
 * @author Ben Dol
 */
@JsType(name = "jQuery", isNative = true)
public class JQueryElement extends Node {

    /**
     * A helper method to enable cross-casting from any {@link JQueryElement}
     * type to any other {@link JQueryElement} type.
     *
     * @param  the target type
     * @return this object as a different type
     */
    @JsOverlay
    public final  T cast() {
        return (T) this;
    }

    /**
     * A string containing the jQuery version number.
     */
    @JsProperty(name="jquery")
    public native int jquery();

    /**
     * The number of elements in the jQuery object.
     */
    @JsProperty(name="length")
    public native int length();

    /**
     * Use as the raw 0 index element.
     */
    @JsOverlay
    public final Element asElement() {
        return get(0);
    }

    /**
     * Create a new jQuery object with elements added to the set of matched elements.
     * @param selectorOrHtml A string representing a selector expression to find
     *                       additional elements to add to the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement add(String selectorOrHtml);

    /**
     * Create a new jQuery object with elements added to the set of matched elements.
     * @param element One or more elements to add to the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement add(Element element);

    /**
     * Create a new jQuery object with elements added to the set of matched elements.
     * @param selection An existing jQuery object to add to the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement add(JQueryElement selection);

    /**
     * Create a new jQuery object with elements added to the set of matched elements.
     * @param selector A string representing a selector expression to find additional
     *                 elements to add to the set of matched elements.
     * @param context The point in the document at which the selector should begin matching;
     *                similar to the context argument of the $(selector, context) method.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement add(String selector, Element context);

    /**
     * Add the previous set of elements on the stack to the current set, optionally
     * filtered by a selector.
     * @param selector A string containing a selector expression to match the current
     *                 set of elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement addBack(String... selector);

    /**
     * Adds the specified class(es) to each element in the set of matched elements.
     * @param className One or more space-separated classes to be added to the class
     *                  attribute of each matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement addClass(String className);

    /**
     * Adds the specified class(es) to each element in the set of matched elements.
     * @param function A function returning one or more space-separated class names
     *                 to be added to the existing class name(s). Receives the index
     *                 position of the element in the set and the existing class name(s)
     *                 as arguments. Within the function, this refers to the current
     *                 element in the set.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement addClass(Func2 function);

    /**
     * Insert content, specified by the parameter, after each element in the
     * set of matched elements.
     * @param content HTML string to insert after each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement after(String content);

    /**
     * Insert content, specified by the parameter, after each element in the
     * set of matched elements.
     * @param content DOM elements to insert after each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement after(Element... content);

    /**
     * Insert content, specified by the parameter, after each element in the
     * set of matched elements.
     * @param content jQuery object to insert after each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement after(JQueryElement content);

    /**
     * Insert content, specified by the parameter, after each element in the
     * set of matched elements.
     * @param function A function that returns an HTML string, DOM element(s), or jQuery
     *                 object to insert after each element in the set of matched elements.
     *                 Receives the index position of the element in the set as an argument.
     *                 Within the function, this refers to the current element in the set.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement after(Func1 function);

    /**
     * Insert content, specified by the parameter, after each element in the
     * set of matched elements.
     * @param function A function that returns an HTML string, DOM element(s), or jQuery
     *                 object to insert after each element in the set of matched elements.
     *                 Receives the index position of the element in the set and the old
     *                 HTML value of the element as arguments. Within the function, this
     *                 refers to the current element in the set.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement after(Func2 function);

    /**
     * TODO: Reserved for AJAX:
     * https://api.jquery.com/ajaxComplete/
     * https://api.jquery.com/ajaxError/
     * https://api.jquery.com/ajaxSend/
     * https://api.jquery.com/ajaxStart/
     * https://api.jquery.com/ajaxStop/
     * https://api.jquery.com/ajaxSuccess/
     */

    /**
     * Add the previous set of elements on the stack to the current set.
     * Note: This function has been deprecated and is now an alias for .addBack(), which
     * should be used with jQuery 1.8 and later.
     * @deprecated use {@link #addBack(String...)}
     */
    public native JQueryElement andSelf();

    /**
     * Perform a custom animation of a set of CSS properties.
     * @param properties An object of CSS properties and values that the animation will move toward.
     * @param duration A string or number determining how long the animation will run.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement animate(Object properties, double duration);

    /**
     * Perform a custom animation of a set of CSS properties.
     * @param properties An object of CSS properties and values that the animation will move toward.
     * @param duration A string or number determining how long the animation will run.
     * @param easing A string indicating which easing function to use for the transition.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement animate(Object properties, double duration, String easing);

    /**
     * Perform a custom animation of a set of CSS properties.
     * @param properties An object of CSS properties and values that the animation will move toward.
     * @param duration A string or number determining how long the animation will run.
     * @param easing A string indicating which easing function to use for the transition.
     * @param function A function to call once the animation is complete, called once per matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement animate(Object properties, double duration, String easing, Func function);

    /**
     * Perform a custom animation of a set of CSS properties.
     * @param properties An object of CSS properties and values that the animation will move toward.
     * @param options A map of additional options to pass to the method.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement animate(Object properties, AnimateOptions options);

    /**
     * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
     * @param htmlString HTML string to insert at the end of each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement append(String htmlString);

    /**
     * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
     * @param element jQuery objects to insert at the end of each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement append(JQueryElement element);

    /**
     * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
     * @param element DOM elements to insert at the end of each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement append(Element... element);

    /**
     * Insert every element in the set of matched elements to the end of the target.
     * @param htmlString HTML string the matched set of elements will be inserted at the end of the
     *                element(s) specified by this parameter.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement appendTo(String htmlString);

    /**
     * Insert every element in the set of matched elements to the end of the target.
     * @param element jQuery objects the matched set of elements will be inserted at the end of the
     *                element(s) specified by this parameter.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement appendTo(JQueryElement element);

    /**
     * Insert every element in the set of matched elements to the end of the target.
     * @param element DOM elements the matched set of elements will be inserted at the end of the
     *                element(s) specified by this parameter.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement appendTo(Element... element);

    /**
     * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
     * @param htmlString HTML string to insert at the end of each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement prepend(String htmlString);

    /**
     * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
     * @param element jQuery objects to insert at the end of each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement prepend(JQueryElement element);

    /**
     * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
     * @param element DOM elements to insert at the end of each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement prepend(Element... element);

    /**
     * Insert every element in the set of matched elements to the beginning of the target.
     * @param htmlString HTML string to insert at the end of each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement prependTo(String htmlString);

    /**
     * Insert every element in the set of matched elements to the beginning of the target.
     * @param element jQuery objects to insert at the end of each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement prependTo(JQueryElement element);

    /**
     * Insert every element in the set of matched elements to the beginning of the target.
     * @param element DOM elements to insert at the end of each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement prependTo(Element... element);

    /**
     * Get the value of an attribute for the first element in the set of matched elements.
     * @param attr The name of the attribute to get.
     */
    public native Object attr(String attr);

    /**
     * Set one or more attributes for the set of matched elements.
     * @param attr The name of the attribute to set.
     * @param value A value to set for the attribute.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement attr(String attr, Object value);

    /**
     * Set one or more attributes for the set of matched elements.
     * @param attr The name of the attribute to set.
     * @param function A function returning the value to set. this is the current element.
     *                 Receives the index position of the element in the set and the old
     *                 attribute value as arguments.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement attr(String attr, Func2 function);

    /**
     * Insert content, specified by the parameter, before each element in the set of matched elements.
     * @param htmlString HTML string to insert before each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement before(String htmlString);

    /**
     * Insert content, specified by the parameter, before each element in the set of matched elements.
     * @param element jQuery object to insert before each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement before(JQueryElement element);

    /**
     * Insert content, specified by the parameter, before each element in the set of matched elements.
     * @param element DOM elements to insert before each element in the set of matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement before(Element... element);

    /**
     * Attach a handler to an event for the elements.
     * @param eventType A string containing one or more DOM event types, such as "click" or
     *                  "submit," or custom event names.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement bind(String eventType, EventFunc handler);

    /**
     * Attach a handler to an event for the elements.
     * @param eventType A string containing one or more DOM event types, such as "click" or
     *                  "submit," or custom event names.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement bind(String eventType, EventFunc1 handler);

    /**
     * Attach a handler to an event for the elements.
     * @param eventType A string containing one or more DOM event types, such as "click" or
     *                  "submit," or custom event names.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement bind(String eventType, EventFunc2 handler);

    /**
     * Attach a handler to an event for the elements.
     * @param eventType A string containing one or more DOM event types, such as "click" or
     *                  "submit," or custom event names.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement bind(String eventType, Object eventData, EventFunc handler);

    /**
     * Attach a handler to an event for the elements.
     * @param eventType A string containing one or more DOM event types, such as "click" or
     *                  "submit," or custom event names.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement bind(String eventType, Object eventData, EventFunc1 handler);

    /**
     * Attach a handler to an event for the elements.
     * @param eventType A string containing one or more DOM event types, such as "click" or
     *                  "submit," or custom event names.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement bind(String eventType, Object eventData, EventFunc2 handler);

    /**
     * Attach a handler to an event for the elements.
     * @param eventType A string containing one or more DOM event types, such as "click" or
     *                  "submit," or custom event names.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param preventBubble Setting the third argument to false will attach a function that prevents
     *                      the default action from occurring and stops the event from bubbling.
     *                      The default is true.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement bind(String eventType, Object eventData, boolean preventBubble);

    /**
     * Attach a handler to an event for the elements.
     * @param events An object containing one or more DOM event types and functions to execute for them.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement bind(Object events);

    /**
     * Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement blur(EventFunc1 handler);

    /**
     * Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement blur(EventFunc2 handler);

    /**
     * Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement blur(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement blur(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement blur(Object eventData, EventFunc2 handler);

    /**
     * Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement blur();

    /**
     * TODO: Reserved for Callbacks:
     * https://api.jquery.com/callbacks.add/
     */

    /**
     * Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement change(EventFunc1 handler);

    /**
     * Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement change(EventFunc2 handler);

    /**
     * Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement change(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement change(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement change(Object eventData, EventFunc2 handler);

    /**
     * Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement change();

    /**
     * Get the children of each element in the set of matched elements, optionally filtered by a selector.
     * @param selector A string containing a selector expression to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement children(String selector);

    /**
     * Remove from the queue all items that have not yet been run.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement clearQueue();

    /**
     * Remove from the queue all items that have not yet been run.
     * @param queueName A string containing the name of the queue. Defaults to fx, the
     *                  standard effects queue.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement clearQueue(String queueName);

    /**
     * Bind an event handler to the "click" JavaScript event, or trigger that
     * event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return  self {@link JQueryElement}
     */
    public native JQueryElement click(MouseEventFunc handler);

    /**
     * Bind an event handler to the "click" JavaScript event, or trigger that
     * event on an element.
     * @return  self {@link JQueryElement}
     */
    public native JQueryElement click();

    /**
     * Create a deep copy of the set of matched elements.
     * @return  self {@link JQueryElement}
     */
    public native JQueryElement clone();

    /**
     * Create a deep copy of the set of matched elements.
     * @param withDataAndEvents A Boolean indicating whether event handlers should be copied along with
     *                          the elements. As of jQuery 1.4, element data will be copied as well.
     * @return  self {@link JQueryElement}
     */
    public native JQueryElement clone(boolean withDataAndEvents);

    /**
     * Create a deep copy of the set of matched elements.
     * @param withDataAndEvents A Boolean indicating whether event handlers should be copied along with
     *                          the elements. As of jQuery 1.4, element data will be copied as well.
     * @param deepWithDataAndEvents A Boolean indicating whether event handlers and data for all children
     *                              of the cloned element should be copied. By default its value matches
     *                              the first argument's value (which defaults to false).
     * @return self {@link JQueryElement}
     */
    public native JQueryElement clone(boolean withDataAndEvents, boolean deepWithDataAndEvents);

    /**
     * For each element in the set, get the first element that matches the selector by testing the
     * element itself and traversing up through its ancestors in the DOM tree.
     * @param selector A string containing a selector expression to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement closest(String selector);

    /**
     * For each element in the set, get the first element that matches the selector by testing the
     * element itself and traversing up through its ancestors in the DOM tree.
     * @param selector A string containing a selector expression to match elements against.
     * @param context A DOM element within which a matching element may be found. If no context is passed
     *                in then the context of the jQuery set will be used instead.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement closest(String selector, Element context);

    /**
     * For each element in the set, get the first element that matches the selector by testing the
     * element itself and traversing up through its ancestors in the DOM tree.
     * @param selection A jQuery object to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement closest(JQueryElement selection);

    /**
     * For each element in the set, get the first element that matches the selector by testing the
     * element itself and traversing up through its ancestors in the DOM tree.
     * @param element An element to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement closest(Element element);

    /**
     * Get the children of each element in the set of matched elements, including text and comment nodes.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement contents();

    /**
     * Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement contextmenu(MouseEventFunc handler);

    /**
     * Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement contextmenu(Object eventData, MouseEventFunc handler);

    /**
     * Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement contextmenu();

    /**
     * Get the computed style properties for the first element in the set of matched elements.
     * @param propertyName A CSS property.
     */
    public native String css(String... propertyName);

    /**
     * Set one or more CSS properties for the set of matched elements.
     * @param propertyName A CSS property.
     * @param value A value to set for the property.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement css(String propertyName, String value);

    /**
     * Set one or more CSS properties for the set of matched elements.
     * @param propertyName A CSS property.
     * @param function A function returning the value to set. this is the current element. Receives
     *                 the index position of the element in the set and the old value as arguments.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement css(String propertyName, FuncRet2 function);

    /**
     * Set one or more CSS properties for the set of matched elements.
     * @param properties An object of property-value pairs to set.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement css(Object properties);

    /**
     * Get the computed style properties for the first element in the set of matched elements.
     * @param propertyName A CSS property.
     * @return {@link String} property value.
     */
    public native String css(String propertyName);

    /**
     * Store arbitrary data associated with the matched elements.
     * @param key A string naming the piece of data to set.
     * @param value The new data value; this can be any Javascript type except undefined.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement data(String key, String value);

    /**
     * Store arbitrary data associated with the matched elements.
     * @param obj An object of key-value pairs of data to update.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement data(Object obj);

    /**
     * Return the value at the named data store for the first element in the jQuery collection,
     * as set by data(name, value) or by an HTML5 data-* attribute.
     * @param key Name of the data stored.
     * @return data object value.
     */
    public native Object data(String key);

    /**
     * Return the value at the named data store for the first element in the jQuery collection,
     * as set by data(name, value) or by an HTML5 data-* attribute.
     * @return data object value.
     */
    public native Object data();

    /**
     * Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement dblclick(MouseEventFunc handler);


    /**
     * Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement dblclick(Object eventData, MouseEventFunc handler);

    /**
     * Set a timer to delay execution of subsequent items in the queue.
     * @param duration An integer indicating the number of milliseconds to delay execution of the next
     *                 item in the queue.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement delay(int duration);

    /**
     * Set a timer to delay execution of subsequent items in the queue.
     * @param duration An integer indicating the number of milliseconds to delay execution of the next
     *                 item in the queue.
     * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement delay(int duration, String queueName);

    /**
     * Attach a handler to one or more events for all elements that match the selector, now or in the
     * future, based on a specific set of root elements.
     * @param selector A selector to filter the elements that trigger the event.
     * @param eventType A string containing one or more space-separated JavaScript event types, such as
     *                  "click" or "keydown," or custom event names.
     * @param handler A function to execute at the time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement delegate(String selector, String eventType, EventFunc handler);

    /**
     * Attach a handler to one or more events for all elements that match the selector, now or in the
     * future, based on a specific set of root elements.
     * @param selector A selector to filter the elements that trigger the event.
     * @param eventType A string containing one or more space-separated JavaScript event types, such as
     *                  "click" or "keydown," or custom event names.
     * @param handler A function to execute at the time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement delegate(String selector, String eventType, EventFunc1 handler);

    /**
     * Attach a handler to one or more events for all elements that match the selector, now or in the
     * future, based on a specific set of root elements.
     * @param selector A selector to filter the elements that trigger the event.
     * @param eventType A string containing one or more space-separated JavaScript event types, such as
     *                  "click" or "keydown," or custom event names.
     * @param handler A function to execute at the time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement delegate(String selector, String eventType, EventFunc2 handler);

    /**
     * Attach a handler to one or more events for all elements that match the selector, now or in the
     * future, based on a specific set of root elements.
     * @param selector A selector to filter the elements that trigger the event.
     * @param eventType A string containing one or more space-separated JavaScript event types, such as
     *                  "click" or "keydown," or custom event names.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute at the time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement delegate(String selector, String eventType, Object eventData, EventFunc handler);

    /**
     * Attach a handler to one or more events for all elements that match the selector, now or in the
     * future, based on a specific set of root elements.
     * @param selector A selector to filter the elements that trigger the event.
     * @param eventType A string containing one or more space-separated JavaScript event types, such as
     *                  "click" or "keydown," or custom event names.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute at the time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement delegate(String selector, String eventType, Object eventData, EventFunc1 handler);

    /**
     * Attach a handler to one or more events for all elements that match the selector, now or in the
     * future, based on a specific set of root elements.
     * @param selector A selector to filter the elements that trigger the event.
     * @param eventType A string containing one or more space-separated JavaScript event types, such as
     *                  "click" or "keydown," or custom event names.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute at the time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement delegate(String selector, String eventType,
                                            Object eventData, EventFunc2 handler);

    /**
     * Attach a handler to one or more events for all elements that match the selector, now or in the
     * future, based on a specific set of root elements.
     * @param selector A selector to filter the elements that trigger the event.
     * @param events A plain object of one or more event types and functions to execute for them.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement delegate(String selector, Object events);

    /**
     * Execute the next function on the queue for the matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement dequeue();

    /**
     * Execute the next function on the queue for the matched elements.
     * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement dequeue(String queueName);

    /**
     * Remove the set of matched elements from the DOM.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement detach();

    /**
     * Remove the set of matched elements from the DOM.
     * @param selector A selector expression that filters the set of matched elements to be removed.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement detach(String selector);

    /**
     * Iterate over a jQuery object, executing a function for each matched element.
     * @param function A function to execute for each matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement each(Func2 function);

    /**
     * Remove all child nodes of the set of matched elements from the DOM.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement empty();

    /**
     * End the most recent filtering operation in the current chain and return the set of
     * matched elements to its previous state.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement end();

    /**
     * Reduce the set of matched elements to the one at the specified index.
     * @param index An integer indicating the 0-based position of the element. or,
     *              An integer indicating the position of the element, counting backwards
     *              from the last element in the set.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement eq(int index);

    /**
     * Bind an event handler to the "error" JavaScript event.
     * @param handler A function to execute when the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement error(EventFunc1 handler);

    /**
     * Bind an event handler to the "error" JavaScript event.
     * @param handler A function to execute when the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement error(EventFunc2 handler);

    /**
     * Bind an event handler to the "error" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute when the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement error(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "error" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute when the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement error(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "error" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute when the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement error(Object eventData, EventFunc2 handler);

    /**
     * Display the matched elements by fading them to opaque.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeIn();

    /**
     * Display the matched elements by fading them to opaque.
     * @param duration A string or number determining how long the animation will run.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeIn(double duration);

    /**
     * Display the matched elements by fading them to opaque.
     * @param complete A function to call once the animation is complete, called once per matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeIn(Func complete);

    /**
     * Display the matched elements by fading them to opaque.
     * @param easing A string indicating which easing function to use for the transition.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeIn(String easing);

    /**
     * Display the matched elements by fading them to opaque.
     * @param duration A string or number determining how long the animation will run.
     * @param complete A function to call once the animation is complete, called once per matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeIn(double duration, Func complete);

    /**
     * Display the matched elements by fading them to opaque.
     * @param duration A string or number determining how long the animation will run.
     * @param easing A string indicating which easing function to use for the transition.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeIn(double duration, String easing);

    /**
     * Display the matched elements by fading them to opaque.
     * @param duration A string or number determining how long the animation will run.
     * @param easing A string indicating which easing function to use for the transition.
     * @param complete A function to call once the animation is complete, called once per matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeIn(double duration, String easing, Func complete);

    /**
     * Display the matched elements by fading them to opaque.
     * @param options A map of additional options to pass to the method.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeIn(AnimateOptions options);

    /**
     * Hide the matched elements by fading them to transparent.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeOut();

    /**
     * Hide the matched elements by fading them to transparent.
     * @param duration A string or number determining how long the animation will run.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeOut(double duration);

    /**
     * Display the matched elements by fading them to opaque.
     * @param complete A function to call once the animation is complete, called once per matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeOut(Func complete);

    /**
     * Hide the matched elements by fading them to transparent.
     * @param easing A string indicating which easing function to use for the transition.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeOut(String easing);

    /**
     * Hide the matched elements by fading them to transparent.
     * @param duration A string or number determining how long the animation will run.
     * @param complete A function to call once the animation is complete, called once per matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeOut(double duration, Func complete);

    /**
     * Hide the matched elements by fading them to transparent.
     * @param duration A string or number determining how long the animation will run.
     * @param easing A string indicating which easing function to use for the transition.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeOut(double duration, String easing);

    /**
     * Hide the matched elements by fading them to transparent.
     * @param duration A string or number determining how long the animation will run.
     * @param easing A string indicating which easing function to use for the transition.
     * @param complete A function to call once the animation is complete, called once per matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeOut(double duration, String easing, Func complete);

    /**
     * Hide the matched elements by fading them to transparent.
     * @param options A map of additional options to pass to the method.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeOut(AnimateOptions options);

    /**
     * Adjust the opacity of the matched elements.
     * @param duration A string or number determining how long the animation will run.
     * @param opacity A number between 0 and 1 denoting the target opacity.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeTo(double duration, double opacity);

    /**
     * Adjust the opacity of the matched elements.
     * @param duration A string or number determining how long the animation will run.
     * @param opacity A number between 0 and 1 denoting the target opacity.
     * @param complete A function to call once the animation is complete.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeTo(double duration, double opacity, Func complete);

    /**
     * Adjust the opacity of the matched elements.
     * @param duration A string or number determining how long the animation will run.
     * @param opacity A number between 0 and 1 denoting the target opacity.
     * @param easing A string indicating which easing function to use for the transition.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeTo(double duration, double opacity, String easing);

    /**
     * Adjust the opacity of the matched elements.
     * @param duration A string or number determining how long the animation will run.
     * @param opacity A number between 0 and 1 denoting the target opacity.
     * @param easing A string indicating which easing function to use for the transition.
     * @param complete A function to call once the animation is complete.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeTo(double duration, double opacity, String easing, Func complete);

    /**
     * Display or hide the matched elements by animating their opacity.
     * @param duration A string or number determining how long the animation will run.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeToggle(double duration);

    /**
     * Display or hide the matched elements by animating their opacity.
     * @param complete A function to call once the animation is complete, called once per matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeToggle(Func complete);

    /**
     * Display or hide the matched elements by animating their opacity.
     * @param easing A string indicating which easing function to use for the transition.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeToggle(String easing);

    /**
     * Display or hide the matched elements by animating their opacity.
     * @param duration A string or number determining how long the animation will run.
     * @param complete A function to call once the animation is complete, called once per matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeToggle(double duration, Func complete);

    /**
     * Display or hide the matched elements by animating their opacity.
     * @param duration A string or number determining how long the animation will run.
     * @param easing A string indicating which easing function to use for the transition.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeToggle(double duration, String easing);

    /**
     * Display or hide the matched elements by animating their opacity.
     * @param duration A string or number determining how long the animation will run.
     * @param easing A string indicating which easing function to use for the transition.
     * @param complete A function to call once the animation is complete, called once per matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeToggle(double duration, String easing, Func complete);

    /**
     * Display or hide the matched elements by animating their opacity.
     * @param options A map of additional options to pass to the method.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement fadeToggle(AnimateOptions options);

    /**
     * Reduce the set of matched elements to those that match the selector or pass the function's test.
     * @param selector A string containing a selector expression to match the current set of elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement filter(String selector);

    /**
     * Reduce the set of matched elements to those that match the selector or pass the function's test.
     * @param function A function used as a test for each element in the set. this is the current DOM element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement filter(FuncRet2 function);

    /**
     * Reduce the set of matched elements to those that match the selector or pass the function's test.
     * @param elements One or more DOM elements to match the current set of elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement filter(Element... elements);

    /**
     * Reduce the set of matched elements to those that match the selector or pass the function's test.
     * @param selection An existing jQuery object to match the current set of elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement filter(JQueryElement selection);

    /**
     * Get the descendants of each element in the current set of matched elements, filtered
     * by a selector, jQuery object, or element.
     * @param selector A string containing a selector expression to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement find(String selector);

    /**
     * Get the descendants of each element in the current set of matched elements, filtered
     * by a selector, jQuery object, or element.
     * @param elements DOM elements to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement find(Element... elements);

    /**
     * Get the descendants of each element in the current set of matched elements, filtered
     * by a selector, jQuery object, or element.
     * @param selection jQuery object to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement find(JQueryElement selection);

    /**
     * Stop the currently-running animation, remove all queued animations, and complete
     * all animations for the matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement finish();

    /**
     * Stop the currently-running animation, remove all queued animations, and complete
     * all animations for the matched elements.
     * @param queue The name of the queue in which to stop animations.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement finish(String queue);

    /**
     * Reduce the set of matched elements to the first in the set.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement first();

    /**
     * Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focus(EventFunc1 handler);

    /**
     * Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focus(EventFunc2 handler);

    /**
     * Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focus(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focus(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focus(Object eventData, EventFunc2 handler);

    /**
     * Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focus();

    /**
     * Bind an event handler to the "focusin" JavaScript event.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusin(EventFunc1 handler);

    /**
     * Bind an event handler to the "focusin" JavaScript event.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusin(EventFunc2 handler);

    /**
     * Bind an event handler to the "focusin" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusin(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "focusin" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusin(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "focusin" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusin(Object eventData, EventFunc2 handler);

    /**
     * Bind an event handler to the "focusin" JavaScript event.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusin();

    /**
     * Bind an event handler to the "focusout" JavaScript event.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusout(EventFunc1 handler);

    /**
     * Bind an event handler to the "focusout" JavaScript event.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusout(EventFunc2 handler);

    /**
     * Bind an event handler to the "focusout" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusout(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "focusout" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusout(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "focusout" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusout(Object eventData, EventFunc2 handler);

    /**
     * Bind an event handler to the "focusout" JavaScript event.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement focusout();

    /**
     * Retrieve one of the elements matched by the jQuery object.
     * @param index A zero-based integer indicating which element to retrieve.
     * @return Retrieved element
     */
    public native Element get(int index);

    /**
     * Retrieve the elements matched by the jQuery object.
     * @return All of the matched DOM nodes are returned by this call, contained
     * in a standard array:
     */
    public native Element[] get();

    /**
     * Reduce the set of matched elements to those that have a descendant that matches
     * the selector or DOM element.
     * @param selector A string containing a selector expression to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement has(String selector);

    /**
     * Reduce the set of matched elements to those that have a descendant that matches
     * the selector or DOM element.
     * @param contained A DOM element to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement has(Element contained);

    /**
     * Determine whether any of the matched elements are assigned the given class.
     * @param className The class name to search for.
     * @return true if the class exists
     */
    public native boolean hasClass(String className);

    /**
     * Get the current computed height for the first element in the set of matched elements.
     */
    public native double height();

    /**
     * Set the CSS height of every matched element.
     * @param height An integer representing the number of pixels.
     * @return self {@link JQueryElement}
     */
    public native double height(int height);

    /**
     * Set the CSS height of every matched element.
     * @param height An integer with an optional unit of measure appended (as a string).
     * @return self {@link JQueryElement}
     */
    public native JQueryElement height(String height);

    /**
     * Set the CSS height of every matched element.
     * @param function A function returning the height to set. Receives the index position of the
     *                 element in the set and the old height as arguments. Within the function,
     *                 this refers to the current element in the set. You can return String or Number.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement height(FuncRet2 function);

    /**
     * Hide the matched elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement hide();

    /**
     * Hide the matched elements.
     * @param duration A string or number determining how long the animation will run.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement hide(double duration);

    /**
     * Hide the matched elements.
     * @param complete A function to call once the animation is complete, called once per
     *                 matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement hide(Func complete);

    /**
     * Hide the matched elements.
     * @param duration A string or number determining how long the animation will run.
     * @param complete A function to call once the animation is complete, called once per
     *                 matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement hide(double duration, Func complete);

    /**
     * Hide the matched elements.
     * @param options A map of additional options to pass to the method.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement hide(AnimateOptions options);

    /**
     * Bind two handlers to the matched elements, to be executed when the mouse pointer
     * enters and leaves the elements.
     * @param handlerIn A function to execute when the mouse pointer enters the element.
     * @param handlerOut A function to execute when the mouse pointer leaves the element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement hover(EventFunc1 handlerIn, EventFunc handlerOut);

    /**
     * Bind two handlers to the matched elements, to be executed when the mouse pointer
     * enters and leaves the elements.
     * @param handlerIn A function to execute when the mouse pointer enters the element.
     * @param handlerOut A function to execute when the mouse pointer leaves the element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement hover(EventFunc1 handlerIn, EventFunc1 handlerOut);

    /**
     * Bind two handlers to the matched elements, to be executed when the mouse pointer
     * enters and leaves the elements.
     * @param handlerIn A function to execute when the mouse pointer enters the element.
     * @param handlerOut A function to execute when the mouse pointer leaves the element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement hover(EventFunc2 handlerIn, EventFunc2 handlerOut);

    /**
     * Bind two handlers to the matched elements, to be executed when the mouse pointer
     * enters and leaves the elements.
     * @param handlerOut A function to execute when the mouse pointer leaves the element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement hover(EventFunc1 handlerOut);

    /**
     * Bind two handlers to the matched elements, to be executed when the mouse pointer
     * enters and leaves the elements.
     * @param handlerOut A function to execute when the mouse pointer leaves the element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement hover(EventFunc2 handlerOut);

    /**
     * Get the HTML contents of the first element in the set of matched elements.
     */
    public native String html();

    /**
     * Set the HTML contents of each element in the set of matched elements.
     * @param htmlString A string of HTML to set as the content of each matched element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement html(String htmlString);

    /**
     * Set the HTML contents of each element in the set of matched elements.
     * @param function A function returning the HTML content to set. Receives the index position
     *                 of the element in the set and the old HTML value as arguments. jQuery
     *                 empties the element before calling the function; use the oldhtml argument
     *                 to reference the previous content. Within the function, this refers to the
     *                 current element in the set.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement html(FuncRet2 function);

    /**
     * Search for a given element from among the matched elements.
     */
    public native int index();

    /**
     * Search for a given element from among the matched elements.
     * @param selector A selector representing a jQuery collection in which to look for an element.
     */
    public native int index(String selector);

    /**
     * Search for a given element from among the matched elements.
     * @param element The DOM element within the jQuery object to look for.
     */
    public native int index(Element element);

    /**
     * Search for a given element from among the matched elements.
     * @param element First element within the jQuery object to look for.
     */
    public native int index(JQueryElement element);

    /**
     * Get the current computed height for the first element in the set of matched elements,
     * including padding but not border.
     */
    public native double innerHeight();

    /**
     * Set the CSS inner height of each element in the set of matched elements.
     * @param value A number along with an optional unit of measure appended (as a string).
     * @return self {@link JQueryElement}
     */
    public native JQueryElement innerHeight(String value);

    /**
     * Set the CSS inner height of each element in the set of matched elements.
     * @param value A number representing the number of pixels.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement innerHeight(double value);

    /**
     * Set the CSS inner height of each element in the set of matched elements.
     * @param function A function returning the inner height (including padding but not border)
     *                 to set. Receives the index position of the element in the set and the old
     *                 inner height as arguments. Within the function, this refers to the current
     *                 element in the set. Return String or Number.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement innerHeight(FuncRet2 function);

    /**
     * Get the current computed width for the first element in the set of matched elements,
     * including padding but not border.
     */
    public native double innerWidth();

    /**
     * Set the CSS inner width of each element in the set of matched elements.
     * @param value A number along with an optional unit of measure appended (as a string).
     * @return self {@link JQueryElement}
     */
    public native JQueryElement innerWidth(String value);

    /**
     * Set the CSS inner width of each element in the set of matched elements.
     * @param value A number representing the number of pixels.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement innerWidth(double value);

    /**
     * Set the CSS inner width of each element in the set of matched elements.
     * @param function A function returning the inner height (including padding but not border)
     *                 to set. Receives the index position of the element in the set and the old
     *                 inner height as arguments. Within the function, this refers to the current
     *                 element in the set. Return String or Number.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement innerWidth(FuncRet2 function);

    /**
     * Insert every element in the set of matched elements after the target.
     * @param selector A selector or HTML string; matched set of elements will be inserted after the
     *                 element(s) specified by this parameter.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement insertAfter(String selector);

    /**
     * Insert every element in the set of matched elements after the target.
     * @param element An element; matched set of elements will be inserted after the
     *                 element(s) specified by this parameter.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement insertAfter(Element... element);

    /**
     * Insert every element in the set of matched elements after the target.
     * @param element jQuery object; matched set of elements will be inserted after the
     *                 element(s) specified by this parameter.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement insertAfter(JQueryElement element);

    /**
     * Insert every element in the set of matched elements before the target.
     * @param element jQuery object; matched set of elements will be inserted after the
     *                 element(s) specified by this parameter.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement insertBefore(JQueryElement element);

    /**
     * Check the current matched set of elements against a selector, element, or jQuery object
     * and return true if at least one of these elements matches the given arguments.
     * @param selector A string containing a selector expression to match elements against.
     * @return return true if at least one of these elements matches the given arguments
     */
    public native boolean is(String selector);

    /**
     * Check the current matched set of elements against a selector, element, or jQuery object
     * and return true if at least one of these elements matches the given arguments.
     * @param function A function used as a test for every element in the set. It accepts two
     *                 arguments, index, which is the element's index in the jQuery collection,
     *                 and element, which is the DOM element. Within the function, this refers
     *                 to the current DOM element. Return a Boolean value.
     * @return return true if at least one of these elements matches the given arguments
     */
    public native boolean is(FuncRet2 function);

    /**
     * Check the current matched set of elements against a selector, element, or jQuery object
     * and return true if at least one of these elements matches the given arguments.
     * @param selection An existing jQuery object to match the current set of elements against.
     * @return return true if at least one of these elements matches the given arguments
     */
    public native boolean is(JQueryElement selection);

    /**
     * Check the current matched set of elements against a selector, element, or jQuery object
     * and return true if at least one of these elements matches the given arguments.
     * @param elements One or more elements to match the current set of elements against.
     * @return return true if at least one of these elements matches the given arguments
     */
    public native boolean is(Element... elements);

    /**
     * Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement keydown(KeyEventFunc handler);

    /**
     * Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement keydown(Object eventData, KeyEventFunc handler);

    /**
     * Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement keydown();

    /**
     * Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement keypress(KeyEventFunc handler);

    /**
     * Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement keypress(Object eventData, KeyEventFunc handler);

    /**
     * Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement keypress();

    /**
     * Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement keyup(KeyEventFunc handler);

    /**
     * Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement keyup(Object eventData, KeyEventFunc handler);

    /**
     * Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement keyup();

    /**
     * Reduce the set of matched elements to the final one in the set.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement last();

    /**
     * Load data from the server and place the returned HTML into the matched element.
     * @param url A string containing the URL to which the request is sent.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement load(String url);

    /**
     * Load data from the server and place the returned HTML into the matched element.
     * @param url A string containing the URL to which the request is sent.
     * @param data A plain object or string that is sent to the server with the request.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement load(String url, String data);

    /**
     * Load data from the server and place the returned HTML into the matched element.
     * @param url A string containing the URL to which the request is sent.
     * @param data A plain object or string that is sent to the server with the request.
     * @param complete A callback function that is executed when the request completes.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement load(String url, String data, Func3 complete);

    /**
     * Bind an event handler to the "load" JavaScript event.
     * @param handler A function to execute when the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement load(EventFunc1 handler);

    /**
     * Bind an event handler to the "load" JavaScript event.
     * @param handler A function to execute when the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement load(EventFunc2 handler);

    /**
     * Bind an event handler to the "load" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute when the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement load(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "load" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute when the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement load(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "load" JavaScript event.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute when the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement load(Object eventData, EventFunc2 handler);

    /**
     * Pass each element in the current matched set through a function, producing a new jQuery
     * object containing the return values.
     * @param callback A function object that will be invoked for each element in the current set.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement map(FuncRet2 callback);

    /**
     * Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousedown(Functions.MouseEventFunc1 handler);

    /**
     * Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousedown(Functions.MouseEventFunc2 handler);

    /**
     * Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousedown(Object eventData, MouseEventFunc handler);

    /**
     * Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousedown(Object eventData, Functions.MouseEventFunc1 handler);

    /**
     * Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousedown(Object eventData, Functions.MouseEventFunc2 handler);

    /**
     * Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousedown();

    /**
     * Bind an event handler to the "mouseenter" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseenter(EventFunc1 handler);

    /**
     * Bind an event handler to the "mouseenter" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseenter(EventFunc2 handler);

    /**
     * Bind an event handler to the "mouseenter" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseenter(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "mouseenter" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseenter(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "mouseenter" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseenter(Object eventData, EventFunc2 handler);

    /**
     * Bind an event handler to the "mouseenter" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseenter();

    /**
     * Bind an event handler to the "mouseleave" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseleave(EventFunc1 handler);

    /**
     * Bind an event handler to the "mouseleave" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseleave(EventFunc2 handler);

    /**
     * Bind an event handler to the "mouseleave" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseleave(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "mouseleave" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseleave(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "mouseleave" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseleave(Object eventData, EventFunc2 handler);

    /**
     * Bind an event handler to the "mouseleave" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseleave();

    /**
     * Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousemove(EventFunc1 handler);

    /**
     * Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousemove(EventFunc2 handler);

    /**
     * Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousemove(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousemove(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousemove(Object eventData, EventFunc2 handler);

    /**
     * Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mousemove();

    /**
     * Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseout(EventFunc1 handler);

    /**
     * Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseout(EventFunc2 handler);

    /**
     * Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseout(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseout(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseout(Object eventData, EventFunc2 handler);

    /**
     * Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseout();

    /**
     * Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseover(EventFunc1 handler);

    /**
     * Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseover(EventFunc2 handler);

    /**
     * Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseover(Object eventData, EventFunc handler);

    /**
     * Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseover(Object eventData, EventFunc1 handler);

    /**
     * Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseover(Object eventData, EventFunc2 handler);

    /**
     * Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseover();

    /**
     * Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseup(Functions.MouseEventFunc1 handler);

    /**
     * Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseup(Functions.MouseEventFunc2 handler);

    /**
     * Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseup(Object eventData, MouseEventFunc handler);

    /**
     * Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseup(Object eventData, Functions.MouseEventFunc1 handler);

    /**
     * Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
     * @param eventData An object containing data that will be passed to the event handler.
     * @param handler A function to execute each time the event is triggered.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseup(Object eventData, Functions.MouseEventFunc2 handler);

    /**
     * Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement mouseup();

    /**
     * Get the immediately following sibling of each element in the set of matched elements. If a selector
     * is provided, it retrieves the next sibling only if it matches that selector.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement next();

    /**
     * Get the immediately following sibling of each element in the set of matched elements. If a selector
     * is provided, it retrieves the next sibling only if it matches that selector.
     * @param selector A string containing a selector expression to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement next(String selector);

    /**
     * Get all following siblings of each element in the set of matched elements, optionally
     * filtered by a selector.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement nextAll();

    /**
     * Get all following siblings of each element in the set of matched elements, optionally
     * filtered by a selector.
     * @param selector A string containing a selector expression to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement nextAll(String selector);

    /**
     * Get all following siblings of each element up to but not including the element matched by
     * the selector, DOM node, or jQuery object passed.
     * @param selector A string containing a selector expression to indicate where to stop
     *                 matching following sibling elements.
     * @param filter A string containing a selector expression to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement nextUntil(String selector, String filter);

    /**
     * Get all following siblings of each element up to but not including the element matched by
     * the selector, DOM node, or jQuery object passed.
     * @param element A DOM node indicating where to stop matching following sibling elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement nextUntil(Element element);

    /**
     * Get all following siblings of each element up to but not including the element matched by
     * the selector, DOM node, or jQuery object passed.
     * @param element A DOM node indicating where to stop matching following sibling elements.
     * @param filter A string containing a selector expression to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement nextUntil(Element element, String filter);

    /**
     * Get all following siblings of each element up to but not including the element matched by
     * the selector, DOM node, or jQuery object passed.
     * @param element A jQuery object indicating where to stop matching following sibling elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement nextUntil(JQueryElement element);

    /**
     * Get all following siblings of each element up to but not including the element matched by
     * the selector, DOM node, or jQuery object passed.
     * @param element A jQuery object indicating where to stop matching following sibling elements.
     * @param filter A string containing a selector expression to match elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement nextUntil(JQueryElement element, String filter);

    /**
     * Remove elements from the set of matched elements.
     * @param selector A string containing a selector expression, a DOM element, or an array of
     *                 elements to match against the set.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement not(String selector);

    /**
     * Remove elements from the set of matched elements.
     * @param function A function used as a test for each element in the set. It accepts two arguments,
     *                 index, which is the element's index in the jQuery collection, and element, which
     *                 is the DOM element. Within the function, this refers to the current DOM element.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement not(FuncRet2 function);

    /**
     * Remove elements from the set of matched elements.
     * @param elements An existing jQuery object to match the current set of elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement not(Element... elements);

    /**
     * Remove elements from the set of matched elements.
     * @param selection An existing jQuery object to match the current set of elements against.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement not(JQueryElement selection);

    /**
     * Remove an event handler.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off();

    /**
     * Remove an event handler.
     * @param event A jQuery.Event object.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off(Event event);

    /**
     * Remove an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off(String events);

    /**
     * Remove an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off(String events, EventFunc handler);

    /**
     * Remove an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off(String events, EventFunc1 handler);

    /**
     * Remove an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off(String events, EventFunc2 handler);

    /**
     * Remove an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off(String events, EventFunc3 handler);

    /**
     * Remove an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param selector A selector which should match the one originally passed to .off() when
     *                 attaching event handlers.
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off(String events, String selector, EventFunc handler);

    /**
     * Remove an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param selector A selector which should match the one originally passed to .off() when
     *                 attaching event handlers.
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off(String events, String selector, EventFunc1 handler);

    /**
     * Remove an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param selector A selector which should match the one originally passed to .off() when
     *                 attaching event handlers.
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off(String events, String selector, EventFunc2 handler);

    /**
     * Remove an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param selector A selector which should match the one originally passed to .off() when
     *                 attaching event handlers.
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement off(String events, String selector, EventFunc3 handler);

    /**
     * Add an event handler.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement on();

    /**
     * Add an event handler.
     * @param event A jQuery.Event object.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement on(Event event);

    /**
     * Add an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @return self {@link JQueryElement}
     */
    public native JQueryElement on(String events);

    /**
     * Add an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement on(String events, EventFunc handler);

    /**
     * Add an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement on(String events, EventFunc1 handler);

    /**
     * Add an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement on(String events, EventFunc2 handler);

    /**
     * Add an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement on(String events, EventFunc3 handler);

    /**
     * Add an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param selector A selector which should match the one originally passed to .on() when
     *                 attaching event handlers.
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement on(String events, String selector, EventFunc handler);

    /**
     * Add an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param selector A selector which should match the one originally passed to .on() when
     *                 attaching event handlers.
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement on(String events, String selector, EventFunc1 handler);

    /**
     * Add an event handler.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param selector A selector which should match the one originally passed to .on() when
     *                 attaching event handlers.
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement on(String events, String selector, EventFunc2 handler);

    /**
     * Attach a handler to an event for the elements. The handler is
     * executed at most once per element per event type.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement one();

    /**
     * Attach a handler to an event for the elements. The handler is
     * executed at most once per element per event type.
     * @param event A jQuery.Event object.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement one(Event event);

    /**
     * Attach a handler to an event for the elements. The handler is
     * executed at most once per element per event type.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @return self {@link JQueryElement}
     */
    public native JQueryElement one(String events);

    /**
     * Attach a handler to an event for the elements. The handler is
     * executed at most once per element per event type.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement one(String events, EventFunc handler);

    /**
     * Attach a handler to an event for the elements. The handler is
     * executed at most once per element per event type.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement one(String events, EventFunc1 handler);

    /**
     * Attach a handler to an event for the elements. The handler is
     * executed at most once per element per event type.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement one(String events, EventFunc2 handler);

    /**
     * Attach a handler to an event for the elements. The handler is
     * executed at most once per element per event type.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param selector A selector which should match the one originally passed to .on() when
     *                 attaching event handlers.
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement one(String events, String selector, EventFunc handler);

    /**
     * Attach a handler to an event for the elements. The handler is
     * executed at most once per element per event type.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param selector A selector which should match the one originally passed to .on() when
     *                 attaching event handlers.
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement one(String events, String selector, EventFunc1 handler);

    /**
     * Attach a handler to an event for the elements. The handler is executed
     * at most once per element per event type.
     * @param events One or more space-separated event types and optional namespaces, or just
     *               namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
     * @param selector A selector which should match the one originally passed to .on() when
     *                 attaching event handlers.
     * @param handler A handler function previously attached for the event(s), or the special
     *                value false.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement one(String events, String selector, EventFunc2 handler);

    /**
     * Get the current coordinates of the first element in the set of matched elements,
     * relative to the document.
     * @return returns an object containing the properties top and left.
     */
    public native Offset offset();

    /**
     * Set the current coordinates of every element in the set of matched elements,
     * relative to the document.
     * @param coordinates An object containing the properties top and left, which are numbers indicating
     *                    the new top and left coordinates for the elements.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement offset(Offset coordinates);

    /**
     * Set the current coordinates of every element in the set of matched elements,
     * relative to the document.
     * @param function A function to return the coordinates to set. Receives the index of the element in
     *                 the collection as the first argument and the current coordinates as the second argument.
     *                 The function should return an object with the new top and left properties.
     * @return self {@link JQueryElement}
     */
    public native JQueryElement offset(FuncRet2 function);

    /**
     * Get the closest ancestor element that is positioned.
     * @return Closest jQuery parent element.
     */
    public native JQueryElement offsetParent();

    /**
     * Get the current computed height for the first element in the set of matched elements, including
     * padding, border, and optionally margin. Returns a number (without "px") representation of the value
     * or null if called on an empty set of elements.
     * 
*/ public native int outerHeight(); /** * Get the current computed height for the first element in the set of matched elements, including * padding, border, and optionally margin. Returns a number (without "px") representation of the value * or null if called on an empty set of elements. *
* @param includeMargin A Boolean indicating whether to include the element's margin in the calculation. */ public native int outerHeight(boolean includeMargin); /** * Set the CSS outer Height of each element in the set of matched elements. * @param value A number representing the number of pixels. * @return self {@link JQueryElement} */ public native JQueryElement outerHeight(int value); /** * Set the CSS outer Height of each element in the set of matched elements. * @param value A number along with an optional unit of measure appended (as a string). * @return self {@link JQueryElement} */ public native JQueryElement outerHeight(String value); /** * Set the CSS outer Height of each element in the set of matched elements. * @param function A function returning the outer height to set. Receives the index position * of the element in the set and the old outer height as arguments. Within the * function, this refers to the current element in the set. * @return self {@link JQueryElement} */ public native JQueryElement outerHeight(Func2 function); /** * Get the current computed width for the first element in the set of matched elements, including * padding, border, and optionally margin. Returns a number (without "px") representation of the value * or null if called on an empty set of elements. *
*/ public native int outerWidth(); /** * Get the current computed width for the first element in the set of matched elements, including * padding, border, and optionally margin. Returns a number (without "px") representation of the value * or null if called on an empty set of elements. *
* @param includeMargin A Boolean indicating whether to include the element's margin in the calculation. */ public native int outerWidth(boolean includeMargin); /** * Set the CSS outer Width of each element in the set of matched elements. * @param value A number representing the number of pixels. * @return self {@link JQueryElement} */ public native JQueryElement outerWidth(int value); /** * Set the CSS outer Width of each element in the set of matched elements. * @param value A number along with an optional unit of measure appended (as a string). * @return self {@link JQueryElement} */ public native JQueryElement outerWidth(String value); /** * Set the CSS outer Width of each element in the set of matched elements. * @param function A function returning the outer height to set. Receives the index position * of the element in the set and the old outer height as arguments. Within the * function, this refers to the current element in the set. * @return self {@link JQueryElement} */ public native JQueryElement outerWidth(Func2 function); /** * Get the parent of each element in the current set of matched elements, optionally * filtered by a selector. * @return self {@link JQueryElement} */ public native JQueryElement parent(); /** * Get the parent of each element in the current set of matched elements, optionally * filtered by a selector. * @param selector A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement parent(String selector); /** * Get the ancestors of each element in the current set of matched elements, optionally * filtered by a selector. * @return self {@link JQueryElement} */ public native JQueryElement parents(); /** * Get the ancestors of each element in the current set of matched elements, optionally * filtered by a selector. * @param selector A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement parents(String selector); /** * Get the ancestors of each element in the current set of matched elements, up to but not including * the element matched by the selector, DOM node, or jQuery object. * @param selector A string containing a selector expression to indicate where to * stop matching ancestor elements. * @return self {@link JQueryElement} */ public native JQueryElement parentsUntil(String selector); /** * Get the ancestors of each element in the current set of matched elements, up to but not including * the element matched by the selector, DOM node, or jQuery object. * @param selector A string containing a selector expression to indicate where to * stop matching ancestor elements. * @param filter A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement parentsUntil(String selector, String filter); /** * Get the ancestors of each element in the current set of matched elements, up to but not including * the element matched by the selector, DOM node, or jQuery object. * @param element A DOM node indicating where to stop matching ancestor elements. * @return self {@link JQueryElement} */ public native JQueryElement parentsUntil(Element element); /** * Get the ancestors of each element in the current set of matched elements, up to but not including * the element matched by the selector, DOM node, or jQuery object. * @param element A DOM node indicating where to stop matching ancestor elements. * @param filter A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement parentsUntil(Element element, String filter); /** * Get the ancestors of each element in the current set of matched elements, up to but not including * the element matched by the selector, DOM node, or jQuery object. * @param element A jQuery object indicating where to stop matching ancestor elements. * @return self {@link JQueryElement} */ public native JQueryElement parentsUntil(JQueryElement element); /** * Get the ancestors of each element in the current set of matched elements, up to but not including * the element matched by the selector, DOM node, or jQuery object. * @param element A jQuery object indicating where to stop matching ancestor elements. * @param filter A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement parentsUntil(JQueryElement element, String filter); /** * Get the current coordinates of the first element in the set of matched elements, * relative to the offset parent. * @return Position value as top and left. */ public native Offset position(); /** * Get the immediately preceding sibling of each element in the set of matched elements, * optionally filtered by a selector. * @return self {@link JQueryElement} */ public native JQueryElement prev(); /** * Get the immediately preceding sibling of each element in the set of matched elements, * optionally filtered by a selector. * @param selector A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement prev(String selector); /** * Get all preceding siblings of each element up to but not including the element matched * by the selector, DOM node, or jQuery object. * @return self {@link JQueryElement} */ public native JQueryElement prevAll(); /** * Get all preceding siblings of each element up to but not including the element matched * by the selector, DOM node, or jQuery object. * @param selector A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement prevAll(String selector); /** * GGet all preceding siblings of each element up to but not including the element matched * by the selector, DOM node, or jQuery object. * @param selector A string containing a selector expression to indicate where to * stop matching ancestor elements. * @return self {@link JQueryElement} */ public native JQueryElement prevUntil(String selector); /** * Get all preceding siblings of each element up to but not including the element matched * by the selector, DOM node, or jQuery object. * @param selector A string containing a selector expression to indicate where to * stop matching ancestor elements. * @param filter A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement prevUntil(String selector, String filter); /** * Get all preceding siblings of each element up to but not including the element matched * by the selector, DOM node, or jQuery object. * @param element A DOM node indicating where to stop matching ancestor elements. * @return self {@link JQueryElement} */ public native JQueryElement prevUntil(Element element); /** * Get all preceding siblings of each element up to but not including the element matched * by the selector, DOM node, or jQuery object. * @param element A DOM node indicating where to stop matching ancestor elements. * @param filter A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement prevUntil(Element element, String filter); /** * Get all preceding siblings of each element up to but not including the element matched * by the selector, DOM node, or jQuery object. * @param element A jQuery object indicating where to stop matching ancestor elements. * @return self {@link JQueryElement} */ public native JQueryElement prevUntil(JQueryElement element); /** * Get all preceding siblings of each element up to but not including the element matched * by the selector, DOM node, or jQuery object. * @param element A jQuery object indicating where to stop matching ancestor elements. * @param filter A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement prevUntil(JQueryElement element, String filter); /** * Return a Promise object to observe when all actions of a certain type bound to the * collection, queued or not, have finished. * @return returns a dynamically generated Promise that is resolved once all actions of a certain * type bound to the collection, queued or not, have ended. */ public native Promise promise(); /** * Return a Promise object to observe when all actions of a certain type bound to the * collection, queued or not, have finished. * @param type The type of queue that needs to be observed. * @return returns a dynamically generated Promise that is resolved once all actions of a certain * type bound to the collection, queued or not, have ended. */ public native Promise promise(String type); /** * Return a Promise object to observe when all actions of a certain type bound to the * collection, queued or not, have finished. * @param target Object onto which the promise methods have to be attached * @return returns a dynamically generated Promise that is resolved once all actions of a certain * type bound to the collection, queued or not, have ended. */ public native Promise promise(Object target); /** * Return a Promise object to observe when all actions of a certain type bound to the * collection, queued or not, have finished. * @param type The type of queue that needs to be observed. * @param target Object onto which the promise methods have to be attached * @return returns a dynamically generated Promise that is resolved once all actions of a certain * type bound to the collection, queued or not, have ended. */ public native Promise promise(String type, Object target); /** * Get the value of a property for the first element in the set of matched elements. * @param propertyName The name of the property to get. */ public native Object prop(String propertyName); /** * Set one or more properties for the set of matched elements. * @param propertyName The name of the property to set. * @param value A value to set for the property. * @return self {@link JQueryElement} */ public native JQueryElement prop(String propertyName, Object value); /** * Set one or more properties for the set of matched elements. * @param propertyName The name of the property to set. * @param function A function returning the value to set. Receives the index position of the * element in the set and the old property value as arguments. Within the function, * the keyword this refers to the current element. * @return self {@link JQueryElement} */ public native JQueryElement prop(String propertyName, FuncRet2 function); /** * Set one or more properties for the set of matched elements. * @param properties An object of property-value pairs to set. * @return self {@link JQueryElement} */ public native JQueryElement prop(Object properties); /** * Add a collection of DOM elements onto the jQuery stack. * @param elements An array of elements to push onto the stack and make into a new jQuery object. * @return self {@link JQueryElement} */ public native JQueryElement pushStack(Element... elements); /** * Add a collection of DOM elements onto the jQuery stack. * @param elements An array of elements to push onto the stack and make into a new jQuery object. * @param name The name of a jQuery method that generated the array of elements. * @param arguments The arguments that were passed in to the jQuery method (for serialization). * @return self {@link JQueryElement} */ public native JQueryElement pushStack(Element[] elements, String name, Object... arguments); /** * Show the queue of functions to be executed on the matched elements. * @return Array with length matching queue items left. */ public native Object[] queue(); /** * Show the queue of functions to be executed on the matched elements. * @param queueName A string containing the name of the queue. Defaults to fx, the standard * effects queue. * @return Array with length matching queue items left. */ public native Object[] queue(String queueName); /** * Manipulate the queue of functions to be executed, once for each matched element. * @param newQueue An array of functions to replace the current queue contents. * @return self {@link JQueryElement} */ public native JQueryElement queue(Object[] newQueue); /** * Manipulate the queue of functions to be executed, once for each matched element. * @param queueName A string containing the name of the queue. Defaults to fx, the standard * effects queue. * @param newQueue An array of functions to replace the current queue contents. * @return self {@link JQueryElement} */ public native JQueryElement queue(String queueName, Object... newQueue); /** * Manipulate the queue of functions to be executed, once for each matched element. * @param callback The new function to add to the queue, with a function to call that will * dequeue the next item. * @return self {@link JQueryElement} */ public native JQueryElement queue(Func1 callback); /** * Manipulate the queue of functions to be executed, once for each matched element. * @param queueName A string containing the name of the queue. Defaults to fx, the standard * effects queue. * @param callback The new function to add to the queue, with a function to call that will * dequeue the next item. * @return self {@link JQueryElement} */ public native JQueryElement queue(String queueName, Func1 callback); /** * Specify a function to execute when the DOM is fully loaded. * @param handler A function to execute after the DOM is ready. * @return self {@link JQueryElement} */ public native JQueryElement ready(Func handler); /** * Remove the set of matched elements from the DOM. * @return self {@link JQueryElement} */ public native JQueryElement remove(); /** * Remove the set of matched elements from the DOM. * @param selector A selector expression that filters the set of matched elements to be removed. * @return self {@link JQueryElement} */ public native JQueryElement remove(String selector); /** * Remove an attribute from each element in the set of matched elements. * @param attributeName An attribute to remove; as of version 1.7, it can be a space-separated * list of attributes. * @return self {@link JQueryElement} */ public native JQueryElement removeAttr(String attributeName); /** * Remove a single class, multiple classes, or all classes from each element * in the set of matched elements. * @return self {@link JQueryElement} */ public native JQueryElement removeClass(); /** * Remove a single class, multiple classes, or all classes from each element * in the set of matched elements. * @param className One or more space-separated classes to be removed from the class * attribute of each matched element. * @return self {@link JQueryElement} */ public native JQueryElement removeClass(String className); /** * Remove a single class, multiple classes, or all classes from each element in the set * of matched elements. * @param function A function returning one or more space-separated class names to be removed. * Receives the index position of the element in the set and the old class value * as arguments. Must return a String. * @return self {@link JQueryElement} */ public native JQueryElement removeClass(FuncRet2 function); /** * Remove a previously-stored piece of data. * @return self {@link JQueryElement} */ public native JQueryElement removeData(); /** * Remove a previously-stored piece of data. * @param name A string naming the piece of data to delete. * @return self {@link JQueryElement} */ public native JQueryElement removeData(String name); /** * Remove a previously-stored piece of data. * @param list An array or space-separated string naming the pieces of data to delete. * @return self {@link JQueryElement} */ public native JQueryElement removeData(String[] list); /** * Remove a property for the set of matched elements. * @param propertyName The name of the property to remove. * @return self {@link JQueryElement} */ public native JQueryElement removeProp(String propertyName); /** * Replace each target element with the set of matched elements. * @param target A selector string of elements indicating which element(s) to replace. * @return self {@link JQueryElement} */ public native JQueryElement replaceAll(String target); /** * Replace each target element with the set of matched elements. * @param target A jQuery object of elements indicating which element(s) to replace. * @return self {@link JQueryElement} */ public native JQueryElement replaceAll(JQueryElement target); /** * Replace each target element with the set of matched elements. * @param target DOM element(s) indicating which element(s) to replace. * @return self {@link JQueryElement} */ public native JQueryElement replaceAll(Element... target); /** * Replace each element in the set of matched elements with the provided new content and * return the set of elements that was removed. * @param newContent The content to insert an HTML string. * @return self {@link JQueryElement} */ public native JQueryElement replaceWith(String newContent); /** * Replace each element in the set of matched elements with the provided new content and * return the set of elements that was removed. * @param newContent The content to insert, a jQuery object. * @return self {@link JQueryElement} */ public native JQueryElement replaceWith(JQueryElement newContent); /** * Replace each element in the set of matched elements with the provided new content and * return the set of elements that was removed. * @param newContent The content to insert, a DOM element(s). * @return self {@link JQueryElement} */ public native JQueryElement replaceWith(Element... newContent); /** * Replace each element in the set of matched elements with the provided new content and * return the set of elements that was removed. * @param function A function that returns content with which to replace the set of matched elements. * @return self {@link JQueryElement} */ public native JQueryElement replaceWith(Func function); /** * Bind an event handler to the "resize" JavaScript event, or trigger that event on an element. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement resize(EventFunc1 handler); /** * Bind an event handler to the "resize" JavaScript event, or trigger that event on an element. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement resize(EventFunc2 handler); /** * Bind an event handler to the "resize" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement resize(Object eventData, EventFunc handler); /** * Bind an event handler to the "resize" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement resize(Object eventData, EventFunc1 handler); /** * Bind an event handler to the "resize" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement resize(Object eventData, EventFunc2 handler); /** * Bind an event handler to the "resize" JavaScript event, or trigger that event on an element. * @return self {@link JQueryElement} */ public native JQueryElement resize(); /** * Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement scroll(EventFunc1 handler); /** * Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement scroll(EventFunc2 handler); /** * Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement scroll(Object eventData, EventFunc handler); /** * Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement scroll(Object eventData, EventFunc1 handler); /** * Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement scroll(Object eventData, EventFunc2 handler); /** * Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element. * @return self {@link JQueryElement} */ public native JQueryElement scroll(); /** * Get the current horizontal position of the scroll bar for the first element in the * set of matched elements. * @return The horizontal scroll position is the same as the number of pixels that are * hidden from view to the left of the scrollable area. If the scroll bar is at the very * left, or if the element is not scrollable, this number will be 0. */ public native int scrollLeft(); /** * Set the current horizontal position of the scroll bar for each of the set of matched elements. * @param value An integer indicating the new position to set the scroll bar to. * @return self {@link JQueryElement} */ public native JQueryElement scrollLeft(int value); /** * Get the current vertical position of the scroll bar for the first element in the set of * matched elements or set the vertical position of the scroll bar for every matched element. * @return The vertical scroll position is the same as the number of pixels that are hidden * from view above the scrollable area. If the scroll bar is at the very top, or if the element * is not scrollable, this number will be 0. */ public native int scrollTop(); /** * Set the current vertical position of the scroll bar for each of the set of matched elements. * @param value An integer indicating the new position to set the scroll bar to. * @return self {@link JQueryElement} */ public native JQueryElement scrollTop(int value); /** * Bind an event handler to the "select" JavaScript event, or trigger that event on an element. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement select(EventFunc1 handler); /** * Bind an event handler to the "select" JavaScript event, or trigger that event on an element. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement select(EventFunc2 handler); /** * Bind an event handler to the "select" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement select(Object eventData, EventFunc handler); /** * Bind an event handler to the "select" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement select(Object eventData, EventFunc1 handler); /** * Bind an event handler to the "select" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement select(Object eventData, EventFunc2 handler); /** * Bind an event handler to the "select" JavaScript event, or trigger that event on an element. * @return self {@link JQueryElement} */ public native JQueryElement select(); /** * Encode a set of form elements as a string for submission. * @return he .serialize() method creates a text string in standard URL-encoded notation. * It can act on a jQuery object that has selected individual form controls. */ public native String serialize(); /** * Encode a set of form elements as an array of names and values. * @return creates a JavaScript array of objects, ready to be encoded as a JSON string. * It operates on a jQuery collection of forms and/or form controls. */ public native Object[] serializeArray(); /** * Display the matched elements. * @return self {@link JQueryElement} */ public native JQueryElement show(); /** * Display the matched elements. * @param duration A string or number determining how long the animation will run. * @return self {@link JQueryElement} */ public native JQueryElement show(double duration); /** * Display the matched elements. * @param complete A function to call once the animation is complete, called once per * matched element. * @return self {@link JQueryElement} */ public native JQueryElement show(Func complete); /** * Display the matched elements. * @param duration A string or number determining how long the animation will run. * @param complete A function to call once the animation is complete, called once per * matched element. * @return self {@link JQueryElement} */ public native JQueryElement show(double duration, Func complete); /** * Display the matched elements. * @param options A map of additional options to pass to the method. * @return self {@link JQueryElement} */ public native JQueryElement show(AnimateOptions options); /** * Get the siblings of each element in the set of matched elements, optionally * filtered by a selector. * @return self {@link JQueryElement} */ public native JQueryElement siblings(); /** * Get the siblings of each element in the set of matched elements, optionally * filtered by a selector. * @param selector A string containing a selector expression to match elements against. * @return self {@link JQueryElement} */ public native JQueryElement siblings(String selector); /** * Return the number of elements in the jQuery object. * @deprecated Use the .length property instead. */ public native int size(); /** * Reduce the set of matched elements to a subset specified by a range of indices. * @param start An integer indicating the 0-based position at which the elements begin to be * selected. If negative, it indicates an offset from the end of the set. * @return self {@link JQueryElement} */ public native JQueryElement slice(int start); /** * Reduce the set of matched elements to a subset specified by a range of indices. * @param start An integer indicating the 0-based position at which the elements begin to be * selected. If negative, it indicates an offset from the end of the set. * @param end An integer indicating the 0-based position at which the elements stop being selected. * If negative, it indicates an offset from the end of the set. If omitted, the range * continues until the end of the set. * @return self {@link JQueryElement} */ public native JQueryElement slice(int start, int end); /** * Display the matched elements with a sliding motion. * @return self {@link JQueryElement} */ public native JQueryElement slideDown(); /** * Display the matched elements with a sliding motion. * @param duration A string or number determining how long the animation will run. * @return self {@link JQueryElement} */ public native JQueryElement slideDown(double duration); /** * Display the matched elements with a sliding motion. * @param complete A function to call once the animation is complete, called once per * matched element. * @return self {@link JQueryElement} */ public native JQueryElement slideDown(Func complete); /** * Display the matched elements with a sliding motion. * @param duration A string or number determining how long the animation will run. * @param complete A function to call once the animation is complete, called once per * matched element. * @return self {@link JQueryElement} */ public native JQueryElement slideDown(double duration, Func complete); /** * Display the matched elements with a sliding motion. * @param options A map of additional options to pass to the method. * @return self {@link JQueryElement} */ public native JQueryElement slideDown(AnimateOptions options); /** * Display or hide the matched elements with a sliding motion. * @return self {@link JQueryElement} */ public native JQueryElement slideToggle(); /** * Display or hide the matched elements with a sliding motion. * @param duration A string or number determining how long the animation will run. * @return self {@link JQueryElement} */ public native JQueryElement slideToggle(double duration); /** * Display or hide the matched elements with a sliding motion. * @param complete A function to call once the animation is complete, called once per * matched element. * @return self {@link JQueryElement} */ public native JQueryElement slideToggle(Func complete); /** * Display or hide the matched elements with a sliding motion. * @param duration A string or number determining how long the animation will run. * @param complete A function to call once the animation is complete, called once per * matched element. * @return self {@link JQueryElement} */ public native JQueryElement slideToggle(double duration, Func complete); /** * Display or hide the matched elements with a sliding motion. * @param options A map of additional options to pass to the method. * @return self {@link JQueryElement} */ public native JQueryElement slideToggle(AnimateOptions options); /** * Hide the matched elements with a sliding motion. * @return self {@link JQueryElement} */ public native JQueryElement slideUp(); /** * Hide the matched elements with a sliding motion. * @param duration A string or number determining how long the animation will run. * @return self {@link JQueryElement} */ public native JQueryElement slideUp(double duration); /** * Hide the matched elements with a sliding motion. * @param complete A function to call once the animation is complete, called once per * matched element. * @return self {@link JQueryElement} */ public native JQueryElement slideUp(Func complete); /** * Hide the matched elements with a sliding motion. * @param duration A string or number determining how long the animation will run. * @param complete A function to call once the animation is complete, called once per * matched element. * @return self {@link JQueryElement} */ public native JQueryElement slideUp(double duration, Func complete); /** * Hide the matched elements with a sliding motion. * @param options A map of additional options to pass to the method. * @return self {@link JQueryElement} */ public native JQueryElement slideUp(AnimateOptions options); /** * Stop the currently-running animation on the matched elements. * @param clearQueue A Boolean indicating whether to remove queued animation as well. * Defaults to false. * @return self {@link JQueryElement} */ public native JQueryElement stop(boolean clearQueue); /** * Stop the currently-running animation on the matched elements. * @param queue The name of the queue in which to stop animations. * @param clearQueue A Boolean indicating whether to remove queued animation as well. * Defaults to false. * @return self {@link JQueryElement} */ public native JQueryElement stop(String queue, boolean clearQueue); /** * Stop the currently-running animation on the matched elements. * @param clearQueue A Boolean indicating whether to remove queued animation as well. * Defaults to false. * @param jumpToEnd A Boolean indicating whether to complete the current animation * immediately. Defaults to false. * @return self {@link JQueryElement} */ public native JQueryElement stop(boolean clearQueue, boolean jumpToEnd); /** * Stop the currently-running animation on the matched elements. * @param queue The name of the queue in which to stop animations. * @param clearQueue A Boolean indicating whether to remove queued animation as well. * Defaults to false. * @param jumpToEnd A Boolean indicating whether to complete the current animation * immediately. Defaults to false. * @return self {@link JQueryElement} */ public native JQueryElement stop(String queue, boolean clearQueue, boolean jumpToEnd); /** * Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement submit(EventFunc1 handler); /** * Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement submit(EventFunc2 handler); /** * Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement submit(Object eventData, EventFunc handler); /** * Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement submit(Object eventData, EventFunc1 handler); /** * Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. * @param eventData An object containing data that will be passed to the event handler. * @param handler A function to execute each time the event is triggered. * @return self {@link JQueryElement} */ public native JQueryElement submit(Object eventData, EventFunc2 handler); /** * Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. * @return self {@link JQueryElement} */ public native JQueryElement submit(); /** * Get the combined text contents of each element in the set of matched elements, * including their descendants. * @return a string containing the combined text of all matched elements. */ public native String text(); /** * Set the content of each element in the set of matched elements to the specified text. * @param text The text to set as the content of each matched element. * @return self {@link JQueryElement} */ public native JQueryElement text(String text); /** * Set the content of each element in the set of matched elements to the specified text. * @param value The text to set as the content of each matched element. * @return self {@link JQueryElement} */ public native JQueryElement text(int value); /** * Set the content of each element in the set of matched elements to the specified text. * @param value The text to set as the content of each matched element. * @return self {@link JQueryElement} */ public native JQueryElement text(boolean value); /** * Set the content of each element in the set of matched elements to the specified text. * @param function A function returning the text content to set. Receives the index * position of the element in the set and the old text value as arguments. * Must return a String value. * @return self {@link JQueryElement} */ public native JQueryElement text(FuncRet2 function); /** * Retrieve all the elements contained in the jQuery set, as an array. * @return all of the elements in the jQuery set. */ public native Element[] toArray(); /** * Display or hide the matched elements. * @return self {@link JQueryElement} */ public native JQueryElement toggle(); /** * Display or hide the matched elements. * @param duration A string or number determining how long the animation will run. * @return self {@link JQueryElement} */ public native JQueryElement toggle(double duration); /** * Display or hide the matched elements. * @param duration A string or number determining how long the animation will run. * @param easing A string indicating which easing function to use for the transition. * @return self {@link JQueryElement} */ public native JQueryElement toggle(double duration, String easing); /** * Display or hide the matched elements. * @param duration A string or number determining how long the animation will run. * @param complete A function to call once the animation is complete, called once * per matched element. * @return self {@link JQueryElement} */ public native JQueryElement toggle(double duration, Func complete); /** * Display or hide the matched elements. * @param options A map of additional options to pass to the method. * @return self {@link JQueryElement} */ public native JQueryElement toggle(AnimateOptions options); /** * Display or hide the matched elements. * @param display Use true to show the element or false to hide it. * @return self {@link JQueryElement} */ public native JQueryElement toggle(boolean display); /** * Add or remove one or more classes from each element in the set of matched elements, * depending on either the class's presence or the value of the state argument. * @param className One or more class names (separated by spaces) to be toggled for * each element in the matched set. * @return self {@link JQueryElement} */ public native JQueryElement toggleClass(String className); /** * Add or remove one or more classes from each element in the set of matched elements, * depending on either the class's presence or the value of the state argument. * @param state A Boolean (not just truthy/falsy) value to determine whether the class * should be added or removed. * @return self {@link JQueryElement} */ public native JQueryElement toggleClass(boolean state); /** * Add or remove one or more classes from each element in the set of matched elements, * depending on either the class's presence or the value of the state argument. * @param className One or more class names (separated by spaces) to be toggled for * each element in the matched set. * @param state A Boolean (not just truthy/falsy) value to determine whether the class * should be added or removed. * @return self {@link JQueryElement} */ public native JQueryElement toggleClass(String className, boolean state); /** * Add or remove one or more classes from each element in the set of matched elements, * depending on either the class's presence or the value of the state argument. * @param function A function that returns class names to be toggled in the class attribute * of each element in the matched set. Receives the index position of the element * in the set, the old class value, and the state as arguments. * @return self {@link JQueryElement} */ public native JQueryElement toggleClass(FuncRet3 function); /** * Add or remove one or more classes from each element in the set of matched elements, * depending on either the class's presence or the value of the state argument. * @param function A function that returns class names to be toggled in the class attribute * of each element in the matched set. Receives the index position of the element * in the set, the old class value, and the state as arguments. * @param state A Boolean (not just truthy/falsy) value to determine whether the class * should be added or removed. * @return self {@link JQueryElement} */ public native JQueryElement toggleClass(FuncRet3 function, boolean state); /** * Execute all handlers and behaviors attached to the matched elements for * the given event type. * @param event A jQuery.Event object. * @param extraParameters Additional parameters to pass along to the event handler. * @return self {@link JQueryElement} */ public native JQueryElement trigger(Event event, Object... extraParameters); /** * Execute all handlers and behaviors attached to the matched elements for * the given event type. * @param eventType A string containing a JavaScript event type, such as click or submit. * @param extraParameters Additional parameters to pass along to the event handler. * @return self {@link JQueryElement} */ public native JQueryElement trigger(String eventType, Object[] extraParameters); /** * Execute all handlers and behaviors attached to the matched elements for * the given event type. * @param eventType A string containing a JavaScript event type, such as click or submit. * @param extraParameters Additional parameter to pass along to the event handler. * @return self {@link JQueryElement} */ public native JQueryElement trigger(String eventType, Object extraParameters); /** * Execute all handlers attached to an element for an event. * @param eventType A string containing a JavaScript event type, such as click or submit. * @param extraParameters Additional parameters to pass along to the event handler. * @return self {@link JQueryElement} */ public native Object triggerHandler(String eventType, Object... extraParameters); /** * Execute all handlers attached to an element for an event. * @param event A jQuery.Event object. * @param extraParameters Additional parameters to pass along to the event handler. * @return self {@link JQueryElement} */ public native Object triggerHandler(Event event, Object... extraParameters); /** * Remove a previously-attached event handler from the elements. * @return self {@link JQueryElement} */ public native JQueryElement unbind(); /** * Remove a previously-attached event handler from the elements. * @param event A jQuery.Event object. * @return self {@link JQueryElement} */ public native JQueryElement unbind(Event event); /** * Remove a previously-attached event handler from the elements. * @param eventType A string containing a JavaScript event type, such as click or submit. * @return self {@link JQueryElement} */ public native JQueryElement unbind(String eventType); /** * Remove a previously-attached event handler from the elements. * @param eventType A string containing a JavaScript event type, such as click or submit. * @param handler A handler function previously attached for the event(s), or the special * value false. * @return self {@link JQueryElement} */ public native JQueryElement unbind(String eventType, EventFunc handler); /** * Remove a previously-attached event handler from the elements. * @param eventType A string containing a JavaScript event type, such as click or submit. * @param handler A handler function previously attached for the event(s), or the special * value false. * @return self {@link JQueryElement} */ public native JQueryElement unbind(String eventType, EventFunc1 handler); /** * Remove a previously-attached event handler from the elements. * @param eventType A string containing a JavaScript event type, such as click or submit. * @param handler A handler function previously attached for the event(s), or the special * value false. * @return self {@link JQueryElement} */ public native JQueryElement unbind(String eventType, EventFunc2 handler); /** * Remove a previously-attached event handler from the elements. * @param eventType A string containing a JavaScript event type, such as click or submit. * @param falsed Unbinds the corresponding 'return false' function that was bound * using .bind( eventType, false ). * @return self {@link JQueryElement} */ public native JQueryElement unbind(String eventType, boolean falsed); /** * Wrap an HTML structure around each element in the set of matched elements. * @param wrappingElement A selector or HTML string specifying the structure to wrap around the * matched elements. A selector matching more than one element, the first * element will be used. * @return self {@link JQueryElement} */ public native JQueryElement wrap(String wrappingElement); /** * Wrap an HTML structure around each element in the set of matched elements. * @param wrappingElement An element specifying the structure to wrap around the matched elements. * @return self {@link JQueryElement} */ public native JQueryElement wrap(Element wrappingElement); /** * Wrap an HTML structure around each element in the set of matched elements. * @param wrappingElement A jQuery object specifying the structure to wrap around the matched elements. * When you pass a jQuery collection containing more than one element, or a * selector matching more than one element, the first element will be used. * @return self {@link JQueryElement} */ public native JQueryElement wrap(JQueryElement wrappingElement); /** * Wrap an HTML structure around each element in the set of matched elements. * @param function A callback function returning the HTML content or jQuery object to wrap around the * matched elements. Receives the index position of the element in the set as an argument. * Within the function, this refers to the current element in the set. Must return a String * or jQuery element. * @return self {@link JQueryElement} */ public native JQueryElement wrap(FuncRet1 function); /** * Wrap an HTML structure around all elements in the set of matched elements. * @param wrappingElement A selector or HTML string specifying the structure to wrap around the * matched elements. A selector matching more than one element, the first * element will be used. * @return self {@link JQueryElement} */ public native JQueryElement wrapAll(String wrappingElement); /** * Wrap an HTML structure around all elements in the set of matched elements. * @param wrappingElement An element specifying the structure to wrap around the matched elements. * @return self {@link JQueryElement} */ public native JQueryElement wrapAll(Element wrappingElement); /** * Wrap an HTML structure around all elements in the set of matched elements. * @param wrappingElement A jQuery object specifying the structure to wrap around the matched elements. * When you pass a jQuery collection containing more than one element, or a * selector matching more than one element, the first element will be used. * @return self {@link JQueryElement} */ public native JQueryElement wrapAll(JQueryElement wrappingElement); /** * Wrap an HTML structure around all elements in the set of matched elements. * @param function A callback function returning the HTML content or jQuery object to wrap around the * matched elements. Receives the index position of the element in the set as an argument. * Within the function, this refers to the current element in the set. Must return a String * or jQuery element. * @return self {@link JQueryElement} */ public native JQueryElement wrapAll(FuncRet1 function); /** * Wrap an HTML structure around the content of each element in the set of matched elements. * @param wrappingElement A selector or HTML string specifying the structure to wrap around the * matched elements. A selector matching more than one element, the first * element will be used. * @return self {@link JQueryElement} */ public native JQueryElement wrapInner(String wrappingElement); /** * Wrap an HTML structure around the content of each element in the set of matched elements. * @param wrappingElement An element specifying the structure to wrap around the matched elements. * @return self {@link JQueryElement} */ public native JQueryElement wrapInner(Element wrappingElement); /** * Wrap an HTML structure around the content of each element in the set of matched elements. * @param wrappingElement A jQuery object specifying the structure to wrap around the matched elements. * When you pass a jQuery collection containing more than one element, or a * selector matching more than one element, the first element will be used. * @return self {@link JQueryElement} */ public native JQueryElement wrapInner(JQueryElement wrappingElement); /** * Wrap an HTML structure around the content of each element in the set of matched elements. * @param function A callback function returning the HTML content or jQuery object to wrap around the * matched elements. Receives the index position of the element in the set as an argument. * Within the function, this refers to the current element in the set. Must return a String * or jQuery element. * @return self {@link JQueryElement} */ public native JQueryElement wrapInner(FuncRet1 function); /** * Remove the parents of the set of matched elements from the DOM, * leaving the matched elements in their place. * @return self {@link JQueryElement} */ public native JQueryElement unwrap(); /** * Get the current value of the first element in the set of matched elements. */ public native Object val(); /** * Set the value of each element in the set of matched elements. * @param value A string of text corresponding to the value of each matched element * to set as selected/checked. * @return self {@link JQueryElement} */ public native JQueryElement val(String value); /** * Set the value of each element in the set of matched elements. * @param value a number corresponding to the value of each matched element to set * as selected/checked. * @return self {@link JQueryElement} */ public native JQueryElement val(int value); /** * Set the value of each element in the set of matched elements. * @param value An array of strings corresponding to the value of each matched element * to set as selected/checked. * @return self {@link JQueryElement} */ public native JQueryElement val(String[] value); /** * Get the current computed width for the first element in the set of matched elements. *
*/ public native int width(); /** * Set the CSS width of each element in the set of matched elements. * @param width An integer representing the number of pixels. * @return self {@link JQueryElement} */ public native JQueryElement width(int width); /** * Set the CSS width of each element in the set of matched elements. * @param width An integer along with an optional unit of measure appended (as a string). * @return self {@link JQueryElement} */ public native JQueryElement width(String width); /** * Set the CSS width of each element in the set of matched elements. * @param function A function returning the width to set. Receives the index position of * the element in the set and the old width as arguments. Within the function, * this refers to the current element in the set. Must return a String or Number * @return self {@link JQueryElement} */ public native JQueryElement width(FuncRet2 function); public native JQueryElement sort(FuncRet2 sortFunc); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy