]> source.dussan.org Git - vaadin-framework.git/commitdiff
Reformatted all source files
authorArtur Signell <artur@vaadin.com>
Mon, 16 Apr 2012 11:05:09 +0000 (14:05 +0300)
committerArtur Signell <artur@vaadin.com>
Mon, 16 Apr 2012 11:05:09 +0000 (14:05 +0300)
51 files changed:
src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java
src/com/vaadin/terminal/gwt/client/ui/AbstractLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VHorizontalLayout.java
src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VVerticalLayout.java
src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelHorizontal.java
src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelVertical.java
src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java
src/com/vaadin/terminal/gwt/widgetsetutils/CustomWidgetMapGenerator.java
src/com/vaadin/terminal/gwt/widgetsetutils/EagerWidgetMapGenerator.java
src/com/vaadin/terminal/gwt/widgetsetutils/LazyWidgetMapGenerator.java
src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyGenerator.java
src/com/vaadin/ui/FormLayout.java
src/com/vaadin/ui/HorizontalLayout.java
src/com/vaadin/ui/HorizontalSplitPanel.java
src/com/vaadin/ui/NativeButton.java
src/com/vaadin/ui/VerticalSplitPanel.java
tests/server-side/com/vaadin/data/util/sqlcontainer/DataGenerator.java
tests/server-side/com/vaadin/data/util/sqlcontainer/FreeformQueryUtil.java
tests/server-side/com/vaadin/data/util/sqlcontainer/UtilTest.java
tests/server-side/com/vaadin/data/util/sqlcontainer/connection/MockInitialContextFactory.java
tests/server-side/com/vaadin/tests/server/TestAbstractBeanContainerListeners.java
tests/server-side/com/vaadin/tests/server/TestAbstractInMemoryContainerListeners.java
tests/server-side/com/vaadin/tests/server/TestPropertyFormatter.java
tests/server-side/com/vaadin/tests/server/component/AbstractListenerMethodsTest.java
tests/server-side/com/vaadin/tests/server/component/abstractcomponentcontainer/TestAbstractComponentContainerListeners.java
tests/server-side/com/vaadin/tests/server/component/abstractorderedlayout/TestAbstractOrderedLayoutListeners.java
tests/server-side/com/vaadin/tests/server/component/abstractsplitpanel/TestAbstractSplitPanelListeners.java
tests/server-side/com/vaadin/tests/server/component/table/TableListeners.java
tests/server-side/com/vaadin/tests/server/component/tabsheet/TestTabSheet.java
tests/server-side/com/vaadin/tests/server/component/window/AttachDetachWindow.java
tests/testbench/com/vaadin/tests/TestForChildComponentRendering.java
tests/testbench/com/vaadin/tests/components/LayoutAttachListenerInfo.java
tests/testbench/com/vaadin/tests/components/combobox/ComboBoxTextFieldEventOrder.java
tests/testbench/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java
tests/testbench/com/vaadin/tests/components/form/FormDescription.java
tests/testbench/com/vaadin/tests/components/form/FormWithPropertyFormatterConnected.java
tests/testbench/com/vaadin/tests/components/menubar/MenuBarInSplitPanel.java
tests/testbench/com/vaadin/tests/components/select/TwinColSelectTest.java
tests/testbench/com/vaadin/tests/components/table/LongMultiselect.java
tests/testbench/com/vaadin/tests/components/table/TablePageLengthUpdate.java
tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetIndexOperations.java
tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetTabTheming.java
tests/testbench/com/vaadin/tests/components/textfield/TextChangeListenerChangingNonTextProperties.java
tests/testbench/com/vaadin/tests/components/textfield/TextChangeTimeoutAfterDetach.java
tests/testbench/com/vaadin/tests/components/textfield/TextFieldWithProperty.java
tests/testbench/com/vaadin/tests/components/tree/TreeDragAndDropFromTable.java
tests/testbench/com/vaadin/tests/components/window/SubWindowWithUndefinedHeight.java
tests/testbench/com/vaadin/tests/converter/StringToDoubleConverterWithThreeFractionDigits.java
tests/testbench/com/vaadin/tests/dd/ActiveDragSourceClassName.java
tests/testbench/com/vaadin/tests/dd/DragAndDropFiles.java

index 8ab5590700325ebc245e1f70c41703c5cbbe0fdc..e5d2fc14cc3e103f5c433a5def97db2e7bff99df 100644 (file)
@@ -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);
             }
         }
 
index ec9d60d0a0f9a4d38d0fd2cc1ce28891f50e2d05..175e67807f3b4cb026648bc7b440bfd71e72803c 100644 (file)
@@ -3,7 +3,6 @@
  */
 package com.vaadin.terminal.gwt.client.ui;
 
