From: Manolo Carrasco Date: Fri, 2 Jan 2015 09:18:30 +0000 (+0100) Subject: Removing checkstyle errors X-Git-Tag: gwtquery-project-1.4.3~5^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8d6aa20dd05165bd8bd433e3d17a0b591081f860;p=gwtquery.git Removing checkstyle errors --- diff --git a/extractInterface.pl b/extractInterface.pl index c1b1e6b5..9130c495 100644 --- a/extractInterface.pl +++ b/extractInterface.pl @@ -73,7 +73,7 @@ while() { } close(F); -my $class = "public interface $oclass"; +my $class = "/**\n * $oclass.\n * \@param \n */\npublic interface $oclass"; if ($lazy) { $class .= " extends LazyBase" if ($lazy); $head .= "import com.google.gwt.query.client.GQuery.*;\n"; diff --git a/gwtquery-core/src/main/code-style/gwt-checkstyle.xml b/gwtquery-core/src/main/code-style/gwt-checkstyle.xml index 111e29c6..04f8c3e8 100644 --- a/gwtquery-core/src/main/code-style/gwt-checkstyle.xml +++ b/gwtquery-core/src/main/code-style/gwt-checkstyle.xml @@ -76,9 +76,6 @@ Description: - - - @@ -156,7 +153,7 @@ Description: - + diff --git a/gwtquery-core/src/main/code-style/gwt-format.xml b/gwtquery-core/src/main/code-style/gwt-format.xml index 1873dbdb..398c5d98 100644 --- a/gwtquery-core/src/main/code-style/gwt-format.xml +++ b/gwtquery-core/src/main/code-style/gwt-format.xml @@ -57,14 +57,14 @@ - - + + - + @@ -258,7 +258,7 @@ - + diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Browser.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Browser.java index dfe06f22..9dcc63ad 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Browser.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Browser.java @@ -15,8 +15,6 @@ */ package com.google.gwt.query.client; -import com.google.gwt.query.rebind.BrowserGenerator; - /** * This class is the equivalent to the jQuery.browser object in gQuery. * @@ -65,7 +63,7 @@ public abstract class Browser { */ public final boolean opera = isOpera(); /** - * Maintained for jQuery compatibility + * Maintained for jQuery compatibility. * @return true if webkit * @deprecated use webkit() instead */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java index 7416870d..3f96b17e 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java @@ -113,7 +113,7 @@ public abstract class Function { } /** - * Set the list of arguments to be passed to the function + * Set the list of arguments to be passed to the function. */ public Function setArguments(Object...arguments) { this.arguments = arguments; @@ -121,7 +121,8 @@ public abstract class Function { } /** - * Return the first element of the arguments list + * Return the first element of the arguments list. + * * @deprecated use getArgument(idx) instead. */ @Deprecated @@ -130,7 +131,7 @@ public abstract class Function { } /** - * @deprecated use getArgument instead + * @deprecated use getArgument instead. */ @Deprecated public Object getDataObject(int idx) { @@ -193,7 +194,7 @@ public abstract class Function { } /** - * Convenience alias for the getArguments(argIdx, pos) method; + * Convenience alias for the getArguments(argIdx, pos) method. */ public T arguments(int argIdx, int pos) { return getArgument(argIdx, pos); @@ -250,7 +251,7 @@ public abstract class Function { } /** - * @deprecated use: getArgument() + * @deprecated use: getArgument() instead. */ @Deprecated public Properties getDataProperties() { @@ -258,7 +259,7 @@ public abstract class Function { } /** - * @deprecated use: getArgument(idx) + * @deprecated use: getArgument(idx) instead. */ @Deprecated public Properties getDataProperties(int idx) { @@ -266,7 +267,7 @@ public abstract class Function { } /** - * @deprecated use: setArguments() + * @deprecated use: setArguments() instead. */ @Deprecated public void setData(boolean b) { @@ -274,7 +275,7 @@ public abstract class Function { } /** - * @deprecated use: setArguments() + * @deprecated use: setArguments() instead. */ @Deprecated public void setData(double b) { @@ -282,7 +283,7 @@ public abstract class Function { } /** - * @deprecated use use setArguments instead + * @deprecated use use setArguments instead. */ @Deprecated public void setData(Object...arguments) { @@ -298,7 +299,9 @@ public abstract class Function { } /** - * Return the index in a loop execution. Used in GQuery.each() + * Return the index in a loop execution. + * + * Used in GQuery.each() */ public int getIndex() { return index; @@ -385,7 +388,7 @@ public abstract class Function { } /** - * Override this method for bound callbacks + * Override this method for bound callbacks. */ public Object f(Object... args) { setArguments(args); @@ -394,14 +397,14 @@ public abstract class Function { } /** - * Override this method for bound callbacks + * Override this method for bound callbacks. */ public void f(int i, Object arg) { f(i, new Object[]{arg}); } /** - * Override this method for bound callbacks + * Override this method for bound callbacks. */ public void f(int i, Object... args) { setIndex(i); @@ -501,7 +504,7 @@ public abstract class Function { /** * Methods fe(...) should be used from asynchronous contexts so as we can * catch the exception and send it to the GWT UncaughtExceptionHandler - * They are intentionally final to avoid override them + * They are intentionally final to avoid override them. */ public final void fe(Object arg) { fe(new Object[]{arg}); @@ -510,7 +513,7 @@ public abstract class Function { /** * Methods fe(...) should be used from asynchronous contexts so as we can * catch the exception and send it to the GWT UncaughtExceptionHandler - * They are intentionally final to avoid override them + * They are intentionally final to avoid override them. */ public final Object fe(Object... args) { if (GWT.getUncaughtExceptionHandler() != null) { @@ -527,7 +530,7 @@ public abstract class Function { /** * Methods fe(...) should be used from asynchronous contexts so as we can * catch the exception and send it to the GWT UncaughtExceptionHandler - * They are intentionally final to avoid override them + * They are intentionally final to avoid override them. */ public final boolean fe(Event ev, Object... args) { if (GWT.getUncaughtExceptionHandler() != null) { @@ -544,7 +547,7 @@ public abstract class Function { /** * Methods fe(...) should be used from asynchronous contexts so as we can * catch the exception and send it to the GWT UncaughtExceptionHandler - * They are intentionally final to avoid override them + * They are intentionally final to avoid override them. */ public final void fe(com.google.gwt.dom.client.Element elem) { if (GWT.getUncaughtExceptionHandler() != null) { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQ.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQ.java index 9db9ea69..d8cf76a8 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQ.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQ.java @@ -41,7 +41,7 @@ public abstract class GQ { } /** - * Create an instance of a JsonBuilder object whose type is + * Create an instance of a JsonBuilder object whose type is . */ public static T create(Class clz) { return getFactory().create(clz); @@ -89,7 +89,7 @@ public abstract class GQ { /** * Return the appropriate transport implementation depending on the runtime - * environment: browser or JVM + * environment: browser or JVM. */ public static AjaxTransport getAjaxTransport() { initFactory(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index a88427e4..b51fc831 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -32,9 +32,7 @@ import com.google.gwt.dom.client.NodeList; import com.google.gwt.dom.client.OptionElement; import com.google.gwt.dom.client.SelectElement; import com.google.gwt.dom.client.Style.Display; -import com.google.gwt.dom.client.Style.HasCssName; import com.google.gwt.dom.client.TextAreaElement; -import com.google.gwt.query.client.css.CSS; import com.google.gwt.query.client.css.HasCssValue; import com.google.gwt.query.client.css.TakesCssValue; import com.google.gwt.query.client.css.TakesCssValue.CssSetter; @@ -69,7 +67,6 @@ import com.google.gwt.user.client.ui.Widget; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.Map; /** * GwtQuery is a GWT clone of the popular jQuery library. @@ -102,7 +99,7 @@ public class GQuery implements Lazy { } /** - * Class used internally to create DOM element from html snippet + * Class used internally to create DOM element from html snippet. */ private static class TagWrapper { public static final TagWrapper DEFAULT = new TagWrapper(0, "", ""); @@ -148,7 +145,7 @@ public class GQuery implements Lazy { public static final Document document = GWT.isClient() ? Document.get() : null; /** - * Static reference Effects plugin + * Static reference Effects plugin. */ public static Class Effects = com.google.gwt.query.client.plugins.Effects.Effects; @@ -158,7 +155,7 @@ public class GQuery implements Lazy { protected static SelectorEngine engine; /** - * Static reference Events plugin + * Static reference Events plugin. */ public static Class Events = com.google.gwt.query.client.plugins.Events.Events; @@ -185,7 +182,7 @@ public class GQuery implements Lazy { private static RegExp tagNameRegex = RegExp.compile("<([\\w:-]+)"); /** - * Static reference to the Widgets plugin + * Static reference to the Widgets plugin. */ public static Class Widgets = com.google.gwt.query.client.plugins.Widgets.Widgets; @@ -260,7 +257,7 @@ public class GQuery implements Lazy { /** * Wrap a GQuery around any object, supported objects are: - * String, GQuery, Function, Widget, JavaScriptObject + * String, GQuery, Function, Widget, JavaScriptObject. * * In the case of string, we accept a CSS selector which is then used to match a set of * elements, or a raw HTML to create a GQuery element containing those elements. Xpath @@ -298,7 +295,7 @@ public class GQuery implements Lazy { /** * Create a new GQuery given a list of {@link com.google.gwt.dom.client.Node} or - * {@link com.google.gwt.user.client.ui.IsWidget} + * {@link com.google.gwt.user.client.ui.IsWidget}. */ public static GQuery $(List nodesOrWidgets) { JsNodeArray elms = JsNodeArray.create(); @@ -546,7 +543,7 @@ public class GQuery implements Lazy { } /** - * Execute a function around each object + * Execute a function around each object. */ public static void each(JsArrayMixed objects, Function f) { for (int i = 0, l = objects.length(); i < l; i++) { @@ -555,7 +552,7 @@ public class GQuery implements Lazy { } /** - * Execute a function around each object + * Execute a function around each object. */ public static void each(List objects, Function f) { for (int i = 0, l = objects.size(); i < l; i++) { @@ -564,7 +561,7 @@ public class GQuery implements Lazy { } /** - * Execute a function around each object + * Execute a function around each object. */ public static void each(T[] objects, Function f) { for (int i = 0, l = objects.length; i < l; i++) { @@ -764,7 +761,7 @@ public class GQuery implements Lazy { /** * A constructor function that returns a chainable utility object with methods to register * multiple callbacks into callback queues, invoke callback queues, and relay the success - * or failure state of any synchronous or asynchronous function + * or failure state of any synchronous or asynchronous function. */ public static Promise.Deferred Deferred() { return new Deferred(); @@ -779,14 +776,12 @@ public class GQuery implements Lazy { private static native void scrollIntoViewImpl(Node n) /*-{ - if (n) n.scrollIntoView() }-*/; private static native void setElementValue(Element e, String value) /*-{ - e.value = value; }-*/; @@ -794,12 +789,12 @@ public class GQuery implements Lazy { protected String currentSelector; /** - * Immutable array of matched elements, modify this using setArray + * Immutable array of matched elements, modify this using setArray. */ private Element[] elements = new Element[0]; /** - * The nodeList of matched elements, modify this using setArray + * The nodeList of matched elements, modify this using setArray. */ // TODO: remove this and use elements, change return type of get() private NodeList nodeList = JavaScriptObject.createArray().cast(); @@ -954,7 +949,7 @@ public class GQuery implements Lazy { * Example: * *
-   *  //move the element from its original position to left:500px
+   *  // move the element from its original position to left:500px
    *  $("#foo").animate("left:'500'");
    *
    *  // Change the width html attribute of a table, note the symbol '$' to
@@ -971,7 +966,7 @@ public class GQuery implements Lazy {
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left for 500ms and
+   *  // move the element from its original position to 500px to the left for 500ms and
    *  // change the background color of the element at the end of the animation
    *
    *  $("#foo").animate("left:'+=500'", new Function(){
@@ -1014,7 +1009,7 @@ public class GQuery implements Lazy {
    * Example:
    *
    * 
-   *  //move the element from its original position to left:500px for 500ms using a swing easing
+   *  // move the element from its original position to left:500px for 500ms using a swing easing
    *  $("#foo").animate("left:'500'", 500, Easing.SWING);
    *
    *  // Change the width html attribute of a table, note the symbol '$' to
@@ -1032,8 +1027,8 @@ public class GQuery implements Lazy {
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left and 5OOpx down for 400ms.
-   *  //use a swing easing function for the transition
+   *  // move the element from its original position to 500px to the left and 5OOpx down for 400ms.
+   *  // use a swing easing function for the transition
    *  $("#foo").animate(Properties.create("{top:'+=500px',left:'+=500px'}"), 400, Easing.SWING);
    * 
* @@ -1070,7 +1065,7 @@ public class GQuery implements Lazy { * Example: * *
-   *  //move the element from its original position to left:500px for 500ms
+   *  // move the element from its original position to left:500px for 500ms
    *  $("#foo").animate("left:'500'", 500);
    *
    *  // Change the width html attribute of a table, note the symbol '$' to
@@ -1088,7 +1083,7 @@ public class GQuery implements Lazy {
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left for 1000ms and
+   *  // move the element from its original position to 500px to the left for 1000ms and
    *  // change the background color of the element at the end of the animation
    *  $("#foo").animate("left:'+=500'", 1000, new Function(){
    *     public void f(Element e){
@@ -1105,9 +1100,8 @@ public class GQuery implements Lazy {
    *  $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000");
    * 
* - * @param prop the property to animate : "cssName:'value'" - * @param funcs an array of {@link Function} called once the animation is complete - * @param duration the duration in milliseconds of the animation + * @param stringOrProperties the set of properties to animate : "cssName:'value'" + * @param funcs an array of {@link Function} called once the animation is complete. */ public GQuery animate(Object stringOrProperties, int duration, Function... funcs) { return as(Effects).animate(stringOrProperties, duration, funcs); @@ -2018,7 +2012,8 @@ public class GQuery implements Lazy { /** * Remove all event handlers previously attached using {@link #live(String, Function)}. In order * for this method to function correctly, the selector used with it must match exactly the - * selector initially used with {@link #live(String, Function)} + * selector initially used with {@link #live(String, Function)}. + * * @deprecated use {@link #off(String, String)} instead */ public GQuery die() { @@ -2028,7 +2023,7 @@ public class GQuery implements Lazy { /** * Remove an event handlers previously attached using {@link #live(int, Function)} In order for * this method to function correctly, the selector used with it must match exactly the selector - * initially used with {@link #live(int, Function)} + * initially used with {@link #live(int, Function)}. * @deprecated use {@link #off(String)} */ public GQuery die(int eventbits) { @@ -2038,7 +2033,7 @@ public class GQuery implements Lazy { /** * Remove an event handlers previously attached using {@link #live(String, Function)} In order for * this method to function correctly, the selector used with it must match exactly the selector - * initially used with {@link #live(String, Function)} + * initially used with {@link #live(String, Function)}. */ public GQuery die(String eventName) { return as(Events).die(eventName); @@ -2646,7 +2641,7 @@ public class GQuery implements Lazy { } /** - * Return true if the first element is visible.isVisible + * Return true if the first element is visible.isVisible. */ public boolean isVisible() { return isEmpty() ? false : getStyleImpl().isVisible(get(0)); @@ -3078,7 +3073,7 @@ public class GQuery implements Lazy { /** * Get all following siblings of each element up to but not including the element matched by the - * GQuery object, filtered by a selector + * GQuery object, filtered by a selector. * * @return */ @@ -3149,22 +3144,21 @@ public class GQuery implements Lazy { */ public GQuery offset(int top, int left) { for (Element element : elements()){ - GQuery $element = $(element); + GQuery g = $(element); - String position = $element.css("position", true); + String position = g.css("position", true); if ("static".equals(position)) { css("position", "relative"); } - Offset curOffset = $element.offset(); - String curCSSTop = $element.css("top", true); - String curCSSLeft = $element.css("left", true); + Offset curOffset = g.offset(); + String curCSSTop = g.css("top", true); + String curCSSLeft = g.css("left", true); long curTop = 0; long curLeft = 0; - if (("absolute".equals(position) || "fixed".equals(position)) && ("auto".equals(curCSSTop) || "auto".equals - (curCSSLeft))) { - Offset curPosition = $element.position(); + if (("absolute".equals(position) || "fixed".equals(position)) && ("auto".equals(curCSSTop) || "auto".equals(curCSSLeft))) { + Offset curPosition = g.position(); curTop = curPosition.top; curLeft = curPosition.left; } else { @@ -3184,7 +3178,7 @@ public class GQuery implements Lazy { long newTop = top - curOffset.top + curTop; long newLeft = left - curOffset.left + curLeft; - $element.css("top", "" + newTop).css("left", "" + newLeft); + g.css("top", "" + newTop).css("left", "" + newLeft); } return this; @@ -3252,21 +3246,21 @@ public class GQuery implements Lazy { } /** - * Remove an event handler + * Remove an event handler. */ public GQuery off(String eventName) { return unbind(eventName, null); } /** - * Remove an event handler + * Remove an event handler. */ public GQuery off(String eventName, Function f) { return unbind(eventName, f); } /** - * Remove an event handler + * Remove an event handler. */ public GQuery off(String eventName, String selector) { if (selector == null || selector.isEmpty()) { @@ -3939,9 +3933,9 @@ public class GQuery implements Lazy { List newElements = new ArrayList(); for (int i = 0, l = target.size(); i < l; i++) { - GQuery _this = (i > 0 && mustBeCloned) ? this.clone() : this; - $(target.get(i)).replaceWith(_this); - newElements.addAll(Arrays.asList(_this.elements)); + GQuery that = (i > 0 && mustBeCloned) ? this.clone() : this; + $(target.get(i)).replaceWith(that); + newElements.addAll(Arrays.asList(that.elements)); } return $(newElements); } @@ -4065,8 +4059,9 @@ public class GQuery implements Lazy { * Scrolls the first matched element into view. */ public GQuery scrollIntoView() { - if (!isEmpty()) + if (!isEmpty()) { scrollIntoViewImpl(get(0)); + } return this; } @@ -4206,7 +4201,7 @@ public class GQuery implements Lazy { } /** - * Make all matched elements visible + * Make all matched elements visible. */ public GQuery show() { for (Element e : elements) { @@ -4562,7 +4557,8 @@ public class GQuery implements Lazy { /** * Remove all event delegation that have been bound using - * {@link #delegate(String, int, Function...)} {@link #live(int, Function...)} methods + * {@link #delegate(String, int, Function...)} {@link #live(int, Function...)} methods. + * * @deprecated use {@link #off()} */ public GQuery undelegate() { @@ -4571,7 +4567,8 @@ public class GQuery implements Lazy { /** * Undelegate is a way of removing event handlers that have been bound using - * {@link #delegate(String, int, Function...)} method + * {@link #delegate(String, int, Function...)} method. + * * @deprecated use {@link #off(String)} */ public GQuery undelegate(String selector) { @@ -4584,7 +4581,8 @@ public class GQuery implements Lazy { /** * Undelegate is a way of removing event handlers that have been bound using - * {@link #delegate(String, int, Function...)} method + * {@link #delegate(String, int, Function...)} method. + * * @deprecated use {@link #off(String)} */ public GQuery undelegate(String selector, int eventBit) { @@ -4597,7 +4595,8 @@ public class GQuery implements Lazy { /** * Undelegate is a way of removing event handlers that have been bound using - * {@link #delegate(String, int, Function...)} method + * {@link #delegate(String, int, Function...)} method. + * * @deprecated use {@link #off(String, String)} */ public GQuery undelegate(String selector, String eventName) { @@ -4618,7 +4617,7 @@ public class GQuery implements Lazy { /** * This method removes the element's parent. The matched elements replaces their parents within - * the DOM structure. It is the inverse of {@link GQuery#wrap(GQuery)} method + * the DOM structure. It is the inverse of {@link GQuery#wrap(GQuery)} method. * * @return */ @@ -4626,8 +4625,8 @@ public class GQuery implements Lazy { for (Element parent : parent().elements) { if (!"body".equalsIgnoreCase(parent.getTagName())) { - GQuery $parent = $(parent); - $parent.replaceWith($parent.children()); + GQuery g = $(parent); + g.replaceWith(g.children()); } } return this; @@ -4636,7 +4635,7 @@ public class GQuery implements Lazy { /** * Gets the content of the value attribute of the first matched element, returns only the first * value even if it is a multivalued element. To get an array of all values in multivalues - * elements use vals() + * elements use vals(). * * When the first element is a radio-button and is not checked, then it looks for the first * checked radio-button that has the same name in the list of matched elements. @@ -4807,7 +4806,7 @@ public class GQuery implements Lazy { } /** - * return the list of attached widgets matching the query + * return the list of attached widgets matching the query. */ public List widgets() { List widgets = new ArrayList(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/IsProperties.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/IsProperties.java index ac11b119..e2eff943 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/IsProperties.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/IsProperties.java @@ -72,7 +72,7 @@ public interface IsProperties { String toQueryString(); /** - * return the name for this type + * return the name for this type. */ String getJsonName(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Lazy.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Lazy.java index 452688b1..e5395bf4 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Lazy.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Lazy.java @@ -21,6 +21,9 @@ package com.google.gwt.query.client; * method calls to the class which implements the Lazy interface. Methods in the * generated class do not execute but instead queue up a deferred execution of * the method. + * + * @param + * @param */ public interface Lazy { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyBase.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyBase.java index c5294aaa..b3dfb55f 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyBase.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyBase.java @@ -18,8 +18,9 @@ package com.google.gwt.query.client; /** * All lazy interfaces must extend this baseclass. This ensures the done() * method exists and returns an executable function. + * + * @param */ public interface LazyBase { - Function done(); } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java index 3dbf86db..df766f9a 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java @@ -12,17 +12,15 @@ * the License. */ package com.google.gwt.query.client; + import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.NativeEvent; import com.google.gwt.dom.client.Node; import com.google.gwt.dom.client.NodeList; -import com.google.gwt.dom.client.Style.HasCssName; import com.google.gwt.query.client.GQuery.Offset; -import com.google.gwt.query.client.css.CSS; import com.google.gwt.query.client.css.HasCssValue; import com.google.gwt.query.client.css.TakesCssValue; import com.google.gwt.query.client.css.TakesCssValue.CssSetter; -import com.google.gwt.query.client.impl.SelectorEngine; import com.google.gwt.query.client.js.JsNamedArray; import com.google.gwt.query.client.js.JsNodeArray; import com.google.gwt.query.client.plugins.Effects; @@ -30,9 +28,12 @@ import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.Easing; import com.google.gwt.user.client.ui.Widget; import java.util.List; -import java.util.Map; -public interface LazyGQuery extends LazyBase{ +/** + * LazyGQuery. + * @param + */ +public interface LazyGQuery extends LazyBase { /** * Add elements to the set of matched elements if they are not included yet. @@ -93,7 +94,7 @@ public interface LazyGQuery extends LazyBase{ * Example: * *
-   *  //move the element from its original position to left:500px
+   *  // move the element from its original position to left:500px
    *  $("#foo").animate("left:'500'");
    *
    *  // Change the width html attribute of a table, note the symbol '$' to
@@ -110,7 +111,7 @@ public interface LazyGQuery extends LazyBase{
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left for 500ms and
+   *  // move the element from its original position to 500px to the left for 500ms and
    *  // change the background color of the element at the end of the animation
    *
    *  $("#foo").animate("left:'+=500'", new Function(){
@@ -151,7 +152,7 @@ public interface LazyGQuery extends LazyBase{
    * Example:
    *
    * 
-   *  //move the element from its original position to left:500px for 500ms using a swing easing
+   *  // move the element from its original position to left:500px for 500ms using a swing easing
    *  $("#foo").animate("left:'500'", 500, Easing.SWING);
    *
    *  // Change the width html attribute of a table, note the symbol '$' to
@@ -169,8 +170,8 @@ public interface LazyGQuery extends LazyBase{
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left and 5OOpx down for 400ms.
-   *  //use a swing easing function for the transition
+   *  // move the element from its original position to 500px to the left and 5OOpx down for 400ms.
+   *  // use a swing easing function for the transition
    *  $("#foo").animate(Properties.create("{top:'+=500px',left:'+=500px'}"), 400, Easing.SWING);
    * 
* @@ -205,7 +206,7 @@ public interface LazyGQuery extends LazyBase{ * Example: * *
-   *  //move the element from its original position to left:500px for 500ms
+   *  // move the element from its original position to left:500px for 500ms
    *  $("#foo").animate("left:'500'", 500);
    *
    *  // Change the width html attribute of a table, note the symbol '$' to
@@ -223,7 +224,7 @@ public interface LazyGQuery extends LazyBase{
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left for 1000ms and
+   *  // move the element from its original position to 500px to the left for 1000ms and
    *  // change the background color of the element at the end of the animation
    *  $("#foo").animate("left:'+=500'", 1000, new Function(){
    *     public void f(Element e){
@@ -240,9 +241,8 @@ public interface LazyGQuery extends LazyBase{
    *  $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000");
    * 
* - * @param prop the property to animate : "cssName:'value'" - * @param funcs an array of {@link Function} called once the animation is complete - * @param duration the duration in milliseconds of the animation + * @param stringOrProperties the set of properties to animate : "cssName:'value'" + * @param funcs an array of {@link Function} called once the animation is complete. */ LazyGQuery animate(Object stringOrProperties, int duration, Function... funcs); @@ -857,7 +857,8 @@ public interface LazyGQuery extends LazyBase{ /** * Remove all event handlers previously attached using {@link #live(String, Function)}. In order * for this method to function correctly, the selector used with it must match exactly the - * selector initially used with {@link #live(String, Function)} + * selector initially used with {@link #live(String, Function)}. + * * @deprecated use {@link #off(String, String)} instead */ LazyGQuery die(); @@ -865,7 +866,7 @@ public interface LazyGQuery extends LazyBase{ /** * Remove an event handlers previously attached using {@link #live(int, Function)} In order for * this method to function correctly, the selector used with it must match exactly the selector - * initially used with {@link #live(int, Function)} + * initially used with {@link #live(int, Function)}. * @deprecated use {@link #off(String)} */ LazyGQuery die(int eventbits); @@ -873,7 +874,7 @@ public interface LazyGQuery extends LazyBase{ /** * Remove an event handlers previously attached using {@link #live(String, Function)} In order for * this method to function correctly, the selector used with it must match exactly the selector - * initially used with {@link #live(String, Function)} + * initially used with {@link #live(String, Function)}. */ LazyGQuery die(String eventName); @@ -1205,7 +1206,7 @@ public interface LazyGQuery extends LazyBase{ boolean isEmpty(); /** - * Return true if the first element is visible.isVisible + * Return true if the first element is visible.isVisible. */ boolean isVisible(); @@ -1533,7 +1534,7 @@ public interface LazyGQuery extends LazyBase{ /** * Get all following siblings of each element up to but not including the element matched by the - * GQuery object, filtered by a selector + * GQuery object, filtered by a selector. * * @return */ @@ -1605,17 +1606,17 @@ public interface LazyGQuery extends LazyBase{ LazyGQuery off(); /** - * Remove an event handler + * Remove an event handler. */ LazyGQuery off(String eventName); /** - * Remove an event handler + * Remove an event handler. */ LazyGQuery off(String eventName, Function f); /** - * Remove an event handler + * Remove an event handler. */ LazyGQuery off(String eventName, String selector); @@ -1686,9 +1687,9 @@ public interface LazyGQuery extends LazyBase{ /** * Get the ancestors of each element in the current set of matched elements, up to but not - * including the element matched by the selector. + * including the node. */ - LazyGQuery parentsUntil(Node selector); + LazyGQuery parentsUntil(Node node); /** * Gets the top and left position of an element relative to its offset parent. The returned object @@ -2115,7 +2116,7 @@ public interface LazyGQuery extends LazyBase{ LazyGQuery setSelector(String selector); /** - * Make all matched elements visible + * Make all matched elements visible. */ LazyGQuery show(); @@ -2313,28 +2314,32 @@ public interface LazyGQuery extends LazyBase{ /** * Remove all event delegation that have been bound using - * {@link #delegate(String, int, Function...)} {@link #live(int, Function...)} methods + * {@link #delegate(String, int, Function...)} {@link #live(int, Function...)} methods. + * * @deprecated use {@link #off()} */ LazyGQuery undelegate(); /** * Undelegate is a way of removing event handlers that have been bound using - * {@link #delegate(String, int, Function...)} method + * {@link #delegate(String, int, Function...)} method. + * * @deprecated use {@link #off(String)} */ LazyGQuery undelegate(String selector); /** * Undelegate is a way of removing event handlers that have been bound using - * {@link #delegate(String, int, Function...)} method + * {@link #delegate(String, int, Function...)} method. + * * @deprecated use {@link #off(String)} */ LazyGQuery undelegate(String selector, int eventBit); /** * Undelegate is a way of removing event handlers that have been bound using - * {@link #delegate(String, int, Function...)} method + * {@link #delegate(String, int, Function...)} method. + * * @deprecated use {@link #off(String, String)} */ LazyGQuery undelegate(String selector, String eventName); @@ -2347,7 +2352,7 @@ public interface LazyGQuery extends LazyBase{ /** * This method removes the element's parent. The matched elements replaces their parents within - * the DOM structure. It is the inverse of {@link GQuery#wrap(GQuery)} method + * the DOM structure. It is the inverse of {@link GQuery#wrap(GQuery)} method. * * @return */ @@ -2356,7 +2361,7 @@ public interface LazyGQuery extends LazyBase{ /** * Gets the content of the value attribute of the first matched element, returns only the first * value even if it is a multivalued element. To get an array of all values in multivalues - * elements use vals() + * elements use vals(). * * When the first element is a radio-button and is not checked, then it looks for the first * checked radio-button that has the same name in the list of matched elements. @@ -2427,7 +2432,7 @@ public interface LazyGQuery extends LazyBase{ W widget(int n); /** - * return the list of attached widgets matching the query + * return the list of attached widgets matching the query. */ List widgets(); @@ -2549,4 +2554,5 @@ public interface LazyGQuery extends LazyBase{ * everything else. */ LazyGQuery wrapInner(String html); + } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Promise.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Promise.java index 193ac624..3b0650e4 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Promise.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Promise.java @@ -13,7 +13,6 @@ */ package com.google.gwt.query.client; - /** * Definition of jquery Promise interface used in gquery. */ @@ -44,9 +43,9 @@ public interface Promise { Deferred resolve(Object... o); } - public static final String PENDING = "pending"; - public static final String REJECTED = "rejected"; - public static final String RESOLVED = "resolved"; + String PENDING = "pending"; + String REJECTED = "rejected"; + String RESOLVED = "resolved"; /** * Add handlers to be called when the Deferred object is either resolved or rejected. diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java index 027f8840..d0d899be 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java @@ -71,8 +71,7 @@ public class Properties extends JavaScriptObject implements IsProperties { .replaceAll(";([^:]+):", ",$1:") // change semicolon .replaceAll(";([^:]+):", ",$1:") // change semicolon second pass .replaceAll(":\"(-?\\d[\\d\\.]*|null|false|true)\"[;,]", ":$1,") // numbers do not need quote - .replaceAll("[;,]+([\\]\\}]|$)", "$1") // remove endings - ; + .replaceAll("[;,]+([\\]\\}]|$)", "$1"); // remove endings ret = ret.matches("(^[\\[\\{].*[\\]\\}]$)") ? ret : "{" + ret + "}"; return ret; } @@ -89,9 +88,7 @@ public class Properties extends JavaScriptObject implements IsProperties { return this.cast(); } - public final native Properties cloneProps() - /*-{ - + public final native Properties cloneProps() /*-{ var props = {}; for(p in this) { props[p] = this[p]; @@ -182,9 +179,7 @@ public class Properties extends JavaScriptObject implements IsProperties { * Its useful for exporting or importing to javascript. * */ - public final native void setFunction(T name, Function f) - /*-{ - + public final native void setFunction(T name, Function f) /*-{ if (!f) return; this[name] = function() { f.@com.google.gwt.query.client.Function::fe(Ljava/lang/Object;)(arguments); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Selectors.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Selectors.java index 6c44caed..f20619ce 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Selectors.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Selectors.java @@ -54,12 +54,12 @@ public interface Selectors { * Set the context for all the selectors. * By default they are evaluated in all the document. */ - public void setRoot(Node node); + void setRoot(Node node); /** * Get the configured root context. */ - public Node getRoot(); + Node getRoot(); /** * Used for benchmarking purposes, it returns true if the selector engine @@ -68,5 +68,5 @@ public interface Selectors { * * It is useful to check if IE8 native selectors are being used. */ - public boolean isDegradated(); + boolean isDegradated(); } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilder.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilder.java index 60b209c0..41d6cd7e 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilder.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilder.java @@ -31,8 +31,9 @@ public interface JsonBuilder extends IsProperties { /** * Returns the wrapped object, normally a Properties jso in client - * but can be used to return the underlying Json implementation in JVM - * @deprecated use asObject() instead + * but can be used to return the underlying Json implementation in JVM. + * + * @deprecated use asObject() instead. */ J getProperties(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java index 4c25117a..13bf2344 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java @@ -22,6 +22,11 @@ import com.google.gwt.query.client.Properties; import com.google.gwt.query.client.js.JsObjectArray; import com.google.gwt.query.client.js.JsUtils; +/** + * Common class for all JsonBuilder implementations. + * + * @param + */ public abstract class JsonBuilderBase> implements JsonBuilder { protected Properties p = Properties.create(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonFactory.java index b4d68323..8e4225c7 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonFactory.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonFactory.java @@ -17,6 +17,9 @@ package com.google.gwt.query.client.builders; import com.google.gwt.query.client.IsProperties; +/** + * Factory interface. + */ public interface JsonFactory { T create(Class clz); IsProperties create(String s); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilder.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilder.java index 42ee3af3..4d7cba47 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilder.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilder.java @@ -39,32 +39,32 @@ public interface XmlBuilder { Element getRootElement(); /** - * Appends a node + * Appends a node. */ void append(XmlBuilder x); /** - * Appends xml content + * Appends xml content. */ void append(String x); /** - * Returns the text content of the element + * Returns the text content of the element. */ String getText(); /** - * Sets the text content of the element + * Sets the text content of the element. */ J setText(String t); /** - * Returns the text content of the element as a number + * Returns the text content of the element as a number. */ double getTextAsNumber(); /** - * Returns the text content of the element as a date + * Returns the text content of the element as a date. */ Date getTextAsDate(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilderBase.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilderBase.java index c8a63495..d8327c77 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilderBase.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilderBase.java @@ -26,9 +26,14 @@ import com.google.gwt.query.client.js.JsUtils; import java.util.Date; +/** + * Common code in XmlBuilder implementations. + * + * @param + */ public abstract class XmlBuilderBase> implements XmlBuilder { - //TODO empty document + // TODO empty document protected GQuery g = $((Element)JsUtils.parseXML("")); public void append(String xml) { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundAttachmentProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundAttachmentProperty.java index 2be77855..a3afad98 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundAttachmentProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundAttachmentProperty.java @@ -25,6 +25,9 @@ import com.google.gwt.dom.client.Style.HasCssName; public class BackgroundAttachmentProperty extends CssProperty { + /** + * BackgroundAttachment. + */ public static enum BackgroundAttachment implements HasCssName { /** * Background image is fixed. diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundImageProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundImageProperty.java index b0924e84..eb5f10d0 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundImageProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundImageProperty.java @@ -16,7 +16,7 @@ package com.google.gwt.query.client.css; /** - * This property sets the background image of an element, + * This property sets the background image of an element. */ public class BackgroundImageProperty extends CssProperty { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundPositionProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundPositionProperty.java index e16a5daf..87940bf5 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundPositionProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundPositionProperty.java @@ -27,19 +27,16 @@ public class BackgroundPositionProperty extends /** * Value for background-position property. - * - * @author Julien Dramaix (julien.dramaix@gmail.com) - * */ public static class BackgroundPosition implements HasCssName { /** - * Equivalent to {@link BackgroundPosition#CENTER_BOTTOM} + * Equivalent to {@link BackgroundPosition#CENTER_BOTTOM}. */ public static BackgroundPosition BOTTOM; /** - * Equivalent to {@link BackgroundPosition#CENTER_CENTER} + * Equivalent to {@link BackgroundPosition#CENTER_CENTER}. */ public static BackgroundPosition CENTER; @@ -62,7 +59,7 @@ public class BackgroundPositionProperty extends public static BackgroundPosition CENTER_TOP; /** - * Equivalent to {@link BackgroundPosition#LEFT_CENTER} + * Equivalent to {@link BackgroundPosition#LEFT_CENTER}. */ public static BackgroundPosition LEFT; @@ -85,7 +82,7 @@ public class BackgroundPositionProperty extends public static BackgroundPosition LEFT_TOP; /** - * Equivalent to {@link BackgroundPosition#RIGHT_CENTER} + * Equivalent to {@link BackgroundPosition#RIGHT_CENTER}. */ public static BackgroundPosition RIGHT; @@ -108,7 +105,7 @@ public class BackgroundPositionProperty extends public static BackgroundPosition RIGHT_TOP; /** - * Equivalent to {@link BackgroundPosition#CENTER_TOP} + * Equivalent to {@link BackgroundPosition#CENTER_TOP}. */ public static BackgroundPosition TOP; @@ -138,7 +135,7 @@ public class BackgroundPositionProperty extends /** * Return a {@link BackgroundPosition} by specifying the horizontal and - * vertical position. Pixel will be used as Unit + * vertical position. Pixel will be used as Unit. */ public static BackgroundPosition position(int xpos, int ypos) { return position(xpos, ypos, Unit.PX); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderCollapseProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderCollapseProperty.java index 3f5c4e66..edcfdac4 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderCollapseProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderCollapseProperty.java @@ -23,6 +23,9 @@ import com.google.gwt.dom.client.Style.HasCssName; public class BorderCollapseProperty extends CssProperty { + /** + * BorderCollapse. + */ public static enum BorderCollapse implements HasCssName { /** * Borders are collapsed into a single border when possible (border-spacing diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderSpacingProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderSpacingProperty.java index 979b5933..81d58fd1 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderSpacingProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderSpacingProperty.java @@ -38,7 +38,7 @@ public class BorderSpacingProperty extends /** * Construct a {@link BorderSpacing} object with same horizontal and - * vertical spacing + * vertical spacing. */ public BorderSpacing(Length spacing) { this(spacing, spacing); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderStyleProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderStyleProperty.java index 385880aa..d1431407 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderStyleProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderStyleProperty.java @@ -24,6 +24,9 @@ import com.google.gwt.dom.client.Style.HasCssName; public class BorderStyleProperty extends CssProperty { + /** + * BorderStyle. + */ public static enum BorderStyle implements HasCssName { /** * The border is a series of short line segments. diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CSS.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CSS.java index c72fa5ee..c6a43756 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CSS.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CSS.java @@ -17,7 +17,6 @@ package com.google.gwt.query.client.css; import com.google.gwt.query.client.css.MarginProperty.ShorthandMarginProperty; import com.google.gwt.query.client.css.PaddingProperty.ShorthandPaddingProperty; -import com.google.gwt.query.client.css.UnicodeBidiProperty.UnicodeBidi; /** * This class lists all CSS properties. @@ -626,7 +625,7 @@ public class CSS { /** * CSS value specifying that the setting of the related property should be - * inherited from the parent element + * inherited from the parent element. */ public static final String INHERIT = "inherit"; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CssProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CssProperty.java index 342c67b6..21b1f4b7 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CssProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CssProperty.java @@ -27,6 +27,9 @@ import com.google.gwt.dom.client.Style.HasCssName; public class CssProperty implements TakesCssValue { + /** + * CssSetterImpl. + */ protected class CssSetterImpl implements CssSetter { private T cssValue; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CursorProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CursorProperty.java index ed706423..8cb6ae03 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CursorProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CursorProperty.java @@ -19,7 +19,7 @@ import com.google.gwt.dom.client.Style.Cursor; /** * The cursor property specifies the type of cursor to be displayed for - * the pointing device + * the pointing device. */ public class CursorProperty extends CssProperty { @@ -33,7 +33,7 @@ public class CursorProperty extends CssProperty { super(CSS_PROPERTY); } - public CssSetter with(UriValue url){ + public CssSetter with(UriValue url) { return new SimpleCssSetter(this, url); } } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/HeightProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/HeightProperty.java index 3aa8e163..e2cd01ff 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/HeightProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/HeightProperty.java @@ -17,7 +17,7 @@ package com.google.gwt.query.client.css; /** * All height css properties : max-height, min-height, - * height + * height. */ public class HeightProperty extends CssProperty { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MarginProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MarginProperty.java index 1355276c..6544508a 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MarginProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MarginProperty.java @@ -22,6 +22,9 @@ import com.google.gwt.dom.client.Style; */ public class MarginProperty extends CssProperty { + /** + * ShorthandMarginProperty. + */ public static class ShorthandMarginProperty implements HasCssValue { private ShorthandMarginProperty() { @@ -36,7 +39,7 @@ public class MarginProperty extends CssProperty { } /** - * Apply the same margin to all sides + * Apply the same margin to all sides. */ public CssSetter with(Length margin) { return new MultipleValueCssSetter(getCssName(), margin); @@ -44,7 +47,7 @@ public class MarginProperty extends CssProperty { /** * The top and bottom margins are set to the first value and the right and - * left margins are set to the second + * left margins are set to the second. */ public CssSetter with(Length topAndBottom, Length leftAndRight) { return new MultipleValueCssSetter(getCssName(), topAndBottom, leftAndRight); @@ -52,7 +55,7 @@ public class MarginProperty extends CssProperty { /** * The top margin is set to the first value, the left and right margins are - * set to the second, and the bottom margin is set to the third + * set to the second, and the bottom margin is set to the third. */ public CssSetter with(Length top, Length leftAndRight, Length bottom) { return new MultipleValueCssSetter(getCssName(), top, leftAndRight, bottom); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MultipleValueCssSetter.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MultipleValueCssSetter.java index 50305d01..27dbca04 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MultipleValueCssSetter.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MultipleValueCssSetter.java @@ -17,16 +17,19 @@ package com.google.gwt.query.client.css; import com.google.gwt.dom.client.Style.HasCssName; +/** + * MultipleValueCssSetter. + */ public class MultipleValueCssSetter extends SimpleCssSetter { public MultipleValueCssSetter(String cssPropertyName, HasCssName... values) { super(cssPropertyName, computeValue(values)); } - protected static String computeValue(HasCssName... values){ + protected static String computeValue(HasCssName... values) { StringBuilder valueBuilder = new StringBuilder(); - for (HasCssName cssValue : values){ + for (HasCssName cssValue : values) { valueBuilder.append(notNull(cssValue)); } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineProperty.java index 848750fc..820967be 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineProperty.java @@ -28,7 +28,7 @@ import com.google.gwt.query.client.css.TakesCssValue.CssSetter; * declaration. */ public class OutlineProperty implements - HasCssValue{ + HasCssValue { private static final String CSS_PROPERTY = "outline"; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PaddingProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PaddingProperty.java index dac18f81..43a75f62 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PaddingProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PaddingProperty.java @@ -23,6 +23,9 @@ import com.google.gwt.dom.client.Style; */ public class PaddingProperty extends CssProperty { + /** + * ShorthandPaddingProperty. + */ public static class ShorthandPaddingProperty implements HasCssValue { private ShorthandPaddingProperty() { @@ -37,7 +40,7 @@ public class PaddingProperty extends CssProperty { } /** - * Apply the same padding to all sides + * Apply the same padding to all sides. */ public CssSetter with(Length padding) { return new MultipleValueCssSetter(getCssName(), padding); @@ -45,7 +48,7 @@ public class PaddingProperty extends CssProperty { /** * The top and bottom paddings are set to the first value and the right and - * left paddings are set to the second + * left paddings are set to the second. */ public CssSetter with(Length topAndBottom, Length leftAndRight) { return new MultipleValueCssSetter(getCssName(), topAndBottom, @@ -54,7 +57,7 @@ public class PaddingProperty extends CssProperty { /** * The top padding is set to the first value, the left and right paddings - * are set to the second, and the bottom padding is set to the third + * are set to the second, and the bottom padding is set to the third. */ public CssSetter with(Length top, Length leftAndRight, Length bottom) { return new MultipleValueCssSetter(getCssName(), top, leftAndRight, bottom); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TakesCssValue.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TakesCssValue.java index 62947bb5..def5d1f1 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TakesCssValue.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TakesCssValue.java @@ -19,11 +19,16 @@ import com.google.gwt.dom.client.Element; /** * An CSS property with values of type T. + * + * @param */ public interface TakesCssValue extends HasCssValue { - public interface CssSetter { - public void applyCss(Element e); + /** + * CssSetter. + */ + interface CssSetter { + void applyCss(Element e); } CssSetter with(T value); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UnicodeBidiProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UnicodeBidiProperty.java index df0a3d9f..069f00ad 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UnicodeBidiProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UnicodeBidiProperty.java @@ -18,13 +18,13 @@ package com.google.gwt.query.client.css; import com.google.gwt.dom.client.Style.HasCssName; /** - * This property defines the text direction/writing direction + * This property defines the text direction/writing direction. */ public class UnicodeBidiProperty extends CssProperty { /** - * Define possible values for unicode-bidi property + * Define possible values for unicode-bidi property. * */ public static enum UnicodeBidi implements HasCssName { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UriValue.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UriValue.java index fb03f115..0ea5ca25 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UriValue.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UriValue.java @@ -18,12 +18,12 @@ package com.google.gwt.query.client.css; import com.google.gwt.dom.client.Style.HasCssName; /** - * Image as css value + * Image as css value. */ public class UriValue implements HasCssName { /** - * Define an uri by an url + * Define an uri by an url. */ public static UriValue url(String url) { return new UriValue("url('" + url + "')"); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WhiteSpaceProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WhiteSpaceProperty.java index 6821b085..38ecca52 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WhiteSpaceProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WhiteSpaceProperty.java @@ -19,11 +19,14 @@ import com.google.gwt.dom.client.Style.HasCssName; /** * The white-space property declares how white space inside the element - * is handled + * is handled. */ public class WhiteSpaceProperty extends CssProperty { + /** + * WhiteSpace. + */ public enum WhiteSpace implements HasCssName { /** diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WidthProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WidthProperty.java index 2cfff008..b1f7be26 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WidthProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WidthProperty.java @@ -16,7 +16,7 @@ package com.google.gwt.query.client.css; /** - * All width css properties : max-width, min-width, width + * All width css properties : max-width, min-width, width. */ public class WidthProperty extends CssProperty { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ZIndexProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ZIndexProperty.java index 7202f5f3..2bd55ac9 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ZIndexProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ZIndexProperty.java @@ -52,20 +52,18 @@ public class ZIndexProperty implements TakesInteger { /** * returns a {@link CssSetter} object setting z-index property to the - * specified value + * specified value. */ public CssSetter with(Integer value) { return new SimpleCssSetter(CSS_PROPERTY, value != null ? value.toString() : null); } /** - * See GWT issue 5548 + * See GWT issue 5548. * http://code.google.com/p/google-web-toolkit/issues/detail?id=5548 */ - private native String getZIndex(Style s) - /*-{ - - //force to return a string + private native String getZIndex(Style s) /*-{ + // force to return a string return "" + s["zIndex"]; }-*/; } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeImpl.java index 0a6a6642..3fc8e3bc 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeImpl.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeImpl.java @@ -1,4 +1,5 @@ -/* Copyright 2011, The gwtquery team. +/* + * Copyright 2011, The gwtquery team. * * 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 @@ -10,7 +11,8 @@ * 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. */ + * the License. + */ package com.google.gwt.query.client.impl; import com.google.gwt.dom.client.Element; @@ -28,9 +30,9 @@ public class AttributeImpl { * Interface used for attribute setter implementations. */ public interface AttributeSetter { - public boolean isRemoval(Object value); + boolean isRemoval(Object value); - public void setAttribute(Element e, String name, Object value); + void setAttribute(Element e, String name, Object value); } /** @@ -56,7 +58,7 @@ public class AttributeImpl { } /** - * value must be set on element directly + * value must be set on element directly. */ protected static class ValueAttrSetter extends DefaultSetter { private static AttributeSetter INSTANCE; @@ -75,7 +77,7 @@ public class AttributeImpl { } /** - * Boolean attribute : + * Boolean attribute. * - Ensure to set a boolean value to the element's property with the same * name if this last exists * - Ensure to set an attribute having the value equals to the name (i.e @@ -124,7 +126,7 @@ public class AttributeImpl { /** * For button and inputs, the type cannot be changed once the element is - * attached to the dom ! + * attached to the DOM. */ private static class TypeAttrSetter extends DefaultSetter { private static AttributeSetter INSTANCE; @@ -145,12 +147,12 @@ public class AttributeImpl { String tag = e.getNodeName(); if (NOT_AUTHORIZED_NODE.test(tag) && GQuery.$(e).parents("body").length() > 0) { - //TODO maybe it's better to simply do nothing... + // TODO maybe it's better to simply do nothing... throw new RuntimeException( "You cannot change type of button or input element if the element is already attached to the dom"); } if ("input".equals(tag.toLowerCase()) && "radio".equals(value)) { - //some browser (IE6-9) resets value property of the input when you change the type to radio button + // some browser (IE6-9) resets value property of the input when you change the type to radio button InputElement ie = InputElement.as(e); String keepValue = ie.getValue(); super.setAttribute(ie, "type", value); @@ -190,7 +192,7 @@ public class AttributeImpl { value = fixValue(key, value); for (Element e : gQuery.elements()) { int nodeType = e.getNodeType(); - //don't set attribute on text, comment and attributes nodes + // don't set attribute on text, comment and attributes nodes if (nodeType == 3 || nodeType == 8 || nodeType == 2) { continue; } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeTridentImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeTridentImpl.java index 7b10f69e..d8492f29 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeTridentImpl.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeTridentImpl.java @@ -60,9 +60,7 @@ public class AttributeTridentImpl extends AttributeImpl { } } - private static native String getAttributeNode(Element e, String name) - /*-{ - + private static native String getAttributeNode(Element e, String name) /*-{ var attrNode = e.getAttributeNode(name); if (attrNode && attrNode.nodeValue !== "") { return attrNode.nodeValue; @@ -71,9 +69,7 @@ public class AttributeTridentImpl extends AttributeImpl { }-*/; private static native boolean setAttributeNode(Element e, String name, - Object value) - /*-{ - + Object value) /*-{ var attrNode = e.getAttributeNode(name); if (attrNode) { attrNode.nodeValue = value; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/ConsoleBrowser.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/ConsoleBrowser.java index ace13666..f6e65752 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/ConsoleBrowser.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/ConsoleBrowser.java @@ -27,13 +27,11 @@ import com.google.gwt.query.client.js.JsObjectArray; public class ConsoleBrowser implements Console { /** - * http://whattheheadsaid.com/2011/04/internet-explorer-9s-problematic-console-object + * http://whattheheadsaid.com/2011/04/internet-explorer-9s-problematic-console-object. */ private static class ConsoleIe8 extends ConsoleIe9 { @Override - protected native void init() - /*-{ - + protected native void init() /*-{ try { Function.prototype.call.call($wnd.console.log, $wnd.console, Array.prototype.slice.call(arguments)); this.@com.google.gwt.query.client.impl.ConsoleBrowser.ConsoleIe9::initialized = true; @@ -43,7 +41,7 @@ public class ConsoleBrowser implements Console { } /** - * See: http://whattheheadsaid.com/2011/04/internet-explorer-9s-problematic-console-object + * See: http://whattheheadsaid.com/2011/04/internet-explorer-9s-problematic-console-object. */ private static class ConsoleIe9 extends ConsoleImpl { @@ -53,9 +51,7 @@ public class ConsoleBrowser implements Console { init(); } - protected native void init() - /*-{ - + protected native void init() /*-{ try { [ "log", "info", "warn", "error", "dir", "clear", "profile", "profileEnd" ] .forEach(function(method) { @@ -68,31 +64,45 @@ public class ConsoleBrowser implements Console { @Override public void clear() { - if (initialized) super.clear(); + if (initialized) { + super.clear(); + } } @Override public void dir(Object arg) { - if (initialized) super.dir(arg); + if (initialized) { + super.dir(arg); + } } @Override public void error(JavaScriptObject arg) { - if (initialized) super.error(arg); + if (initialized) { + super.error(arg); + } } @Override public void info(JavaScriptObject arg) { - if (initialized) super.info(arg); + if (initialized) { + super.info(arg); + } } @Override public void profile(String title) { - if (initialized) super.profile(title); + if (initialized) { + super.profile(title); + } } @Override public void profileEnd(String title) { - if (initialized) super.profileEnd(title); + if (initialized) { + super.profileEnd(title); + } } @Override public void warn(JavaScriptObject arg) { - if (initialized) super.warn(arg); + if (initialized) { + super.warn(arg); + } } @Override public void group(Object arg) {} @@ -109,90 +119,62 @@ public class ConsoleBrowser implements Console { } /** - * Default implementation: webkit, opera, FF, ie10 + * Default implementation: webkit, opera, FF, IE10. */ private static class ConsoleImpl { - public native void clear() - /*-{ - + public native void clear() /*-{ $wnd.console.clear(); }-*/; - public native void dir(Object arg) - /*-{ - + public native void dir(Object arg) /*-{ $wnd.console.dir(arg); }-*/; - public native void error(JavaScriptObject arg) - /*-{ - + public native void error(JavaScriptObject arg) /*-{ $wnd.console.error.apply($wnd.console, arg); }-*/; - public native void group(Object arg) - /*-{ - + public native void group(Object arg) /*-{ $wnd.console.group(arg); }-*/; - public native void groupCollapsed(Object arg) - /*-{ - + public native void groupCollapsed(Object arg) /*-{ $wnd.console.groupCollapsed(arg); }-*/; - public native void groupEnd() - /*-{ - + public native void groupEnd() /*-{ $wnd.console.groupEnd(); }-*/; - public native void info(JavaScriptObject arg) - /*-{ - + public native void info(JavaScriptObject arg) /*-{ $wnd.console.info.apply($wnd.console, arg); }-*/; - public native void log(JavaScriptObject arg) - /*-{ - + public native void log(JavaScriptObject arg) /*-{ $wnd.console.log.apply($wnd.console, arg); }-*/; - public native void profile(String title) - /*-{ - + public native void profile(String title) /*-{ $wnd.console.profile(title); }-*/; - public native void profileEnd(String title) - /*-{ - + public native void profileEnd(String title) /*-{ $wnd.console.profileEnd(title); }-*/; - public native void time(String title) - /*-{ - + public native void time(String title) /*-{ $wnd.console.time(title); }-*/; - public native void timeEnd(String title) - /*-{ - + public native void timeEnd(String title) /*-{ $wnd.console.timeEnd(title); }-*/; - public native void timeStamp(Object arg) - /*-{ - + public native void timeStamp(Object arg) /*-{ $wnd.console.timeStamp(arg); }-*/; - public native void warn(JavaScriptObject arg) - /*-{ - + public native void warn(JavaScriptObject arg) /*-{ $wnd.console.warn.apply($wnd.console, arg); }-*/; } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java index 585cb4a1..6847b75f 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java @@ -92,7 +92,7 @@ public class DocumentStyleImpl { return ""; } name = fixPropertyName(name); - //value defined in the element style + // value defined in the element style String ret = elem.getStyle().getProperty(name); if (force) { @@ -124,7 +124,7 @@ public class DocumentStyleImpl { Element lastParent = $(elem).parents().last().get(0); if (lastParent == null){ - //the element itself is detached + // the element itself is detached lastParent = elem; } @@ -251,9 +251,7 @@ public class DocumentStyleImpl { } protected native String getComputedStyle(Element elem, String hyphenName, - String camelName, String pseudo) - /*-{ - + String camelName, String pseudo) /*-{ try { var cStyle = $doc.defaultView.getComputedStyle(elem, pseudo); return cStyle && cStyle.getPropertyValue ? cStyle.getPropertyValue(hyphenName) : null; @@ -280,18 +278,14 @@ public class DocumentStyleImpl { return ret; } - public native Document getContentDocument(Node n) - /*-{ - + public native Document getContentDocument(Node n) /*-{ var d = n.contentDocument || n.document || n.contentWindow.document; if (!d.body) this.@com.google.gwt.query.client.impl.DocumentStyleImpl::emptyDocument(Lcom/google/gwt/dom/client/Document;)(d); return d; }-*/; - public native void emptyDocument(Document d) - /*-{ - + public native void emptyDocument(Document d) /*-{ d.open(); d.write(""); d.close(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java index 6193dff3..04074656 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java @@ -62,9 +62,7 @@ public class DocumentStyleImplIE extends DocumentStyleImpl { /** * Remove a style property from an element. */ - public native void removeStyleProperty(Element e, String prop) - /*-{ - + public native void removeStyleProperty(Element e, String prop) /*-{ if (e && e.style && 'removeAttribute' in e) e.style.removeAttribute(prop); }-*/; @@ -84,9 +82,7 @@ public class DocumentStyleImplIE extends DocumentStyleImpl { @Override protected native String getComputedStyle(Element elem, String hyphenName, - String camelName, String pseudo) - /*-{ - + String camelName, String pseudo) /*-{ // code lifted from jQuery if (!elem.style || !'currentStyle' in elem || !'runtimeStyle' in elem) return null; var style = elem.style; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/HasSelector.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/HasSelector.java index b8e6fc67..9e80cae2 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/HasSelector.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/HasSelector.java @@ -19,6 +19,9 @@ import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Node; import com.google.gwt.dom.client.NodeList; +/** + * + */ public interface HasSelector { /** diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngine.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngine.java index 9a8d16d0..1266e817 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngine.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngine.java @@ -23,7 +23,6 @@ import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Node; import com.google.gwt.dom.client.NodeList; -import com.google.gwt.query.client.GQuery; import com.google.gwt.query.client.Predicate; import com.google.gwt.query.client.js.JsMap; import com.google.gwt.query.client.js.JsNodeArray; @@ -41,21 +40,15 @@ public class SelectorEngine implements HasSelector { private static DocumentStyleImpl styleImpl; public static native NodeList getElementsByClassName(String clazz, - Node ctx) - /*-{ - + Node ctx) /*-{ return ctx.getElementsByClassName(clazz); }-*/; - public static native Node getNextSibling(Node n) - /*-{ - + public static native Node getNextSibling(Node n) /*-{ return n.nextSibling || null; }-*/; - public static native Node getPreviousSibling(Node n) - /*-{ - + public static native Node getPreviousSibling(Node n) /*-{ return n.previousSibling || null; }-*/; @@ -71,23 +64,17 @@ public class SelectorEngine implements HasSelector { } public static native NodeList querySelectorAllImpl(String selector, - Node ctx) - /*-{ - + Node ctx) /*-{ return ctx.querySelectorAll(selector); }-*/; public static native NodeList elementsByTagName(String selector, - Node ctx) - /*-{ - + Node ctx) /*-{ return ctx.getElementsByTagName(selector); }-*/; public static native NodeList elementsByClassName(String selector, - Node ctx) - /*-{ - + Node ctx) /*-{ return ctx.getElementsByClassName(selector); }-*/; @@ -102,9 +89,7 @@ public class SelectorEngine implements HasSelector { } public static native NodeList xpathEvaluate(String selector, - Node ctx, JsNodeArray r) - /*-{ - + Node ctx, JsNodeArray r) /*-{ var node; var ownerDoc = ctx && (ctx.ownerDocument || ctx ); var evalDoc = ownerDoc ? ownerDoc : $doc; @@ -277,9 +262,7 @@ public class SelectorEngine implements HasSelector { } } - public native boolean contains(Element a, Element b) - /*-{ - + public native boolean contains(Element a, Element b) /*-{ return a.contains ? a != b && a.contains(b) : !!(a.compareDocumentPosition(b) & 16) }-*/; @@ -297,18 +280,14 @@ public class SelectorEngine implements HasSelector { } /** - * Check if the browser has native support for css selectors + * Check if the browser has native support for css selectors. */ - public static native boolean hasQuerySelectorAll() - /*-{ - + public static native boolean hasQuerySelectorAll() /*-{ return $doc.location.href.indexOf("_force_no_native") < 0 && typeof $doc.querySelectorAll == 'function'; }-*/; - public static native boolean hasXpathEvaluate() - /*-{ - + public static native boolean hasXpathEvaluate() /*-{ return !!$doc.evaluate; }-*/; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java index 2492214d..654653e1 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java @@ -42,14 +42,14 @@ public class SelectorEngineCssToXPath extends SelectorEngineImpl { /** * Interface for callbacks in replaceAll operations. */ - public static interface ReplaceCallback { + public interface ReplaceCallback { String foundMatch(ArrayList s); } /** * Interface for replacer implementations (GWT and JVM). */ - public static interface Replacer { + public interface Replacer { String replaceAll(String s, String expr, Object replacement); } @@ -115,7 +115,7 @@ public class SelectorEngineCssToXPath extends SelectorEngineImpl { "\\s*,\\s*", "|.//", // , + ~ > "\\s*(\\+|~|>)\\s*", "$1", - //* ~ + > + // * ~ + > "([\\w\\-\\*])~([\\w\\-\\*])", "$1/following-sibling::$2", "([\\w\\-\\*])\\+([\\w\\-\\*])", "$1/following-sibling::*[1]/self::$2", "([\\w\\-\\*])>([\\w\\-\\*])", "$1/$2", @@ -267,8 +267,8 @@ public class SelectorEngineCssToXPath extends SelectorEngineImpl { if (!SelectorEngine.hasXpathEvaluate()) { throw new RuntimeException("This Browser does not support Xpath selectors.", e); } - console.error("ERROR: xpathEvaluate invalid xpath expression:" - + xsel + " css-selector:" + sel + " " + e.getMessage() + "\n"); + console.error("ERROR: xpathEvaluate invalid xpath expression: " + + xsel + " css-selector: " + sel + " " + e.getMessage() + "\n"); } return elm; } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzle.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzle.java index 927a5259..8b17d4fc 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzle.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzle.java @@ -28,9 +28,7 @@ import com.google.gwt.dom.client.NodeList; */ public class SelectorEngineSizzle extends SelectorEngineImpl { - public static native void initialize() - /*-{ - + public static native void initialize() /*-{ (function(){ var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, @@ -924,7 +922,7 @@ GQS.getText = function( elems ) { div = null; // release memory in IE })(); -//if ( document.querySelectorAll ) { +// if ( document.querySelectorAll ) { // (function(){ // var oldGQS = GQS, div = document.createElement("div"); // div.innerHTML = "

"; @@ -955,7 +953,7 @@ GQS.getText = function( elems ) { // // div = null; // release memory in IE // })(); -//} +// } (function(){ var div = document.createElement("div"); @@ -1093,9 +1091,7 @@ $wnd.GQS = GQS; })(); }-*/; - private static native JsArray select(String selector, Node context, JsArray results, JsArray seed) - /*-{ - + private static native JsArray select(String selector, Node context, JsArray results, JsArray seed) /*-{ return $wnd.GQS(selector, context, results, seed); }-*/; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzleIE.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzleIE.java index 227e1a4b..0f4a387b 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzleIE.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzleIE.java @@ -40,9 +40,7 @@ import com.google.gwt.dom.client.NodeList; */ public class SelectorEngineSizzleIE extends SelectorEngineImpl { - public static native void initialize() - /*-{ - + public static native void initialize() /*-{ (function(){ var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, @@ -933,9 +931,7 @@ $wnd.IES = IES; })(); }-*/; - private static native JsArray select(String selector, Node context, JsArray results, JsArray seed) - /*-{ - + private static native JsArray select(String selector, Node context, JsArray results, JsArray seed) /*-{ return $wnd.IES(selector, context, results, seed); }-*/; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJS.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJS.java index 733848f8..92da332d 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJS.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJS.java @@ -139,34 +139,24 @@ public class SelectorEngineJS extends SelectorEngineImpl { } } - public static native void clearAdded(Node node) - /*-{ - + public static native void clearAdded(Node node) /*-{ node.added = null; }-*/; public static native NodeList getElementsByClassName(String clazz, - Node ctx) - /*-{ - + Node ctx) /*-{ return ctx.getElementsByClassName(clazz); }-*/; - public static native boolean isAdded(Node prevRef) - /*-{ - + public static native boolean isAdded(Node prevRef) /*-{ return prevRef.added || false; }-*/; - public static native void setAdded(Node prevRef, boolean added) - /*-{ - + public static native void setAdded(Node prevRef, boolean added) /*-{ prevRef.added = added; }-*/; - public static native void setSkipTag(JsNodeArray prevElem, boolean skip) - /*-{ - + public static native void setSkipTag(JsNodeArray prevElem, boolean skip) /*-{ prevElem.skipTag = skip; }-*/; @@ -189,9 +179,7 @@ public class SelectorEngineJS extends SelectorEngineImpl { return JsUtils.truth(attrVal) ? "^" + attrVal + "$" : null; } - private static native boolean checked(Node previous) - /*-{ - + private static native boolean checked(Node previous) /*-{ return previous.checked || false; }-*/; @@ -201,9 +189,7 @@ public class SelectorEngineJS extends SelectorEngineImpl { } } - private static native boolean enabled(Node node) - /*-{ - + private static native boolean enabled(Node node) /*-{ return !node.disabled; }-*/; @@ -252,28 +238,20 @@ public class SelectorEngineJS extends SelectorEngineImpl { } } - private static native boolean hasChildElms(Node prevParent) - /*-{ - + private static native boolean hasChildElms(Node prevParent) /*-{ return prevParent.childElms || false; }-*/; - private static native boolean isSkipped(JsNodeArray prevElem) - /*-{ - + private static native boolean isSkipped(JsNodeArray prevElem) /*-{ return prevElem.skipTag || false; }-*/; - private static native void setHasChildElms(Node prevParent, boolean bool) - /*-{ - + private static native void setHasChildElms(Node prevParent, boolean bool) /*-{ prevParent.childElms = bool ? bool : null; }-*/; private static native JsNodeArray subtractArray(JsNodeArray previousMatch, - JsNodeArray elementsByPseudo) - /*-{ - + JsNodeArray elementsByPseudo) /*-{ for (var i=0, src1; (src1=arr1[i]); i++) { var found = false; for (var j=0, src2; (src2=arr2[j]); j++) { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJSIE.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJSIE.java index 3bd5da24..f02eb857 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJSIE.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJSIE.java @@ -23,9 +23,7 @@ import com.google.gwt.dom.client.Element; */ public class SelectorEngineJSIE extends SelectorEngineJS { - public native String getAttr(Element elm, String attr) - /*-{ - + public native String getAttr(Element elm, String attr) /*-{ switch (attr) { case "id": return elm.id; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineSizzleGwt.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineSizzleGwt.java index 2374cf96..7bbf1031 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineSizzleGwt.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineSizzleGwt.java @@ -33,9 +33,7 @@ import com.google.gwt.query.client.js.JsUtils; */ public class SelectorEngineSizzleGwt extends SelectorEngineImpl { - public static native boolean contains(Object a, Object b) - /*-{ - + public static native boolean contains(Object a, Object b) /*-{ var ret = document.compareDocumentPosition ? (a.compareDocumentPosition(b) & 16): @@ -43,9 +41,7 @@ public class SelectorEngineSizzleGwt extends SelectorEngineImpl { return ret ? true : false; }-*/; - public static native JavaScriptObject createExpr() - /*-{ - + public static native JavaScriptObject createExpr() /*-{ var done = 0; $wnd.Expr = { order: [ "ID", "NAME", "TAG" ], @@ -435,9 +431,7 @@ public class SelectorEngineSizzleGwt extends SelectorEngineImpl { return $wnd.Expr; }-*/; - public static native void dirCheck(String dir, Object cur, int doneName, Object checkSet) - /*-{ - + public static native void dirCheck(String dir, Object cur, int doneName, Object checkSet) /*-{ for ( var i = 0, l = checkSet.length; i < l; i++ ) { var elem = checkSet[i]; if ( elem ) { @@ -468,9 +462,7 @@ public class SelectorEngineSizzleGwt extends SelectorEngineImpl { } }-*/; - public static native void dirNodeCheck(String dir, Object cur, int doneName, Object checkSet) - /*-{ - + public static native void dirNodeCheck(String dir, Object cur, int doneName, Object checkSet) /*-{ for ( var i = 0, l = checkSet.length; i < l; i++ ) { var elem = checkSet[i]; if ( elem ) { @@ -500,9 +492,7 @@ public class SelectorEngineSizzleGwt extends SelectorEngineImpl { throw new IllegalArgumentException("Syntax error, unrecognized expression: " + msg); } - public static native JsArray filter(String expr, JsArray set, boolean inplace, Object not) - /*-{ - + public static native JsArray filter(String expr, JsArray set, boolean inplace, Object not) /*-{ var old = expr, result = [], curLoop = set, match, anyFound; while ( expr && set.length ) { for ( var type in $wnd.Expr.filter ) { @@ -568,9 +558,7 @@ public class SelectorEngineSizzleGwt extends SelectorEngineImpl { return curLoop; }-*/; - public static native JavaScriptObject find(String expr, Node context) - /*-{ - + public static native JavaScriptObject find(String expr, Node context) /*-{ var set, match; if ( !expr ) { return []; @@ -598,9 +586,7 @@ public class SelectorEngineSizzleGwt extends SelectorEngineImpl { return {set: set, expr: expr}; }-*/; - public static native String getText(Object elems) - /*-{ - + public static native String getText(Object elems) /*-{ var ret = "", elem; for ( var i = 0; elems[i]; i++ ) { elem = elems[i]; @@ -615,9 +601,7 @@ public class SelectorEngineSizzleGwt extends SelectorEngineImpl { return ret; }-*/; - public static native JsArray makeArray(NodeList array, JsArray results) - /*-{ - + public static native JsArray makeArray(NodeList array, JsArray results) /*-{ var ret = results || []; if ( Object.prototype.toString.call(array) === "[object Array]" ) { Array.prototype.push.apply( ret, array ); @@ -635,9 +619,7 @@ public class SelectorEngineSizzleGwt extends SelectorEngineImpl { return ret; }-*/; - public static native JsArray posProcess(String selector, Node context) - /*-{ - + public static native JsArray posProcess(String selector, Node context) /*-{ var tmpSet = [], later = "", match, root = context.nodeType ? [context] : context; // Position selectors must be done after the filter // And so must :not(positional) so we move all PSEUDOs to the end @@ -652,9 +634,7 @@ public class SelectorEngineSizzleGwt extends SelectorEngineImpl { return @com.google.gwt.query.client.impl.research.SelectorEngineSizzleGwt::filter(Ljava/lang/String;Lcom/google/gwt/core/client/JsArray;ZLjava/lang/Object;)( later, tmpSet, false ); }-*/; - private static native JsArray select(String selector, Node context, JsArray results, JsArray seed) - /*-{ - + private static native JsArray select(String selector, Node context, JsArray results, JsArray seed) /*-{ results = results || []; var origContext = context = context || document; var parts = [], m, set, checkSet, extra, prune = true, soFar = selector; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineXPath.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineXPath.java index c2de9b6d..4f641267 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineXPath.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineXPath.java @@ -234,9 +234,7 @@ public class SelectorEngineXPath extends SelectorEngineImpl { return xpath; } - private native String replaceAttr(String allAttr) - /*-{ - + private native String replaceAttr(String allAttr) /*-{ if(!allAttr) return ""; return allAttr.replace(/["']+/g,'').replace(/(\w+)(\^|\$|\*|\||~)?=?([\w\u00C0-\uFFFF\s\-_\.]+)?/g, function(a,b,c,d) { @@ -244,9 +242,7 @@ public class SelectorEngineXPath extends SelectorEngineImpl { }); }-*/; - private native String replaceAttr2(String allAttr) - /*-{ - + private native String replaceAttr2(String allAttr) /*-{ if(!allAttr) return ""; return allAttr.replace(/\[(\w+)(\^|\$|\*|\||~)?=?([\w\u00C0-\uFFFF\s\-_\.]+)?\]/g, @com.google.gwt.query.client.impl.research.SelectorEngineXPath::attrToXPath(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)); }-*/; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java index e63eb076..d85983a4 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java @@ -32,9 +32,7 @@ public class JsCache extends JavaScriptObject { return createObject().cast(); } - public final native void concat(Object ary) - /*-{ - + public final native void concat(Object ary) /*-{ if (ary) this.concat(ary); }-*/; @@ -52,9 +50,7 @@ public class JsCache extends JavaScriptObject { } } - public final native void delete(Object name) - /*-{ - + public final native void delete(Object name) /*-{ delete this[name]; }-*/; @@ -64,9 +60,7 @@ public class JsCache extends JavaScriptObject { } } - public final native boolean exists(Object name) - /*-{ - + public final native boolean exists(Object name) /*-{ return !!this[name]; }-*/; @@ -90,9 +84,7 @@ public class JsCache extends JavaScriptObject { return (T)o; } - public final native T get(Object id) - /*-{ - + public final native T get(Object id) /*-{ return @com.google.gwt.query.client.js.JsCache::gwtBox(*)([ this && this[id] ]); }-*/; @@ -120,15 +112,11 @@ public class JsCache extends JavaScriptObject { return r == null ? 0 : r; } - public final native String getString(Object id) - /*-{ - + public final native String getString(Object id) /*-{ return this[id] == null ? null : String(this[id]); }-*/; - public final native JsArrayMixed getArray(Object id) - /*-{ - + public final native JsArrayMixed getArray(Object id) /*-{ var r = this[id]; if (Object.prototype.toString.call(r) == '[object Array]') { return r; @@ -141,43 +129,31 @@ public class JsCache extends JavaScriptObject { return (o != null && o instanceof JavaScriptObject) ? ((JavaScriptObject)o).cast() : null; } - public final native boolean isEmpty() - /*-{ - + public final native boolean isEmpty() /*-{ for (k in this) return false; return true; }-*/; - public final native boolean contains(Object o) - /*-{ - + public final native boolean contains(Object o) /*-{ return this.indexOf(o) >= 0; }-*/; - public final native void remove(Object o) - /*-{ - + public final native void remove(Object o) /*-{ var i = this.indexOf(o); if (i >= 0) this.splice(i, 1); }-*/; - public final native int indexOf(Object o) - /*-{ - + public final native int indexOf(Object o) /*-{ // HtmlUnit fails when this returns 0 return this.indexOf(o); }-*/; - public final native JsCache putBoolean(Object id, boolean b) - /*-{ - + public final native JsCache putBoolean(Object id, boolean b) /*-{ this[id] = b; return this; }-*/; - public final native JsCache putNumber(Object id, double n) - /*-{ - + public final native JsCache putNumber(Object id, double n) /*-{ this[id] = n; return this; }-*/; @@ -193,16 +169,12 @@ public class JsCache extends JavaScriptObject { return this; } - public final native JsCache putObject(Object id, Object obj) - /*-{ - + public final native JsCache putObject(Object id, Object obj) /*-{ this[id] = obj; return this; }-*/; - public final native int length() - /*-{ - + public final native int length() /*-{ if (typeof(this.length) == 'number') return this.length; @@ -259,9 +231,7 @@ public class JsCache extends JavaScriptObject { checkNull(this); } - private final native JsArrayString keysImpl() - /*-{ - + private final native JsArrayString keysImpl() /*-{ var key, keys=[]; // Chrome in DevMode sets '__gwt_ObjectId' to JS objects // GWT sets '$H' when calling getHashCode (see com/google/gwt/core/client/impl/Impl.java) @@ -270,7 +240,7 @@ public class JsCache extends JavaScriptObject { }-*/; /** - * Throw a NPE when a js is null + * Throw a NPE when a js is null. */ public static final T checkNull(T js) { if (!GWT.isProdMode() && js == null) { @@ -281,7 +251,7 @@ public class JsCache extends JavaScriptObject { /** * Gets an object wrapped in a js array and boxes it with the appropriate - * Object in the GWT world. + * object in the GWT world. * * It is thought to be called from other jsni code without dealing with casting issues. * @@ -290,18 +260,14 @@ public class JsCache extends JavaScriptObject { * * Example *
-   * native Object myMethod()
-  /*-{
-
+   * native Object myMethod() /*-{
    *   var myJsVar = ... ;
    *   return @com.google.gwt.query.client.js.JsCache::gwtBox(*)([ myJsVar ]);
    * }-* /
    * 
* */ - public static native Object gwtBox(JavaScriptObject oneElementArray) - /*-{ - + public static native Object gwtBox(JavaScriptObject oneElementArray) /*-{ var r = oneElementArray; if (typeof r == 'object' && r.length == 1) { var r = r[0], t = typeof r; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsClosure.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsClosure.java index ceb5fe51..2481325d 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsClosure.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsClosure.java @@ -28,9 +28,7 @@ public class JsClosure extends JavaScriptObject { /** * Invoke the closure with no arguments and expecting no return value. */ - public final native void invoke() - /*-{ - + public final native void invoke() /*-{ return this(); }-*/; } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java index 4806d4cd..f0bf6008 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java @@ -19,8 +19,11 @@ import com.google.gwt.core.client.JavaScriptObject; /** * Lightweight JSO backed implemented of a Map, using Object.hashCode() as key. + * + * @param + * @param */ -final public class JsMap extends JavaScriptObject { +public final class JsMap extends JavaScriptObject { protected JsMap() { } @@ -54,7 +57,7 @@ final public class JsMap extends JavaScriptObject { return old; } - public final String[] keys() { + public String[] keys() { return c().keys(); } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNamedArray.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNamedArray.java index a3b49332..48279ba5 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNamedArray.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNamedArray.java @@ -18,9 +18,11 @@ package com.google.gwt.query.client.js; import com.google.gwt.core.client.JavaScriptObject; /** - * Lightweight JSO backed implemented of a named array + * Lightweight JSO backed implemented of a named array. + * + * @param */ -final public class JsNamedArray extends JavaScriptObject { +public final class JsNamedArray extends JavaScriptObject { protected JsNamedArray() { } @@ -38,7 +40,7 @@ final public class JsNamedArray extends JavaScriptObject { c().put(key, val); } - public final String[] keys() { + public String[] keys() { return c().keys(); } @@ -46,19 +48,19 @@ final public class JsNamedArray extends JavaScriptObject { return c().length(); } - public final Object[] values() { + public Object[] values() { return c().elements(); } - public final boolean exists(String key){ + public boolean exists(String key){ return c().exists(key); } - public final void delete(String key){ + public void delete(String key){ c().delete(key); } - public final static JsNamedArray create() { + public static JsNamedArray create() { return createObject().cast(); } } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNodeArray.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNodeArray.java index 7101f840..8b989a50 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNodeArray.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNodeArray.java @@ -29,9 +29,7 @@ public class JsNodeArray extends NodeList { return create((Node)null); } - public static native JsNodeArray create(Node node) - /*-{ - + public static native JsNodeArray create(Node node) /*-{ return node ? [node] : []; }-*/; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsObjectArray.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsObjectArray.java index 022d42a1..fe64f2ef 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsObjectArray.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsObjectArray.java @@ -19,6 +19,8 @@ import com.google.gwt.core.client.JavaScriptObject; /** * Lightweight JSO based array class that can store objects. + * + * @param */ public final class JsObjectArray extends JavaScriptObject { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsRegexp.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsRegexp.java index d5c977ba..49d32e42 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsRegexp.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsRegexp.java @@ -24,15 +24,11 @@ import com.google.gwt.core.client.JavaScriptObject; @Deprecated public class JsRegexp { - public static native JavaScriptObject compile(String pat) - /*-{ - + public static native JavaScriptObject compile(String pat) /*-{ return new RegExp(pat); }-*/; - public static native JavaScriptObject compileFlags(String pat, String flags) - /*-{ - + public static native JavaScriptObject compileFlags(String pat, String flags) /*-{ return new RegExp(pat, flags); }-*/; @@ -40,9 +36,7 @@ public class JsRegexp { return new JsRegexp(regexp, flags).match(string); } - private static native JsObjectArray exec0(JavaScriptObject regexp, String str) - /*-{ - + private static native JsObjectArray exec0(JavaScriptObject regexp, String str) /*-{ return regexp.exec(str); }-*/; @@ -76,15 +70,11 @@ public class JsRegexp { return test0(regexp, rule); } - private native JsObjectArray match0(JavaScriptObject regexp, String currentRule) - /*-{ - + private native JsObjectArray match0(JavaScriptObject regexp, String currentRule) /*-{ return currentRule.match(regexp); }-*/; - private native boolean test0(JavaScriptObject regexp, String rule) - /*-{ - + private native boolean test0(JavaScriptObject regexp, String rule) /*-{ return regexp.test(rule); }-*/; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java index 73438417..9266e0fd 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java @@ -49,9 +49,11 @@ public class JsUtils { return jso.equals(obj); } - private native Object exec(JavaScriptObject f, Object data) - /*-{ + public int hashCode() { + return jso.hashCode(); + } + private native Object exec(JavaScriptObject f, Object data) /*-{ return @com.google.gwt.query.client.js.JsCache::gwtBox(*)([ f(data) ]); }-*/; @@ -70,9 +72,7 @@ public class JsUtils { * Wraps a GQuery function into a native javascript one so as we can * export Java methods without using JSNI. */ - public static native JavaScriptObject wrapFunction (Function f) - /*-{ - + public static native JavaScriptObject wrapFunction(Function f) /*-{ return function(r) { var o = @java.util.ArrayList::new()(); for (i in arguments) { @@ -85,22 +85,19 @@ public class JsUtils { } }-*/; + /** + * Default JsUtils implementation. + */ public static class JsUtilsImpl { - public native Properties parseJSON(String json) - /*-{ - + public native Properties parseJSON(String json) /*-{ return $wnd.JSON.parse(json); }-*/; - public native String JSON2String(JavaScriptObject o) - /*-{ - + public native String JSON2String(JavaScriptObject o) /*-{ return $wnd.JSON.stringify(o); }-*/; - public native Element parseXML(String xml) - /*-{ - + public native Element parseXML(String xml) /*-{ return new DOMParser().parseFromString(xml, "text/xml").documentElement; }-*/; @@ -122,17 +119,16 @@ public class JsUtils { return ret; } - public native String XML2String(JavaScriptObject o) - /*-{ - + public native String XML2String(JavaScriptObject o) /*-{ return (new XMLSerializer()).serializeToString(o); }-*/; } + /** + * IE JsUtils implemetation. + */ public static class JsUtilsImplIE6 extends JsUtilsImpl { - public static final native Properties evalImpl(String properties) - /*-{ - + public static final native Properties evalImpl(String properties) /*-{ return eval(properties); }-*/; @@ -179,9 +175,7 @@ public class JsUtils { } @Override - public native Element parseXML(String xml) - /*-{ - + public native Element parseXML(String xml) /*-{ var d = new ActiveXObject("Microsoft.XmlDom"); d.loadXML(xml); return d.documentElement; @@ -202,15 +196,11 @@ public class JsUtils { } @Override - public native String XML2String(JavaScriptObject o) - /*-{ - + public native String XML2String(JavaScriptObject o) /*-{ return o.xml; }-*/; - private native String xmlText(Element e) - /*-{ - + private native String xmlText(Element e) /*-{ return e.text; }-*/; } @@ -232,7 +222,7 @@ public class JsUtils { } /** - * Set a property to a javascript object + * Set a property to a javascript object. */ public static void prop(JavaScriptObject o, Object id, Object val) { if (o != null) { @@ -241,11 +231,10 @@ public class JsUtils { } /** - * Camelize style property names. for instance: font-name -> fontName + * Camelize style property names. + * for instance: font-name -> fontName */ - public static native String camelize(String s) - /*-{ - + public static native String camelize(String s) /*-{ return s.replace(/\-(\w)/g, function(all, letter) { return letter.toUpperCase(); }); @@ -278,7 +267,8 @@ public class JsUtils { } /** - * Use the method in the gquery class $(elem).cur(prop, force); + * Use the method in the gquery class. + * $(elem).cur(prop, force); */ @Deprecated public static double cur(Element elem, String prop, boolean force) { @@ -288,18 +278,14 @@ public class JsUtils { /** * Compare two numbers using javascript equality. */ - public static native boolean eq(double s1, double s2) - /*-{ - + public static native boolean eq(double s1, double s2) /*-{ return s1 == s2; }-*/; /** * Compare two objects using javascript equality. */ - public static native boolean eq(Object s1, Object s2) - /*-{ - + public static native boolean eq(Object s1, Object s2) /*-{ return s1 == s2; }-*/; @@ -315,63 +301,53 @@ public class JsUtils { * Check if an object has already a property with name name * defined. */ - public static native boolean hasProperty(JavaScriptObject o, String name) - /*-{ - + public static native boolean hasProperty(JavaScriptObject o, String name) /*-{ return o && name in o; }-*/; /** * Check whether an element has an attribute, this is here since GWT Element.getAttribute * implementation returns an empty string instead of null when the attribute is not - * present + * present. */ - public static native boolean hasAttribute(Element o, String name) - /*-{ - + public static native boolean hasAttribute(Element o, String name) /*-{ return !!(o && o.getAttribute(name)); }-*/; /** - * Hyphenize style property names. for instance: fontName -> font-name + * Hyphenize style property names. + * for instance: fontName -> font-name */ - public static native String hyphenize(String name) - /*-{ - + public static native String hyphenize(String name) /*-{ return name.replace(/([A-Z])/g, "-$1").toLowerCase(); }-*/; /** - * Check is a javascript object can be used as an array + * Check is a javascript object can be used as an array. */ - public static native boolean isArray(JavaScriptObject o) - /*-{ - + public static native boolean isArray(JavaScriptObject o) /*-{ return Object.prototype.toString.call(o) == '[object Array]' || typeof o.length == 'number'; }-*/; /** - * Check is a javascript object is a FormData + * Check is a javascript object is a FormData. */ - public static native boolean isFormData(JavaScriptObject o) - /*-{ - + public static native boolean isFormData(JavaScriptObject o) /*-{ return Object.prototype.toString.call(o) == '[object FormData]'; }-*/; /** - * Return whether the event was prevented + * Return whether the event was prevented. */ - public static native boolean isDefaultPrevented(JavaScriptObject e) - /*-{ - + public static native boolean isDefaultPrevented(JavaScriptObject e) /*-{ return e.defaultPrevented || e.returnValue === false || e.getPreventDefault && e.getPreventDefault() ? true : false; }-*/; /** - * Return whether a node is detached to the dom + * Return whether a node is detached to the DOM. + * * Be careful : This method works only on node that should be inserted within the body node. */ public static boolean isDetached(Node n) { @@ -385,50 +361,44 @@ public class JsUtils { } /** - * Check is a javascript object can be cast to an Element + * Check is a javascript object can be cast to an Element. */ - public static native boolean isElement(Object o) - /*-{ - + public static native boolean isElement(Object o) /*-{ return o && o.nodeType && o.nodeName ? true : false; }-*/; /** - * Check is a javascript object can be cast to an Event + * Check is a javascript object can be cast to an Event. */ public static boolean isEvent(JavaScriptObject o) { return hasProperty(o, "currentTarget"); } /** - * Check is a javascript object is a function + * Check is a javascript object is a function. */ - public static native boolean isFunction(JavaScriptObject o) - /*-{ - + public static native boolean isFunction(JavaScriptObject o) /*-{ return Object.prototype.toString.call(o) == '[object Function]'; }-*/; /** - * Check is a javascript can be cast to a node list + * Check is a javascript can be cast to a node list. */ - public static native boolean isNodeList(JavaScriptObject o) - /*-{ - + public static native boolean isNodeList(JavaScriptObject o) /*-{ var r = Object.prototype.toString.call(o); return r == '[object HTMLCollection]' || r == '[object NodeList]' || (typeof o == 'object' && o.length && o[0].tagName) ? true : false; }-*/; /** - * Check is a javascript object is a Window + * Check is a javascript object is a Window. */ public static boolean isWindow(JavaScriptObject o) { return hasProperty(o, "alert"); } /** - * Check if an element is a DOM or a XML node + * Check if an element is a DOM or a XML node. */ public static boolean isXML(Node o) { return o == null ? false @@ -455,18 +425,14 @@ public class JsUtils { /** * Return the element which is truth in the double scope. */ - public static native double or(double s1, double s2) - /*-{ - + public static native double or(double s1, double s2) /*-{ return s1 || s2; }-*/; /** * Return the element which is truth in the javascript scope. */ - public static native T or(T s1, T s2) - /*-{ - + public static native T or(T s1, T s2) /*-{ return s1 || s2; }-*/; @@ -502,18 +468,14 @@ public class JsUtils { * Utility method to cast objects in production. * Useful for casting native implementations to interfaces like JsInterop */ - public static native T cast(Object o) - /*-{ - + public static native T cast(Object o) /*-{ return o; }-*/; /** * Utility method to cast objects to array of string in production. */ - public static native String[] castArrayString(Object a) - /*-{ - + public static native String[] castArrayString(Object a) /*-{ return a }-*/; @@ -540,9 +502,7 @@ public class JsUtils { return runJavascriptFunctionImpl(o, meth, JsObjectArray.create().add(args).cast()); } - private static native T runJavascriptFunctionImpl(JavaScriptObject o, String meth, JsArrayMixed args) - /*-{ - + private static native T runJavascriptFunctionImpl(JavaScriptObject o, String meth, JsArrayMixed args) /*-{ return (f = o && o[meth]) && @com.google.gwt.query.client.js.JsUtils::isFunction(*)(f) && @com.google.gwt.query.client.js.JsCache::gwtBox(*)([f.apply(o, args)]); @@ -551,23 +511,19 @@ public class JsUtils { /** * Check if a number is true in the javascript scope. */ - public static native boolean truth(double a) - /*-{ - + public static native boolean truth(double a) /*-{ return a ? true : false; }-*/; /** * Check if an object is true in the javascript scope. */ - public static native boolean truth(Object a) - /*-{ - + public static native boolean truth(Object a) /*-{ return a ? true : false; }-*/; /** - * Remove duplicates from an elements array + * Remove duplicates from an elements array. */ public static JsArray unique(JsArray a) { return utilsImpl.unique(a); @@ -583,6 +539,7 @@ public class JsUtils { /** * Returns a QueryString representation of a JavascriptObject. + * * TODO: jquery implementation accepts a second parameter (traditional) */ public static String param(JavaScriptObject js) { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java index fc2c726d..072b2a5b 100755 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java @@ -35,7 +35,7 @@ public class Effects extends QueuePlugin { /** * Class to access protected methods in Animation. */ - public static abstract class GQAnimation extends Animation { + public abstract static class GQAnimation extends Animation { private static final String ACTUAL_ANIMATION = "EffectsRunnning"; @@ -125,8 +125,8 @@ public class Effects extends QueuePlugin { * Example: * *
-   *  //move the element from its original position to the position top:500px and left:500px for 400ms.
-   *  //use a swing easing function for the transition
+   *  // move the element from its original position to the position top:500px and left:500px for 400ms.
+   *  // use a swing easing function for the transition
    *  $("#foo").animate(Properties.create("{top:'500px',left:'500px'}"), 400, EasingCurve.swing);
    *  // Change the width and border attributes of a table
    *  $("table").animate(Properties.create("{$width: '500', $border: '10'}"), 400, EasingCurve.linear);
@@ -142,8 +142,8 @@ public class Effects extends QueuePlugin {
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left and 5OOpx down for 400ms.
-   *  //use a swing easing function for the transition
+   *  // move the element from its original position to 500px to the left and 5OOpx down for 400ms.
+   *  // use a swing easing function for the transition
    *  $("#foo").animate(Properties.create("{top:'+=500px',left:'+=500px'}"), 400, Easing.SWING);
    * 
* @@ -157,7 +157,7 @@ public class Effects extends QueuePlugin { * $("#foo").animate($$("{backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)'}"), 400, EasingCurve.swing); *
* - * @param p a {@link Properties} object containing css properties to animate. + * @param stringOrProperties object containing css properties to animate. * @param funcs an array of {@link Function} called once the animation is * complete * @param duration the duration in milliseconds of the animation @@ -200,7 +200,7 @@ public class Effects extends QueuePlugin { * Example: * *
-   *  //move the element from its original position to left:500px for 500ms
+   *  // move the element from its original position to left:500px for 500ms
    *  $("#foo").animate("left:'500'");
    *  // Change the width attribute of a table
    *  $("table").animate("$width:'500'"), 400, EasingCurve.swing);
@@ -216,7 +216,7 @@ public class Effects extends QueuePlugin {
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left for 500ms and
+   *  // move the element from its original position to 500px to the left for 500ms and
    *  // change the background color of the element at the end of the animation
    *  $("#foo").animate("left:'+=500'", new Function(){
    *
@@ -238,7 +238,7 @@ public class Effects extends QueuePlugin {
    *  $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)'");
    * 
* - * @param prop the property to animate : "cssName:'value'" + * @param stringOrProperties the property to animate : "cssName:'value'" * @param funcs an array of {@link Function} called once the animation is * complete */ @@ -260,7 +260,7 @@ public class Effects extends QueuePlugin { * Example: * *
-   *  //move the element from its original position to left:500px for 2s
+   *  // move the element from its original position to left:500px for 2s
    *  $("#foo").animate("left:'500px'", 2000);
    *  // Change the width attribute of a table
    *  $("table").animate("$width:'500'"), 400);
@@ -276,7 +276,7 @@ public class Effects extends QueuePlugin {
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left for 1000ms and
+   *  // move the element from its original position to 500px to the left for 1000ms and
    *  // change the background color of the element at the end of the animation
    *  $("#foo").animate("left:'+=500'", 1000, new Function(){
    *     public void f(Element e){
@@ -294,7 +294,7 @@ public class Effects extends QueuePlugin {
    *  $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000");
    * 
* - * @param prop the property to animate : "cssName:'value'" + * @param stringOrProperties the property to animate : "cssName:'value'" * @param funcs an array of {@link Function} called once the animation is * complete * @param duration the duration in milliseconds of the animation diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java index c614a08c..44b78a21 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java @@ -419,7 +419,7 @@ public class Events extends GQuery { } /** - * Only valid for IE6-8 + * Only valid for IE6-8. * @param event * @return */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java index 6827487c..bdb508cc 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java @@ -16,9 +16,12 @@ package com.google.gwt.query.client.plugins; import com.google.gwt.query.client.Function; import com.google.gwt.query.client.LazyBase; -import com.google.gwt.query.client.Properties; import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.Easing; +/** + * LazyEffects. + * @param + */ public interface LazyEffects extends LazyBase{ /** @@ -35,8 +38,8 @@ public interface LazyEffects extends LazyBase{ * Example: * *
-   *  //move the element from its original position to the position top:500px and left:500px for 400ms.
-   *  //use a swing easing function for the transition
+   *  // move the element from its original position to the position top:500px and left:500px for 400ms.
+   *  // use a swing easing function for the transition
    *  $("#foo").animate(Properties.create("{top:'500px',left:'500px'}"), 400, EasingCurve.swing);
    *  // Change the width and border attributes of a table
    *  $("table").animate(Properties.create("{$width: '500', $border: '10'}"), 400, EasingCurve.linear);
@@ -52,8 +55,8 @@ public interface LazyEffects extends LazyBase{
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left and 5OOpx down for 400ms.
-   *  //use a swing easing function for the transition
+   *  // move the element from its original position to 500px to the left and 5OOpx down for 400ms.
+   *  // use a swing easing function for the transition
    *  $("#foo").animate(Properties.create("{top:'+=500px',left:'+=500px'}"), 400, Easing.SWING);
    * 
* @@ -67,7 +70,7 @@ public interface LazyEffects extends LazyBase{ * $("#foo").animate($$("{backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)'}"), 400, EasingCurve.swing); *
* - * @param p a {@link Properties} object containing css properties to animate. + * @param stringOrProperties {@link Properties} object containing css properties to animate. * @param funcs an array of {@link Function} called once the animation is * complete * @param duration the duration in milliseconds of the animation @@ -90,7 +93,7 @@ public interface LazyEffects extends LazyBase{ * Example: * *
-   *  //move the element from its original position to left:500px for 500ms
+   *  // move the element from its original position to left:500px for 500ms
    *  $("#foo").animate("left:'500'");
    *  // Change the width attribute of a table
    *  $("table").animate("$width:'500'"), 400, EasingCurve.swing);
@@ -106,7 +109,7 @@ public interface LazyEffects extends LazyBase{
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left for 500ms and
+   *  // move the element from its original position to 500px to the left for 500ms and
    *  // change the background color of the element at the end of the animation
    *  $("#foo").animate("left:'+=500'", new Function(){
    *
@@ -128,7 +131,7 @@ public interface LazyEffects extends LazyBase{
    *  $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)'");
    * 
* - * @param prop the property to animate : "cssName:'value'" + * @param stringOrProperties the property to animate : "cssName:'value'" * @param funcs an array of {@link Function} called once the animation is * complete */ @@ -148,7 +151,7 @@ public interface LazyEffects extends LazyBase{ * Example: * *
-   *  //move the element from its original position to left:500px for 2s
+   *  // move the element from its original position to left:500px for 2s
    *  $("#foo").animate("left:'500px'", 2000);
    *  // Change the width attribute of a table
    *  $("table").animate("$width:'500'"), 400);
@@ -164,7 +167,7 @@ public interface LazyEffects extends LazyBase{
    * Example:
    *
    * 
-   *  //move the element from its original position to 500px to the left for 1000ms and
+   *  // move the element from its original position to 500px to the left for 1000ms and
    *  // change the background color of the element at the end of the animation
    *  $("#foo").animate("left:'+=500'", 1000, new Function(){
    *     public void f(Element e){
@@ -182,7 +185,7 @@ public interface LazyEffects extends LazyBase{
    *  $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000");
    * 
* - * @param prop the property to animate : "cssName:'value'" + * @param stringOrProperties the property to animate : "cssName:'value'" * @param funcs an array of {@link Function} called once the animation is * complete * @param duration the duration in milliseconds of the animation @@ -386,4 +389,5 @@ public interface LazyEffects extends LazyBase{ * layout of the page. */ LazyEffects toggle(int millisecs, Function... f); + } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEvents.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEvents.java index 830f91df..4c3e8d83 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEvents.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEvents.java @@ -17,6 +17,10 @@ import com.google.gwt.query.client.Function; import com.google.gwt.query.client.GQuery; import com.google.gwt.query.client.LazyBase; +/** + * LazyEvents. + * @param + */ public interface LazyEvents extends LazyBase{ /** @@ -180,4 +184,5 @@ public interface LazyEvents extends LazyBase{ LazyEvents unbind(String name, Function f); LazyEvents undelegate(); + } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java index fbc994f3..cd2c20f3 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java @@ -24,6 +24,10 @@ import com.google.gwt.user.client.ui.TextArea; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.Widget; +/** + * LazyWidgets. + * @param + */ public interface LazyWidgets extends LazyBase{ /** @@ -107,4 +111,5 @@ public interface LazyWidgets extends LazyBase{ * */ LazyWidgets textArea(WidgetInitializer