diff options
author | Henri Sara <hesara@vaadin.com> | 2017-09-22 07:46:52 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-22 10:19:25 +0300 |
commit | a18842e2aeb2e3d073626617f24243f737eadb4f (patch) | |
tree | f83d4157110776587732e31d96e8c8c654e559e2 /client | |
parent | 396b6859285e641f4b13df6fdcd3771778fb6e97 (diff) | |
download | vaadin-framework-a18842e2aeb2e3d073626617f24243f737eadb4f.tar.gz vaadin-framework-a18842e2aeb2e3d073626617f24243f737eadb4f.zip |
Replace tabs with spaces in Java files
Diffstat (limited to 'client')
3 files changed, 28 insertions, 28 deletions
diff --git a/client/src/main/java/com/vaadin/client/BrowserInfo.java b/client/src/main/java/com/vaadin/client/BrowserInfo.java index 0197c4f3f8..cf54a045f8 100644 --- a/client/src/main/java/com/vaadin/client/BrowserInfo.java +++ b/client/src/main/java/com/vaadin/client/BrowserInfo.java @@ -112,10 +112,10 @@ public class BrowserInfo { private native int getIEDocumentMode() /*-{ - var mode = $wnd.document.documentMode; - if (!mode) - return -1; - return mode; + var mode = $wnd.document.documentMode; + if (!mode) + return -1; + return mode; }-*/; /** @@ -353,17 +353,17 @@ public class BrowserInfo { public static native String getBrowserString() /*-{ - return $wnd.navigator.userAgent; + return $wnd.navigator.userAgent; }-*/; public native int getScreenWidth() /*-{ - return $wnd.screen.width; + return $wnd.screen.width; }-*/; public native int getScreenHeight() /*-{ - return $wnd.screen.height; + return $wnd.screen.height; }-*/; /** diff --git a/client/src/main/java/com/vaadin/client/ui/VButton.java b/client/src/main/java/com/vaadin/client/ui/VButton.java index 611eb692cc..0e738032b5 100644 --- a/client/src/main/java/com/vaadin/client/ui/VButton.java +++ b/client/src/main/java/com/vaadin/client/ui/VButton.java @@ -434,8 +434,8 @@ public class VButton extends FocusWidget implements ClickHandler { /*-{ // THIS METHOD IS ONLY USED FOR INTERNET EXPLORER, IT DOESN'T WORK WITH OTHERS - var convertToPixel = function(elem, value) { - // From the awesome hack by Dean Edwards + var convertToPixel = function(elem, value) { + // From the awesome hack by Dean Edwards // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 // Remember the original values @@ -451,9 +451,9 @@ public class VButton extends FocusWidget implements ClickHandler { elem.runtimeStyle.left = rsLeft; return ret; - } + } - var ret = 0; + var ret = 0; var sides = ["Right","Left"]; for(var i=0; i<2; i++) { @@ -478,7 +478,7 @@ public class VButton extends FocusWidget implements ClickHandler { } } - return ret; + return ret; }-*/; } diff --git a/client/src/main/java/com/vaadin/client/ui/VCustomLayout.java b/client/src/main/java/com/vaadin/client/ui/VCustomLayout.java index 22fd53d0a1..b12690dbff 100644 --- a/client/src/main/java/com/vaadin/client/ui/VCustomLayout.java +++ b/client/src/main/java/com/vaadin/client/ui/VCustomLayout.java @@ -232,7 +232,7 @@ public class VCustomLayout extends ComplexPanel { public static native void eval(String script) /*-{ try { - if (script != null) + if (script != null) eval("{ var document = $doc; var window = $wnd; "+ script + "}"); } catch (e) { } @@ -397,15 +397,15 @@ public class VCustomLayout extends ComplexPanel { private native void detachResizedFunction(Element element) /*-{ - element.notifyChildrenOfSizeChange = null; + element.notifyChildrenOfSizeChange = null; }-*/; private native void publishResizedFunction(Element element) /*-{ - var self = this; - element.notifyChildrenOfSizeChange = $entry(function() { - self.@com.vaadin.client.ui.VCustomLayout::notifyChildrenOfSizeChange()(); - }); + var self = this; + element.notifyChildrenOfSizeChange = $entry(function() { + self.@com.vaadin.client.ui.VCustomLayout::notifyChildrenOfSizeChange()(); + }); }-*/; /** @@ -427,16 +427,16 @@ public class VCustomLayout extends ComplexPanel { */ public native boolean iLayoutJS(com.google.gwt.user.client.Element el) /*-{ - if(el && el.iLayoutJS) { - try { - el.iLayoutJS(); - return true; - } catch (e) { - return false; - } - } else { - return false; - } + if(el && el.iLayoutJS) { + try { + el.iLayoutJS(); + return true; + } catch (e) { + return false; + } + } else { + return false; + } }-*/; @Override |