aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core
diff options
context:
space:
mode:
Diffstat (limited to 'gwtquery-core')
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/Browser.java4
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java21
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java12
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/IsProperties.java10
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java10
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/Predicate.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/Promise.java12
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java6
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilder.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java12
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundRepeatProperty.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderProperty.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderWidthProperty.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/CSS.java3
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/EdgePositionProperty.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/MultipleValueCssSetter.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineColorProperty.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineProperty.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/UriValue.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/ZIndexProperty.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java7
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java3
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineImpl.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzle.java3
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzleIE.java3
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJS.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineSizzleGwt.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineXPath.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsClosure.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNamedArray.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsObjectArray.java4
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java1
-rwxr-xr-xgwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java12
-rwxr-xr-xgwtquery-core/src/main/java/com/google/gwt/query/client/plugins/UiPlugin.java1
-rwxr-xr-xgwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java4
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java15
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/AjaxTransportJs.java6
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Callbacks.java28
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/FunctionDeferred.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseFunction.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilderJSONP.java4
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Bezier.java16
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java4
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/GqEvent.java4
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ButtonWidgetFactory.java3
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/HtmlPanelWidgetFactory.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/LabelWidgetFactory.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextAreaWidgetFactory.java3
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxBaseWidgetFactory.java3
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxWidgetFactory.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetFactory.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/rebind/BrowserGenerator.java14
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java1
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNative.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNativeIE8.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNativeIE9.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java50
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/vm/CookieManager.java12
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/vm/ResponseJre.java6
-rw-r--r--gwtquery-core/src/main/java/com/google/web/bindery/requestfactory/shared/gquery/PromiseRF.java2
68 files changed, 138 insertions, 212 deletions
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 839a0cee..b06253ec 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
@@ -39,7 +39,7 @@ import com.google.gwt.query.rebind.BrowserGenerator;
*
*/
public abstract class Browser {
-
+
/**
* @return true if ie6
*/
@@ -75,7 +75,7 @@ public abstract class Browser {
* @return true if webkit
*/
public final boolean webkit = isWebkit();
-
+
protected abstract boolean isIe6();
protected abstract boolean isIe8();
protected abstract boolean isIe9();
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java
index dcd0300d..ec2afba9 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java
@@ -15,7 +15,6 @@
*/
package com.google.gwt.query.client;
-
/**
* This interface represents the Window.console object.
*/
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 b094ebf8..d583d0a9 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
@@ -30,7 +30,7 @@ public abstract class Function {
private Event event = null;
private int index = -1;
protected Object[] arguments = new Object[0];
-
+
/**
* Utility method to get a string representation with the content
* of the arguments array. It recursively visits arrays and inspect
@@ -51,7 +51,7 @@ public abstract class Function {
protected String dumpArguments() {
return dumpArguments(arguments, "\n");
}
-
+
private String dumpArguments(Object[] arguments, String sep) {
StringBuilder b = new StringBuilder();
for (int i = 0, l = arguments.length; i < l; i++ ) {
@@ -99,7 +99,7 @@ public abstract class Function {
index = i;
return this;
}
-
+
/**
* @deprecated use getArguments instead.
*/
@@ -111,7 +111,7 @@ public abstract class Function {
public Object[] getArguments() {
return arguments;
}
-
+
/**
* Set the list of arguments to be passed to the function
*/
@@ -146,7 +146,7 @@ public abstract class Function {
public <T extends JavaScriptObject> T getArgumentJSO(int argIdx, int pos) {
return (T)getArgument(argIdx, pos, JavaScriptObject.class);
}
-
+
/**
* Utility method for safety getting a JavaScriptObject present at a certain
* position in the list of arguments.
@@ -154,7 +154,7 @@ public abstract class Function {
public <T extends JavaScriptObject> T getArgumentJSO(int idx) {
return getArgumentJSO(-1, idx);
}
-
+
/**
* Utility method for safety getting an array present at a certain
* position in the list of arguments.
@@ -191,14 +191,14 @@ public abstract class Function {
public <T> T arguments(int idx) {
return getArgument(idx);
}
-
+
/**
* Convenience alias for the getArguments(argIdx, pos) method;
*/
public <T> T arguments(int argIdx, int pos) {
return getArgument(argIdx, pos);
}
-
+
/**
* Safety return the argument in the position idx.
*
@@ -208,7 +208,7 @@ public abstract class Function {
public <T> T getArgument(int argIdx, int pos) {
return getArgument(argIdx, pos, null);
}
-
+
/**
* Safety return the argument in the position idx.
*
@@ -249,7 +249,6 @@ public abstract class Function {
return null;
}
-
/**
* @deprecated use: getArgument()
*/
@@ -281,7 +280,7 @@ public abstract class Function {
public void setData(double b) {
setArguments(b);
}
-
+
/**
* @deprecated use use setArguments instead
*/
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 d0baf61c..c8edace5 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
@@ -714,7 +714,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
}
}
-
/**
* Return a lazy version of the GQuery interface. Lazy function calls are simply queued up and not
* executed immediately.
@@ -949,7 +948,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
*
* NOTE: The ability of animating attribute values is only available in gquery but not jquery
*
- *
* Example:
*
* <pre class="code">
@@ -1010,7 +1008,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
*
* NOTE: The ability of animating attribute values is only available in gquery but not jquery
*
- *
* Example:
*
* <pre class="code">
@@ -1067,7 +1064,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
*
* NOTE: The ability of animating attribute values is only available in gquery but not jquery
*
- *
* Example:
*
* <pre class="code">
@@ -1098,7 +1094,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
* });
* </pre>
*
- *
* For color css properties, values can be specified via hexadecimal or rgb or literal values.
*
* Example:
@@ -1107,7 +1102,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
* $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000");
* </pre>
*
- *
* @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
@@ -1284,7 +1278,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
* The event handlers are passed as Functions that you can use to prevent default behavior. To
* stop both default action and event bubbling, the function event handler has to return false.
*
- *
*/
public GQuery bind(int eventbits, final Function... funcs) {
return as(Events).bind(eventbits, null, funcs);
@@ -1309,7 +1302,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
* The event handlers are passed as Functions that you can use to prevent default behavior. To
* stop both default action and event bubbling, the function event handler has to return false.
*
- *
*/
public GQuery bind(String eventType, final Function... funcs) {
return as(Events).bind(eventType, null, funcs);
@@ -1579,7 +1571,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
* property defined in {@link CSS} class and call the {@link TakesCssValue#with(HasCssName)}
* method on it.
*
- *
* ex :
*
* <pre class="code">
@@ -2746,7 +2737,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
* Attach a handler for this event to all elements which match the current selector, now and in
* the future.
* <p>
- * <p>
* Ex :
*
* <pre>
@@ -2801,7 +2791,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
* Attach a handler for this event to all elements which match the current selector, now and in
* the future. The <code>data</code> parameter allows us to pass data to the handler.
* <p>
- * <p>
* Ex :
*
* <pre>
@@ -4530,7 +4519,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
return as(Events).trigger(eventbits, keys);
}
-
/**
* Trigger a event in all matched elements.
*
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 bcd79cdb..764c541e 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
@@ -17,7 +17,6 @@ package com.google.gwt.query.client;
import com.google.gwt.query.client.builders.JsonBuilder;
-
/**
* Interface using for Data Binders valid for JVM and JS.
*/
@@ -37,12 +36,12 @@ public interface IsProperties {
* and a Json implementation in the JVM.
*/
<T> T getDataImpl();
-
+
/**
* Return the Object with the given key.
*/
<T> T get(Object key);
-
+
/**
* Set an Object with the given key.
*/
@@ -66,7 +65,7 @@ public interface IsProperties {
* Example {"user":{"name":"manolo","surname":"carrasco"}}
*/
String toJsonWithName();
-
+
/**
* return a string which represents the object in a queryString format.
*/
@@ -76,8 +75,7 @@ public interface IsProperties {
* return the name for this type
*/
String getJsonName();
-
-
+
/**
* converts a JsonBuilder instance into another JsonBuilder type but
* preserving the underlying data object.
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 46d9d9ee..18a25709 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
@@ -127,7 +127,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
*
* NOTE: The ability of animating attribute values is only available in gquery but not jquery
*
- *
* Example:
*
* <pre class="code">
@@ -186,7 +185,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
*
* NOTE: The ability of animating attribute values is only available in gquery but not jquery
*
- *
* Example:
*
* <pre class="code">
@@ -241,7 +239,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
*
* NOTE: The ability of animating attribute values is only available in gquery but not jquery
*
- *
* Example:
*
* <pre class="code">
@@ -272,7 +269,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
* });
* </pre>
*
- *
* For color css properties, values can be specified via hexadecimal or rgb or literal values.
*
* Example:
@@ -281,7 +277,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
* $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000");
* </pre>
*
- *
* @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
@@ -398,7 +393,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
* The event handlers are passed as Functions that you can use to prevent default behavior. To
* stop both default action and event bubbling, the function event handler has to return false.
*
- *
*/
LazyGQuery<T> bind(int eventbits, Function... funcs);
@@ -419,7 +413,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
* The event handlers are passed as Functions that you can use to prevent default behavior. To
* stop both default action and event bubbling, the function event handler has to return false.
*
- *
*/
LazyGQuery<T> bind(String eventType, Function... funcs);
@@ -528,7 +521,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
* property defined in {@link CSS} class and call the {@link TakesCssValue#with(HasCssName)}
* method on it.
*
- *
* ex :
*
* <pre class="code">
@@ -1321,7 +1313,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
* Attach a handler for this event to all elements which match the current selector, now and in
* the future.
* <p>
- * <p>
* Ex :
*
* <pre>
@@ -1374,7 +1365,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
* Attach a handler for this event to all elements which match the current selector, now and in
* the future. The <code>data</code> parameter allows us to pass data to the handler.
* <p>
- * <p>
* Ex :
*
* <pre>
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Predicate.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Predicate.java
index 262e31fb..aa17d2b9 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Predicate.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Predicate.java
@@ -39,5 +39,4 @@ public class Predicate {
return false;
}
-
}
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 c35b10f5..56c22b43 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
@@ -19,7 +19,7 @@ import com.google.gwt.query.client.Function;
* Definition of jquery Promise interface used in gquery.
*/
public interface Promise {
-
+
/**
* Definition of jquery Deferred interface used in gquery.
*/
@@ -28,17 +28,17 @@ public interface Promise {
* Call the progressCallbacks on a Deferred object with the given args.
*/
Deferred notify(Object... o);
-
+
/**
* Return a Deferred’s Promise object.
*/
Promise promise();
-
+
/**
* Reject a Deferred object and call any failCallbacks with the given args.
*/
Deferred reject(Object... o);
-
+
/**
* Resolve a Deferred object and call any doneCallbacks with the given args.
*/
@@ -100,7 +100,7 @@ public interface Promise {
* 3rd one will be called when progress notifications are sent.
*/
Promise then(Function... f);
-
+
/**
* Add filters to be called just in case the Deferred object is rejected returning
* a new valid promise so as we can continue the flow control of the chain.
@@ -142,7 +142,7 @@ public interface Promise {
* Determine whether a Deferred object has been resolved.
*/
boolean isResolved();
-
+
/**
* Determine whether a Deferred object has been 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 db35f5d6..0997404e 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
@@ -142,7 +142,7 @@ public class Properties extends JavaScriptObject implements IsProperties {
public final Object getObject(Object name) {
return c().get(String.valueOf(name));
}
-
+
public final Properties getProperties(Object name) {
return getJavaScriptObject(name);
}
@@ -230,11 +230,11 @@ public class Properties extends JavaScriptObject implements IsProperties {
public final String toJson() {
return toJsonString();
}
-
+
public final String toJsonWithName() {
return toJsonWithName(getJsonName());
}
-
+
public final String toJsonWithName(String name) {
return "{\"" + name + "\":{" + toJson() + "}";
}
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 b5f30451..60b209c0 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
@@ -17,7 +17,6 @@ package com.google.gwt.query.client.builders;
import com.google.gwt.query.client.IsProperties;
-
/**
* Tagging interface used to generate JsonBuilder classes.
*/
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 c09836a5..4c25117a 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
@@ -98,7 +98,7 @@ public abstract class JsonBuilderBase<J extends JsonBuilderBase<?>> implements J
public String toJson() {
return p.tostring();
}
-
+
public String toJsonWithName() {
return "{\"" + getJsonName() + "\":" + p.tostring() + "}";
}
@@ -108,22 +108,22 @@ public abstract class JsonBuilderBase<J extends JsonBuilderBase<?>> implements J
public Properties getProperties() {
return p;
}
-
+
@Override
public String toQueryString() {
return p.toQueryString();
}
-
+
@SuppressWarnings("unchecked")
@Override
public Properties getDataImpl() {
return p;
}
-
+
public <T> T get(Object key) {
return p.get(key);
}
-
+
@SuppressWarnings("unchecked")
public <T extends IsProperties> T set(Object key, Object val) {
if (val instanceof IsProperties) {
@@ -133,7 +133,7 @@ public abstract class JsonBuilderBase<J extends JsonBuilderBase<?>> implements J
}
return (T)this;
}
-
+
public <T extends JsonBuilder> T as(Class<T> clz) {
return p.as(clz);
}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundRepeatProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundRepeatProperty.java
index cfd3e8c8..f7ee0ef8 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundRepeatProperty.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundRepeatProperty.java
@@ -54,7 +54,6 @@ public class BackgroundRepeatProperty extends
private static final String CSS_PROPERTY = "backgroundRepeat";
-
public static void init() {
CSS.BACKGROUND_REPEAT = new BackgroundRepeatProperty();
}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderProperty.java
index 9ef84d99..97b79f36 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderProperty.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderProperty.java
@@ -27,7 +27,6 @@ import com.google.gwt.query.client.css.TakesCssValue.CssSetter;
* cannot set different values on the four borders. To do so, one or more of the
* other border properties must be used.
*
- *
*/
public class BorderProperty implements HasCssValue {
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderWidthProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderWidthProperty.java
index a136c5dc..be5b478a 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderWidthProperty.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderWidthProperty.java
@@ -43,7 +43,6 @@ public class BorderWidthProperty extends
*/
THIN;
-
public String getCssName() {
return name().toLowerCase();
}
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 f88e9939..1ecf7ebf 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
@@ -106,7 +106,6 @@ public class CSS {
* This property takes a {@link UriValue} object as value.
* </p>
*
- *
*/
public static BackgroundImageProperty BACKGROUND_IMAGE;
@@ -1317,4 +1316,4 @@ public class CSS {
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EdgePositionProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EdgePositionProperty.java
index fe6dfd65..54b3fda3 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EdgePositionProperty.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EdgePositionProperty.java
@@ -15,7 +15,6 @@
*/
package com.google.gwt.query.client.css;
-
/**
* Specify position of element's edges.
*/
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 290d7a65..2a51395f 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
@@ -4,7 +4,6 @@ import com.google.gwt.dom.client.Style.HasCssName;
public class MultipleValueCssSetter extends SimpleCssSetter {
-
public MultipleValueCssSetter(String cssPropertyName, HasCssName... values) {
super(cssPropertyName, computeValue(values));
}
@@ -19,7 +18,6 @@ public class MultipleValueCssSetter extends SimpleCssSetter {
return valueBuilder.toString().trim();
}
-
private static String notNull(HasCssName value) {
return value != null ? value.getCssName() + " " : "";
}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineColorProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineColorProperty.java
index 713e3d5e..e39dff41 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineColorProperty.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineColorProperty.java
@@ -28,7 +28,6 @@ public class OutlineColorProperty extends CssProperty<RGBColor> {
CSS.OUTLINE_COLOR = new OutlineColorProperty();
}
-
private OutlineColorProperty() {
super(CSS_PROPERTY);
}
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 23405928..a723349a 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
@@ -60,5 +60,4 @@ public class OutlineProperty implements
return new MultipleValueCssSetter(CSS_PROPERTY, outlineColor, outlineStyle, outlineWidth);
}
-
}
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 8059f389..b5ae719e 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
@@ -39,4 +39,4 @@ public class UriValue implements HasCssName {
return value;
}
-} \ No newline at end of file
+}
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 dfb7fcfc..76c9bcb3 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
@@ -38,7 +38,6 @@ public class ZIndexProperty implements TakesInteger {
private ZIndexProperty() {
}
-
public String getCssName() {
return CSS_PROPERTY;
}
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 3123a57c..4bd133ec 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
@@ -34,7 +34,6 @@ public class DocumentStyleImpl {
private static final RegExp cssNumberRegex = RegExp.compile("^(fillOpacity|fontWeight|lineHeight|opacity|orphans|widows|zIndex|zoom)$", "i");
private static final RegExp sizeRegex = RegExp.compile("^(client|offset|)(width|height)$", "i");
-
/**
* Returns the numeric value of a css property.
*
@@ -123,14 +122,14 @@ public class DocumentStyleImpl {
private Element attachTemporary(Element elem) {
Element lastParent = $(elem).parents().last().get(0);
-
+
if (lastParent == null){
//the element itself is detached
lastParent = elem;
}
-
+
Document.get().getBody().appendChild(lastParent);
-
+
return lastParent;
}
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 cb0e097c..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
@@ -67,7 +67,6 @@ public class DocumentStyleImplIE extends DocumentStyleImpl {
e.style.removeAttribute(prop);
}-*/;
-
/**
* Set the value of a style property of an element.
* IE needs a special workaround to handle opacity
@@ -110,4 +109,4 @@ public class DocumentStyleImplIE extends DocumentStyleImpl {
e.getStyle().setProperty("filter",
"alpha(opacity=" + (int) (Double.valueOf(val) * 100) + ")");
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineImpl.java
index fd9d518e..a957334c 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineImpl.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineImpl.java
@@ -20,5 +20,4 @@ package com.google.gwt.query.client.impl;
*/
public abstract class SelectorEngineImpl implements HasSelector {
-
}
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 8da92e2d..9a1591a9 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
@@ -15,7 +15,6 @@
*/
package com.google.gwt.query.client.impl;
-
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.dom.client.Element;
@@ -29,7 +28,6 @@ import com.google.gwt.dom.client.NodeList;
*/
public class SelectorEngineSizzle extends SelectorEngineImpl {
-
public static native void initialize() /*-{
(function(){
@@ -1096,7 +1094,6 @@ $wnd.GQS = GQS;
}-*/;
-
private static native JsArray<Element> select(String selector, Node context, JsArray<Element> results, JsArray<Element> 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 9aad4204..741c785a 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
@@ -15,7 +15,6 @@
*/
package com.google.gwt.query.client.impl;
-
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.dom.client.Element;
@@ -41,7 +40,6 @@ import com.google.gwt.dom.client.NodeList;
*/
public class SelectorEngineSizzleIE extends SelectorEngineImpl {
-
public static native void initialize() /*-{
(function(){
@@ -936,7 +934,6 @@ $wnd.IES = IES;
}-*/;
-
private static native JsArray<Element> select(String selector, Node context, JsArray<Element> results, JsArray<Element> 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 428913b2..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
@@ -37,7 +37,6 @@ import com.google.gwt.query.client.js.JsUtils;
*/
public class SelectorEngineJS extends SelectorEngineImpl {
-
/**
* Internal class.
*/
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 64156d60..c536c3c8 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
@@ -15,7 +15,6 @@
*/
package com.google.gwt.query.client.impl.research;
-
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.dom.client.Element;
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 63fe9229..47322d6c 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
@@ -31,7 +31,6 @@ import com.google.gwt.query.client.js.JsObjectArray;
import com.google.gwt.query.client.js.JsRegexp;
import com.google.gwt.query.client.js.JsUtils;
-
/**
* Runtime selector engine implementation which translates selectors to XPath
* and delegates to document.evaluate().
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 71d3d3c0..dff21481 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
@@ -53,7 +53,7 @@ public class JsCache extends JavaScriptObject {
public final native void delete(Object name) /*-{
delete this[name];
}-*/;
-
+
public final void clear() {
for (String k : keys()) {
delete(k);
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 e47c4a3b..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
@@ -31,4 +31,4 @@ public class JsClosure extends JavaScriptObject {
public final native void invoke() /*-{
return this();
}-*/;
-} \ No newline at end of file
+}
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 d912a7f2..4806d4cd 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
@@ -17,7 +17,6 @@ package com.google.gwt.query.client.js;
import com.google.gwt.core.client.JavaScriptObject;
-
/**
* Lightweight JSO backed implemented of a Map, using Object.hashCode() as key.
*/
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 552a7d21..a3b49332 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
@@ -17,7 +17,6 @@ package com.google.gwt.query.client.js;
import com.google.gwt.core.client.JavaScriptObject;
-
/**
* Lightweight JSO backed implemented of a named array
*/
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 d8d5e312..c5a6062c 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
@@ -71,7 +71,7 @@ public final class JsObjectArray<T> extends JavaScriptObject {
public void pushAll(JavaScriptObject prevElem) {
c().pushAll(prevElem);
}
-
+
public boolean contains(Object o) {
return c().contains(o);
}
@@ -81,7 +81,7 @@ public final class JsObjectArray<T> extends JavaScriptObject {
c().remove(o);
}
}
-
+
public Object[] elements() {
return c().elements();
}
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 65f26cee..82e2ae79 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
@@ -466,7 +466,6 @@ public class JsUtils {
return a
}-*/;
-
/**
* Call via jsni any arbitrary function present in a Javascript object.
*
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 64818c9c..fc2c726d 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
@@ -285,7 +285,6 @@ public class Effects extends QueuePlugin<Effects> {
* });
* </pre>
*
- *
* For color css properties, values can be specified via hexadecimal or rgb or
* literal values.
*
@@ -295,7 +294,6 @@ public class Effects extends QueuePlugin<Effects> {
* $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000");
* </pre>
*
- *
* @param prop the property to animate : "cssName:'value'"
* @param funcs an array of {@link Function} called once the animation is
* complete
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 101ae0b9..901e3892 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
@@ -107,14 +107,12 @@ public class Events extends GQuery {
return this;
}
-
public GQuery die(int eventbits, String nameSpace) {
EventsListener.getInstance(Element.is(currentContext) ? (Element) currentContext : body).die(
eventbits, nameSpace, null, null, currentSelector);
return this;
}
-
public GQuery die(int eventbits) {
return die(eventbits, null);
}
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 f0af09b8..1b7d90bf 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
@@ -182,7 +182,6 @@ public interface LazyEffects<T> extends LazyBase<T>{
* });
* </pre>
*
- *
* For color css properties, values can be specified via hexadecimal or rgb or
* literal values.
*
@@ -192,7 +191,6 @@ public interface LazyEffects<T> extends LazyBase<T>{
* $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000");
* </pre>
*
- *
* @param prop the property to animate : "cssName:'value'"
* @param funcs an array of {@link Function} called once the animation is
* complete
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java
index e83625d5..9154fa11 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java
@@ -140,7 +140,7 @@ public class QueuePlugin<T extends QueuePlugin<?>> extends GQuery {
public Promise promise() {
return promise(DEFAULT_NAME);
}
-
+
/**
* Returns a dynamically generated Promise that is resolved once all actions
* in the named queue have ended.
@@ -162,17 +162,17 @@ public class QueuePlugin<T extends QueuePlugin<?>> extends GQuery {
}
}
}
-
+
public void f() {
if (--count == 0) {
dfd.resolve(QueuePlugin.this);
}
}
};
-
+
// Run the function and resolve it in case there are not elements with active queue
resolve.f(this, name);
-
+
return dfd.promise();
}
@@ -315,7 +315,7 @@ public class QueuePlugin<T extends QueuePlugin<?>> extends GQuery {
runNext(elem, name, q);
}
}
-
+
private void runNext(Element elem, String name, Queue<? extends Function> q) {
assert q != null;
Function f = q.peek();
@@ -365,7 +365,7 @@ public class QueuePlugin<T extends QueuePlugin<?>> extends GQuery {
data(elem, name, queue);
}
}
-
+
private Callbacks emptyHooks(Element elem, String name) {
String key = name + EMPTY_HOOKS;
Callbacks c = (Callbacks)data(elem, key, null);
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/UiPlugin.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/UiPlugin.java
index 0d85e1fb..eb589bbd 100755
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/UiPlugin.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/UiPlugin.java
@@ -162,7 +162,6 @@ public class UiPlugin extends GQuery {
super(gq);
}
-
/**
* Return the immediate scrolling parent.
*/
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java
index 6367e7b7..2eaf38c2 100755
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java
@@ -62,7 +62,6 @@ public class Widgets extends QueuePlugin<Widgets> {
super(gq);
}
-
/**
* Try to create a widget using the given factory and the given options for
* each element of the query. Returns a new gquery set of elements with the
@@ -139,7 +138,7 @@ public class Widgets extends QueuePlugin<Widgets> {
public Widgets label() {
return widgets(new LabelWidgetFactory(), null);
}
-
+
/**
* Create a {@link Label} widget for each selected element. The
* <code>initializers</code> will be called on each new {@link Label} created
@@ -166,7 +165,6 @@ public class Widgets extends QueuePlugin<Widgets> {
return widgets(new PasswordTextBoxWidgetFactory(), initializers);
}
-
/**
* Create a {@link TextBox} widget for each selected element. The
* <code>initializers</code> will be called on each new {@link TextBox}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java
index b0ee21ad..5baca2f2 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java
@@ -35,7 +35,7 @@ public class Ajax extends GQuery {
public static final String JSON_CONTENT_TYPE = "application/json";
public static final String JSON_CONTENT_TYPE_UTF8 = JSON_CONTENT_TYPE + "; charset=utf-8";
-
+
public static interface AjaxTransport {
Promise getJsonP(Settings settings);
@@ -43,7 +43,7 @@ public class Ajax extends GQuery {
Promise getXhr(Settings settings);
}
-
+
/**
* Ajax Settings object
*/
@@ -93,7 +93,6 @@ public class Ajax extends GQuery {
/**
* Perform an ajax request to the server.
*
- *
* Example:
*
* <pre>
@@ -119,7 +118,7 @@ public class Ajax extends GQuery {
*/
public static Promise ajax(Settings settings) {
resolveSettings(settings);
-
+
final Function onSuccess = settings.getSuccess();
if (onSuccess != null) {
onSuccess.setElement(settings.getContext());
@@ -184,11 +183,11 @@ public class Ajax extends GQuery {
}
return ret;
}
-
+
private static void resolveSettings(Settings settings) {
String url = settings.getUrl();
assert settings != null && settings.getUrl() != null: "no url found in settings";
-
+
String type = "POST";
if (settings.getType() != null) {
type = settings.getType().toUpperCase();
@@ -220,7 +219,7 @@ public class Ajax extends GQuery {
settings.setUrl(url);
}
}
-
+
public static Promise ajax(String url, Function onSuccess, Function onError) {
return ajax(url, onSuccess, onError, (Settings) null);
}
@@ -375,7 +374,7 @@ public class Ajax extends GQuery {
public Ajax load(String url, IsProperties data) {
return load(url, data);
}
-
+
public Ajax load(String url, IsProperties data, final Function onSuccess) {
Settings s = createSettings();
final String filter = url.contains(" ") ? url.replaceFirst("^[^\\s]+\\s+", "") : "";
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/AjaxTransportJs.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/AjaxTransportJs.java
index 12ce7cda..77f74f88 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/AjaxTransportJs.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/AjaxTransportJs.java
@@ -16,12 +16,12 @@ import com.google.gwt.query.client.plugins.deferred.PromiseReqBuilderJSONP;
* Ajax transport for Client side.
*/
public class AjaxTransportJs implements AjaxTransport {
-
+
@Override
public Promise getJsonP(Settings settings) {
return new PromiseReqBuilderJSONP(settings.getUrl(), settings.getTimeout());
}
-
+
@Override
public Promise getLoadScript(final Settings settings) {
return new PromiseFunction() {
@@ -47,5 +47,5 @@ public class AjaxTransportJs implements AjaxTransport {
public Promise getXhr(Settings settings) {
return new PromiseReqBuilder(settings);
}
-
+
}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Callbacks.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Callbacks.java
index 462ccad8..9ca2cdec 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Callbacks.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Callbacks.java
@@ -23,7 +23,7 @@ import com.google.gwt.query.client.Function;
* Implementation of jQuery.Callbacks for gwtquery.
*/
public class Callbacks {
-
+
/**
* Iterface used for callbacks which could cancel the execution
* when returning false;
@@ -35,19 +35,19 @@ public class Callbacks {
*/
boolean f(Object ...objects);
}
-
+
private List<Object> stack = new ArrayList<Object>();
-
+
private boolean done = false;
-
+
private List<Object> memory = null;
-
+
private boolean isOnce, isMemory, isUnique, stopOnFalse;
-
+
public Callbacks() {
this("");
}
-
+
/**
* Create a new Callbacks object with options given as a space delimited string.
*
@@ -61,7 +61,7 @@ public class Callbacks {
isUnique = options.contains("unique");
stopOnFalse = options.contains("stopOnFalse");
}
-
+
/**
* Add a Callback or a collection of callbacks to a callback list.
*
@@ -70,7 +70,7 @@ public class Callbacks {
addAll((Object[])c);
return this;
}
-
+
/**
* Add a Callback or a collection of callbacks to a callback list.
*/
@@ -86,7 +86,7 @@ public class Callbacks {
addAll((Object[])f);
return this;
}
-
+
/**
* Disable a callback list from doing anything more.
*/
@@ -95,7 +95,7 @@ public class Callbacks {
done = true;
return this;
}
-
+
/**
* lock
*/
@@ -124,7 +124,7 @@ public class Callbacks {
}
return this;
}
-
+
/**
* Remove a callback or a collection of callbacks from a callback list.
*/
@@ -132,7 +132,7 @@ public class Callbacks {
stack.removeAll(Arrays.asList(o));
return this;
}
-
+
private void addAll(Object...o) {
for (Object c : o) {
if (!done && stack != null && c != null && (!isUnique || !stack.contains(c))) {
@@ -162,7 +162,7 @@ public class Callbacks {
}
return true;
}
-
+
public String status() {
return "stack=" + (stack == null ? "null" : stack.size()) + " " + done;
}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/FunctionDeferred.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/FunctionDeferred.java
index 771749f8..b4beee97 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/FunctionDeferred.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/FunctionDeferred.java
@@ -89,7 +89,7 @@ public abstract class FunctionDeferred extends Function {
cache = type;
return this;
}
-
+
/**
* Reset the cache so as a new invocation to this function will
* execute it instead of restoring old values from cache.
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseFunction.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseFunction.java
index 996992e7..356a94b5 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseFunction.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseFunction.java
@@ -42,7 +42,7 @@ public abstract class PromiseFunction extends DeferredPromiseImpl {
public PromiseFunction() {
f(dfd);
}
-
+
/**
* This function is called once when the promise is created and the
* new deferred is available.
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilderJSONP.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilderJSONP.java
index 9278bf7b..606b8a6d 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilderJSONP.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilderJSONP.java
@@ -36,9 +36,9 @@ import com.google.gwt.user.client.rpc.AsyncCallback;
* </pre>
*/
public class PromiseReqBuilderJSONP extends DeferredPromiseImpl {
-
+
private static final RegExp callbackRegex = RegExp.compile("^(.+[\\?&])([^=]+)=\\?(.*)$");
-
+
public PromiseReqBuilderJSONP(String url) {
this(url, null, 0);
}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Bezier.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Bezier.java
index 147f94ca..cdc6da44 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Bezier.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Bezier.java
@@ -25,13 +25,13 @@ package com.google.gwt.query.client.plugins.effects;
* [2] http://dxr.mozilla.org/mozilla-central/source/content/smil/nsSMILKeySpline.cpp
*/
public class Bezier {
-
+
private double x1, y1 , x2, y2;
-
+
public Bezier(double x1, double y1, double x2, double y2) {
this.x1 = x1; this.y1 = y1; this.x2 = x2; this.y2 = y2;
}
-
+
private double a(double a1, double a2) {
return 1.0 - 3.0 * a2 + 3.0 * a1;
}
@@ -41,15 +41,15 @@ public class Bezier {
private double c(double a1){
return 3.0 * a1;
}
-
+
private double calcBezier(double t, double a1, double a2) {
return ((a(a1, a2)*t + b(a1, a2))*t + c(a1))*t;
}
-
+
private double calcSlope(double t, double a1, double a2) {
return 3.0 * a(a1, a2)*t*t + 2.0 * b(a1, a2) * t + c(a1);
}
-
+
private double getTForX(double x) {
double t = x;
for (double i = 0; i < 4; ++i) {
@@ -60,11 +60,11 @@ public class Bezier {
}
return t;
}
-
+
public double f (double x) {
return calcBezier(getTForX(x), y1, y2);
}
-
+
public String toString() {
return x1 + "," + y1 + "," + x2 + "," + y2;
}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java
index 0adf1ddf..59868d36 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java
@@ -554,7 +554,6 @@ public class EventsListener implements EventListener {
die(b, nameSpace, eventName, originalEventName, cssSelector);
}
-
}
public void die(int eventbits, String nameSpace, String eventName, String originalEventName,
@@ -638,7 +637,6 @@ public class EventsListener implements EventListener {
String nameSpace = null;
String eventName = event;
-
String[] subparts = event.split("\\.", 2);
if (subparts.length == 2) {
@@ -732,7 +730,7 @@ public class EventsListener implements EventListener {
public void unbind(int eventbits, String namespace, String eventName, String originalEventType,
Function f) {
-
+
JsObjectArray<BindFunction> newList = JsObjectArray.createArray().cast();
for (int i = 0; i < elementEvents.length(); i++) {
BindFunction listener = elementEvents.get(i);
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/GqEvent.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/GqEvent.java
index f961c098..aac590ca 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/GqEvent.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/GqEvent.java
@@ -14,12 +14,9 @@ import com.google.gwt.user.client.Event;
* element. So, we cannot keep a copy of the MouseDownEvent during a dragging
* for example.
*
- *
- *
* Be Careful : the methods preventDefault() and stopPropagation must be called directly on the
* original event.
*
- *
*/
public class GqEvent extends Event {
@@ -53,7 +50,6 @@ public class GqEvent extends Event {
gQueryEvent.originalEvent = originalEvent;
}-*/;
-
protected GqEvent() {
}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ButtonWidgetFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ButtonWidgetFactory.java
index 39028149..c1d5c32c 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ButtonWidgetFactory.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ButtonWidgetFactory.java
@@ -15,7 +15,6 @@
*/
package com.google.gwt.query.client.plugins.widgets;
-
import com.google.gwt.dom.client.ButtonElement;
import com.google.gwt.dom.client.Element;
import com.google.gwt.query.client.plugins.widgets.WidgetFactory;
@@ -47,4 +46,4 @@ public class ButtonWidgetFactory implements WidgetFactory<Button> {
destination.setName(source.getName());
destination.setValue(source.getValue());
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/HtmlPanelWidgetFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/HtmlPanelWidgetFactory.java
index e5c18f0a..4e3ad447 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/HtmlPanelWidgetFactory.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/HtmlPanelWidgetFactory.java
@@ -24,4 +24,4 @@ public class HtmlPanelWidgetFactory implements WidgetFactory<HTMLPanel> {
return new WidgetsHtmlPanel(e);
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/LabelWidgetFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/LabelWidgetFactory.java
index 0beb81d6..51a05174 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/LabelWidgetFactory.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/LabelWidgetFactory.java
@@ -27,4 +27,4 @@ public class LabelWidgetFactory implements WidgetFactory<Label> {
return label;
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextAreaWidgetFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextAreaWidgetFactory.java
index eff780f5..9200578e 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextAreaWidgetFactory.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextAreaWidgetFactory.java
@@ -45,8 +45,7 @@ public class TextAreaWidgetFactory extends TextBoxBaseWidgetFactory<TextArea> {
return "textarea";
}
-
protected TextArea createWidget() {
return new TextArea();
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxBaseWidgetFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxBaseWidgetFactory.java
index 9a7f22eb..55135962 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxBaseWidgetFactory.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxBaseWidgetFactory.java
@@ -21,7 +21,6 @@ import com.google.gwt.user.client.ui.TextBoxBase;
/**
*
- *
*/
public abstract class TextBoxBaseWidgetFactory<T extends TextBoxBase>
implements WidgetFactory<T> {
@@ -59,4 +58,4 @@ public abstract class TextBoxBaseWidgetFactory<T extends TextBoxBase>
}
protected abstract T createWidget();
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxWidgetFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxWidgetFactory.java
index cf650fb3..3d9c317d 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxWidgetFactory.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxWidgetFactory.java
@@ -28,4 +28,4 @@ public class TextBoxWidgetFactory extends TextBoxBaseWidgetFactory<TextBox> {
protected TextBox createWidget() {
return new TextBox();
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetFactory.java
index abd94ef1..353befce 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetFactory.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetFactory.java
@@ -26,4 +26,4 @@ import com.google.gwt.user.client.ui.Widget;
*/
public interface WidgetFactory<W extends Widget> {
public W create(Element e);
- } \ No newline at end of file
+ }
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java
index 408d1336..53a03a7b 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java
@@ -40,7 +40,6 @@ public class WidgetsUtils {
static final String[] appendingTags = {
"td", "th", "li"};
-
/**
* Append a widget to a dom element, and hide it.
* Element classes will be copied to the new widget.
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/BrowserGenerator.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/BrowserGenerator.java
index 76b539f8..01f95917 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/BrowserGenerator.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/BrowserGenerator.java
@@ -36,7 +36,7 @@ public class BrowserGenerator extends Generator {
public String generate(TreeLogger logger, GeneratorContext context, String typeName) throws UnableToCompleteException {
TypeOracle oracle = context.getTypeOracle();
PropertyOracle propOracle = context.getPropertyOracle();
-
+
String ua = null;
try {
ua = propOracle.getSelectionProperty(logger, "user.agent").getCurrentValue();
@@ -44,19 +44,19 @@ public class BrowserGenerator extends Generator {
logger.log(TreeLogger.ERROR, "Can not resolve user.agent property", e);
throw new UnableToCompleteException();
}
-
+
JClassType clz = oracle.findType(typeName);
String pName = clz.getPackage().getName();
String cName = clz.getName() + "_" + ua;
-
+
PrintWriter pWriter = context.tryCreate(logger, pName, cName);
-
+
if (pWriter != null) {
ClassSourceFileComposerFactory cFact = new ClassSourceFileComposerFactory(pName, cName);
cFact.setSuperclass(pName + "." + clz.getName());
-
+
SourceWriter writer = cFact.createSourceWriter(context, pWriter);
-
+
writer.println("protected boolean isWebkit() {return " + "safari".equals(ua) + ";}");
writer.println("protected boolean isSafari() {return " + "safari".equals(ua) + ";}");
writer.println("protected boolean isOpera() {return " + "opera".equals(ua) + ";}");
@@ -78,7 +78,7 @@ public class BrowserGenerator extends Generator {
";}");
writer.commit(logger);
}
-
+
return pName + "." + cName;
}
}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java
index 3fcbad93..7151ef41 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java
@@ -59,7 +59,6 @@ public class JsonBuilderGenerator extends Generator {
static JClassType stringType;
static JClassType jsonFactoryType;
-
public static String capitalize(String s) {
if (s.length() == 0)
return s;
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java
index 1ad4c850..0e83962e 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java
@@ -63,7 +63,7 @@ public class LazyGenerator extends Generator {
break;
}
}
-
+
if (targetType == null) return null;
assert targetType != null : "Parameter of Lazy<T> not found";
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNative.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNative.java
index 459df9af..e0cdb04a 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNative.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNative.java
@@ -64,4 +64,4 @@ public class SelectorGeneratorNative extends SelectorGeneratorCssToXPath {
protected boolean hasGetElementsByClassName() {
return true;
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNativeIE8.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNativeIE8.java
index 2aa28946..3fe445c5 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNativeIE8.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNativeIE8.java
@@ -58,4 +58,4 @@ public class SelectorGeneratorNativeIE8 extends SelectorGeneratorJS {
protected boolean hasGetElementsByClassName() {
return false;
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNativeIE9.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNativeIE9.java
index 899886ae..aac00fdf 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNativeIE9.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorNativeIE9.java
@@ -58,4 +58,4 @@ public class SelectorGeneratorNativeIE9 extends SelectorGeneratorJS {
protected boolean hasGetElementsByClassName() {
return false;
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java b/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java
index 2db50517..77bd732e 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java
@@ -25,32 +25,32 @@ import com.google.gwt.user.server.Base64Utils;
*
*/
public class AjaxTransportJre implements AjaxTransport {
-
+
private static String localDomain = null;
-
+
private static CookieManager cookieManager = CookieManager.getInstance();
private static boolean debugOutput = false;
-
+
private static boolean followRedirections = true;
-
+
public static void enableCORS(String domain) {
localDomain = domain;
System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
}
-
+
public static void enableDebug(boolean b) {
debugOutput = b;
}
-
+
public static void enableCookies(boolean b) {
cookieManager = b ? CookieManager.getInstance() : null;
}
-
+
public static void enableRedirections(boolean b) {
followRedirections = b;
}
-
+
private final String USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:26.0) Gecko/20100101 Firefox/26.0";
private final String jsonpCbRexp = "(?ms)^.*jre_callback\\((.*)\\).*$";
@@ -58,11 +58,11 @@ public class AjaxTransportJre implements AjaxTransport {
String url = settings.getUrl().replaceFirst("callback=[^&]*", "");
url += (url.contains("?") ? "&" : "?") + "callback=jre_callback";
settings.setUrl(url);
-
+
if (settings.getTimeout() < 1) {
settings.setTimeout(10000);
}
-
+
return getXhr(settings, false)
.then(new Function() {
public Object f(Object... args) {
@@ -79,7 +79,7 @@ public class AjaxTransportJre implements AjaxTransport {
public Promise getLoadScript(Settings settings) {
return getXhr(settings, false);
}
-
+
public Promise getXhr(final Settings settings) {
return getXhr(settings, true);
}
@@ -107,12 +107,12 @@ public class AjaxTransportJre implements AjaxTransport {
private Response httpClient(Settings s, boolean cors) throws Exception {
String url = s.getUrl();
assert url.toLowerCase().startsWith("http");
-
+
URL u = new URL(url);
HttpURLConnection c = (HttpURLConnection) u.openConnection();
-
+
c.setInstanceFollowRedirects(followRedirections);
-
+
c.setRequestMethod(s.getType());
c.setRequestProperty("User-Agent", USER_AGENT);
if (s.getUsername() != null && s.getPassword() != null) {
@@ -121,7 +121,7 @@ public class AjaxTransportJre implements AjaxTransport {
if (cookieManager != null) {
cookieManager.setCookies(c);
}
-
+
boolean isCORS = cors && localDomain != null && !s.getUrl().contains(localDomain);
if (isCORS) {
// TODO: fetch options previously to the request
@@ -141,24 +141,24 @@ public class AjaxTransportJre implements AjaxTransport {
// Access-Control-Allow-Credentials: true
c.setRequestProperty("Origin", localDomain);
}
-
+
if (s.getTimeout() > 0) {
c.setConnectTimeout(s.getTimeout());
c.setReadTimeout(s.getTimeout());
}
-
+
IsProperties headers = s.getHeaders();
if (headers != null) {
for (String h : headers.getFieldNames()) {
c.setRequestProperty(h, "" + headers.get(h));
}
}
-
+
if (s.getType().matches("POST|PUT")) {
c.setRequestProperty("Content-Type", s.getContentType());
-
+
debugRequest(c, s.getDataString());
-
+
c.setDoOutput(true);
DataOutputStream wr = new DataOutputStream(c.getOutputStream());
wr.writeBytes(s.getDataString());
@@ -167,7 +167,7 @@ public class AjaxTransportJre implements AjaxTransport {
} else {
debugRequest(c, null);
}
-
+
int code = c.getResponseCode();
if (isCORS) {
if (!localDomain.equals(c.getHeaderField("Access-Control-Allow-Origin"))) {
@@ -177,9 +177,9 @@ public class AjaxTransportJre implements AjaxTransport {
code = 0;
}
}
-
+
String payload = "";
-
+
InputStream is = code >= 400 ? c.getErrorStream() : c.getInputStream();
if (is != null) {
BufferedReader in = new BufferedReader(new InputStreamReader(is));
@@ -191,14 +191,14 @@ public class AjaxTransportJre implements AjaxTransport {
in.close();
payload = response.toString();
}
-
+
if (cookieManager != null) {
cookieManager.storeCookies(c);
}
return new ResponseJre(code, c.getResponseMessage(), payload, c.getHeaderFields());
}
-
+
private void debugRequest(HttpURLConnection c, String payload) {
if (debugOutput) {
System.out.println(c.getRequestMethod() + " " + c.getURL().getPath());
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/vm/CookieManager.java b/gwtquery-core/src/main/java/com/google/gwt/query/vm/CookieManager.java
index 1f1241ba..7db05940 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/vm/CookieManager.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/vm/CookieManager.java
@@ -31,21 +31,21 @@ public class CookieManager {
private static final char DOT = '.';
private DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT);;
-
+
private static CookieManager cookieManager = new CookieManager();
public static CookieManager getInstance() {
return cookieManager;
}
-
+
public void clear() {
store.clear();
}
-
+
public void removeDomainCookies(String domain) {
store.remove(domain);
}
-
+
public void removeDomainCookie(String domain, String... cookies) {
Map<String, Map<String, String>> domainStore = store.get(domain);
if (domainStore != null) {
@@ -54,11 +54,11 @@ public class CookieManager {
}
}
}
-
+
public void setDomcainCookie(String host, String name, String value) {
setDomcainCookieProperty(host, name, name, value);
}
-
+
public void setDomcainCookieProperty(String host, String name, String prop, String value) {
String domain = getDomainFromHost(host);
Map<String, Map<String, String>> domainStore = store.get(domain);
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/vm/ResponseJre.java b/gwtquery-core/src/main/java/com/google/gwt/query/vm/ResponseJre.java
index 207484a9..83e06941 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/vm/ResponseJre.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/vm/ResponseJre.java
@@ -14,14 +14,14 @@ public class ResponseJre extends Response {
private Map<String,List<String>> headers;
private String responseText;
private String statusText;
-
+
public ResponseJre(int status, String statusText, String text, Map<String,List<String>> headers) {
this.status = status;
this.headers = headers;
this.responseText = text;
this.statusText = statusText;
}
-
+
public String getHeader(String header) {
List<String> l = headers.get(header);
if (l != null && !l.isEmpty()) {
@@ -67,4 +67,4 @@ public class ResponseJre extends Response {
public String getText() {
return responseText;
}
-} \ No newline at end of file
+}
diff --git a/gwtquery-core/src/main/java/com/google/web/bindery/requestfactory/shared/gquery/PromiseRF.java b/gwtquery-core/src/main/java/com/google/web/bindery/requestfactory/shared/gquery/PromiseRF.java
index 76be5b89..eecd20d1 100644
--- a/gwtquery-core/src/main/java/com/google/web/bindery/requestfactory/shared/gquery/PromiseRF.java
+++ b/gwtquery-core/src/main/java/com/google/web/bindery/requestfactory/shared/gquery/PromiseRF.java
@@ -54,7 +54,7 @@ public class PromiseRF extends DeferredPromiseImpl {
private int total = 0;
private List<Object> responses = new ArrayList<Object>();
private List<RequestContext> contexts = new ArrayList<RequestContext>();
-
+
/**
* Fire a RF Request.
*/