-
 public abstract class AbstractLayoutConnector extends
         AbstractComponentContainerConnector {
 
index 98ac83147c57ca40a6de00113a8bf4972c40db18..5e8f01258f53eae09c60cc7f17034bd47a1a9f2a 100644 (file)
@@ -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;
index 4520f2be55d6d1f6147ff9268725cd232e3b160a..5bf377642eab020afadd3ba6855e4ff67b666418 100644 (file)
@@ -3,7 +3,6 @@
  */
 package com.vaadin.terminal.gwt.client.ui.orderedlayout;
 
-
 public class VHorizontalLayout extends VMeasuringOrderedLayout {
 
     public static final String CLASSNAME = "v-horizontallayout";
index ba5f24fd67a0d670ec1bc5940c8c8d506ab1e9f4..e44c5769418af9da5adafaa467a9b3af4876228c 100644 (file)
@@ -3,7 +3,6 @@
  */
 package com.vaadin.terminal.gwt.client.ui.orderedlayout;
 
-
 public class VVerticalLayout extends VMeasuringOrderedLayout {
 
     public static final String CLASSNAME = "v-verticallayout";
index e19bc6418b7987ea4cc845a13a04a47b8633e42f..9048a59d7da2f874a3b65492ed269bbc0043924d 100644 (file)
@@ -4,7 +4,6 @@
 
 package com.vaadin.terminal.gwt.client.ui.splitpanel;
 
-
 public class VSplitPanelHorizontal extends VAbstractSplitPanel {
 
     public VSplitPanelHorizontal() {
index 0fcb63863005eb8ed7712ef65431bca6104258b8..d22ebed5d985bb10e4880f6e91c6ace11462251a 100644 (file)
@@ -4,7 +4,6 @@
 
 package com.vaadin.terminal.gwt.client.ui.splitpanel;
 
-
 public class VSplitPanelVertical extends VAbstractSplitPanel {
 
     public VSplitPanelVertical() {
index d84b8f01e00cf31ff523edead69d7f88e3e1ea2f..f16ee3463ffecdbdb38fd140b2423d9221df176e 100644 (file)
@@ -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();
                 }
             });
index 809cf073e99f2fcb7442aae337c146f468b9336e..f0d6f0453b96aeec67d73cced5233a7cc164bb12 100644 (file)
@@ -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();
         }
index 7a68c1971b886ce020b385e298fe3cbb7b728622..8a1dfee3b592281c7f21f69885aa94956a79b1f3 100644 (file)
@@ -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;
     }
 }
index 9d90a5bd0f098d408e0d44633d9ed4d993096935..729a999a21eca3b98376f10757ad6bf5a80e27b3 100644 (file)
@@ -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;
     }
 
index 3b83edaf25a5f53a5e0957b1c468e24f27e28b67..ad4e513049ed49275481d5c22788aa9a4f5c0580 100644 (file)
@@ -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);
index 63a973e30d6f18b0aa2177ebd16942f15965a2e9..c0be784a7b7f4ccb2829541df19c7cc9ff827bf4 100644 (file)
@@ -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}.
index 807704e7cfd7a0ea06222b83b9bf06b02410eeca..b9dc1c13cabf3cb9f9854bc2c81c3c227940ca79 100644 (file)
@@ -3,7 +3,6 @@
  */
 package com.vaadin.ui;
 
-
 /**
  * Horizontal layout
  * 
index 7ea07cc61cf36665a58b68a2a5975ed05146ed3a..5bd6c8a07534ea492cb5cad3b9963ab1070f674a 100644 (file)
@@ -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.
index f14b4486743eec60ae6c68e987631e59ceca05b4..6eb437926116bda580886c0b3c352d4bfe61b0b8 100644 (file)
@@ -3,7 +3,6 @@
  */
 package com.vaadin.ui;
 
