summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-05 19:50:56 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-05 19:51:15 +0300
commit7d25670284b11c7c62ba25183f265227cb3dba83 (patch)
treec8e76eb70dd3cdd5cf59a99419635f2188b25c24 /uitest/src/com/vaadin
parent1d0c96de9595c243d88471476d21e5f248be63f7 (diff)
downloadvaadin-framework-7d25670284b11c7c62ba25183f265227cb3dba83.tar.gz
vaadin-framework-7d25670284b11c7c62ba25183f265227cb3dba83.zip
Reformat project
Diffstat (limited to 'uitest/src/com/vaadin')
-rw-r--r--uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java6
-rw-r--r--uitest/src/com/vaadin/tests/CustomLayoutDemo.java7
-rw-r--r--uitest/src/com/vaadin/tests/LayoutDemo.java1
-rw-r--r--uitest/src/com/vaadin/tests/ListenerOrder.java9
-rw-r--r--uitest/src/com/vaadin/tests/ModalWindow.java7
-rw-r--r--uitest/src/com/vaadin/tests/Parameters.java5
-rw-r--r--uitest/src/com/vaadin/tests/RandomLayoutStress.java6
-rw-r--r--uitest/src/com/vaadin/tests/ScrollbarStressTest.java2
-rw-r--r--uitest/src/com/vaadin/tests/TestBench.java7
-rw-r--r--uitest/src/com/vaadin/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java2
-rw-r--r--uitest/src/com/vaadin/tests/TestForStyledUpload.java4
-rw-r--r--uitest/src/com/vaadin/tests/TestForWindowing.java4
-rw-r--r--uitest/src/com/vaadin/tests/TestSetVisibleAndCaching.java4
-rw-r--r--uitest/src/com/vaadin/tests/TestSizeableIncomponents.java2
-rw-r--r--uitest/src/com/vaadin/tests/TestSplitPanel.java1
-rw-r--r--uitest/src/com/vaadin/tests/TreeFilesystem.java5
-rw-r--r--uitest/src/com/vaadin/tests/TreeFilesystemContainer.java5
-rw-r--r--uitest/src/com/vaadin/tests/UsingObjectsInSelect.java7
-rw-r--r--uitest/src/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/combobox/NewItemsESCPress.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java5
-rw-r--r--uitest/src/com/vaadin/tests/components/formlayout/TableInFormLayoutCausesScrolling.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/image/ImageAltText.java1
-rw-r--r--uitest/src/com/vaadin/tests/components/menubar/MenuBarInSplitPanel.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/LayoutResizeTest.java28
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java444
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/VerticalLayoutWidthCalculation.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelWidthOnResize.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/table/Footer.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/table/ScrollCausesRequestLoop.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/table/SortLongTable.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/table/TableExtraScrollbars.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/table/TableHeaderZoom.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/table/TableHeightWhenHidingHeaders.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/table/TableScrollOnFocus.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/table/TableToggleVisibility.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/table/TestCurrentPageFirstItem.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/tabsheet/TabsheetNPE.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/textfield/TextChangeEvents2.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/tree/TreeFiltering.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/tree/TreePerformanceTest.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/tree/TreeScrolling.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/tree/TreeToolTips.java3
-rw-r--r--uitest/src/com/vaadin/tests/components/treetable/DisappearingComponents.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/UriFragmentTest.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/window/SubWindowFocusAndBlurListeners.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/window/WindowScrollingComponentIntoView.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/window/WindowScrollingUp.java2
-rw-r--r--uitest/src/com/vaadin/tests/containers/TestItemSorter.java4
-rw-r--r--uitest/src/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java6
-rw-r--r--uitest/src/com/vaadin/tests/dd/DDTest2.java2
-rw-r--r--uitest/src/com/vaadin/tests/dd/DDTest4.java2
-rw-r--r--uitest/src/com/vaadin/tests/dd/DDTest6.java2
-rw-r--r--uitest/src/com/vaadin/tests/dd/DDTest7.java2
-rw-r--r--uitest/src/com/vaadin/tests/dd/TreeDragStart.java2
-rw-r--r--uitest/src/com/vaadin/tests/integration/PortletSizeInLiferayFreeformLayoutApplication.java3
-rw-r--r--uitest/src/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java2
-rw-r--r--uitest/src/com/vaadin/tests/layouts/GridLayoutCaptions.java2
-rw-r--r--uitest/src/com/vaadin/tests/layouts/GridLayoutExpandRatioModification.java2
-rw-r--r--uitest/src/com/vaadin/tests/layouts/MovingComponentsWhileOldParentInvisible.java8
-rw-r--r--uitest/src/com/vaadin/tests/layouts/TestLayoutClickListeners.java2
-rw-r--r--uitest/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java2
-rw-r--r--uitest/src/com/vaadin/tests/layouts/VerticalLayoutExpandRatioModification.java2
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingBeanValidation.java2
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java2
-rw-r--r--uitest/src/com/vaadin/tests/themes/ButtonsTest.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1225.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1230.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket124.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1245.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1365.java6
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1368.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1397.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1435.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1519.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1572.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1581.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket161.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1632.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1663.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1673.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1710.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1767.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1772.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1775.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1804.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1805.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1806.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1811.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1819.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java4
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1857.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1868.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1869.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1878.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1900.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1916.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1919.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1921.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1923.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1939.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1940.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1966_3.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1969.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1973.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1973_2.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1983.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1986.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1991.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1995.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket20.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2001.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2002.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2009.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2011.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2021.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2023.java5
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2024.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2026.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2029.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2037.java1
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2038.java4
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2040.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2051.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2053.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2061.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2061b.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2061c.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2062.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2090.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2098.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2099.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2103.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2104.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2107.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2119.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2126.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2179.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2180.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2181.java5
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2186.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2204.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2221.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2227OrderedlayoutInTable.java5
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2235.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2240.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2242.java5
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2289.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2292.java5
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2325.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2329.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2341.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2344.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2364.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2398.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2405.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2407.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2415.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2425.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2434.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2998.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket3146.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket34.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket5157.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket6002.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket677.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket8291.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket846.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket932.java2
-rw-r--r--uitest/src/com/vaadin/tests/validation/RequiredErrorMessage.java2
-rw-r--r--uitest/src/com/vaadin/tests/validation/ValidationOfRequiredEmptyFields.java8
175 files changed, 435 insertions, 490 deletions
diff --git a/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java b/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
index 1e963a8cc8..675fa4e319 100644
--- a/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
+++ b/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
@@ -33,8 +33,8 @@ import com.vaadin.Application;
import com.vaadin.server.AbstractUIProvider;
import com.vaadin.server.ApplicationConfiguration;
import com.vaadin.server.LegacyVaadinServlet;
-import com.vaadin.server.VaadinServletSession;
import com.vaadin.server.UIProvider;
+import com.vaadin.server.VaadinServletSession;
import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedHttpServletRequest;
import com.vaadin.server.WrappedRequest;
@@ -113,8 +113,8 @@ public class ApplicationRunnerServlet extends LegacyVaadinServlet {
}
@Override
- protected VaadinServletSession createApplication(
- HttpServletRequest request) throws ServletException {
+ protected VaadinServletSession createApplication(HttpServletRequest request)
+ throws ServletException {
try {
final Class<?> classToRun = getClassToRun();
if (UI.class.isAssignableFrom(classToRun)) {
diff --git a/uitest/src/com/vaadin/tests/CustomLayoutDemo.java b/uitest/src/com/vaadin/tests/CustomLayoutDemo.java
index af80ac0a88..a0fcaf8236 100644
--- a/uitest/src/com/vaadin/tests/CustomLayoutDemo.java
+++ b/uitest/src/com/vaadin/tests/CustomLayoutDemo.java
@@ -16,7 +16,6 @@
package com.vaadin.tests;
-import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -27,9 +26,9 @@ import com.vaadin.ui.Field;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.PasswordField;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.Tree;
+import com.vaadin.ui.UI.LegacyWindow;
/**
* This example demonstrates custom layout. All components created here are
@@ -44,8 +43,8 @@ import com.vaadin.ui.Tree;
* @since 4.0.0
*
*/
-public class CustomLayoutDemo extends com.vaadin.Application
- implements Listener {
+public class CustomLayoutDemo extends com.vaadin.Application implements
+ Listener {
private CustomLayout mainLayout = null;
diff --git a/uitest/src/com/vaadin/tests/LayoutDemo.java b/uitest/src/com/vaadin/tests/LayoutDemo.java
index e4d6683e2a..148e6105a6 100644
--- a/uitest/src/com/vaadin/tests/LayoutDemo.java
+++ b/uitest/src/com/vaadin/tests/LayoutDemo.java
@@ -16,7 +16,6 @@
package com.vaadin.tests;
-import com.vaadin.Application;
import com.vaadin.server.ClassResource;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Component;
diff --git a/uitest/src/com/vaadin/tests/ListenerOrder.java b/uitest/src/com/vaadin/tests/ListenerOrder.java
index dafa142e1d..0806bbcc55 100644
--- a/uitest/src/com/vaadin/tests/ListenerOrder.java
+++ b/uitest/src/com/vaadin/tests/ListenerOrder.java
@@ -3,7 +3,6 @@ package com.vaadin.tests;
import java.util.HashMap;
import java.util.Iterator;
-import com.vaadin.Application;
import com.vaadin.data.Container.ItemSetChangeEvent;
import com.vaadin.data.Container.ItemSetChangeListener;
import com.vaadin.data.Container.PropertySetChangeEvent;
@@ -14,12 +13,12 @@ import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
+import com.vaadin.ui.UI.LegacyWindow;
-public class ListenerOrder extends com.vaadin.Application
- implements Button.ClickListener, PropertySetChangeListener,
- ItemSetChangeListener, ValueChangeListener {
+public class ListenerOrder extends com.vaadin.Application implements
+ Button.ClickListener, PropertySetChangeListener, ItemSetChangeListener,
+ ValueChangeListener {
Button b1;
diff --git a/uitest/src/com/vaadin/tests/ModalWindow.java b/uitest/src/com/vaadin/tests/ModalWindow.java
index 04d6c1eb1d..36bb384ab1 100644
--- a/uitest/src/com/vaadin/tests/ModalWindow.java
+++ b/uitest/src/com/vaadin/tests/ModalWindow.java
@@ -16,13 +16,12 @@
package com.vaadin.tests;
-import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
/**
@@ -35,8 +34,8 @@ import com.vaadin.ui.Window;
* @see com.vaadin.ui.Window
* @see com.vaadin.ui.Label
*/
-public class ModalWindow extends com.vaadin.Application
- implements ClickListener {
+public class ModalWindow extends com.vaadin.Application implements
+ ClickListener {
private Window test;
private Button reopen;
diff --git a/uitest/src/com/vaadin/tests/Parameters.java b/uitest/src/com/vaadin/tests/Parameters.java
index 206a2e77ab..f57c0aece6 100644
--- a/uitest/src/com/vaadin/tests/Parameters.java
+++ b/uitest/src/com/vaadin/tests/Parameters.java
@@ -21,7 +21,6 @@ import java.net.URL;
import java.util.Iterator;
import java.util.Map;
-import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinSession;
@@ -42,8 +41,8 @@ import com.vaadin.ui.VerticalLayout;
*
* @since 3.1.1
*/
-public class Parameters extends com.vaadin.Application
- implements RequestHandler {
+public class Parameters extends com.vaadin.Application implements
+ RequestHandler {
private final Label context = new Label();
diff --git a/uitest/src/com/vaadin/tests/RandomLayoutStress.java b/uitest/src/com/vaadin/tests/RandomLayoutStress.java
index 60db80eb6a..f6a3598bde 100644
--- a/uitest/src/com/vaadin/tests/RandomLayoutStress.java
+++ b/uitest/src/com/vaadin/tests/RandomLayoutStress.java
@@ -18,7 +18,6 @@ package com.vaadin.tests;
import java.util.Random;
-import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Button;
@@ -30,10 +29,10 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import com.vaadin.ui.Link;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
/**
@@ -43,8 +42,7 @@ import com.vaadin.ui.VerticalLayout;
* @author Vaadin Ltd.
*
*/
-public class RandomLayoutStress extends
- com.vaadin.Application {
+public class RandomLayoutStress extends com.vaadin.Application {
private final Random seededRandom = new Random(1);
diff --git a/uitest/src/com/vaadin/tests/ScrollbarStressTest.java b/uitest/src/com/vaadin/tests/ScrollbarStressTest.java
index bce62a65b0..5436166a14 100644
--- a/uitest/src/com/vaadin/tests/ScrollbarStressTest.java
+++ b/uitest/src/com/vaadin/tests/ScrollbarStressTest.java
@@ -10,9 +10,9 @@ import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.OptionGroup;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
import com.vaadin.ui.Window;
diff --git a/uitest/src/com/vaadin/tests/TestBench.java b/uitest/src/com/vaadin/tests/TestBench.java
index 41d7d207cb..14f78ffa48 100644
--- a/uitest/src/com/vaadin/tests/TestBench.java
+++ b/uitest/src/com/vaadin/tests/TestBench.java
@@ -51,8 +51,8 @@ import com.vaadin.ui.VerticalLayout;
* @author Vaadin Ltd.
*
*/
-public class TestBench extends com.vaadin.Application
- implements Property.ValueChangeListener {
+public class TestBench extends com.vaadin.Application implements
+ Property.ValueChangeListener {
// Add here packages which are used for finding testable classes
String[] testablePackages = { "com.vaadin.tests",
@@ -223,8 +223,7 @@ public class TestBench extends com.vaadin.Application
private Component createTestable(Class<?> c) {
try {
- final Application app = (Application) c
- .newInstance();
+ final Application app = (Application) c.newInstance();
app.doInit();
Layout lo = (Layout) app.getMainWindow().getContent();
lo.setParent(null);
diff --git a/uitest/src/com/vaadin/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java b/uitest/src/com/vaadin/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java
index e5998592b7..c3d019231e 100644
--- a/uitest/src/com/vaadin/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java
+++ b/uitest/src/com/vaadin/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java
@@ -19,8 +19,8 @@ package com.vaadin.tests;
import com.vaadin.Application;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
diff --git a/uitest/src/com/vaadin/tests/TestForStyledUpload.java b/uitest/src/com/vaadin/tests/TestForStyledUpload.java
index a534f0ec84..9ead78220e 100644
--- a/uitest/src/com/vaadin/tests/TestForStyledUpload.java
+++ b/uitest/src/com/vaadin/tests/TestForStyledUpload.java
@@ -48,8 +48,8 @@ import com.vaadin.ui.Upload.SucceededEvent;
import com.vaadin.ui.Upload.SucceededListener;
import com.vaadin.ui.VerticalLayout;
-public class TestForStyledUpload extends Application
- implements Upload.FinishedListener, FailedListener, SucceededListener,
+public class TestForStyledUpload extends Application implements
+ Upload.FinishedListener, FailedListener, SucceededListener,
StartedListener {
Layout main = new VerticalLayout();
diff --git a/uitest/src/com/vaadin/tests/TestForWindowing.java b/uitest/src/com/vaadin/tests/TestForWindowing.java
index a59323b97c..2818862def 100644
--- a/uitest/src/com/vaadin/tests/TestForWindowing.java
+++ b/uitest/src/com/vaadin/tests/TestForWindowing.java
@@ -26,9 +26,9 @@ import com.vaadin.ui.CheckBox;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.OptionGroup;
-import com.vaadin.ui.UI;
import com.vaadin.ui.Select;
import com.vaadin.ui.Slider;
+import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
@@ -53,7 +53,7 @@ public class TestForWindowing extends CustomComponent {
public void buttonClick(ClickEvent event) {
Window w = new Window("Testing Window");
- if (((Boolean) asModal.getValue()).booleanValue()) {
+ if (asModal.getValue().booleanValue()) {
w.setModal(true);
}
diff --git a/uitest/src/com/vaadin/tests/TestSetVisibleAndCaching.java b/uitest/src/com/vaadin/tests/TestSetVisibleAndCaching.java
index 2e81daa781..facfe43596 100644
--- a/uitest/src/com/vaadin/tests/TestSetVisibleAndCaching.java
+++ b/uitest/src/com/vaadin/tests/TestSetVisibleAndCaching.java
@@ -16,7 +16,6 @@
package com.vaadin.tests;
-import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
@@ -24,8 +23,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class TestSetVisibleAndCaching extends
- com.vaadin.Application {
+public class TestSetVisibleAndCaching extends com.vaadin.Application {
Panel panelA = new Panel("Panel A");
Panel panelB = new Panel("Panel B");
diff --git a/uitest/src/com/vaadin/tests/TestSizeableIncomponents.java b/uitest/src/com/vaadin/tests/TestSizeableIncomponents.java
index c376b40e24..e7cd25e87c 100644
--- a/uitest/src/com/vaadin/tests/TestSizeableIncomponents.java
+++ b/uitest/src/com/vaadin/tests/TestSizeableIncomponents.java
@@ -37,8 +37,8 @@ import com.vaadin.ui.Embedded;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class TestSizeableIncomponents extends Application {
diff --git a/uitest/src/com/vaadin/tests/TestSplitPanel.java b/uitest/src/com/vaadin/tests/TestSplitPanel.java
index dddef837c7..6b738492e4 100644
--- a/uitest/src/com/vaadin/tests/TestSplitPanel.java
+++ b/uitest/src/com/vaadin/tests/TestSplitPanel.java
@@ -16,7 +16,6 @@
package com.vaadin.tests;
-import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalSplitPanel;
diff --git a/uitest/src/com/vaadin/tests/TreeFilesystem.java b/uitest/src/com/vaadin/tests/TreeFilesystem.java
index 5434bbdd82..db740b4075 100644
--- a/uitest/src/com/vaadin/tests/TreeFilesystem.java
+++ b/uitest/src/com/vaadin/tests/TreeFilesystem.java
@@ -18,7 +18,6 @@ package com.vaadin.tests;
import java.io.File;
-import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.server.VaadinSession;
import com.vaadin.shared.ui.label.ContentMode;
@@ -38,8 +37,8 @@ import com.vaadin.ui.UI.LegacyWindow;
* @since 4.0.0
*
*/
-public class TreeFilesystem extends com.vaadin.Application
- implements Tree.ExpandListener {
+public class TreeFilesystem extends com.vaadin.Application implements
+ Tree.ExpandListener {
// Filesystem explorer panel and it's components
private final Panel explorerPanel = new Panel("Filesystem explorer");
diff --git a/uitest/src/com/vaadin/tests/TreeFilesystemContainer.java b/uitest/src/com/vaadin/tests/TreeFilesystemContainer.java
index 4390b24d4b..2b3133c748 100644
--- a/uitest/src/com/vaadin/tests/TreeFilesystemContainer.java
+++ b/uitest/src/com/vaadin/tests/TreeFilesystemContainer.java
@@ -18,7 +18,6 @@ package com.vaadin.tests;
import java.io.File;
-import com.vaadin.Application;
import com.vaadin.data.util.FilesystemContainer;
import com.vaadin.data.util.FilesystemContainer.FileItem;
import com.vaadin.server.VaadinSession;
@@ -42,8 +41,8 @@ import com.vaadin.ui.VerticalLayout;
* @since 4.0.0
*
*/
-public class TreeFilesystemContainer extends
- com.vaadin.Application implements Listener {
+public class TreeFilesystemContainer extends com.vaadin.Application implements
+ Listener {
// Filesystem explorer panel and it's components
private final Panel explorerPanel = new Panel("Filesystem explorer");
diff --git a/uitest/src/com/vaadin/tests/UsingObjectsInSelect.java b/uitest/src/com/vaadin/tests/UsingObjectsInSelect.java
index 04980b7aac..e1482dabd4 100644
--- a/uitest/src/com/vaadin/tests/UsingObjectsInSelect.java
+++ b/uitest/src/com/vaadin/tests/UsingObjectsInSelect.java
@@ -19,17 +19,16 @@ package com.vaadin.tests;
import java.util.LinkedList;
import java.util.Random;
-import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
+import com.vaadin.ui.UI.LegacyWindow;
-public class UsingObjectsInSelect extends
- com.vaadin.Application implements ValueChangeListener {
+public class UsingObjectsInSelect extends com.vaadin.Application implements
+ ValueChangeListener {
private final Select select = new Select();
private final Label selectedTask = new Label("Selected task",
diff --git a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java
index 4482cf3121..62286a3998 100644
--- a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java
+++ b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java
@@ -12,8 +12,8 @@ import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
@SuppressWarnings("serial")
-public class ComboBoxReapperingOldValue extends Application
- implements ValueChangeListener {
+public class ComboBoxReapperingOldValue extends Application implements
+ ValueChangeListener {
ComboBox cbox1 = new ComboBox();
ComboBox cbox2 = new ComboBox();
diff --git a/uitest/src/com/vaadin/tests/components/combobox/NewItemsESCPress.java b/uitest/src/com/vaadin/tests/components/combobox/NewItemsESCPress.java
index 00e9242a7a..0acb4a3c1d 100644
--- a/uitest/src/com/vaadin/tests/components/combobox/NewItemsESCPress.java
+++ b/uitest/src/com/vaadin/tests/components/combobox/NewItemsESCPress.java
@@ -19,7 +19,7 @@ public class NewItemsESCPress extends TestBase {
box.setNewItemHandler(new NewItemHandler() {
@Override
public void addNewItem(String newItemCaption) {
- String value = (String) addedItems.getValue();
+ String value = addedItems.getValue();
addedItems.setValue(value + newItemCaption + "\n");
box.addItem(newItemCaption);
}
diff --git a/uitest/src/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java b/uitest/src/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java
index 539263a363..ad6b13f6d2 100644
--- a/uitest/src/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java
+++ b/uitest/src/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java
@@ -30,7 +30,7 @@ public class FormClearDatasourceRepaint extends TestBase {
}
public void setValue2(String value) {
- this.value2 = value;
+ value2 = value;
}
}
diff --git a/uitest/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java b/uitest/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java
index 218e3998a6..58be87d3dd 100644
--- a/uitest/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java
+++ b/uitest/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java
@@ -5,12 +5,11 @@ import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.Form;
import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
@SuppressWarnings("serial")
-public class UndefinedWideFormWithRelativeWideFooter extends
- Application {
+public class UndefinedWideFormWithRelativeWideFooter extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/components/formlayout/TableInFormLayoutCausesScrolling.java b/uitest/src/com/vaadin/tests/components/formlayout/TableInFormLayoutCausesScrolling.java
index 360c559086..aa2d371671 100644
--- a/uitest/src/com/vaadin/tests/components/formlayout/TableInFormLayoutCausesScrolling.java
+++ b/uitest/src/com/vaadin/tests/components/formlayout/TableInFormLayoutCausesScrolling.java
@@ -2,9 +2,9 @@ package com.vaadin.tests.components.formlayout;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.FormLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class TableInFormLayoutCausesScrolling extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/components/image/ImageAltText.java b/uitest/src/com/vaadin/tests/components/image/ImageAltText.java
index 6abbc41213..efee376bfe 100644
--- a/uitest/src/com/vaadin/tests/components/image/ImageAltText.java
+++ b/uitest/src/com/vaadin/tests/components/image/ImageAltText.java
@@ -18,6 +18,7 @@ public class ImageAltText extends TestBase {
Button changeAltTexts = new Button("Change alt text",
new Button.ClickListener() {
+ @Override
public void buttonClick(ClickEvent event) {
image.setAlternateText("New alt text!");
}
diff --git a/uitest/src/com/vaadin/tests/components/menubar/MenuBarInSplitPanel.java b/uitest/src/com/vaadin/tests/components/menubar/MenuBarInSplitPanel.java
index 59aebd0bd7..5a59aa6187 100644
--- a/uitest/src/com/vaadin/tests/components/menubar/MenuBarInSplitPanel.java
+++ b/uitest/src/com/vaadin/tests/components/menubar/MenuBarInSplitPanel.java
@@ -4,8 +4,8 @@ import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.Label;
import com.vaadin.ui.MenuBar;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Tree;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class MenuBarInSplitPanel extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/LayoutResizeTest.java b/uitest/src/com/vaadin/tests/components/orderedlayout/LayoutResizeTest.java
index ea3b319c5c..de65e260b6 100644
--- a/uitest/src/com/vaadin/tests/components/orderedlayout/LayoutResizeTest.java
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/LayoutResizeTest.java
@@ -37,16 +37,16 @@ public class LayoutResizeTest extends TestBase {
Button resize = new Button("Resize to 700x400",
new Button.ClickListener() {
- @Override
- public void buttonClick(ClickEvent event) {
- event.getButton()
- .getUI()
- .getPage()
- .getJavaScript()
- .execute(
- "setTimeout(function() {window.resizeTo(700,400)}, 500)");
- }
- });
+ @Override
+ public void buttonClick(ClickEvent event) {
+ event.getButton()
+ .getUI()
+ .getPage()
+ .getJavaScript()
+ .execute(
+ "setTimeout(function() {window.resizeTo(700,400)}, 500)");
+ }
+ });
left.addComponent(resize);
resize = new Button("Resize to 900x600", new Button.ClickListener() {
@@ -54,10 +54,10 @@ public class LayoutResizeTest extends TestBase {
public void buttonClick(ClickEvent event) {
event.getButton()
.getUI()
- .getPage()
- .getJavaScript()
- .execute(
- "setTimeout(function() {window.resizeTo(900,600)}, 500)");
+ .getPage()
+ .getJavaScript()
+ .execute(
+ "setTimeout(function() {window.resizeTo(900,600)}, 500)");
}
});
left.addComponent(resize);
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java b/uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java
index e029e3903a..125dfae37a 100644
--- a/uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java
@@ -25,55 +25,55 @@ import com.vaadin.ui.VerticalLayout;
public class OrderedLayoutCases extends AbstractTestUI {
private static final String[] dimensionValues = { "-1px", "5px", "350px",
- "800px", "100%", "50%" };
+ "800px", "100%", "50%" };
private static class SampleChild extends VerticalLayout {
public SampleChild() {
setStyleName("sampleChild");
addComponent(createSimpleSelector("Child width",
new ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- setWidth(event.getProperty().getValue().toString());
- }
- }, dimensionValues));
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ setWidth(event.getProperty().getValue().toString());
+ }
+ }, dimensionValues));
addComponent(createSimpleSelector("Child height",
new ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- setHeight(event.getProperty().getValue().toString());
- }
- }, dimensionValues));
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ setHeight(event.getProperty().getValue().toString());
+ }
+ }, dimensionValues));
addComponent(createSimpleSelector("Caption",
new ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- String value = event.getProperty().getValue()
- .toString();
- if (value.length() == 0) {
- setCaption(null);
- } else if (value.equals("Long")) {
- setCaption("A rather long caption just to see what happens");
- } else {
- setCaption(value);
- }
- }
- }, "", "Short", "Long"));
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ String value = event.getProperty().getValue()
+ .toString();
+ if (value.length() == 0) {
+ setCaption(null);
+ } else if (value.equals("Long")) {
+ setCaption("A rather long caption just to see what happens");
+ } else {
+ setCaption(value);
+ }
+ }
+ }, "", "Short", "Long"));
addComponent(createSimpleSelector("Expand ratio",
new ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- AbstractOrderedLayout parent = (AbstractOrderedLayout) getParent();
- if (parent == null) {
- return;
- }
- String value = event.getProperty().getValue()
- .toString();
- parent.setExpandRatio(SampleChild.this,
- Float.parseFloat(value));
- }
- }, "0", "1", "2"));
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ AbstractOrderedLayout parent = (AbstractOrderedLayout) getParent();
+ if (parent == null) {
+ return;
+ }
+ String value = event.getProperty().getValue()
+ .toString();
+ parent.setExpandRatio(SampleChild.this,
+ Float.parseFloat(value));
+ }
+ }, "0", "1", "2"));
// Why is Alignment not an enum? Now we have to use reflection just
// to get the different values as hardcoding is never an option! ;)
@@ -86,26 +86,26 @@ public class OrderedLayoutCases extends AbstractTestUI {
}
addComponent(createSimpleSelector("Alignment",
new ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- String value = event.getProperty().getValue()
- .toString();
- AlignmentHandler parent = (AlignmentHandler) getParent();
- if (parent == null) {
- return;
- }
- try {
- Field field = Alignment.class
- .getDeclaredField(value);
- Alignment alignment = (Alignment) field
- .get(null);
- parent.setComponentAlignment(SampleChild.this,
- alignment);
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- }, alignmentValues, "TOP_LEFT")); // Sorry for not using
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ String value = event.getProperty().getValue()
+ .toString();
+ AlignmentHandler parent = (AlignmentHandler) getParent();
+ if (parent == null) {
+ return;
+ }
+ try {
+ Field field = Alignment.class
+ .getDeclaredField(value);
+ Alignment alignment = (Alignment) field
+ .get(null);
+ parent.setComponentAlignment(SampleChild.this,
+ alignment);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+ }, alignmentValues, "TOP_LEFT")); // Sorry for not using
// more reflection magic
// just to find the
// default value...
@@ -119,12 +119,12 @@ public class OrderedLayoutCases extends AbstractTestUI {
@Override
protected void setup(WrappedRequest request) {
TestUtils
- .injectCSS(
- getUI(),
- ".sampleChild, .theLayout {border: 1px solid black;}"
- + ".theLayout > div:first-child {background: aqua;}"
- + ".theLayout > div:first-child + div {background: yellow;}"
- + ".theLayout > div:first-child + div + div {background: lightgrey;}");
+ .injectCSS(
+ getUI(),
+ ".sampleChild, .theLayout {border: 1px solid black;}"
+ + ".theLayout > div:first-child {background: aqua;}"
+ + ".theLayout > div:first-child + div {background: yellow;}"
+ + ".theLayout > div:first-child + div + div {background: lightgrey;}");
currentLayout = new HorizontalLayout();
for (int i = 0; i < 3; i++) {
@@ -136,196 +136,196 @@ public class OrderedLayoutCases extends AbstractTestUI {
sizeBar.addComponent(createSimpleSelector("Layout width",
new ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- currentLayout.setWidth(event.getProperty().getValue()
- .toString());
- }
- }, dimensionValues));
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ currentLayout.setWidth(event.getProperty().getValue()
+ .toString());
+ }
+ }, dimensionValues));
sizeBar.addComponent(createSimpleSelector("Layout height",
new ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- currentLayout.setHeight(event.getProperty().getValue()
- .toString());
- }
- }, dimensionValues));
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ currentLayout.setHeight(event.getProperty().getValue()
+ .toString());
+ }
+ }, dimensionValues));
sizeBar.addComponent(createSimpleSelector("Spacing",
new ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- currentLayout.setSpacing(Boolean.parseBoolean(event
- .getProperty().getValue().toString()));
- }
- }, "false", "true"));
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ currentLayout.setSpacing(Boolean.parseBoolean(event
+ .getProperty().getValue().toString()));
+ }
+ }, "false", "true"));
sizeBar.addComponent(createSimpleSelector("Margin",
new ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- currentLayout.setMargin(Boolean.parseBoolean(event
- .getProperty().getValue().toString()));
- }
- }, "false", "true"));
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ currentLayout.setMargin(Boolean.parseBoolean(event
+ .getProperty().getValue().toString()));
+ }
+ }, "false", "true"));
sizeBar.addComponent(createSimpleSelector("Direction",
new ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- Object value = event.getProperty().getValue();
-
- AbstractOrderedLayout newLayout;
- if (value.equals("Horizontal")) {
- newLayout = new HorizontalLayout();
- } else {
- newLayout = new VerticalLayout();
- }
-
- while (currentLayout.getComponentCount() > 0) {
- newLayout.addComponent(currentLayout
- .getComponent(0));
- }
- newLayout.setStyleName("theLayout");
-
- newLayout.setHeight(currentLayout.getHeight(),
- currentLayout.getHeightUnits());
- newLayout.setWidth(currentLayout.getWidth(),
- currentLayout.getWidthUnits());
-
- newLayout.setMargin(currentLayout.getMargin());
- newLayout.setSpacing(currentLayout.isSpacing());
-
- getLayout().replaceComponent(currentLayout, newLayout);
- getLayout().setExpandRatio(newLayout, 1);
- currentLayout = newLayout;
- }
- }, "Horizontal", "Vertical"));
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ Object value = event.getProperty().getValue();
+
+ AbstractOrderedLayout newLayout;
+ if (value.equals("Horizontal")) {
+ newLayout = new HorizontalLayout();
+ } else {
+ newLayout = new VerticalLayout();
+ }
+
+ while (currentLayout.getComponentCount() > 0) {
+ newLayout.addComponent(currentLayout
+ .getComponent(0));
+ }
+ newLayout.setStyleName("theLayout");
+
+ newLayout.setHeight(currentLayout.getHeight(),
+ currentLayout.getHeightUnits());
+ newLayout.setWidth(currentLayout.getWidth(),
+ currentLayout.getWidthUnits());
+
+ newLayout.setMargin(currentLayout.getMargin());
+ newLayout.setSpacing(currentLayout.isSpacing());
+
+ getLayout().replaceComponent(currentLayout, newLayout);
+ getLayout().setExpandRatio(newLayout, 1);
+ currentLayout = newLayout;
+ }
+ }, "Horizontal", "Vertical"));
HorizontalLayout caseBar = new HorizontalLayout();
caseBar.addComponent(new Button("Undefined without relative",
new ClickListener() {
- @Override
- public void buttonClick(ClickEvent event) {
- resetState();
- setState(sizeBar, 2, 1);
- // width: 350px to middle child
- setChildState(1, 0, 2);
- // middle center allign to middle child
- setChildState(1, 4, 5);
- // long captions to right child
- setChildState(2, 2, 2);
- }
- }));
+ @Override
+ public void buttonClick(ClickEvent event) {
+ resetState();
+ setState(sizeBar, 2, 1);
+ // width: 350px to middle child
+ setChildState(1, 0, 2);
+ // middle center allign to middle child
+ setChildState(1, 4, 5);
+ // long captions to right child
+ setChildState(2, 2, 2);
+ }
+ }));
caseBar.addComponent(new Button("Undefined with relative",
new ClickListener() {
- @Override
- public void buttonClick(ClickEvent event) {
- resetState();
- // width: 100% to middle child
- setChildState(1, 0, 4);
- }
- }));
+ @Override
+ public void buttonClick(ClickEvent event) {
+ resetState();
+ // width: 100% to middle child
+ setChildState(1, 0, 4);
+ }
+ }));
caseBar.addComponent(new Button("Fixed with overflow",
new ClickListener() {
- @Override
- public void buttonClick(ClickEvent event) {
- resetState();
- // layout width: 350px
- setState(sizeBar, 0, 2);
- // layout margin enabled
- setState(sizeBar, 3, 1);
- }
- }));
+ @Override
+ public void buttonClick(ClickEvent event) {
+ resetState();
+ // layout width: 350px
+ setState(sizeBar, 0, 2);
+ // layout margin enabled
+ setState(sizeBar, 3, 1);
+ }
+ }));
caseBar.addComponent(new Button("Fixed with extra space",
new ClickListener() {
- @Override
- public void buttonClick(ClickEvent event) {
- resetState();
- // Layout width: 800px
- setState(sizeBar, 0, 3);
- // layout margin enabled
- setState(sizeBar, 3, 1);
- // width: 350px to middle child
- setChildState(1, 0, 2);
- // short caption for middle child
- setChildState(1, 2, 1);
- // top center align for middle child
- setChildState(1, 4, 2);
- }
- }));
+ @Override
+ public void buttonClick(ClickEvent event) {
+ resetState();
+ // Layout width: 800px
+ setState(sizeBar, 0, 3);
+ // layout margin enabled
+ setState(sizeBar, 3, 1);
+ // width: 350px to middle child
+ setChildState(1, 0, 2);
+ // short caption for middle child
+ setChildState(1, 2, 1);
+ // top center align for middle child
+ setChildState(1, 4, 2);
+ }
+ }));
caseBar.addComponent(new Button("Expand with alignment",
new ClickListener() {
- @Override
- public void buttonClick(ClickEvent event) {
- resetState();
- // Layout width: 800px
- setState(sizeBar, 0, 3);
- // Layout height: 350px
- setState(sizeBar, 1, 2);
- // Expand: 1 to middle child
- setChildState(1, 3, 1);
- // Align bottom left to middle child
- setChildState(1, 4, 6);
- // Long caption to middle child
- setChildState(1, 2, 2);
- }
- }));
+ @Override
+ public void buttonClick(ClickEvent event) {
+ resetState();
+ // Layout width: 800px
+ setState(sizeBar, 0, 3);
+ // Layout height: 350px
+ setState(sizeBar, 1, 2);
+ // Expand: 1 to middle child
+ setChildState(1, 3, 1);
+ // Align bottom left to middle child
+ setChildState(1, 4, 6);
+ // Long caption to middle child
+ setChildState(1, 2, 2);
+ }
+ }));
caseBar.addComponent(new Button("Multiple expands",
new ClickListener() {
- @Override
- public void buttonClick(ClickEvent event) {
- resetState();
- // Layout width: 800px
- setState(sizeBar, 0, 3);
- // Layout height: 350px
- setState(sizeBar, 1, 2);
- // Long caption to left child
- setChildState(0, 2, 2);
- // Width 350px to middle child
- setChildState(1, 0, 2);
- // Apply to left and middle child
- for (int i = 0; i < 2; i++) {
- // Expand: 1
- setChildState(i, 3, 1);
- // Align: middle center
- setChildState(i, 4, 5);
- }
- }
- }));
+ @Override
+ public void buttonClick(ClickEvent event) {
+ resetState();
+ // Layout width: 800px
+ setState(sizeBar, 0, 3);
+ // Layout height: 350px
+ setState(sizeBar, 1, 2);
+ // Long caption to left child
+ setChildState(0, 2, 2);
+ // Width 350px to middle child
+ setChildState(1, 0, 2);
+ // Apply to left and middle child
+ for (int i = 0; i < 2; i++) {
+ // Expand: 1
+ setChildState(i, 3, 1);
+ // Align: middle center
+ setChildState(i, 4, 5);
+ }
+ }
+ }));
caseBar.addComponent(new Button("Fixed + relative height",
new ClickListener() {
- @Override
- public void buttonClick(ClickEvent event) {
- resetState();
- // Layout height: 100%
- setState(sizeBar, 1, 4);
- // Height: 350px to left child
- setChildState(0, 1, 2);
- // Height: 100% to middle child
- setChildState(1, 1, 4);
- // Short caption to middle child
- setChildState(1, 2, 1);
- // Alignment: bottom left to right child
- setChildState(2, 4, 7);
- }
- }));
+ @Override
+ public void buttonClick(ClickEvent event) {
+ resetState();
+ // Layout height: 100%
+ setState(sizeBar, 1, 4);
+ // Height: 350px to left child
+ setChildState(0, 1, 2);
+ // Height: 100% to middle child
+ setChildState(1, 1, 4);
+ // Short caption to middle child
+ setChildState(1, 2, 1);
+ // Alignment: bottom left to right child
+ setChildState(2, 4, 7);
+ }
+ }));
caseBar.addComponent(new Button("Undefined + relative height",
new ClickListener() {
- @Override
- public void buttonClick(ClickEvent event) {
- resetState();
- // Height: 350px to left child
- setChildState(0, 1, 2);
- // Short caption to left child
- setChildState(0, 2, 1);
- // Height: 100% to middle child
- setChildState(1, 1, 4);
- // Alignment: bottom left to right child
- setChildState(2, 4, 7);
- }
- }));
+ @Override
+ public void buttonClick(ClickEvent event) {
+ resetState();
+ // Height: 350px to left child
+ setChildState(0, 1, 2);
+ // Short caption to left child
+ setChildState(0, 2, 1);
+ // Height: 100% to middle child
+ setChildState(1, 1, 4);
+ // Alignment: bottom left to right child
+ setChildState(2, 4, 7);
+ }
+ }));
caseBar.setSpacing(true);
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalLayoutWidthCalculation.java b/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalLayoutWidthCalculation.java
index bc76a0c0ce..60d20ad8be 100644
--- a/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalLayoutWidthCalculation.java
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalLayoutWidthCalculation.java
@@ -4,8 +4,8 @@ import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
diff --git a/uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelWidthOnResize.java b/uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelWidthOnResize.java
index c35838e751..5043af10ac 100644
--- a/uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelWidthOnResize.java
+++ b/uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelWidthOnResize.java
@@ -5,8 +5,8 @@ import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.Button;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.NativeButton;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class SplitPanelWidthOnResize extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/components/table/Footer.java b/uitest/src/com/vaadin/tests/components/table/Footer.java
index 7fd8d3563f..cf6c3b6185 100644
--- a/uitest/src/com/vaadin/tests/components/table/Footer.java
+++ b/uitest/src/com/vaadin/tests/components/table/Footer.java
@@ -52,7 +52,7 @@ public class Footer extends TestBase {
visible.addListener(new Property.ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
- table.setFooterVisible((Boolean) visible.getValue());
+ table.setFooterVisible(visible.getValue());
}
});
diff --git a/uitest/src/com/vaadin/tests/components/table/ScrollCausesRequestLoop.java b/uitest/src/com/vaadin/tests/components/table/ScrollCausesRequestLoop.java
index edd524d657..1ef30ff6b0 100644
--- a/uitest/src/com/vaadin/tests/components/table/ScrollCausesRequestLoop.java
+++ b/uitest/src/com/vaadin/tests/components/table/ScrollCausesRequestLoop.java
@@ -7,8 +7,8 @@ import com.vaadin.data.util.BeanItemContainer;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.tests.util.Person;
import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
public class ScrollCausesRequestLoop extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/components/table/SortLongTable.java b/uitest/src/com/vaadin/tests/components/table/SortLongTable.java
index afc63c0eda..65e60a05a1 100644
--- a/uitest/src/com/vaadin/tests/components/table/SortLongTable.java
+++ b/uitest/src/com/vaadin/tests/components/table/SortLongTable.java
@@ -1,8 +1,8 @@
package com.vaadin.tests.components.table;
import com.vaadin.tests.components.AbstractTestCase;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class SortLongTable extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/components/table/TableExtraScrollbars.java b/uitest/src/com/vaadin/tests/components/table/TableExtraScrollbars.java
index f8fb624c0b..76e05c51d0 100644
--- a/uitest/src/com/vaadin/tests/components/table/TableExtraScrollbars.java
+++ b/uitest/src/com/vaadin/tests/components/table/TableExtraScrollbars.java
@@ -4,8 +4,8 @@ import com.vaadin.data.Container;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.tests.components.AbstractTestCase;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class TableExtraScrollbars extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/components/table/TableHeaderZoom.java b/uitest/src/com/vaadin/tests/components/table/TableHeaderZoom.java
index 26f8e25d3b..ef26f73f92 100644
--- a/uitest/src/com/vaadin/tests/components/table/TableHeaderZoom.java
+++ b/uitest/src/com/vaadin/tests/components/table/TableHeaderZoom.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.components.table;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.CssLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
public class TableHeaderZoom extends TestBase {
diff --git a/uitest/src/com/vaadin/tests/components/table/TableHeightWhenHidingHeaders.java b/uitest/src/com/vaadin/tests/components/table/TableHeightWhenHidingHeaders.java
index 6bbf06635a..2ed9ed4599 100644
--- a/uitest/src/com/vaadin/tests/components/table/TableHeightWhenHidingHeaders.java
+++ b/uitest/src/com/vaadin/tests/components/table/TableHeightWhenHidingHeaders.java
@@ -4,8 +4,8 @@ import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.CheckBox;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
/**
* Setting table height and setting column header mode as hidden leaves the body
diff --git a/uitest/src/com/vaadin/tests/components/table/TableScrollOnFocus.java b/uitest/src/com/vaadin/tests/components/table/TableScrollOnFocus.java
index 4782ca94f7..bfbc4f82c1 100644
--- a/uitest/src/com/vaadin/tests/components/table/TableScrollOnFocus.java
+++ b/uitest/src/com/vaadin/tests/components/table/TableScrollOnFocus.java
@@ -16,7 +16,7 @@ public class TableScrollOnFocus extends TestBase {
chkSelectable.addListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
- table.setSelectable((Boolean) chkSelectable.getValue());
+ table.setSelectable(chkSelectable.getValue());
}
});
diff --git a/uitest/src/com/vaadin/tests/components/table/TableToggleVisibility.java b/uitest/src/com/vaadin/tests/components/table/TableToggleVisibility.java
index 9ca2605cd9..7df73a6b4c 100644
--- a/uitest/src/com/vaadin/tests/components/table/TableToggleVisibility.java
+++ b/uitest/src/com/vaadin/tests/components/table/TableToggleVisibility.java
@@ -7,8 +7,8 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class TableToggleVisibility extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/components/table/TestCurrentPageFirstItem.java b/uitest/src/com/vaadin/tests/components/table/TestCurrentPageFirstItem.java
index c563312efa..8244835df7 100644
--- a/uitest/src/com/vaadin/tests/components/table/TestCurrentPageFirstItem.java
+++ b/uitest/src/com/vaadin/tests/components/table/TestCurrentPageFirstItem.java
@@ -7,10 +7,8 @@ import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Table;
-import com.vaadin.ui.VerticalLayout;
public class TestCurrentPageFirstItem extends TestBase implements ClickListener {
diff --git a/uitest/src/com/vaadin/tests/components/tabsheet/TabsheetNPE.java b/uitest/src/com/vaadin/tests/components/tabsheet/TabsheetNPE.java
index 1934649902..eb47003d03 100644
--- a/uitest/src/com/vaadin/tests/components/tabsheet/TabsheetNPE.java
+++ b/uitest/src/com/vaadin/tests/components/tabsheet/TabsheetNPE.java
@@ -5,9 +5,9 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TabSheet.Tab;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class TabsheetNPE extends AbstractTestCase implements ClickListener {
diff --git a/uitest/src/com/vaadin/tests/components/textfield/TextChangeEvents2.java b/uitest/src/com/vaadin/tests/components/textfield/TextChangeEvents2.java
index 363e9d448d..538589808d 100644
--- a/uitest/src/com/vaadin/tests/components/textfield/TextChangeEvents2.java
+++ b/uitest/src/com/vaadin/tests/components/textfield/TextChangeEvents2.java
@@ -163,7 +163,7 @@ public class TextChangeEvents2 extends TestBase {
@Override
public void valueChange(ValueChangeEvent event) {
TextField tf = (TextField) event.getProperty();
- String val = (String) tf.getValue();
+ String val = tf.getValue();
if (val != null && val.length() > 4) {
tf.setValue(val.substring(0, 4));
}
diff --git a/uitest/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java b/uitest/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java
index bab39bf656..c32854f6f1 100644
--- a/uitest/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java
+++ b/uitest/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java
@@ -3,9 +3,9 @@ package com.vaadin.tests.components.textfield;
import com.vaadin.Application;
import com.vaadin.ui.Component;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class TextFieldInLayoutInTable extends Application {
diff --git a/uitest/src/com/vaadin/tests/components/tree/TreeFiltering.java b/uitest/src/com/vaadin/tests/components/tree/TreeFiltering.java
index be65a335be..13edf9e37f 100644
--- a/uitest/src/com/vaadin/tests/components/tree/TreeFiltering.java
+++ b/uitest/src/com/vaadin/tests/components/tree/TreeFiltering.java
@@ -49,7 +49,7 @@ public class TreeFiltering extends TestBase {
@Override
public void valueChange(ValueChangeEvent event) {
- cont.setIncludeParentsWhenFiltering((Boolean) ((CheckBox) event
+ cont.setIncludeParentsWhenFiltering(((CheckBox) event
.getProperty()).getValue());
ccTree.markAsDirty();
}
diff --git a/uitest/src/com/vaadin/tests/components/tree/TreePerformanceTest.java b/uitest/src/com/vaadin/tests/components/tree/TreePerformanceTest.java
index 892b7e669a..529a0238c6 100644
--- a/uitest/src/com/vaadin/tests/components/tree/TreePerformanceTest.java
+++ b/uitest/src/com/vaadin/tests/components/tree/TreePerformanceTest.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.components.tree;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.Layout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Tree;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class TreePerformanceTest extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/components/tree/TreeScrolling.java b/uitest/src/com/vaadin/tests/components/tree/TreeScrolling.java
index 70c2d5d433..737712dd52 100644
--- a/uitest/src/com/vaadin/tests/components/tree/TreeScrolling.java
+++ b/uitest/src/com/vaadin/tests/components/tree/TreeScrolling.java
@@ -2,9 +2,9 @@ package com.vaadin.tests.components.tree;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.RichTextArea;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.Tree;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class TreeScrolling extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/components/tree/TreeToolTips.java b/uitest/src/com/vaadin/tests/components/tree/TreeToolTips.java
index 4b892c2150..59e3fec1f9 100644
--- a/uitest/src/com/vaadin/tests/components/tree/TreeToolTips.java
+++ b/uitest/src/com/vaadin/tests/components/tree/TreeToolTips.java
@@ -20,8 +20,9 @@ public class TreeToolTips extends TestBase {
}
});
- for (Object rootItems : tree.rootItemIds())
+ for (Object rootItems : tree.rootItemIds()) {
tree.expandItemsRecursively(rootItems);
+ }
addComponent(tree);
}
diff --git a/uitest/src/com/vaadin/tests/components/treetable/DisappearingComponents.java b/uitest/src/com/vaadin/tests/components/treetable/DisappearingComponents.java
index d9f6dcc2ac..d06dd1ec0a 100644
--- a/uitest/src/com/vaadin/tests/components/treetable/DisappearingComponents.java
+++ b/uitest/src/com/vaadin/tests/components/treetable/DisappearingComponents.java
@@ -3,8 +3,8 @@ package com.vaadin.tests.components.treetable;
import com.vaadin.server.ExternalResource;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.Link;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TreeTable;
+import com.vaadin.ui.UI.LegacyWindow;
public class DisappearingComponents extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java b/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java
index a3ca2420f7..5278fb0073 100644
--- a/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java
+++ b/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java
@@ -20,8 +20,8 @@ public class LazyInitUIs extends AbstractTestUIProvider {
}
@Override
- public UI createInstance(VaadinSession application, Class<? extends UI> type,
- WrappedRequest request) {
+ public UI createInstance(VaadinSession application,
+ Class<? extends UI> type, WrappedRequest request) {
return getUI(request);
}
diff --git a/uitest/src/com/vaadin/tests/components/ui/UriFragmentTest.java b/uitest/src/com/vaadin/tests/components/ui/UriFragmentTest.java
index b64770408b..591a045e1d 100644
--- a/uitest/src/com/vaadin/tests/components/ui/UriFragmentTest.java
+++ b/uitest/src/com/vaadin/tests/components/ui/UriFragmentTest.java
@@ -1,8 +1,8 @@
package com.vaadin.tests.components.ui;
import com.vaadin.server.Page;
-import com.vaadin.server.WrappedRequest;
import com.vaadin.server.Page.FragmentChangedEvent;
+import com.vaadin.server.WrappedRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
diff --git a/uitest/src/com/vaadin/tests/components/window/SubWindowFocusAndBlurListeners.java b/uitest/src/com/vaadin/tests/components/window/SubWindowFocusAndBlurListeners.java
index 273d48514c..bb247ee065 100644
--- a/uitest/src/com/vaadin/tests/components/window/SubWindowFocusAndBlurListeners.java
+++ b/uitest/src/com/vaadin/tests/components/window/SubWindowFocusAndBlurListeners.java
@@ -11,8 +11,8 @@ import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Notification;
-import com.vaadin.ui.UI;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI;
import com.vaadin.ui.Window;
public class SubWindowFocusAndBlurListeners extends TestBase {
diff --git a/uitest/src/com/vaadin/tests/components/window/WindowScrollingComponentIntoView.java b/uitest/src/com/vaadin/tests/components/window/WindowScrollingComponentIntoView.java
index 033de48446..c1e9367dc7 100644
--- a/uitest/src/com/vaadin/tests/components/window/WindowScrollingComponentIntoView.java
+++ b/uitest/src/com/vaadin/tests/components/window/WindowScrollingComponentIntoView.java
@@ -8,8 +8,8 @@ import com.vaadin.ui.Component;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
diff --git a/uitest/src/com/vaadin/tests/components/window/WindowScrollingUp.java b/uitest/src/com/vaadin/tests/components/window/WindowScrollingUp.java
index 5f55ad8cf3..2d2e9eec48 100644
--- a/uitest/src/com/vaadin/tests/components/window/WindowScrollingUp.java
+++ b/uitest/src/com/vaadin/tests/components/window/WindowScrollingUp.java
@@ -3,8 +3,8 @@ package com.vaadin.tests.components.window;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
public class WindowScrollingUp extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/containers/TestItemSorter.java b/uitest/src/com/vaadin/tests/containers/TestItemSorter.java
index 46c4e004c1..2e217fd961 100644
--- a/uitest/src/com/vaadin/tests/containers/TestItemSorter.java
+++ b/uitest/src/com/vaadin/tests/containers/TestItemSorter.java
@@ -30,8 +30,8 @@ public class TestItemSorter extends TestBase {
@Override
public int compare(Object o1, Object o2) {
if (o1 instanceof CheckBox && o2 instanceof CheckBox) {
- Boolean b1 = (Boolean) ((CheckBox) o1).getValue();
- return b1.compareTo((Boolean) ((CheckBox) o2).getValue());
+ Boolean b1 = ((CheckBox) o1).getValue();
+ return b1.compareTo(((CheckBox) o2).getValue());
} else if (o1 instanceof Button && o2 instanceof Button) {
String caption1 = ((Button) o1).getCaption().toLowerCase();
String caption2 = ((Button) o2).getCaption().toLowerCase();
diff --git a/uitest/src/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java b/uitest/src/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java
index 3af415217c..349be5991c 100644
--- a/uitest/src/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java
+++ b/uitest/src/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java
@@ -12,11 +12,11 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Form;
import com.vaadin.ui.HorizontalSplitPanel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
-public class CheckboxUpdateProblem extends Application
- implements Property.ValueChangeListener {
+public class CheckboxUpdateProblem extends Application implements
+ Property.ValueChangeListener {
private final DatabaseHelper databaseHelper = new DatabaseHelper();
private Table testList;
private final HorizontalSplitPanel horizontalSplit = new HorizontalSplitPanel();
diff --git a/uitest/src/com/vaadin/tests/dd/DDTest2.java b/uitest/src/com/vaadin/tests/dd/DDTest2.java
index 7757513fc1..e9fb2910b0 100644
--- a/uitest/src/com/vaadin/tests/dd/DDTest2.java
+++ b/uitest/src/com/vaadin/tests/dd/DDTest2.java
@@ -24,12 +24,12 @@ import com.vaadin.ui.AbstractSelect;
import com.vaadin.ui.AbstractSelect.AbstractSelectTargetDetails;
import com.vaadin.ui.AbstractSelect.AcceptItem;
import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.UI;
import com.vaadin.ui.Table;
import com.vaadin.ui.Table.TableTransferable;
import com.vaadin.ui.Tree;
import com.vaadin.ui.Tree.TargetItemAllowsChildren;
import com.vaadin.ui.Tree.TreeDragMode;
+import com.vaadin.ui.UI;
import com.vaadin.ui.Window;
public class DDTest2 extends TestBase {
diff --git a/uitest/src/com/vaadin/tests/dd/DDTest4.java b/uitest/src/com/vaadin/tests/dd/DDTest4.java
index 044fe1f49a..acd54274da 100644
--- a/uitest/src/com/vaadin/tests/dd/DDTest4.java
+++ b/uitest/src/com/vaadin/tests/dd/DDTest4.java
@@ -16,8 +16,8 @@ import com.vaadin.tests.util.PersonContainer;
import com.vaadin.tests.util.TestUtils;
import com.vaadin.ui.AbstractSelect.AbstractSelectTargetDetails;
import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.UI;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI;
public class DDTest4 extends TestBase {
diff --git a/uitest/src/com/vaadin/tests/dd/DDTest6.java b/uitest/src/com/vaadin/tests/dd/DDTest6.java
index a4c566d75a..5ba6999da4 100644
--- a/uitest/src/com/vaadin/tests/dd/DDTest6.java
+++ b/uitest/src/com/vaadin/tests/dd/DDTest6.java
@@ -27,9 +27,9 @@ import com.vaadin.event.dd.acceptcriteria.Not;
import com.vaadin.event.dd.acceptcriteria.SourceIsTarget;
import com.vaadin.server.Resource;
import com.vaadin.server.StreamResource;
+import com.vaadin.server.StreamResource.StreamSource;
import com.vaadin.server.StreamVariable;
import com.vaadin.server.ThemeResource;
-import com.vaadin.server.StreamResource.StreamSource;
import com.vaadin.shared.MouseEventDetails;
import com.vaadin.tests.components.TestBase;
import com.vaadin.tests.util.TestUtils;
diff --git a/uitest/src/com/vaadin/tests/dd/DDTest7.java b/uitest/src/com/vaadin/tests/dd/DDTest7.java
index 1abf9e379c..3c819ce15c 100644
--- a/uitest/src/com/vaadin/tests/dd/DDTest7.java
+++ b/uitest/src/com/vaadin/tests/dd/DDTest7.java
@@ -16,8 +16,8 @@ import com.vaadin.tests.util.PersonContainer;
import com.vaadin.tests.util.TestUtils;
import com.vaadin.ui.AbstractSelect.AbstractSelectTargetDetails;
import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.UI;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI;
public class DDTest7 extends TestBase {
diff --git a/uitest/src/com/vaadin/tests/dd/TreeDragStart.java b/uitest/src/com/vaadin/tests/dd/TreeDragStart.java
index 27ac8b6586..b86cb361c0 100644
--- a/uitest/src/com/vaadin/tests/dd/TreeDragStart.java
+++ b/uitest/src/com/vaadin/tests/dd/TreeDragStart.java
@@ -50,7 +50,7 @@ public class TreeDragStart extends TestBase {
checkBox.addListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
- if ((Boolean) ((CheckBox) event.getProperty()).getValue()) {
+ if (((CheckBox) event.getProperty()).getValue()) {
tree.setDragMode(TreeDragMode.NODE);
} else {
tree.setDragMode(TreeDragMode.NONE);
diff --git a/uitest/src/com/vaadin/tests/integration/PortletSizeInLiferayFreeformLayoutApplication.java b/uitest/src/com/vaadin/tests/integration/PortletSizeInLiferayFreeformLayoutApplication.java
index abbc819705..8ec3373065 100644
--- a/uitest/src/com/vaadin/tests/integration/PortletSizeInLiferayFreeformLayoutApplication.java
+++ b/uitest/src/com/vaadin/tests/integration/PortletSizeInLiferayFreeformLayoutApplication.java
@@ -11,8 +11,7 @@ import com.vaadin.ui.VerticalLayout;
*
* See ticket #5521.
*/
-public class PortletSizeInLiferayFreeformLayoutApplication extends
- Application {
+public class PortletSizeInLiferayFreeformLayoutApplication extends Application {
@Override
public void init() {
LegacyWindow mainWindow = new LegacyWindow("Portlet5521 Application");
diff --git a/uitest/src/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java b/uitest/src/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java
index b584cdb5cf..fecac38697 100644
--- a/uitest/src/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java
+++ b/uitest/src/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java
@@ -4,8 +4,8 @@ import com.vaadin.server.Sizeable;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class ComplexGLColumnExpansionWithColSpan extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/layouts/GridLayoutCaptions.java b/uitest/src/com/vaadin/tests/layouts/GridLayoutCaptions.java
index 9f2715a09b..4e6a4fb02a 100644
--- a/uitest/src/com/vaadin/tests/layouts/GridLayoutCaptions.java
+++ b/uitest/src/com/vaadin/tests/layouts/GridLayoutCaptions.java
@@ -15,8 +15,8 @@ import com.vaadin.ui.Form;
import com.vaadin.ui.FormFieldFactory;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class GridLayoutCaptions extends TestBase {
diff --git a/uitest/src/com/vaadin/tests/layouts/GridLayoutExpandRatioModification.java b/uitest/src/com/vaadin/tests/layouts/GridLayoutExpandRatioModification.java
index acc5f07103..47c445bb86 100644
--- a/uitest/src/com/vaadin/tests/layouts/GridLayoutExpandRatioModification.java
+++ b/uitest/src/com/vaadin/tests/layouts/GridLayoutExpandRatioModification.java
@@ -6,8 +6,8 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class GridLayoutExpandRatioModification extends TestBase implements
diff --git a/uitest/src/com/vaadin/tests/layouts/MovingComponentsWhileOldParentInvisible.java b/uitest/src/com/vaadin/tests/layouts/MovingComponentsWhileOldParentInvisible.java
index 87ce80d4f7..0914726b75 100644
--- a/uitest/src/com/vaadin/tests/layouts/MovingComponentsWhileOldParentInvisible.java
+++ b/uitest/src/com/vaadin/tests/layouts/MovingComponentsWhileOldParentInvisible.java
@@ -75,12 +75,12 @@ public class MovingComponentsWhileOldParentInvisible extends TestBase {
cc.setVisible(!cc.isVisible());
if (!cc.isVisible()) {
getLayout().addComponent(lab);
- lab.setValue(((String) lab.getValue()).replace(
- "inside", "outside"));
+ lab.setValue(lab.getValue().replace("inside",
+ "outside"));
} else {
cc.addComponent(lab);
- lab.setValue(((String) lab.getValue()).replace(
- "outside", "inside"));
+ lab.setValue(lab.getValue().replace("outside",
+ "inside"));
}
}
});
diff --git a/uitest/src/com/vaadin/tests/layouts/TestLayoutClickListeners.java b/uitest/src/com/vaadin/tests/layouts/TestLayoutClickListeners.java
index 44f40a7d78..d1a924e71c 100644
--- a/uitest/src/com/vaadin/tests/layouts/TestLayoutClickListeners.java
+++ b/uitest/src/com/vaadin/tests/layouts/TestLayoutClickListeners.java
@@ -13,9 +13,9 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class TestLayoutClickListeners extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java b/uitest/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java
index 8786ae282c..a5c392765b 100644
--- a/uitest/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java
+++ b/uitest/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.layouts;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.Layout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Tree;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class TreeWithBordersInLayout extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/layouts/VerticalLayoutExpandRatioModification.java b/uitest/src/com/vaadin/tests/layouts/VerticalLayoutExpandRatioModification.java
index ef24150762..48c0222337 100644
--- a/uitest/src/com/vaadin/tests/layouts/VerticalLayoutExpandRatioModification.java
+++ b/uitest/src/com/vaadin/tests/layouts/VerticalLayoutExpandRatioModification.java
@@ -5,8 +5,8 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class VerticalLayoutExpandRatioModification extends TestBase implements
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java
index f9309d87b2..0cb2587082 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java
@@ -47,8 +47,8 @@ public class DifferentFeaturesForDifferentClients extends AbstractUIProvider {
// Must override as default implementation isn't allowed to
// instantiate our non-public classes
@Override
- public UI createInstance(VaadinSession application, Class<? extends UI> type,
- WrappedRequest request) {
+ public UI createInstance(VaadinSession application,
+ Class<? extends UI> type, WrappedRequest request) {
try {
return type.newInstance();
} catch (Exception e) {
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingBeanValidation.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingBeanValidation.java
index 4beb321cd1..ea74baf111 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingBeanValidation.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingBeanValidation.java
@@ -23,8 +23,8 @@ import javax.validation.constraints.Size;
import com.vaadin.data.util.BeanItem;
import com.vaadin.data.validator.BeanValidator;
import com.vaadin.server.WrappedRequest;
-import com.vaadin.ui.UI;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI;
/**
* Mini tutorial code for
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java
index cde71d5ac2..19b97078d3 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java
@@ -16,9 +16,9 @@
package com.vaadin.tests.minitutorials.v7a1;
-import com.vaadin.server.WrappedRequest;
import com.vaadin.server.Page.FragmentChangedEvent;
import com.vaadin.server.Page.FragmentChangedListener;
+import com.vaadin.server.WrappedRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
diff --git a/uitest/src/com/vaadin/tests/themes/ButtonsTest.java b/uitest/src/com/vaadin/tests/themes/ButtonsTest.java
index 411dbed340..950fc4b7c2 100644
--- a/uitest/src/com/vaadin/tests/themes/ButtonsTest.java
+++ b/uitest/src/com/vaadin/tests/themes/ButtonsTest.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.themes;
-import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.server.ThemeResource;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1225.java b/uitest/src/com/vaadin/tests/tickets/Ticket1225.java
index 5ea26c882e..c09fd07837 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1225.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1225.java
@@ -5,9 +5,9 @@ import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1230.java b/uitest/src/com/vaadin/tests/tickets/Ticket1230.java
index 69a1e7d20d..145354ed6c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1230.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1230.java
@@ -6,8 +6,8 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.GridLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1230 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket124.java b/uitest/src/com/vaadin/tests/tickets/Ticket124.java
index 6fc67af975..fb2903b3f7 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket124.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket124.java
@@ -7,8 +7,8 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket124 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1245.java b/uitest/src/com/vaadin/tests/tickets/Ticket1245.java
index 0c72d8ecaa..6e5b693196 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1245.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1245.java
@@ -1,14 +1,13 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.Property;
import com.vaadin.ui.AbstractSelect;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.Tree;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.Reindeer;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1365.java b/uitest/src/com/vaadin/tests/tickets/Ticket1365.java
index 80b29fff17..f9572ece07 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1365.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1365.java
@@ -1,15 +1,13 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.event.Action;
import com.vaadin.event.Action.Handler;
import com.vaadin.event.ShortcutAction;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1365 extends com.vaadin.Application
- implements Handler {
+public class Ticket1365 extends com.vaadin.Application implements Handler {
TextField f = new TextField();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1368.java b/uitest/src/com/vaadin/tests/tickets/Ticket1368.java
index 27410af474..39ffd573cd 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1368.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1368.java
@@ -3,8 +3,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.ComboBox;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
/**
*/
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1397.java b/uitest/src/com/vaadin/tests/tickets/Ticket1397.java
index 7cbe2cfd3b..271fc93b38 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1397.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1397.java
@@ -10,9 +10,9 @@ import com.vaadin.ui.InlineDateField;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.PopupView;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1397 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1435.java b/uitest/src/com/vaadin/tests/tickets/Ticket1435.java
index fa6a4d42f7..fb2ab4e767 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1435.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1435.java
@@ -12,8 +12,8 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import com.vaadin.ui.Layout.MarginHandler;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket1435 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1519.java b/uitest/src/com/vaadin/tests/tickets/Ticket1519.java
index cd3bc86677..de77031e91 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1519.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1519.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.CustomLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1519 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1572.java b/uitest/src/com/vaadin/tests/tickets/Ticket1572.java
index adeb4c7a87..65e783ba46 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1572.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1572.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.shared.ui.MarginInfo;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1581.java b/uitest/src/com/vaadin/tests/tickets/Ticket1581.java
index 8766e1135a..e4b4488b46 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1581.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1581.java
@@ -2,7 +2,6 @@ package com.vaadin.tests.tickets;
import java.util.Date;
-import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket161.java b/uitest/src/com/vaadin/tests/tickets/Ticket161.java
index 94eba29551..078a9c74b6 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket161.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket161.java
@@ -5,8 +5,8 @@ import com.vaadin.data.Container;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
/**
*/
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1632.java b/uitest/src/com/vaadin/tests/tickets/Ticket1632.java
index ff50380c42..80bd99284b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1632.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1632.java
@@ -4,8 +4,8 @@ import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
/**
*/
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1663.java b/uitest/src/com/vaadin/tests/tickets/Ticket1663.java
index 7a5c1163b5..e320826035 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1663.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1663.java
@@ -1,9 +1,8 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.server.SystemError;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1663 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1673.java b/uitest/src/com/vaadin/tests/tickets/Ticket1673.java
index c2b7b38435..c65dee9ff6 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1673.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1673.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.server.CustomizedSystemMessages;
import com.vaadin.server.SystemMessages;
import com.vaadin.ui.Button;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1710.java b/uitest/src/com/vaadin/tests/tickets/Ticket1710.java
index 641bd43f70..b8794eb6c7 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1710.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1710.java
@@ -2,7 +2,6 @@ package com.vaadin.tests.tickets;
import java.util.Iterator;
-import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.util.MethodProperty;
@@ -25,8 +24,8 @@ import com.vaadin.ui.Layout;
import com.vaadin.ui.Layout.AlignmentHandler;
import com.vaadin.ui.NativeSelect;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket1710 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1767.java b/uitest/src/com/vaadin/tests/tickets/Ticket1767.java
index 42706a1428..b3179ca7ce 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1767.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1767.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI.LegacyWindow;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1772.java b/uitest/src/com/vaadin/tests/tickets/Ticket1772.java
index a2ddbebad8..c8c160adb2 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1772.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1772.java
@@ -1,11 +1,10 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.GridLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1772 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1775.java b/uitest/src/com/vaadin/tests/tickets/Ticket1775.java
index 80a19720bb..eb67175590 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1775.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1775.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.CustomLayout;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1804.java b/uitest/src/com/vaadin/tests/tickets/Ticket1804.java
index d7c9a45992..631e8e4309 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1804.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1804.java
@@ -3,7 +3,6 @@ package com.vaadin.tests.tickets;
import java.util.Iterator;
import java.util.LinkedList;
-import com.vaadin.Application;
import com.vaadin.data.Validator;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.server.SystemError;
@@ -12,8 +11,8 @@ import com.vaadin.ui.AbstractField;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
public class Ticket1804 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1805.java b/uitest/src/com/vaadin/tests/tickets/Ticket1805.java
index 376173ebf2..b5c4a21461 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1805.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1805.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.Alignment;
@@ -8,8 +7,8 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout.MarginHandler;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1805 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1806.java b/uitest/src/com/vaadin/tests/tickets/Ticket1806.java
index 31746b455d..45915957bf 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1806.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1806.java
@@ -1,11 +1,10 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.data.util.ObjectProperty;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1806 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1811.java b/uitest/src/com/vaadin/tests/tickets/Ticket1811.java
index d68fc8be3d..837f0d787b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1811.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1811.java
@@ -3,15 +3,14 @@ package com.vaadin.tests.tickets;
import java.util.Iterator;
import java.util.LinkedList;
-import com.vaadin.Application;
import com.vaadin.data.Validator;
import com.vaadin.data.validator.StringLengthValidator;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
public class Ticket1811 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1819.java b/uitest/src/com/vaadin/tests/tickets/Ticket1819.java
index 162bfbad2d..fd6e7ccd45 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1819.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1819.java
@@ -3,14 +3,13 @@ package com.vaadin.tests.tickets;
import java.util.Iterator;
import java.util.LinkedList;
-import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.AbstractField;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
public class Ticket1819 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java b/uitest/src/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java
index a929b3a60b..2d2a24d5ac 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
@@ -9,8 +8,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1834PanelScrolling extends
- com.vaadin.Application {
+public class Ticket1834PanelScrolling extends com.vaadin.Application {
private static final int ROWS = 50;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1857.java b/uitest/src/com/vaadin/tests/tickets/Ticket1857.java
index 1b74d3c142..5343caa6ed 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1857.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1857.java
@@ -11,8 +11,7 @@ import com.vaadin.ui.Table;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1857 extends Application implements
- Handler {
+public class Ticket1857 extends Application implements Handler {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1868.java b/uitest/src/com/vaadin/tests/tickets/Ticket1868.java
index b301eb1ea9..932706cd11 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1868.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1868.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1869.java b/uitest/src/com/vaadin/tests/tickets/Ticket1869.java
index f704235178..9d6a7d4213 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1869.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1869.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1878.java b/uitest/src/com/vaadin/tests/tickets/Ticket1878.java
index 3b53023084..9892e534e8 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1878.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1878.java
@@ -23,8 +23,8 @@ import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Layout;
import com.vaadin.ui.Layout.AlignmentHandler;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket1878 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1900.java b/uitest/src/com/vaadin/tests/tickets/Ticket1900.java
index d1bd127500..0160371f5d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1900.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1900.java
@@ -4,8 +4,8 @@ import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Validator;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1900 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1916.java b/uitest/src/com/vaadin/tests/tickets/Ticket1916.java
index 422b6e57d0..428997ea58 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1916.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1916.java
@@ -4,8 +4,8 @@ import com.vaadin.Application;
import com.vaadin.server.UserError;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1916 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1919.java b/uitest/src/com/vaadin/tests/tickets/Ticket1919.java
index ae7f44dc19..8ef57ea2bd 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1919.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1919.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Component;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1921.java b/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
index 33be859fec..3f2529db5f 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
@@ -14,8 +14,7 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1921 extends Application implements
- RequestHandler {
+public class Ticket1921 extends Application implements RequestHandler {
int state = -1;
int round = 1;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1923.java b/uitest/src/com/vaadin/tests/tickets/Ticket1923.java
index 32c4adeff9..0d25168bf8 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1923.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1923.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1939.java b/uitest/src/com/vaadin/tests/tickets/Ticket1939.java
index ee349c79e1..50d01feba5 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1939.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1939.java
@@ -3,8 +3,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket1939 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1940.java b/uitest/src/com/vaadin/tests/tickets/Ticket1940.java
index 5d5b9c4918..1e75b890a2 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1940.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1940.java
@@ -1,8 +1,8 @@
package com.vaadin.tests.tickets;
import com.vaadin.Application;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket1940 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1966_3.java b/uitest/src/com/vaadin/tests/tickets/Ticket1966_3.java
index 577ca463bc..d2bbde9130 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1966_3.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1966_3.java
@@ -6,8 +6,8 @@ import com.vaadin.server.UserError;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket1966_3 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1969.java b/uitest/src/com/vaadin/tests/tickets/Ticket1969.java
index 04cd11ce72..862c4b7f3f 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1969.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1969.java
@@ -1,14 +1,13 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.server.UserError;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket1969 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1973.java b/uitest/src/com/vaadin/tests/tickets/Ticket1973.java
index b91d8dfee3..d628435951 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1973.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1973.java
@@ -1,12 +1,11 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket1973 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1973_2.java b/uitest/src/com/vaadin/tests/tickets/Ticket1973_2.java
index 9ea740b546..91ce9d12e7 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1973_2.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1973_2.java
@@ -5,8 +5,8 @@ import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket1973_2 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1983.java b/uitest/src/com/vaadin/tests/tickets/Ticket1983.java
index 2e38c7c1b1..e083b992e1 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1983.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1983.java
@@ -9,8 +9,8 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.Layout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
/**
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1986.java b/uitest/src/com/vaadin/tests/tickets/Ticket1986.java
index dc452e1664..72efd682f5 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1986.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1986.java
@@ -8,9 +8,9 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.ListSelect;
import com.vaadin.ui.NativeSelect;
import com.vaadin.ui.OptionGroup;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.TwinColSelect;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1986 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1991.java b/uitest/src/com/vaadin/tests/tickets/Ticket1991.java
index ef3b4c73e8..13fbfe07d9 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1991.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1991.java
@@ -1,9 +1,8 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.CheckBox;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1991 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1995.java b/uitest/src/com/vaadin/tests/tickets/Ticket1995.java
index cf628ad806..d25808332d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1995.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1995.java
@@ -7,8 +7,8 @@ import com.vaadin.data.Item;
import com.vaadin.data.util.filter.SimpleStringFilter;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1995 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket20.java b/uitest/src/com/vaadin/tests/tickets/Ticket20.java
index e8ea84c96d..9b1878a856 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket20.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket20.java
@@ -8,8 +8,8 @@ import com.vaadin.data.validator.CompositeValidator.CombinationMode;
import com.vaadin.data.validator.IntegerValidator;
import com.vaadin.ui.Button;
import com.vaadin.ui.CheckBox;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket20 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2001.java b/uitest/src/com/vaadin/tests/tickets/Ticket2001.java
index 447d0e671c..f5b3071bd0 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2001.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2001.java
@@ -24,7 +24,7 @@ public class Ticket2001 extends Application {
b.addListener(new Property.ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
- if ((Boolean) b.getValue()) {
+ if (b.getValue()) {
l.setWidth("30px");
} else {
l.setWidth(null);
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2002.java b/uitest/src/com/vaadin/tests/tickets/Ticket2002.java
index 148d7e67ef..7e0f09b180 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2002.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2002.java
@@ -3,8 +3,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.ui.GridLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2002 extends Application {
private Long long1 = new Long(1L);
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2009.java b/uitest/src/com/vaadin/tests/tickets/Ticket2009.java
index a3517fdf76..f641c507df 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2009.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2009.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.event.ItemClickEvent;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
@@ -9,10 +8,10 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
import com.vaadin.ui.Tree;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2011.java b/uitest/src/com/vaadin/tests/tickets/Ticket2011.java
index 65634de549..f1b11f9ae8 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2011.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2011.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.GridLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2011 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2021.java b/uitest/src/com/vaadin/tests/tickets/Ticket2021.java
index 8ebf41bbe4..51abe19020 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2021.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2021.java
@@ -11,8 +11,8 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import com.vaadin.ui.Layout.MarginHandler;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2021 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2023.java b/uitest/src/com/vaadin/tests/tickets/Ticket2023.java
index a336f18428..a6dd5cc92c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2023.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2023.java
@@ -1,14 +1,13 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2023 extends com.vaadin.Application
- implements Button.ClickListener {
+public class Ticket2023 extends com.vaadin.Application implements
+ Button.ClickListener {
AbstractComponent c = new Button();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2024.java b/uitest/src/com/vaadin/tests/tickets/Ticket2024.java
index 4ef8c2fa89..a761db1c63 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2024.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2024.java
@@ -3,8 +3,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2024 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2026.java b/uitest/src/com/vaadin/tests/tickets/Ticket2026.java
index 9528f2c56b..7ad309e293 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2026.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2026.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.GridLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2026 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2029.java b/uitest/src/com/vaadin/tests/tickets/Ticket2029.java
index bf11aa312a..9c03a2149b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2029.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2029.java
@@ -11,9 +11,9 @@ import com.vaadin.ui.Component;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2029 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2037.java b/uitest/src/com/vaadin/tests/tickets/Ticket2037.java
index f39e6a2845..eee8e087fd 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2037.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2037.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2038.java b/uitest/src/com/vaadin/tests/tickets/Ticket2038.java
index db01fae34f..693ef3a15c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2038.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2038.java
@@ -5,8 +5,8 @@ import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.Notification;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2038 extends Application {
@@ -38,7 +38,7 @@ public class Ticket2038 extends Application {
b.addListener(new Property.ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
- tf.setRequiredError((Boolean) b.getValue() ? "Field must not be empty"
+ tf.setRequiredError(b.getValue() ? "Field must not be empty"
: null);
}
});
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2040.java b/uitest/src/com/vaadin/tests/tickets/Ticket2040.java
index 2c30f666dc..44fa6d0cd5 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2040.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2040.java
@@ -1,12 +1,11 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout.MarginHandler;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2040 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2051.java b/uitest/src/com/vaadin/tests/tickets/Ticket2051.java
index b1c2666808..59bcf71ba2 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2051.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2051.java
@@ -7,9 +7,9 @@ import com.vaadin.ui.Component;
import com.vaadin.ui.DateField;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2051 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2053.java b/uitest/src/com/vaadin/tests/tickets/Ticket2053.java
index 33c1313e20..cd4c09cd13 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2053.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2053.java
@@ -7,8 +7,8 @@ import com.vaadin.server.ExternalResource;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2053 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2061.java b/uitest/src/com/vaadin/tests/tickets/Ticket2061.java
index 54f1d22a45..9d12c11b26 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2061.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2061.java
@@ -8,9 +8,9 @@ import com.vaadin.data.util.HierarchicalContainer;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Component;
import com.vaadin.ui.CustomComponent;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2061 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2061b.java b/uitest/src/com/vaadin/tests/tickets/Ticket2061b.java
index 402b1c195c..e4d253b241 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2061b.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2061b.java
@@ -12,12 +12,12 @@ import com.vaadin.ui.Component;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TabSheet.SelectedTabChangeEvent;
import com.vaadin.ui.TabSheet.SelectedTabChangeListener;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2061c.java b/uitest/src/com/vaadin/tests/tickets/Ticket2061c.java
index 14f1a3b6ea..5673e1d20d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2061c.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2061c.java
@@ -10,11 +10,11 @@ import com.vaadin.ui.Component;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TabSheet.SelectedTabChangeEvent;
import com.vaadin.ui.TabSheet.SelectedTabChangeListener;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2061c extends Application implements
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2062.java b/uitest/src/com/vaadin/tests/tickets/Ticket2062.java
index 24122b7dee..f21a3705e5 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2062.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2062.java
@@ -2,10 +2,10 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.HorizontalSplitPanel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2062 extends Application {
private static final Object P1 = new Object();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2090.java b/uitest/src/com/vaadin/tests/tickets/Ticket2090.java
index 786d922973..9b4bd98935 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2090.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2090.java
@@ -6,8 +6,8 @@ import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.server.UserError;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2090 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2098.java b/uitest/src/com/vaadin/tests/tickets/Ticket2098.java
index a4ba5b0595..4e29311101 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2098.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2098.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2098 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2099.java b/uitest/src/com/vaadin/tests/tickets/Ticket2099.java
index f5e36a1650..58cdd2e819 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2099.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2099.java
@@ -6,8 +6,8 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2103.java b/uitest/src/com/vaadin/tests/tickets/Ticket2103.java
index 7dc7d7bf95..e0ad1cc8af 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2103.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2103.java
@@ -5,8 +5,8 @@ import com.vaadin.data.Item;
import com.vaadin.data.util.HierarchicalContainer;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Component;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2103 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2104.java b/uitest/src/com/vaadin/tests/tickets/Ticket2104.java
index f3fb936c9a..e5e774a5b6 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2104.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2104.java
@@ -11,9 +11,9 @@ import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.Tree;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2104 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2107.java b/uitest/src/com/vaadin/tests/tickets/Ticket2107.java
index c6dd33fdd9..4efb708b1c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2107.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2107.java
@@ -6,8 +6,8 @@ import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Validator;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.Notification;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2107 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2119.java b/uitest/src/com/vaadin/tests/tickets/Ticket2119.java
index 9c02eef318..21003e7a5d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2119.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2119.java
@@ -8,8 +8,8 @@ import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
/**
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2126.java b/uitest/src/com/vaadin/tests/tickets/Ticket2126.java
index 02644d8a67..ee87640213 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2126.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2126.java
@@ -1,13 +1,12 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
/**
*
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2179.java b/uitest/src/com/vaadin/tests/tickets/Ticket2179.java
index 9894baa00b..68a1b8e911 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2179.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2179.java
@@ -4,8 +4,8 @@ import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Validator;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2179 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2180.java b/uitest/src/com/vaadin/tests/tickets/Ticket2180.java
index 4de46eff3a..6bcde60aac 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2180.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2180.java
@@ -3,8 +3,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2180 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2181.java b/uitest/src/com/vaadin/tests/tickets/Ticket2181.java
index cc9fa442c9..175bf7580c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2181.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2181.java
@@ -12,12 +12,11 @@ import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Component;
import com.vaadin.ui.OptionGroup;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2181 extends Application implements
- Button.ClickListener {
+public class Ticket2181 extends Application implements Button.ClickListener {
// private static final Object PROPERTY_VALUE = new Object();
// private static final Object PROPERTY_CAPTION = new Object();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2186.java b/uitest/src/com/vaadin/tests/tickets/Ticket2186.java
index ed1873b9f8..228efd9e6c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2186.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2186.java
@@ -4,8 +4,8 @@ import com.vaadin.Application;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2186 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2204.java b/uitest/src/com/vaadin/tests/tickets/Ticket2204.java
index f7116348fd..f41adc8054 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2204.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2204.java
@@ -26,8 +26,8 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import com.vaadin.ui.Panel;
import com.vaadin.ui.RichTextArea;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2221.java b/uitest/src/com/vaadin/tests/tickets/Ticket2221.java
index 4677995119..d7f45a0fb6 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2221.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2221.java
@@ -9,8 +9,8 @@ import com.vaadin.ui.Component;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Layout;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2221 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2227OrderedlayoutInTable.java b/uitest/src/com/vaadin/tests/tickets/Ticket2227OrderedlayoutInTable.java
index 56bdc7782d..a81e1d14b0 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2227OrderedlayoutInTable.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2227OrderedlayoutInTable.java
@@ -5,12 +5,11 @@ import com.vaadin.data.Item;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2227OrderedlayoutInTable extends
- Application {
+public class Ticket2227OrderedlayoutInTable extends Application {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2235.java b/uitest/src/com/vaadin/tests/tickets/Ticket2235.java
index 9126b9916b..b4ec666335 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2235.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2235.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2235 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2240.java b/uitest/src/com/vaadin/tests/tickets/Ticket2240.java
index 5f9a005af0..34e734a9c3 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2240.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2240.java
@@ -4,8 +4,8 @@ import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2240 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2242.java b/uitest/src/com/vaadin/tests/tickets/Ticket2242.java
index e49920a4d1..76be51a20b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2242.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2242.java
@@ -10,11 +10,10 @@ import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2242 extends Application implements
- ValueChangeListener {
+public class Ticket2242 extends Application implements ValueChangeListener {
private Object tableValue = null;
private Table t;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2289.java b/uitest/src/com/vaadin/tests/tickets/Ticket2289.java
index fc7e5feadf..2be6b14d32 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2289.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2289.java
@@ -7,8 +7,8 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2289 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2292.java b/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
index adafa93a75..839c175866 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
@@ -9,7 +9,6 @@ import java.io.IOException;
import javax.imageio.ImageIO;
-import com.vaadin.Application;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
@@ -22,8 +21,8 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.Link;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2292 extends com.vaadin.Application
- implements RequestHandler {
+public class Ticket2292 extends com.vaadin.Application implements
+ RequestHandler {
@Override
public void init() {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2325.java b/uitest/src/com/vaadin/tests/tickets/Ticket2325.java
index cd8239d542..d6561ccf76 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2325.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2325.java
@@ -1,8 +1,8 @@
package com.vaadin.tests.tickets;
import com.vaadin.Application;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2329.java b/uitest/src/com/vaadin/tests/tickets/Ticket2329.java
index c575aebb32..b966359f4c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2329.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2329.java
@@ -3,9 +3,9 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.Table.ColumnGenerator;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2329 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2341.java b/uitest/src/com/vaadin/tests/tickets/Ticket2341.java
index 3e4d739413..ae804ab47b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2341.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2341.java
@@ -1,11 +1,10 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2341 extends com.vaadin.Application {
@Override
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2344.java b/uitest/src/com/vaadin/tests/tickets/Ticket2344.java
index ffc91c60d7..56ff0351b1 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2344.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2344.java
@@ -4,8 +4,8 @@ import java.util.Random;
import com.vaadin.Application;
import com.vaadin.ui.Button;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.BaseTheme;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2364.java b/uitest/src/com/vaadin/tests/tickets/Ticket2364.java
index e37ed6e782..f9a4e25020 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2364.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2364.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.Form;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2364 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2398.java b/uitest/src/com/vaadin/tests/tickets/Ticket2398.java
index 276006ef5b..f923c055d5 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2398.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2398.java
@@ -3,8 +3,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2398 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2405.java b/uitest/src/com/vaadin/tests/tickets/Ticket2405.java
index e36d3e24a4..805fb30aac 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2405.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2405.java
@@ -9,8 +9,8 @@ import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout.MarginHandler;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2405 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2407.java b/uitest/src/com/vaadin/tests/tickets/Ticket2407.java
index 6f9c3c9ac8..02b26c848d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2407.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2407.java
@@ -1,9 +1,8 @@
package com.vaadin.tests.tickets;
-import com.vaadin.Application;
import com.vaadin.ui.Form;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2407 extends com.vaadin.Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2415.java b/uitest/src/com/vaadin/tests/tickets/Ticket2415.java
index f58fa51b6d..d67607751f 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2415.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2415.java
@@ -3,8 +3,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2415 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2425.java b/uitest/src/com/vaadin/tests/tickets/Ticket2425.java
index 47127c4b55..1872aab484 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2425.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2425.java
@@ -3,8 +3,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2425 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2434.java b/uitest/src/com/vaadin/tests/tickets/Ticket2434.java
index 2c7a26f44f..64b543f74c 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2434.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2434.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2434 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2998.java b/uitest/src/com/vaadin/tests/tickets/Ticket2998.java
index 0646d1bed3..a3bbe4344b 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2998.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2998.java
@@ -23,9 +23,9 @@ import com.vaadin.ui.Layout.MarginHandler;
import com.vaadin.ui.ListSelect;
import com.vaadin.ui.Notification;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
import com.vaadin.ui.themes.Reindeer;
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket3146.java b/uitest/src/com/vaadin/tests/tickets/Ticket3146.java
index f82400a3b7..adc7d92023 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket3146.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket3146.java
@@ -6,9 +6,9 @@ import java.util.HashSet;
import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket3146 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket34.java b/uitest/src/com/vaadin/tests/tickets/Ticket34.java
index da4cf3ce5c..dedaf88dee 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket34.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket34.java
@@ -11,8 +11,8 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket34 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket5157.java b/uitest/src/com/vaadin/tests/tickets/Ticket5157.java
index f169431341..36255a7a57 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket5157.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket5157.java
@@ -5,8 +5,8 @@ import com.vaadin.event.ShortcutAction.KeyCode;
import com.vaadin.event.ShortcutListener;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
/**
* Key codes were converted to lower case on the server (overlapping special key
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket6002.java b/uitest/src/com/vaadin/tests/tickets/Ticket6002.java
index 887652aee7..0d5ee43d41 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket6002.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket6002.java
@@ -5,8 +5,8 @@ import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.util.ObjectProperty;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket6002 extends TestBase {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket677.java b/uitest/src/com/vaadin/tests/tickets/Ticket677.java
index 1d95f3945f..09cc55fb3d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket677.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket677.java
@@ -17,9 +17,9 @@ import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket677 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket8291.java b/uitest/src/com/vaadin/tests/tickets/Ticket8291.java
index 0280db0693..820502afa1 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket8291.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket8291.java
@@ -11,8 +11,8 @@ import com.vaadin.server.WrappedRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.UI;
import com.vaadin.ui.Table;
+import com.vaadin.ui.UI;
/**
* Test for #8291 and #7666: NegativeArraySizeException when Table scrolled to
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket846.java b/uitest/src/com/vaadin/tests/tickets/Ticket846.java
index a8170148a2..903343cec2 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket846.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket846.java
@@ -5,8 +5,8 @@ import com.vaadin.data.util.MethodProperty;
import com.vaadin.data.validator.IntegerValidator;
import com.vaadin.ui.Button;
import com.vaadin.ui.CheckBox;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket846 extends Application {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket932.java b/uitest/src/com/vaadin/tests/tickets/Ticket932.java
index 3c5332ff01..73ef8fbb01 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket932.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket932.java
@@ -4,9 +4,9 @@ import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
public class Ticket932 extends Application {
diff --git a/uitest/src/com/vaadin/tests/validation/RequiredErrorMessage.java b/uitest/src/com/vaadin/tests/validation/RequiredErrorMessage.java
index b63527ad60..f60156281b 100644
--- a/uitest/src/com/vaadin/tests/validation/RequiredErrorMessage.java
+++ b/uitest/src/com/vaadin/tests/validation/RequiredErrorMessage.java
@@ -2,8 +2,8 @@ package com.vaadin.tests.validation;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.Form;
-import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
+import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class RequiredErrorMessage extends AbstractTestCase {
diff --git a/uitest/src/com/vaadin/tests/validation/ValidationOfRequiredEmptyFields.java b/uitest/src/com/vaadin/tests/validation/ValidationOfRequiredEmptyFields.java
index dd1732023b..e70a980d70 100644
--- a/uitest/src/com/vaadin/tests/validation/ValidationOfRequiredEmptyFields.java
+++ b/uitest/src/com/vaadin/tests/validation/ValidationOfRequiredEmptyFields.java
@@ -29,7 +29,7 @@ public class ValidationOfRequiredEmptyFields extends TestBase {
requiredInput.addListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
- tf.setRequired((Boolean) requiredInput.getValue());
+ tf.setRequired(requiredInput.getValue());
}
});
@@ -38,7 +38,7 @@ public class ValidationOfRequiredEmptyFields extends TestBase {
requiredErrorInput.addListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
- tf.setRequiredError((String) requiredErrorInput.getValue());
+ tf.setRequiredError(requiredErrorInput.getValue());
}
});
@@ -48,7 +48,7 @@ public class ValidationOfRequiredEmptyFields extends TestBase {
@Override
public void valueChange(ValueChangeEvent event) {
- if ((Boolean) integerValidatorInput.getValue()) {
+ if (integerValidatorInput.getValue()) {
tf.addValidator(integerValidator);
} else {
tf.removeValidator(integerValidator);
@@ -62,7 +62,7 @@ public class ValidationOfRequiredEmptyFields extends TestBase {
@Override
public void valueChange(ValueChangeEvent event) {
- if ((Boolean) stringLengthValidatorInput.getValue()) {
+ if (stringLengthValidatorInput.getValue()) {
tf.addValidator(stringLengthValidator);
} else {
tf.removeValidator(stringLengthValidator);