diff options
author | Artur Signell <artur@vaadin.com> | 2012-04-16 14:05:09 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-04-16 14:05:09 +0300 |
commit | e110414f3d1946c2ff313367ea8752aeece3469c (patch) | |
tree | da4f802317c1de6181217a4a282ca1a47df92345 /src | |
parent | 129849db1fdfeafde7d1cf734f48e96bf36d7492 (diff) | |
download | vaadin-framework-e110414f3d1946c2ff313367ea8752aeece3469c.tar.gz vaadin-framework-e110414f3d1946c2ff313367ea8752aeece3469c.zip |
Reformatted all source files
Diffstat (limited to 'src')
17 files changed, 16 insertions, 25 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java b/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java index 8ab5590700..e5d2fc14cc 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java @@ -151,14 +151,16 @@ public abstract class AbstractComponentConnector extends AbstractConnector if (newWidth.endsWith("%") != lastKnownWidth.endsWith("%")) { ComponentContainerConnector parent = getParent(); if (parent instanceof ManagedLayout) { - getLayoutManager().setNeedsHorizontalLayout((ManagedLayout) parent); + getLayoutManager().setNeedsHorizontalLayout( + (ManagedLayout) parent); } } if (newHeight.endsWith("%") != lastKnownHeight.endsWith("%")) { ComponentContainerConnector parent = getParent(); if (parent instanceof ManagedLayout) { - getLayoutManager().setNeedsVerticalLayout((ManagedLayout) parent); + getLayoutManager().setNeedsVerticalLayout( + (ManagedLayout) parent); } } diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/AbstractLayoutConnector.java index ec9d60d0a0..175e67807f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/AbstractLayoutConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/AbstractLayoutConnector.java @@ -3,7 +3,6 @@ */ package com.vaadin.terminal.gwt.client.ui; - public abstract class AbstractLayoutConnector extends AbstractComponentContainerConnector { diff --git a/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java index 98ac83147c..5e8f01258f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java @@ -3,7 +3,6 @@ */ package com.vaadin.terminal.gwt.client.ui.customlayout; - import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.Widget; diff --git a/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VHorizontalLayout.java b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VHorizontalLayout.java index 4520f2be55..5bf377642e 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VHorizontalLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VHorizontalLayout.java @@ -3,7 +3,6 @@ */ package com.vaadin.terminal.gwt.client.ui.orderedlayout; - public class VHorizontalLayout extends VMeasuringOrderedLayout { public static final String CLASSNAME = "v-horizontallayout"; diff --git a/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VVerticalLayout.java b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VVerticalLayout.java index ba5f24fd67..e44c576941 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VVerticalLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VVerticalLayout.java @@ -3,7 +3,6 @@ */ package com.vaadin.terminal.gwt.client.ui.orderedlayout; - public class VVerticalLayout extends VMeasuringOrderedLayout { public static final String CLASSNAME = "v-verticallayout"; diff --git a/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelHorizontal.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelHorizontal.java index e19bc6418b..9048a59d7d 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelHorizontal.java +++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelHorizontal.java @@ -4,7 +4,6 @@ package com.vaadin.terminal.gwt.client.ui.splitpanel; - public class VSplitPanelHorizontal extends VAbstractSplitPanel { public VSplitPanelHorizontal() { diff --git a/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelVertical.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelVertical.java index 0fcb638630..d22ebed5d9 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelVertical.java +++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelVertical.java @@ -4,7 +4,6 @@ package com.vaadin.terminal.gwt.client.ui.splitpanel; - public class VSplitPanelVertical extends VAbstractSplitPanel { public VSplitPanelVertical() { diff --git a/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java b/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java index d84b8f01e0..f16ee3463f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java @@ -291,8 +291,8 @@ public class TableConnector extends AbstractComponentContainerConnector getLayoutManager().setNeedsMeasure(TableConnector.this); getLayoutManager().setNeedsMeasure( TableConnector.this.getParent()); - getLayoutManager() - .setNeedsVerticalLayout(TableConnector.this); + getLayoutManager().setNeedsVerticalLayout( + TableConnector.this); getLayoutManager().layoutNow(); } }); diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/CustomWidgetMapGenerator.java b/src/com/vaadin/terminal/gwt/widgetsetutils/CustomWidgetMapGenerator.java index 809cf073e9..f0d6f0453b 100644 --- a/src/com/vaadin/terminal/gwt/widgetsetutils/CustomWidgetMapGenerator.java +++ b/src/com/vaadin/terminal/gwt/widgetsetutils/CustomWidgetMapGenerator.java @@ -25,7 +25,8 @@ public abstract class CustomWidgetMapGenerator extends WidgetMapGenerator { private Collection<Class<? extends ComponentConnector>> deferredPaintables = new HashSet<Class<? extends ComponentConnector>>(); @Override - protected LoadStyle getLoadStyle(Class<? extends ComponentConnector> connector) { + protected LoadStyle getLoadStyle( + Class<? extends ComponentConnector> connector) { if (eagerPaintables == null) { init(); } diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/EagerWidgetMapGenerator.java b/src/com/vaadin/terminal/gwt/widgetsetutils/EagerWidgetMapGenerator.java index 7a68c1971b..8a1dfee3b5 100644 --- a/src/com/vaadin/terminal/gwt/widgetsetutils/EagerWidgetMapGenerator.java +++ b/src/com/vaadin/terminal/gwt/widgetsetutils/EagerWidgetMapGenerator.java @@ -21,10 +21,10 @@ import com.vaadin.terminal.gwt.client.ui.Connect.LoadStyle; * */ public class EagerWidgetMapGenerator extends WidgetMapGenerator { - - - @Override - protected LoadStyle getLoadStyle(Class<? extends ComponentConnector> connector) { - return LoadStyle.EAGER; + + @Override + protected LoadStyle getLoadStyle( + Class<? extends ComponentConnector> connector) { + return LoadStyle.EAGER; } } diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/LazyWidgetMapGenerator.java b/src/com/vaadin/terminal/gwt/widgetsetutils/LazyWidgetMapGenerator.java index 9d90a5bd0f..729a999a21 100644 --- a/src/com/vaadin/terminal/gwt/widgetsetutils/LazyWidgetMapGenerator.java +++ b/src/com/vaadin/terminal/gwt/widgetsetutils/LazyWidgetMapGenerator.java @@ -6,7 +6,6 @@ package com.vaadin.terminal.gwt.widgetsetutils; import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.ui.Connect.LoadStyle; - /** * WidgetMap generator that builds a widgetset that optimizes the transferred * data. Widgets are loaded only when used if the widgetset is built with this @@ -17,7 +16,8 @@ import com.vaadin.terminal.gwt.client.ui.Connect.LoadStyle; */ public class LazyWidgetMapGenerator extends WidgetMapGenerator { @Override - protected LoadStyle getLoadStyle(Class<? extends ComponentConnector> connector) { + protected LoadStyle getLoadStyle( + Class<? extends ComponentConnector> connector) { return LoadStyle.LAZY; } diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyGenerator.java b/src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyGenerator.java index 3b83edaf25..ad4e513049 100644 --- a/src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyGenerator.java +++ b/src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyGenerator.java @@ -53,8 +53,7 @@ public class RpcProxyGenerator extends Generator { + requestedType.getName().replaceAll("[$.]", "_"); JClassType initializableInterface = typeOracle - .findType(InitializableServerRpc.class - .getCanonicalName()); + .findType(InitializableServerRpc.class.getCanonicalName()); ClassSourceFileComposerFactory composer = new ClassSourceFileComposerFactory( requestedType.getPackage().getName(), generatedClassName); diff --git a/src/com/vaadin/ui/FormLayout.java b/src/com/vaadin/ui/FormLayout.java index 63a973e30d..c0be784a7b 100644 --- a/src/com/vaadin/ui/FormLayout.java +++ b/src/com/vaadin/ui/FormLayout.java @@ -4,7 +4,6 @@ package com.vaadin.ui; - /** * FormLayout is used by {@link Form} to layout fields. It may also be used * separately without {@link Form}. diff --git a/src/com/vaadin/ui/HorizontalLayout.java b/src/com/vaadin/ui/HorizontalLayout.java index 807704e7cf..b9dc1c13ca 100644 --- a/src/com/vaadin/ui/HorizontalLayout.java +++ b/src/com/vaadin/ui/HorizontalLayout.java @@ -3,7 +3,6 @@ */ package com.vaadin.ui; - /** * Horizontal layout * diff --git a/src/com/vaadin/ui/HorizontalSplitPanel.java b/src/com/vaadin/ui/HorizontalSplitPanel.java index 7ea07cc61c..5bd6c8a075 100644 --- a/src/com/vaadin/ui/HorizontalSplitPanel.java +++ b/src/com/vaadin/ui/HorizontalSplitPanel.java @@ -3,7 +3,6 @@ */ package com.vaadin.ui; - /** * A horizontal split panel contains two components and lays them horizontally. * The first component is on the left side. diff --git a/src/com/vaadin/ui/NativeButton.java b/src/com/vaadin/ui/NativeButton.java index f14b448674..6eb4379261 100644 --- a/src/com/vaadin/ui/NativeButton.java +++ b/src/com/vaadin/ui/NativeButton.java @@ -3,7 +3,6 @@ */ package com.vaadin.ui; - @SuppressWarnings("serial") public class NativeButton extends Button { diff --git a/src/com/vaadin/ui/VerticalSplitPanel.java b/src/com/vaadin/ui/VerticalSplitPanel.java index 7c4a523ba4..0630240e9c 100644 --- a/src/com/vaadin/ui/VerticalSplitPanel.java +++ b/src/com/vaadin/ui/VerticalSplitPanel.java @@ -3,7 +3,6 @@ */ package com.vaadin.ui; - /** * A vertical split panel contains two components and lays them vertically. The * first component is above the second component. |