-
 @SuppressWarnings("serial")
 public class NativeButton extends Button {
 
index 7c4a523ba431f8bf899f10624df30db1d0d1a933..0630240e9c182273cab4d5981a6d7726f86f37a6 100644 (file)
@@ -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.
index 6fa807b00707ffa785faa6effe1d37f337067bf1..489f780d616a8e831ed6374b2a8c96969ea2a094 100644 (file)
@@ -12,11 +12,12 @@ import com.vaadin.data.util.sqlcontainer.AllTests.DB;
 import com.vaadin.data.util.sqlcontainer.connection.JDBCConnectionPool;
 
 public class DataGenerator {
-       
-       @Test
-       public void testDummy(){
-               // Added dummy test so JUnit will not complain about "No runnable methods".
-       }
+
+    @Test
+    public void testDummy() {
+        // Added dummy test so JUnit will not complain about
+        // "No runnable methods".
+    }
 
     public static void addPeopleToDatabase(JDBCConnectionPool connectionPool)
             throws SQLException {
index 2579a38aa1cee8e765b50ceeeff619e4f43e206e..b0e2a232cafa596ec206999d0b1c3eb462077ca1 100644 (file)
@@ -11,11 +11,12 @@ import com.vaadin.data.util.sqlcontainer.query.generator.filter.QueryBuilder;
 
 public class FreeformQueryUtil {
 
-       @Test
-       public void testDummy(){
-               // Added dummy test so JUnit will not complain about "No runnable methods".
-       }
-       
+    @Test
+    public void testDummy() {
+        // Added dummy test so JUnit will not complain about
+        // "No runnable methods".
+    }
+
     public static StatementHelper getQueryWithFilters(List<Filter> filters,
             int offset, int limit) {
         StatementHelper sh = new StatementHelper();
@@ -30,8 +31,7 @@ public class FreeformQueryUtil {
             query.append(") AS rownum, * FROM \"PEOPLE\"");
 
             if (!filters.isEmpty()) {
-                query.append(QueryBuilder.getWhereStringForFilters(
-                        filters, sh));
+                query.append(QueryBuilder.getWhereStringForFilters(filters, sh));
             }
             query.append(") AS a WHERE a.rownum BETWEEN ").append(offset)
                     .append(" AND ").append(Integer.toString(offset + limit));
@@ -46,8 +46,7 @@ public class FreeformQueryUtil {
             query.append("SELECT * FROM (SELECT x.*, ROWNUM AS "
                     + "\"rownum\" FROM (SELECT * FROM \"PEOPLE\"");
             if (!filters.isEmpty()) {
-                query.append(QueryBuilder.getWhereStringForFilters(
-                        filters, sh));
+                query.append(QueryBuilder.getWhereStringForFilters(filters, sh));
             }
             query.append(") x) WHERE \"rownum\" BETWEEN ? AND ?");
             sh.addParameterValue(offset);
@@ -57,8 +56,7 @@ public class FreeformQueryUtil {
         } else {
             StringBuilder query = new StringBuilder("SELECT * FROM people");
             if (!filters.isEmpty()) {
-                query.append(QueryBuilder.getWhereStringForFilters(
-                        filters, sh));
+                query.append(QueryBuilder.getWhereStringForFilters(filters, sh));
             }
             if (limit != 0 || offset != 0) {
                 query.append(" LIMIT ? OFFSET ?");
index d6a6a72300a1e6f7e7853e14692225289b4095ca..31bdf2b81baf0b9509806dbf4fbbd9be298bd62d 100644 (file)
@@ -21,7 +21,7 @@ public class UtilTest {
     @Test
     public void escapeSQL_severalQuotes_returnsEscapedString() {
         Assert.assertEquals("asdf''ghjk''qwerty",
-                       SQLUtil.escapeSQL("asdf'ghjk'qwerty"));
+                SQLUtil.escapeSQL("asdf'ghjk'qwerty"));
     }
 
     @Test
@@ -32,12 +32,13 @@ public class UtilTest {
     @Test
     public void escapeSQL_multipleDoubleQuotes_returnsEscapedString() {
         Assert.assertEquals("asdf\\\"foo\\\"bar",
-                       SQLUtil.escapeSQL("asdf\"foo\"bar"));
+                SQLUtil.escapeSQL("asdf\"foo\"bar"));
     }
 
     @Test
     public void escapeSQL_backslashes_returnsEscapedString() {
-        Assert.assertEquals("foo\\\\nbar\\\\r", SQLUtil.escapeSQL("foo\\nbar\\r"));
+        Assert.assertEquals("foo\\\\nbar\\\\r",
+                SQLUtil.escapeSQL("foo\\nbar\\r"));
     }
 
     @Test
index 19019eed0bb3102c711d68ae423aaa5819f77dd5..3ee260245a45eae1ace635e59459e20f12a0c672 100644 (file)
@@ -11,11 +11,12 @@ import org.junit.Test;
  */
 public class MockInitialContextFactory implements InitialContextFactory {
     private static Context mockCtx = null;
-    
+
     @Test
-       public void testDummy(){
-               // Added dummy test so JUnit will not complain about "No runnable methods".
-       }
+    public void testDummy() {
+        // Added dummy test so JUnit will not complain about
+        // "No runnable methods".
+    }
 
     public static void setMockContext(Context ctx) {
         mockCtx = ctx;
index d6598a3b6254e0ade3a2f5e283fbfd25d104a3b2..0d8433d1c669f6a85086b4dec37f3295b6d6896e 100644 (file)
@@ -5,7 +5,8 @@ import com.vaadin.data.Container.PropertySetChangeListener;
 import com.vaadin.data.util.BeanItemContainer;
 import com.vaadin.tests.server.component.AbstractListenerMethodsTest;
 
-public class TestAbstractBeanContainerListeners extends AbstractListenerMethodsTest {
+public class TestAbstractBeanContainerListeners extends
+        AbstractListenerMethodsTest {
     public void testPropertySetChangeListenerAddGetRemove() throws Exception {
         testListenerAddGetRemove(BeanItemContainer.class,
                 PropertySetChangeEvent.class, PropertySetChangeListener.class,
index 4be4e3555460f8ac36d8a8ae94ff9da417ba8c80..a8e2a4aa2ade2a632229072264733cee4d926fbd 100644 (file)
@@ -5,7 +5,8 @@ import com.vaadin.data.Container.ItemSetChangeListener;
 import com.vaadin.data.util.IndexedContainer;
 import com.vaadin.tests.server.component.AbstractListenerMethodsTest;
 
-public class TestAbstractInMemoryContainerListeners extends AbstractListenerMethodsTest {
+public class TestAbstractInMemoryContainerListeners extends
+        AbstractListenerMethodsTest {
     public void testItemSetChangeListenerAddGetRemove() throws Exception {
         testListenerAddGetRemove(IndexedContainer.class,
                 ItemSetChangeEvent.class, ItemSetChangeListener.class);
index 91e36b5caa6bb32647de49a3c6717fc59f94e24d..48c60c83c42917a8c9eb7b9da7daf1bde8064ba0 100644 (file)
@@ -27,6 +27,7 @@ public class TestPropertyFormatter extends TestCase {
             return getExpectedClass().newInstance();
         }
     };
+
     @SuppressWarnings("rawtypes")
     private Class expectedClass;
 
@@ -34,36 +35,41 @@ public class TestPropertyFormatter extends TestCase {
     private Class getExpectedClass() {
         return expectedClass;
     }
-    
+
     /**
      * The object passed to format should be same as property's type.
-     * @throws IllegalAccessException 
-     * @throws InstantiationException 
+     * 
+     * @throws IllegalAccessException
+     * @throws InstantiationException
      */
     @Test
     @SuppressWarnings({ "rawtypes" })
-    public void testCorrectTypeForFormat() throws InstantiationException, IllegalAccessException {
-        Class[] testedTypes = new Class[] {Integer.class, Boolean.class, Double.class, String.class, Date.class};
-        Object[] testValues = new Object[] {new Integer(3), Boolean.FALSE, new Double(3.3), "bar", new Date()};
-        
+    public void testCorrectTypeForFormat() throws InstantiationException,
+            IllegalAccessException {
+        Class[] testedTypes = new Class[] { Integer.class, Boolean.class,
+                Double.class, String.class, Date.class };
+        Object[] testValues = new Object[] { new Integer(3), Boolean.FALSE,
+                new Double(3.3), "bar", new Date() };
+
         int i = 0;
         for (Class class1 : testedTypes) {
             expectedClass = class1;
-            
+
             TestFormatter formatter = new TestFormatter();
-            
+
             // Should just return null, without formatting
             Object value = formatter.getValue();
-            
+
             // test with property which value is null
-            formatter.setPropertyDataSource(new ObjectProperty(null, expectedClass));
+            formatter.setPropertyDataSource(new ObjectProperty(null,
+                    expectedClass));
             formatter.getValue(); // calls format
-            
+
             // test with a value
-            formatter.setPropertyDataSource(new ObjectProperty(testValues[i++], expectedClass));
+            formatter.setPropertyDataSource(new ObjectProperty(testValues[i++],
+                    expectedClass));
             formatter.getValue(); // calls format
         }
-        
 
     }
 }
index 355f5167d767b47d321b78b93f8ac1fec481b613..e189ffc77dd3d9b06b44a65d10f41ce27fc76280 100644 (file)
@@ -48,11 +48,14 @@ public abstract class AbstractListenerMethodsTest extends TestCase {
                         System.out.println("package " + packageName + ";");
 
                         System.out.println("import "
-                                + AbstractListenerMethodsTest.class.getName() + ";");
+                                + AbstractListenerMethodsTest.class.getName()
+                                + ";");
                         System.out.println("import " + c.getName() + ";");
-                        System.out.println("public class " + c.getSimpleName()
+                        System.out.println("public class "
+                                + c.getSimpleName()
                                 + "Listeners extends "
-                                + AbstractListenerMethodsTest.class.getSimpleName() + " {");
+                                + AbstractListenerMethodsTest.class
+                                        .getSimpleName() + " {");
                     }
 
                     String listenerClassName = m.getParameterTypes()[0]
index 6a8267f296aabb8154552fb43f3bb953fea557e5..f9f170eb2aa695d6645ecfdb6a9954a58f2a2eab 100644 (file)
@@ -8,7 +8,8 @@ import com.vaadin.ui.ComponentContainer.ComponentDetachListener;
 import com.vaadin.ui.HorizontalLayout;
 import com.vaadin.ui.VerticalLayout;
 
-public class TestAbstractComponentContainerListeners extends AbstractListenerMethodsTest {
+public class TestAbstractComponentContainerListeners extends
+        AbstractListenerMethodsTest {
     public void testComponentDetachListenerAddGetRemove() throws Exception {
         testListenerAddGetRemove(HorizontalLayout.class,
                 ComponentDetachEvent.class, ComponentDetachListener.class);
index 02143a2796b13527230b8888f933073165f0cecf..a0b34aca7863070ea7ae1cc676e89fd219b11358 100644 (file)
@@ -5,7 +5,8 @@ import com.vaadin.event.LayoutEvents.LayoutClickListener;
 import com.vaadin.tests.server.component.AbstractListenerMethodsTest;
 import com.vaadin.ui.VerticalLayout;
 
-public class TestAbstractOrderedLayoutListeners extends AbstractListenerMethodsTest {
+public class TestAbstractOrderedLayoutListeners extends
+        AbstractListenerMethodsTest {
     public void testLayoutClickListenerAddGetRemove() throws Exception {
         testListenerAddGetRemove(VerticalLayout.class, LayoutClickEvent.class,
                 LayoutClickListener.class);
index 5e9556c182ddbc21b70b979f014d0cabe044aecf..2b6cdaa6cc1e514b4fc5780d36ae8ca97b0c9194 100644 (file)
@@ -5,7 +5,8 @@ import com.vaadin.ui.AbstractSplitPanel.SplitterClickEvent;
 import com.vaadin.ui.AbstractSplitPanel.SplitterClickListener;
 import com.vaadin.ui.HorizontalSplitPanel;
 
-public class TestAbstractSplitPanelListeners extends AbstractListenerMethodsTest {
+public class TestAbstractSplitPanelListeners extends
+        AbstractListenerMethodsTest {
     public void testSplitterClickListenerAddGetRemove() throws Exception {
         testListenerAddGetRemove(HorizontalSplitPanel.class,
                 SplitterClickEvent.class, SplitterClickListener.class);
index 6d9c7ed0ebe41ceaeb43b783a7a5994aadc9a193..6cc522f8c796ca51dbb4b883445d3dfbeff9e5b4 100644 (file)
@@ -20,7 +20,8 @@ public class TableListeners extends AbstractListenerMethodsTest {
     }
 
     public void testItemClickListenerAddGetRemove() throws Exception {
-        testListenerAddGetRemove(Table.class, ItemClickEvent.class, ItemClickListener.class);
+        testListenerAddGetRemove(Table.class, ItemClickEvent.class,
+                ItemClickListener.class);
     }
 
     public void testFooterClickListenerAddGetRemove() throws Exception {
index 1832d1bd95b06f29e60f8bf3b9045c0808cefa70..85c88e29bbfd56fe6c3ba834a07b6c592db4f0e9 100644 (file)
@@ -120,5 +120,5 @@ public class TestTabSheet {
         assertEquals(tab2, tabSheet.getTab(1));
         assertEquals(tab3, tabSheet.getTab(2));
     }
-    
+
 }
index a67c7bb387b8a8afc7c999f86c6cfd20513d7fcd..7423ba8669abef77346d7dfa529c76af793811cc 100644 (file)
@@ -206,7 +206,7 @@ public class AttachDetachWindow {
      */
     private void assertAttached(TestContainer win) {
         TestContent testContent = win.getTestContent();
-        
+
         assertTrue("window attach not called", win.attachCalled());
         assertTrue("window content attach not called",
                 testContent.contentAttachCalled);
index eb18f70e2fdaca9f5a0fc6143c3e456116e77638..e90231eefd67c31b1fe39d127b3503626d0aa3da 100644 (file)
@@ -66,7 +66,12 @@ public class TestForChildComponentRendering extends CustomComponent {
         });
         main.addComponent(b);
 
-        b = new Button("remove randomly one component", new Button.ClickListener() { public void buttonClick(ClickEvent event)  { removeRandomComponent();}});
+        b = new Button("remove randomly one component",
+                new Button.ClickListener() {
+                    public void buttonClick(ClickEvent event) {
+                        removeRandomComponent();
+                    }
+                });
         main.addComponent(b);
 
     }
index 671958383f7529327270bbd9bd9ca9c5be19988d..dc07c35f627a8398dd4a9ee2d44edde3ece2da5c 100644 (file)
@@ -84,9 +84,9 @@ public class LayoutAttachListenerInfo extends TestBase {
                 }));
     }
 
-    private void testOrderedLayout(){
+    private void testOrderedLayout() {
         content.removeAllComponents();
-        
+
         final VerticalLayout v = new VerticalLayout();
         v.setWidth("300px");
         v.setHeight("300px");
index d92a1872b88052dc84883777db52777a3f1e3753..6f6e550ab4b6bbe5efb757617244c51b38b3ef58 100644 (file)
@@ -1,4 +1,5 @@
 package com.vaadin.tests.components.combobox;
+
 import java.util.Arrays;
 
 import com.vaadin.data.Property.ValueChangeEvent;
index 39305d5638196a1f9de6cf2f2073b55c4f0910f6..5255b97ffa5e4a8b7a9ac6b601ee1619349561c6 100644 (file)
@@ -37,7 +37,6 @@ public class FormClearDatasourceRepaint extends TestBase {
     @Override
     protected void setup() {
 
-
         final Form form = new Form();
         form.setItemDataSource(new BeanItem<MySecondBean>(new MySecondBean()));
         addComponent(form);
@@ -50,10 +49,10 @@ public class FormClearDatasourceRepaint extends TestBase {
 
         addComponent(new Button("Change data source",
                 new Button.ClickListener() {
-            public void buttonClick(ClickEvent event) {
+                    public void buttonClick(ClickEvent event) {
                         form.setItemDataSource(new BeanItem<MyBean>(
                                 new MyBean()));
-            }
+                    }
                 }));
 
     }
index d05d179ac86a6dd1c57d7e2e35e6c9919447608e..63369413f6da1338daa46ab9537fe3c62ba59a05 100644 (file)
@@ -10,11 +10,11 @@ public class FormDescription extends TestBase {
 
     @Override
     protected void setup() {
-       final Form form = new Form();
-       form.setDescription("Some description");
+        final Form form = new Form();
+        form.setDescription("Some description");
         form.addField("AAAA", new TextField());
-       addComponent(form);
-       
+        addComponent(form);
+
         addComponent(new Button("Toggle description",
                 new Button.ClickListener() {
                     public void buttonClick(ClickEvent event) {
@@ -25,7 +25,6 @@ public class FormDescription extends TestBase {
                         }
                     }
                 }));
-       
 
     }
 
index eba570c4902fe9e0fe7305c36c7ad38e8035a945..b803f8667fe76f3c3fc7f1f0485aadb7de0cc794 100644 (file)
@@ -28,8 +28,8 @@ public class FormWithPropertyFormatterConnected extends TestBase {
                         @Override
                         public Object parse(String formattedValue)
                                 throws Exception {
-                            String str = formattedValue
-                                    .replaceAll("[^0-9.]", "");
+                            String str = formattedValue.replaceAll("[^0-9.]",
+                                    "");
                             if (formattedValue.toLowerCase().contains("months")) {
                                 return Double.parseDouble(str) / 12;
                             }
@@ -40,7 +40,7 @@ public class FormWithPropertyFormatterConnected extends TestBase {
                         public String format(Object value) {
                             Double dValue = (Double) value;
                             if (dValue < 1) {
-                                return ((int)(dValue * 12)) + " months";
+                                return ((int) (dValue * 12)) + " months";
                             }
                             return dValue + " years";
                         }
@@ -51,7 +51,7 @@ public class FormWithPropertyFormatterConnected extends TestBase {
             }
         });
         form2.setItemDataSource(createItem());
-        
+
         addComponent(form2);
         addComponent(new Button("B"));
     }
index e73d31bf044f1e7e908c8205e7fe6480e0b5fba4..2a6f952c0a718437831de2a913110f8865cc1216 100644 (file)
@@ -22,8 +22,8 @@ public class MenuBarInSplitPanel extends AbstractTestCase {
 
     @Override
     public void init() {
-        LegacyWindow mainWindow = new LegacyWindow(
-                "MenuBar in SplitPanel", new HorizontalSplitPanel());
+        LegacyWindow mainWindow = new LegacyWindow("MenuBar in SplitPanel",
+                new HorizontalSplitPanel());
         VerticalLayout left = new VerticalLayout();
         mainWindow.addComponent(left);
         left.setSizeFull();
index fef9c4172dbe43f7ef013a7617f240e3db57d216..031a7e9d3dd5f34dcb2f33dc0ca6fcb0e35dd987 100644 (file)
@@ -32,7 +32,6 @@ public class TwinColSelectTest extends AbstractSelectTestCase<TwinColSelect> {
         }
     };
 
-
     @Override
     protected Class<TwinColSelect> getTestClass() {
         return TwinColSelect.class;
index 4db9b690702e8f8140b2410f25b7327664803068..07925db05c5e830959aaf3c217ea9bed0c7f8052 100644 (file)
@@ -12,23 +12,22 @@ import com.vaadin.ui.VerticalLayout;
 import com.vaadin.ui.Window;
 
 public class LongMultiselect extends TestBase {
-       
+
     private enum ItemProperty {
-        COLUMN1,
-        COLUMN2
+        COLUMN1, COLUMN2
     }
-    
+
     @Override
     protected void setup() {
-       VerticalLayout layout = generateLayout();
-       addComponent(layout);
-       layout.setSizeFull();
+        VerticalLayout layout = generateLayout();
+        addComponent(layout);
+        layout.setSizeFull();
     }
 
-       private VerticalLayout generateLayout() {
-               VerticalLayout layout = new VerticalLayout();
+    private VerticalLayout generateLayout() {
+        VerticalLayout layout = new VerticalLayout();
 
-               final Table table = new Table("Ticket #8264 table");
+        final Table table = new Table("Ticket #8264 table");
         layout.addComponent(table);
         table.setWidth("200px");
         table.setHeight("170px");
@@ -39,17 +38,18 @@ public class LongMultiselect extends TestBase {
         // Create example data
         table.addContainerProperty(ItemProperty.COLUMN1, String.class, null);
         table.addContainerProperty(ItemProperty.COLUMN2, String.class, null);
-        for (int i=1;i<100;i++) {
-            table.addItem(new String[]{"Item " + i, null}, i);
+        for (int i = 1; i < 100; i++) {
+            table.addItem(new String[] { "Item " + i, null }, i);
         }
 
-        //Add action button
+        // Add action button
         layout.addComponent(new Button("Do It", new Button.ClickListener() {
             public void buttonClick(Button.ClickEvent event) {
                 // Set ItemProperty.COLUMN2 for all selected values of table
-                Collection selectedIds = (Collection)table.getValue();
+                Collection selectedIds = (Collection) table.getValue();
                 for (final Object itemId : selectedIds) {
-                    final Property p = table.getItem(itemId).getItemProperty(ItemProperty.COLUMN2);
+                    final Property p = table.getItem(itemId).getItemProperty(
+                            ItemProperty.COLUMN2);
                     if (p.getValue() instanceof String) {
                         p.setValue(null);
                     } else {
@@ -58,17 +58,17 @@ public class LongMultiselect extends TestBase {
                 }
             }
         }));
-        
+
         return layout;
-       }
+    }
 
-       @Override
-       protected String getDescription() {
-               return "Multiselecting 94 rows (from \"item 5\" to \"item 98\") and modifying second column of each row selected (press Do It). This should work (update the 2nd column) and not cause JS exception.";
-       }
+    @Override
+    protected String getDescription() {
+        return "Multiselecting 94 rows (from \"item 5\" to \"item 98\") and modifying second column of each row selected (press Do It). This should work (update the 2nd column) and not cause JS exception.";
+    }
 
-       @Override
-       protected Integer getTicketNumber() {
-               return 8264;
-       }
+    @Override
+    protected Integer getTicketNumber() {
+        return 8264;
+    }
 }
index 2ba1475cc8835410c7a7be4a29354767e84b693c..c7f138ea8f61a2cec2e3bdcac28daf9ca516890c 100644 (file)
@@ -60,7 +60,8 @@ public class TablePageLengthUpdate extends TestBase {
     }
 
     public String getTableHeight() {
-        return "" + (int) table.getHeight() + table.getHeightUnits().getSymbol();
+        return "" + (int) table.getHeight()
+                + table.getHeightUnits().getSymbol();
     }
 
     public void setTableHeight(String height) {
index c10614414473d2a1fe023f23cd243bc48fe704ea..5ae9e699758bed0b62aa1f3c56163771cae10b93 100644 (file)
@@ -14,16 +14,17 @@ public class TabSheetIndexOperations extends TestBase {
     @Override
     protected void setup() {
         final TabSheet tabs = new TabSheet();
-        
+
         // Add some tabs
         tabs.addTab(new Label("Content 1"), "Tab 1", null);
         tabs.addTab(new Label("Content 2"), "Tab 2", null);
         tabs.addTab(new Label("Content 3"), "Tab 3", null);
-        
+
         addComponent(tabs);
-        
-        Button addTab = new Button("Add tab at index 2", new Button.ClickListener() {
-            public void buttonClick(ClickEvent event) {
+
+        Button addTab = new Button("Add tab at index 2",
+                new Button.ClickListener() {
+                    public void buttonClick(ClickEvent event) {
                         tabs.addTab(new Label("Content " + tabCounter),
                                 "Added Tab " + tabCounter, null, 2);
                         tabCounter++;
@@ -37,8 +38,8 @@ public class TabSheetIndexOperations extends TestBase {
                         Tab tab = tabs.getTab(2);
                         tab.setCaption(new StringBuffer(tab.getCaption())
                                 .reverse().toString());
-            }
-        });
+                    }
+                });
         addComponent(setCaption);
 
         Button move = new Button("Move selected tab to index 2",
@@ -49,16 +50,17 @@ public class TabSheetIndexOperations extends TestBase {
                     }
                 });
         addComponent(move);
-        
-        Button getIndex = new Button("Get selected tab index", new Button.ClickListener() {
-            public void buttonClick(ClickEvent event) {
+
+        Button getIndex = new Button("Get selected tab index",
+                new Button.ClickListener() {
+                    public void buttonClick(ClickEvent event) {
                         getMainWindow().showNotification(
                                 "Index: "
                                         + tabs.getTabPosition(tabs.getTab(tabs
                                                 .getSelectedTab())));
-                
-            }
-        });
+
+                    }
+                });
         addComponent(getIndex);
     }
 
index 7d9a65b868395795463b1d00a0d29b30c70942ab..a2c75d6e7909db8c97b201b4b4f01354bd32889e 100644 (file)
@@ -1,4 +1,5 @@
 package com.vaadin.tests.components.tabsheet;
+
 import com.vaadin.tests.components.TestBase;
 import com.vaadin.ui.Label;
 import com.vaadin.ui.TabSheet;
index af380275e323db0500717c7a634fcc221559d736..8a3678ab6209da987c30ecb7f64dfbf4e866e335 100644 (file)
@@ -10,12 +10,12 @@ import com.vaadin.ui.TextField;
 public class TextChangeListenerChangingNonTextProperties extends TestBase {
 
     int index = 0;
-    String[] styles = {"red","green","blue","cyan", "magenta"};
-    
+    String[] styles = { "red", "green", "blue", "cyan", "magenta" };
+
     private String getNextStyle() {
-        return styles[++index%styles.length];
+        return styles[++index % styles.length];
     }
-    
+
     @Override
     protected void setup() {
         final TextField tf2 = new TextField("Updates width") {
@@ -35,7 +35,7 @@ public class TextChangeListenerChangingNonTextProperties extends TestBase {
                 tf2.setStyleName(getNextStyle());
             }
 
-        }) ;
+        });
         tf2.setImmediate(true);
 
         addComponent(tf2);
@@ -50,6 +50,5 @@ public class TextChangeListenerChangingNonTextProperties extends TestBase {
     protected Integer getTicketNumber() {
         return Integer.valueOf(6588);
     }
-    
 
 }
index d1f856f40cd8a8fed9d433bac0c7af7f8b1631b7..2f0c54ee394289e71cb4cce5e57e3dd19a9e638f 100644 (file)
@@ -23,15 +23,15 @@ public class TextChangeTimeoutAfterDetach extends TestBase {
             }
         });
         addComponent(field);
-        
+
         Button detachBtn = new Button("detach field",
                 new Button.ClickListener() {
-            public void buttonClick(ClickEvent event) {
+                    public void buttonClick(ClickEvent event) {
                         removeComponent(field);
                         getLayout().addComponentAsFirst(
                                 new Label("Field detached!"));
-            }
-        });
+                    }
+                });
         addComponent(detachBtn);
     }
 
index 7d0bd12359f8ef4166c34ee2e4ccec302d1ed96e..b753978666b208f6ae19efce56ccbcb9aecb49e8 100644 (file)
@@ -12,23 +12,24 @@ public class TextFieldWithProperty extends TestBase {
 
     @Override
     protected void setup() {
-        
+
         final TextField tf1 = new TextField();
-        
+
         final ObjectProperty<String> op = new ObjectProperty<String>("FOO");
-        
+
         tf1.setPropertyDataSource(op);
 
         addComponent(tf1);
 
-        Button b = new Button("Set BAR to underlaying property (should propagate to UI)");
+        Button b = new Button(
+                "Set BAR to underlaying property (should propagate to UI)");
         b.addListener(new ClickListener() {
             public void buttonClick(ClickEvent event) {
                 op.setValue("BAR");
             }
         });
-        addComponent(b );
-        
+        addComponent(b);
+
     }
 
     @Override
index 1525d43edeb10114d0284c7abee7523b4de185ab..dca2d9662875b923fc20a7c4801c7f3295c846bc 100644 (file)
@@ -115,5 +115,4 @@ public class TreeDragAndDropFromTable extends TestBase {
         return 7687;
     }
 
-
 }
index dbe5eda9af50ddd9b02472f513a85c90de161b90..60f0c598ae2f62f0f488379e191a840d1a318d70 100644 (file)
@@ -33,13 +33,12 @@ public class SubWindowWithUndefinedHeight extends TestBase {
         table.setCaption("tab 2");
         table.setWidth("100%");
         table.setHeight("100%");
-        
+
         final TabSheet tabsheet = new TabSheet();
         tabsheet.addComponent(tabButton);
         tabsheet.addComponent(table);
         tabsheet.addListener(new TabSheet.SelectedTabChangeListener() {
-            public void selectedTabChange(
-                    TabSheet.SelectedTabChangeEvent event) {
+            public void selectedTabChange(TabSheet.SelectedTabChangeEvent event) {
                 if (tabsheet.getSelectedTab() == tabButton) {
                     tabsheet.setSizeUndefined();
                     subwindow.getContent().setSizeUndefined();
index dc5abcb9f6697d5ad4b63d995f621957d55a434e..23c22a7026d4e8a2d1b1759db83c750acf0cbdbb 100644 (file)
@@ -5,7 +5,8 @@ import java.util.Locale;
 
 import com.vaadin.data.util.converter.StringToDoubleConverter;
 
-public class StringToDoubleConverterWithThreeFractionDigits extends StringToDoubleConverter {
+public class StringToDoubleConverterWithThreeFractionDigits extends
+        StringToDoubleConverter {
 
     @Override
     protected NumberFormat getFormat(Locale locale) {
index 889c6bb47b19a33a060a264107b3ecd8855af856..93e99274bb189e7cf2115fb706839976caf58115 100644 (file)
@@ -25,25 +25,26 @@ public class ActiveDragSourceClassName extends TestBase {
 
     protected void setup() {
         TestUtils.injectCSS(getMainWindow(), GREENBOXES + HIDEDRAGSOURCE);
-        
+
         VerticalLayout l = new VerticalLayout();
         l.setWidth("400px");
         l.setHeight("100px");
         DragAndDropWrapper pane = new DragAndDropWrapper(cssLayout);
         pane.setSizeFull();
         l.addComponent(pane);
-        
+
         addComponent(l);
-        
+
         for (int i = 0; i < 4; i++) {
             cssLayout.addComponent(new WrappedLabel("Block"));
         }
-        
+
     }
-    
+
     static int count;
 
-    private CssLayout cssLayout = new CssLayout() {};
+    private CssLayout cssLayout = new CssLayout() {
+    };
 
     class WrappedLabel extends DragAndDropWrapper {
 
index ad23338bbfc77da7f2f6216e5f84bc814254e072..4b4ec75f0ee47b9cc494bf54d1d225d26f5f59dc 100644 (file)
@@ -67,8 +67,7 @@ public class DragAndDropFiles extends TestBase {
                                 return true;
                             }
 
-                            public void onProgress(
-                                    StreamingProgressEvent event) {
+                            public void onProgress(StreamingProgressEvent event) {
                                 System.err.println("Progress"
                                         + event.getBytesReceived());
                             }