aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2014-12-31 18:40:01 +0100
committerManolo Carrasco <manolo@apache.org>2014-12-31 18:40:01 +0100
commite2d1bb83ac2a1d10843efc90ca87fb8d1af2a7fa (patch)
tree916f46a3bb02944baecac4c5d97fa2a8b7cbd3a9
parent35fc2213cd907c2cf8ec929e5fb3668e9cf402cf (diff)
downloadgwtquery-e2d1bb83ac2a1d10843efc90ca87fb8d1af2a7fa.tar.gz
gwtquery-e2d1bb83ac2a1d10843efc90ca87fb8d1af2a7fa.zip
Replace tabs by spaces
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java14
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/css/ZIndexProperty.java4
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeTridentImpl.java22
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/ConsoleBrowser.java8
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java28
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java4
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJSIE.java18
-rwxr-xr-xgwtquery-core/src/main/java/com/google/gwt/query/client/plugins/MousePlugin.java6
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java42
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/GqEvent.java10
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/rebind/BrowserGenerator.java2
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java12
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/rebind/XmlBuilderGenerator.java4
13 files changed, 87 insertions, 87 deletions
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 098cb2da..d0baf61c 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
@@ -780,12 +780,12 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
}
private static native void scrollIntoViewImpl(Node n) /*-{
- if (n)
- n.scrollIntoView()
+ if (n)
+ n.scrollIntoView()
}-*/;
private static native void setElementValue(Element e, String value) /*-{
- e.value = value;
+ e.value = value;
}-*/;
protected Node currentContext;
@@ -2388,10 +2388,10 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
}
private native Element getPreviousSiblingElement(Element elem) /*-{
- var sib = elem.previousSibling;
- while (sib && sib.nodeType != 1)
- sib = sib.previousSibling;
- return sib;
+ var sib = elem.previousSibling;
+ while (sib && sib.nodeType != 1)
+ sib = sib.previousSibling;
+ return sib;
}-*/;
/**
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 e9da1ba1..dfb7fcfc 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
@@ -64,8 +64,8 @@ public class ZIndexProperty implements TakesInteger {
* http://code.google.com/p/google-web-toolkit/issues/detail?id=5548
*/
private native String getZIndex(Style s) /*-{
- //force to return a string
- return "" + s["zIndex"];
+ //force to return a string
+ return "" + s["zIndex"];
}-*/;
}
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 7bb9aeee..2e22ceda 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
@@ -61,21 +61,21 @@ public class AttributeTridentImpl extends AttributeImpl {
}
private static native String getAttributeNode(Element e, String name)/*-{
- var attrNode = e.getAttributeNode(name);
- if (attrNode && attrNode.nodeValue !== "") {
- return attrNode.nodeValue;
- }
- return null;
+ var attrNode = e.getAttributeNode(name);
+ if (attrNode && attrNode.nodeValue !== "") {
+ return attrNode.nodeValue;
+ }
+ return null;
}-*/;
private static native boolean setAttributeNode(Element e, String name,
Object value)/*-{
- var attrNode = e.getAttributeNode(name);
- if (attrNode) {
- attrNode.nodeValue = value;
- return true;
- }
- return false;
+ var attrNode = e.getAttributeNode(name);
+ if (attrNode) {
+ attrNode.nodeValue = value;
+ return true;
+ }
+ return false;
}-*/;
@Override
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 0c3b1090..6b7fb162 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
@@ -53,10 +53,10 @@ public class ConsoleBrowser implements Console {
protected native void init()/*-{
try {
- [ "log", "info", "warn", "error", "dir", "clear", "profile", "profileEnd" ]
- .forEach(function(method) {
- $wnd.console[method] = this.call($wnd.console[method], $wnd.console);
- }, Function.prototype.bind);
+ [ "log", "info", "warn", "error", "dir", "clear", "profile", "profileEnd" ]
+ .forEach(function(method) {
+ $wnd.console[method] = this.call($wnd.console[method], $wnd.console);
+ }, Function.prototype.bind);
this.@com.google.gwt.query.client.impl.ConsoleBrowser.ConsoleIe9::initialized = true;
} catch(e) {
}
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 24008e1b..3123a57c 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
@@ -100,8 +100,8 @@ public class DocumentStyleImpl {
Element toDetach = null;
if (JsUtils.isDetached(elem)) {
- // If the element is detached to the DOM we attach temporary to it
- toDetach = attachTemporary(elem);
+ // If the element is detached to the DOM we attach temporary to it
+ toDetach = attachTemporary(elem);
}
if (sizeRegex.test(name)) {
@@ -114,7 +114,7 @@ public class DocumentStyleImpl {
// If the element was previously attached, detached it.
if (toDetach != null) {
- toDetach.removeFromParent();
+ toDetach.removeFromParent();
}
}
@@ -122,17 +122,17 @@ 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;
-}
+ Element lastParent = $(elem).parents().last().get(0);
+
+ if (lastParent == null){
+ //the element itself is detached
+ lastParent = elem;
+ }
+
+ Document.get().getBody().appendChild(lastParent);
+
+ return lastParent;
+ }
/**
* Fix style property names.
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 cbee96f1..e5fa3fa4 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
@@ -91,12 +91,12 @@ public class SelectorEngineCssToXPath extends SelectorEngineImpl {
return prefix + "[position() mod 2=0 and position()>=0]" + (noPrefix ? "" : "/self::" + s1);
}
if ("odd".equals(s2)) {
- prefix = afterAttr ? prefix : noPrefix ? "" : s1;
+ prefix = afterAttr ? prefix : noPrefix ? "" : s1;
return prefix + "[(count(preceding-sibling::*) + 1) mod 2=1]";
}
if (!s2.contains("n")){
- return prefix + "[position() = "+s2+"]" + (noPrefix ? "" : "/self::" + s1);
+ return prefix + "[position() = "+s2+"]" + (noPrefix ? "" : "/self::" + s1);
}
String[] t = s2.replaceAll("^([0-9]*)n.*?([0-9]*)?$", "$1+$2").split("\\+");
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 370d3c6b..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
@@ -24,14 +24,14 @@ import com.google.gwt.dom.client.Element;
public class SelectorEngineJSIE extends SelectorEngineJS {
public native String getAttr(Element elm, String attr) /*-{
- switch (attr) {
- case "id":
- return elm.id;
- case "for":
- return elm.htmlFor;
- case "class":
- return elm.className;
- }
- return elm.getAttribute(attr, 2);
+ switch (attr) {
+ case "id":
+ return elm.id;
+ case "for":
+ return elm.htmlFor;
+ case "class":
+ return elm.className;
+ }
+ return elm.getAttribute(attr, 2);
}-*/;
}
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/MousePlugin.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/MousePlugin.java
index aca8db05..9dbbc671 100755
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/MousePlugin.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/MousePlugin.java
@@ -281,12 +281,12 @@ public abstract class MousePlugin extends UiPlugin {
}
private native boolean isEventAlreadyHandled(GqEvent event)/*-{
- var result = event.mouseHandled ? event.mouseHandled : false;
- return result;
+ var result = event.mouseHandled ? event.mouseHandled : false;
+ return result;
}-*/;
private native void markEventAsHandled(GqEvent event)/*-{
- event.mouseHandled = true;
+ event.mouseHandled = true;
}-*/;
private boolean notHandleMouseDown(Element element, GqEvent mouseDownEvent) {
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 5f3cf531..0adf1ddf 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
@@ -412,44 +412,44 @@ public class EventsListener implements EventListener {
}
private static native void cleanGQListeners(Element elem) /*-{
- if (elem.__gwtlistener) {
+ if (elem.__gwtlistener) {
@com.google.gwt.user.client.DOM::setEventListener(*)(elem, elem.__gwtlistener);
- }
- elem.__gwtlistener = elem.__gqueryevent = elem.__gquery = null;
+ }
+ elem.__gwtlistener = elem.__gqueryevent = elem.__gquery = null;
}-*/;
private static native EventsListener getGQueryEventListener(Element elem) /*-{
- return elem.__gqueryevent;
+ return elem.__gqueryevent;
}-*/;
private static native EventListener getGwtEventListener(Element elem) /*-{
- return elem.__gwtlistener;
+ return elem.__gwtlistener;
}-*/;
private static native void init(Element elem, EventsListener gqevent)/*-{
- elem.__gwtlistener = @com.google.gwt.user.client.DOM::getEventListener(*)(elem);
+ elem.__gwtlistener = @com.google.gwt.user.client.DOM::getEventListener(*)(elem);
elem.__gqueryevent = gqevent;
// Someone has reported that in IE the init can be called multiple times
// causing a loop. We need some test to demonstrate this behaviour though.
// Anyway we check this condition to avoid looping
- if (elem.__gwtlistener == gqevent) elem.__gwtlistener = null;
+ if (elem.__gwtlistener == gqevent) elem.__gwtlistener = null;
}-*/;
private static native void sinkBitlessEvent(Element elem, String name) /*-{
- if (!elem.__gquery)
- elem.__gquery = [];
- if (elem.__gquery[name])
- return;
- elem.__gquery[name] = true;
-
- var handle = function(event) {
- elem.__gqueryevent.@com.google.gwt.query.client.plugins.events.EventsListener::onBrowserEvent(Lcom/google/gwt/user/client/Event;)(event);
- };
-
- if (elem.addEventListener)
- elem.addEventListener(name, handle, true);
- else
- elem.attachEvent("on" + name, handle);
+ if (!elem.__gquery)
+ elem.__gquery = [];
+ if (elem.__gquery[name])
+ return;
+ elem.__gquery[name] = true;
+
+ var handle = function(event) {
+ elem.__gqueryevent.@com.google.gwt.query.client.plugins.events.EventsListener::onBrowserEvent(Lcom/google/gwt/user/client/Event;)(event);
+ };
+
+ if (elem.addEventListener)
+ elem.addEventListener(name, handle, true);
+ else
+ elem.attachEvent("on" + name, handle);
}-*/;
int eventBits = 0;
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 1a92374f..f961c098 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
@@ -47,10 +47,10 @@ public class GqEvent extends Event {
private static native void copy(
Event originalEvent, GqEvent gQueryEvent) /*-{
- for ( var field in originalEvent) {
- gQueryEvent[field] = originalEvent[field];
- }
- gQueryEvent.originalEvent = originalEvent;
+ for ( var field in originalEvent) {
+ gQueryEvent[field] = originalEvent[field];
+ }
+ gQueryEvent.originalEvent = originalEvent;
}-*/;
@@ -61,7 +61,7 @@ public class GqEvent extends Event {
* Return the original event (the one created by the browser)
*/
public final native Event getOriginalEvent()/*-{
- return this.originalEvent;
+ return this.originalEvent;
}-*/;
public final native void setCurrentElementTarget(Element e)/*-{
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 3f18fd10..76b539f8 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
@@ -68,7 +68,7 @@ public class BrowserGenerator extends Generator {
writer.println("protected boolean isIe10() {return " + "ie10".equals(ua) + ";}");
writer.println("protected boolean isIe11() {return " + "gecko1_8".equals(ua) + ";}");
writer.println("public String toString() {return \"Browser:\"" +
- " + \" webkit=\" + webkit" +
+ " + \" webkit=\" + webkit" +
" + \" mozilla=\" + mozilla" +
" + \" opera=\" + opera" +
" + \" msie=\" + msie" +
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 c2383c19..3fcbad93 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
@@ -170,15 +170,15 @@ public class JsonBuilderGenerator extends Generator {
} else if (retType.equals("java.lang.Byte")) {
sw.println("return (byte) p.getFloat(\"" + name + "\");");
} else if (retType.equals("java.lang.Integer")) {
- sw.println("return (int) p.getFloat(\"" + name + "\");");
+ sw.println("return (int) p.getFloat(\"" + name + "\");");
} else if (retType.equals("java.lang.Float")) {
- sw.println("return p.getFloat(\"" + name + "\");");
+ sw.println("return p.getFloat(\"" + name + "\");");
} else if (retType.equals("java.lang.Double")) {
- sw.println("return (double) p.getFloat(\"" + name + "\");");
+ sw.println("return (double) p.getFloat(\"" + name + "\");");
} else if (retType.equals("java.lang.Long")) {
- sw.println("return (long) p.getFloat(\"" + name + "\");");
+ sw.println("return (long) p.getFloat(\"" + name + "\");");
} else if (retType.equals("java.lang.Byte")) {
- sw.println("return (byte) p.getFloat(\"" + name + "\");");
+ sw.println("return (byte) p.getFloat(\"" + name + "\");");
} else if (isTypeAssignableTo(method.getReturnType(), stringType)) {
sw.println("return p.getStr(\"" + name + "\");");
} else if (isTypeAssignableTo(method.getReturnType(), jsonBuilderType)) {
@@ -222,7 +222,7 @@ public class JsonBuilderGenerator extends Generator {
sw.println("return Arrays.asList(" + ret + ");");
}
} else if (method.getReturnType().isEnum() != null){
- sw.println("return "+ method.getReturnType().getQualifiedSourceName() + ".valueOf(p.getStr(\"" + name + "\"));");
+ sw.println("return "+ method.getReturnType().getQualifiedSourceName() + ".valueOf(p.getStr(\"" + name + "\"));");
} else {
sw.println("System.err.println(\"JsonBuilderGenerator WARN: unknown return type "
+ retType + " " + ifaceName + "." + name + "()\"); ");
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/XmlBuilderGenerator.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/XmlBuilderGenerator.java
index e643ecc1..e5d195b7 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/XmlBuilderGenerator.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/XmlBuilderGenerator.java
@@ -54,9 +54,9 @@ public class XmlBuilderGenerator extends Generator {
t[1], requestedClass);
if (sw != null) {
for (JMethod method : clazz.getInheritableMethods()) {
- //skip method from JsonBuilder
+ //skip method from JsonBuilder
if(xmlBuilderType.findMethod(method.getName(), method.getParameterTypes()) != null){
- continue;
+ continue;
}
generateMethod(sw, method, treeLogger);
}