Java com.google.gwt.query.client GQuery fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.query.client GQuery fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.query.client GQuery.

The text is from its open source code.

Subclass

com.google.gwt.query.client.GQuery has subclasses.
Click this link to see all its subclasses.

Field

BodyElementbody
The body element in the current page.
Documentdocument
The document element in the current page.
Element[]elements
Immutable array of matched elements, modify this using setArray

Method

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 elms)
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 plugin)
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.
GQueryadd(GQuery elementsToAdd)
Add elements to the set of matched elements if they are not included yet.
GQueryadd(String selector)
Add elements to the set of matched elements if they are not included yet.
GQueryaddClass(String... classes)
Adds the specified classes to each matched element.
GQueryafter(GQuery query)
Insert content after each of the matched elements.
GQueryafter(Node n)
Insert content after each of the matched elements.
GQueryafter(String html)
Insert content after each of the matched elements.
voidajax(Properties p)
Perform an ajax request to the server.
voidajax(Settings settings)
Perform an ajax request to the server.
GQueryanimate(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.
GQueryappend(GQuery query)
Append content to the inside of every matched element.
GQueryappend(Node n)
Append content to the inside of every matched element.
GQueryappend(String html)
Append content to the inside of every matched element.
GQueryappendTo(GQuery other)
All of the matched set of elements will be inserted at the end of the element(s) specified by the parameter other.
GQueryappendTo(Node n)
All of the matched set of elements will be inserted at the end of the element(s) specified by the parameter other.
GQueryappendTo(String html)
All of the matched set of elements will be inserted at the end of the element(s) specified by the parameter other.
Tas(Class plugin)
Convert to Plugin interface provided by Class literal.
GQueryattr(Properties properties)
Set a key/value object as properties to all matched elements.
Stringattr(String name)
Access a property on the first matched element.
GQueryattr(String key, Function closure)
Set a single property to a computed value, on all matched elements.
GQueryattr(String key, Object value)
Set a single property to a value, on all matched elements.
GQuerybefore(GQuery query)
Insert content before each of the matched elements.
GQuerybefore(Node n)
Insert content before each of the matched elements.
GQuerybefore(String html)
Insert content before each of the matched elements.
GQueryblur(Function... f)
Bind a set of functions to the blur event of each matched element.
GQuerychange(Function... f)
Bind a set of functions to the change event of each matched element.
GQuerychildren(String... filters)
Get a set of elements containing all of the unique children of each of the matched set of elements.
GQuerychildren()
Get a set of elements containing all of the unique immediate children of each of the matched set of elements.
GQueryclick(Function... f)
Bind a set of functions to the click event of each matched element.
GQueryclone()
Clone matched DOM Elements and select the clones.
GQueryclosest(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.
booleancontains(Element a, Element b)
Return true if the element b is contained in a.
GQuerycss(CssSetter... cssSetter)
Set CSS a single style property on every matched element using type-safe enumerations.
Stringcss(HasCssValue property)
Return a style property on the first matched element using type-safe enumerations.
GQuerycss(Properties properties)
Set a key/value object as style properties to all matched elements.
Stringcss(String name)
Return a style property on the first matched element.
Stringcss(HasCssValue property, boolean force)
Return a style property on the first matched element using type-safe enumerations.
Stringcss(String name, boolean force)
Return a style property on the first matched element.
GQuerycss(String prop, String val)
Set a single style property to a value, on all matched elements.
GQuerycss(TakesCssValue cssProperty, String value)
Set CSS a single style property on every matched element using type-safe enumerations.
doublecur(String prop, boolean force)
Returns the numeric value of a css property.
Objectdata(Element e, String key)
Get the element data matching the key.
Tdata(String name, Class clz)
Returns value at named data store for the element, as set by data(name, value) with desired return type.
GQuerydata(String name, Object value)
Stores the value in the named spot with desired return type.
Objectdata(String name)
Returns value at named data store for the element, as set by data(name, value).
GQuerydetach()
Detach all matched elements from the DOM.
GQueryeach(Function... f)
Run one or more Functions over each element of the GQuery.
GQueryempty()
Remove all child nodes from the set of matched elements.
GQueryeq(int pos)
Reduce GQuery to element in the specified position.
GQueryfadeOut(int millisecs, Function... f)
Fade out all matched elements by adjusting their opacity.
GQueryfind(String... filters)
Searches for all elements that match the specified css expression.
GQueryfirst()
Reduce the set of matched elements to the first in the set.
Elementget(int i)
Return the ith element matched.
NodeListget()
Return all elements matched in the GQuery as a NodeList.
GQueryhas(final Element elem)
Reduce the set of matched elements to those that have a descendant that matches the Element.
GQueryhas(final String selector)
Reduce the set of matched elements to those that have a descendant that matches the selector.
booleanhasClass(String... classes)
Returns true any of the specified classes are present on any of the matched elements.
GQueryheight(int height)
Set the height of every element in the matched set.
GQueryheight(String height)
Set the height style property of every matched element.
intheight()
Get the current computed, pixel, height of the first matched element.
GQueryhide()
Make invisible all matched elements.
GQueryhtml(String html)
Set the innerHTML of every matched element.
Stringhtml()
Get the innerHTML of the first matched element.
intinnerWidth()
Returns the inner width of the first matched element, including padding but not the vertical scrollbar width, border, or margin.
GQueryinsertAfter(Element elem)
Insert all of the matched elements after another, specified, set of elements.
GQueryinsertAfter(GQuery query)
Insert all of the matched elements after another, specified, set of elements.
GQueryinsertAfter(String selector)
Insert all of the matched elements after another, specified, set of elements.
booleanis(String... filters)
Checks the current selection against an expression and returns true, if at least one element of the selection fits the given expression.
booleanisEmpty()
Returns true if the number of matched elements is 0.
GQuerykeypress(Function... f)
Bind a set of functions to the keypress event of each matched element.
GQuerykeypress(int key)
Trigger a keypress event passing the key pushed.
intlength()
Returns the number of elements currently matched.
GQuerynext()
Get a set of elements containing the unique next siblings of each of the given set of elements.
com.google.gwt.query.client.GQuery.Offsetoffset()
Get the current offset of the first matched element, in pixels, relative to the document.
intouterHeight()
Get the current computed height for the first element in the set of matched elements, including padding, border, but not the margin.
intouterWidth()
Get the current computed width for the first element in the set of matched elements, including padding, border, but not the margin.
GQueryparent()
Get a set of elements containing the unique parents of the matched set of elements.
GQueryparents(String... filters)
Get a set of elements containing the unique ancestors of the matched set of elements (except for the root element).
GQueryparents()
Get a set of elements containing the unique ancestors of the matched set of elements (except for the root element).
GQueryprepend(GQuery query)
Prepend content to the inside of every matched element.
GQueryprepend(Node n)
Prepend content to the inside of every matched element.
GQueryprepend(String html)
Prepend content to the inside of every matched element.
GQueryprev()
Get a set of elements containing the unique previous siblings of each of the matched set of elements.
GQueryprop(String key, boolean value)
Sets a boolean property to a value on all matched elements.
GQueryprop(String key, Function closure)
Sets a boolean property to a computed value on all matched elements.
GQueryremove()
Removes all matched elements from the DOM.
GQueryremoveAttr(String key)
Remove the named attribute from every element in the matched set.
GQueryremoveClass(String... classes)
Removes the specified classes to each matched element.
GQueryremoveData(String name)
Removes named data store from an element.
GQueryreplaceWith(Element elem)
Replaces all matched elements with the specified element.
GQueryreplaceWith(GQuery target)
Replaces all matched elements with elements selected by target .
GQueryreplaceWith(String html)
Replaces all matched elements with the specified HTML.
intscrollLeft()
Gets the scroll left offset of the first matched element.
intscrollTop()
Gets the scroll top offset of the first matched element.
GQueryshow()
Make all matched elements visible
GQuerysiblings(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.
intsize()
Return the number of elements in the matched set.
GQuerytext(String txt)
Set the innerText of every matched element.
Stringtext()
Return the concatened text contained in the matched elements.
GQueryunbind(int eventbits)
Removes all events that match the eventbits.
GQueryunbind(String eventList)
Removes all events that match the eventList.
GQueryval(Function f)
Sets the value attribute of every matched element based in the return value of the function evaluated for this element.
GQueryval(String value)
Sets the 'value' attribute of every matched element, but does not set the checked flag to checkboxes or radiobuttons.
GQueryval(String... values)
Sets the value of every matched element.
Stringval()
Gets the content of the value attribute of the first matched element, returns only the first value even if it is a multivalued element.
Wwidget()
Return the first non null attached widget from the matched elements or null if there isn't any.
intwidth()
Get the current computed, pixel, width of the first matched element.
GQuerywidth(int width)
Set the width of every matched element.