Example usage for Java com.google.gwt.query.client GQuery fields, constructors, methods, implement or subclass
The text is from its open source code.
BodyElement | body The body element in the current page. |
Document | document The document element in the current page. |
Element[] | elements Immutable array of matched elements, modify this using setArray |
Properties | $$(String properties) Wrap a JSON object. |
GQuery | $(Element element) Wrap a GQuery around an existing element. |
GQuery | $(Event event) Wrap a GQuery around an event's target element. |
GQuery | $(Function f) Wrap a GQuery around the element of a Function callback. |
GQuery | $(JavaScriptObject e) Wrap a GQuery around an existing element, event, node or nodelist. |
GQuery | $(List> nodesOrWidgets) Create a new GQuery given a list of nodes, elements or widgets |
GQuery | $(Node n) Wrap a GQuery around an existing node. |
GQuery | $(NodeList Wrap a GQuery around existing Elements. |
GQuery | $(String selectorOrHtml) This function accepts a string containing a CSS selector which is then used to match a set of elements, or it accepts raw HTML creating a GQuery element containing those elements. |
T | $(T gq) wraps a GQuery or a plugin object |
GQuery | $(Widget... widgets) Wrap a GQuery around one widget or an array of existing ones. |
T | $(String selector, Class This function accepts a string containing a CSS selector which is then used to match a set of elements, or it accepts raw HTML creating a GQuery element containing those elements. |
GQuery | $(String selectorOrHtml, Node ctx) This function accepts a string containing a CSS selector which is then used to match a set of elements, or it accepts raw HTML creating a GQuery element containing those elements. |
GQuery | $(String selectorOrHtml, Widget context) This function accepts a string containing a CSS selector which is then used to match a set of elements, or it accepts raw HTML creating a GQuery element containing those elements. |
GQuery | add(GQuery elementsToAdd) Add elements to the set of matched elements if they are not included yet. |
GQuery | add(String selector) Add elements to the set of matched elements if they are not included yet. |
GQuery | addClass(String... classes) Adds the specified classes to each matched element. |
GQuery | after(GQuery query) Insert content after each of the matched elements. |
GQuery | after(Node n) Insert content after each of the matched elements. |
GQuery | after(String html) Insert content after each of the matched elements. |
void | ajax(Properties p) Perform an ajax request to the server. |
void | ajax(Settings settings) Perform an ajax request to the server. |
GQuery | animate(Object stringOrProperties, int duration, Function... funcs) The animate() method allows you to create animation effects on any numeric Attribute, CSS properties, or color CSS property. |
GQuery | append(GQuery query) Append content to the inside of every matched element. |
GQuery | append(Node n) Append content to the inside of every matched element. |
GQuery | append(String html) Append content to the inside of every matched element. |
GQuery | appendTo(GQuery other) All of the matched set of elements will be inserted at the end of the element(s) specified by the parameter other. |
GQuery | appendTo(Node n) All of the matched set of elements will be inserted at the end of the element(s) specified by the parameter other. |
GQuery | appendTo(String html) All of the matched set of elements will be inserted at the end of the element(s) specified by the parameter other. |
T | as(Class Convert to Plugin interface provided by Class literal. |
GQuery | attr(Properties properties) Set a key/value object as properties to all matched elements. |
String | attr(String name) Access a property on the first matched element. |
GQuery | attr(String key, Function closure) Set a single property to a computed value, on all matched elements. |
GQuery | attr(String key, Object value) Set a single property to a value, on all matched elements. |
GQuery | before(GQuery query) Insert content before each of the matched elements. |
GQuery | before(Node n) Insert content before each of the matched elements. |
GQuery | before(String html) Insert content before each of the matched elements. |
GQuery | blur(Function... f) Bind a set of functions to the blur event of each matched element. |
GQuery | change(Function... f) Bind a set of functions to the change event of each matched element. |
GQuery | children(String... filters) Get a set of elements containing all of the unique children of each of the matched set of elements. |
GQuery | children() Get a set of elements containing all of the unique immediate children of each of the matched set of elements. |
GQuery | click(Function... f) Bind a set of functions to the click event of each matched element. |
GQuery | clone() Clone matched DOM Elements and select the clones. |
GQuery | closest(String selector) Get the first ancestor element that matches the selector (for each matched element), beginning at the current element and progressing up through the DOM tree. |
JsNamedArray | closest(String[] selectors) Returns a Map object as key a selector and as value the list of ancestor elements matching this selectors, beginning at the first matched element and progressing up through the DOM. |
boolean | contains(Element a, Element b) Return true if the element b is contained in a. |
GQuery | css(CssSetter... cssSetter) Set CSS a single style property on every matched element using type-safe enumerations. |
String | css(HasCssValue property) Return a style property on the first matched element using type-safe enumerations. |
GQuery | css(Properties properties) Set a key/value object as style properties to all matched elements. |
String | css(String name) Return a style property on the first matched element. |
String | css(HasCssValue property, boolean force) Return a style property on the first matched element using type-safe enumerations. |
String | css(String name, boolean force) Return a style property on the first matched element. |
GQuery | css(String prop, String val) Set a single style property to a value, on all matched elements. |
GQuery | css(TakesCssValue> cssProperty, String value) Set CSS a single style property on every matched element using type-safe enumerations. |
double | cur(String prop, boolean force) Returns the numeric value of a css property. |
Object | data(Element e, String key) Get the element data matching the key. |
T | data(String name, Class Returns value at named data store for the element, as set by data(name, value) with desired return type. |
GQuery | data(String name, Object value) Stores the value in the named spot with desired return type. |
Object | data(String name) Returns value at named data store for the element, as set by data(name, value). |
GQuery | detach() Detach all matched elements from the DOM. |
GQuery | each(Function... f) Run one or more Functions over each element of the GQuery. |
GQuery | empty() Remove all child nodes from the set of matched elements. |
GQuery | eq(int pos) Reduce GQuery to element in the specified position. |
GQuery | fadeOut(int millisecs, Function... f) Fade out all matched elements by adjusting their opacity. |
GQuery | find(String... filters) Searches for all elements that match the specified css expression. |
GQuery | first() Reduce the set of matched elements to the first in the set. |
Element | get(int i) Return the ith element matched. |
NodeList | get() Return all elements matched in the GQuery as a NodeList. |
GQuery | has(final Element elem) Reduce the set of matched elements to those that have a descendant that matches the Element. |
GQuery | has(final String selector) Reduce the set of matched elements to those that have a descendant that matches the selector. |
boolean | hasClass(String... classes) Returns true any of the specified classes are present on any of the matched elements. |
GQuery | height(int height) Set the height of every element in the matched set. |
GQuery | height(String height) Set the height style property of every matched element. |
int | height() Get the current computed, pixel, height of the first matched element. |
GQuery | hide() Make invisible all matched elements. |
GQuery | html(String html) Set the innerHTML of every matched element. |
String | html() Get the innerHTML of the first matched element. |
int | innerWidth() Returns the inner width of the first matched element, including padding but not the vertical scrollbar width, border, or margin. |
GQuery | insertAfter(Element elem) Insert all of the matched elements after another, specified, set of elements. |
GQuery | insertAfter(GQuery query) Insert all of the matched elements after another, specified, set of elements. |
GQuery | insertAfter(String selector) Insert all of the matched elements after another, specified, set of elements. |
boolean | is(String... filters) Checks the current selection against an expression and returns true, if at least one element of the selection fits the given expression. |
boolean | isEmpty() Returns true if the number of matched elements is 0. |
GQuery | keypress(Function... f) Bind a set of functions to the keypress event of each matched element. |
GQuery | keypress(int key) Trigger a keypress event passing the key pushed. |
int | length() Returns the number of elements currently matched. |
GQuery | next() Get a set of elements containing the unique next siblings of each of the given set of elements. |
com.google.gwt.query.client.GQuery.Offset | offset() Get the current offset of the first matched element, in pixels, relative to the document. |
int | outerHeight() Get the current computed height for the first element in the set of matched elements, including padding, border, but not the margin. |
int | outerWidth() Get the current computed width for the first element in the set of matched elements, including padding, border, but not the margin. |
GQuery | parent() Get a set of elements containing the unique parents of the matched set of elements. |
GQuery | parents(String... filters) Get a set of elements containing the unique ancestors of the matched set of elements (except for the root element). |
GQuery | parents() Get a set of elements containing the unique ancestors of the matched set of elements (except for the root element). |
GQuery | prepend(GQuery query) Prepend content to the inside of every matched element. |
GQuery | prepend(Node n) Prepend content to the inside of every matched element. |
GQuery | prepend(String html) Prepend content to the inside of every matched element. |
GQuery | prev() Get a set of elements containing the unique previous siblings of each of the matched set of elements. |
GQuery | prop(String key, boolean value) Sets a boolean property to a value on all matched elements. |
GQuery | prop(String key, Function closure) Sets a boolean property to a computed value on all matched elements. |
GQuery | remove() Removes all matched elements from the DOM. |
GQuery | removeAttr(String key) Remove the named attribute from every element in the matched set. |
GQuery | removeClass(String... classes) Removes the specified classes to each matched element. |
GQuery | removeData(String name) Removes named data store from an element. |
GQuery | replaceWith(Element elem) Replaces all matched elements with the specified element. |
GQuery | replaceWith(GQuery target) Replaces all matched elements with elements selected by target . |
GQuery | replaceWith(String html) Replaces all matched elements with the specified HTML. |
int | scrollLeft() Gets the scroll left offset of the first matched element. |
int | scrollTop() Gets the scroll top offset of the first matched element. |
GQuery | show() Make all matched elements visible |
GQuery | siblings(String... selectors) Get a set of elements containing all of the unique siblings of each of the matched set of elements filtered by the provided set of selectors. |
int | size() Return the number of elements in the matched set. |
GQuery | text(String txt) Set the innerText of every matched element. |
String | text() Return the concatened text contained in the matched elements. |
GQuery | unbind(int eventbits) Removes all events that match the eventbits. |
GQuery | unbind(String eventList) Removes all events that match the eventList. |
GQuery | val(Function f) Sets the value attribute of every matched element based in the return value of the function evaluated for this element. |
GQuery | val(String value) Sets the 'value' attribute of every matched element, but does not set the checked flag to checkboxes or radiobuttons. |
GQuery | val(String... values) Sets the value of every matched element. |
String | val() Gets the content of the value attribute of the first matched element, returns only the first value even if it is a multivalued element. |
W | widget() Return the first non null attached widget from the matched elements or null if there isn't any. |
int | width() Get the current computed, pixel, width of the first matched element. |
GQuery | width(int width) Set the width of every matched element. |