diff options
Diffstat (limited to 'tests/testbench/com')
568 files changed, 1585 insertions, 0 deletions
diff --git a/tests/testbench/com/vaadin/launcher/DemoLauncher.java b/tests/testbench/com/vaadin/launcher/DemoLauncher.java index 2b2f73abd6..91cdd343c7 100644 --- a/tests/testbench/com/vaadin/launcher/DemoLauncher.java +++ b/tests/testbench/com/vaadin/launcher/DemoLauncher.java @@ -75,6 +75,7 @@ public class DemoLauncher { * dispatch thread. */ java.awt.EventQueue.invokeLater(new Runnable() { + @Override public void run() { try { openServerControlDialog(url); @@ -125,6 +126,7 @@ public class DemoLauncher { // List for close verify buttons final ActionListener buttonListener = new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { if (e.getSource() == okButton) { System.exit(0); diff --git a/tests/testbench/com/vaadin/tests/Components.java b/tests/testbench/com/vaadin/tests/Components.java index 4352072ccf..b8a007fc1f 100644 --- a/tests/testbench/com/vaadin/tests/Components.java +++ b/tests/testbench/com/vaadin/tests/Components.java @@ -137,6 +137,7 @@ public class Components extends Application.LegacyApplication { naviTree = new Tree(); naviTree.setItemStyleGenerator(new ItemStyleGenerator() { + @Override public String getStyle(Object itemId) { Class<?> cls = (Class<?>) itemId; if (!isAbstract(cls)) { @@ -182,6 +183,7 @@ public class Components extends Application.LegacyApplication { naviTree.addListener(new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { Class<?> cls = (Class<?>) event.getItemId(); if (!isAbstract(cls)) { diff --git a/tests/testbench/com/vaadin/tests/CustomLayoutDemo.java b/tests/testbench/com/vaadin/tests/CustomLayoutDemo.java index 73282cc1fb..1c1adbb80d 100644 --- a/tests/testbench/com/vaadin/tests/CustomLayoutDemo.java +++ b/tests/testbench/com/vaadin/tests/CustomLayoutDemo.java @@ -45,6 +45,7 @@ public class CustomLayoutDemo extends com.vaadin.Application.LegacyApplication private final Button loginButton = new Button("Login", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { loginClicked(); } @@ -131,6 +132,7 @@ public class CustomLayoutDemo extends com.vaadin.Application.LegacyApplication * Handle all menu events. Updates body panel contents if menu item is * clicked. */ + @Override public void componentEvent(Event event) { // Check if event occured at fsTree component if (event.getSource() == menu) { diff --git a/tests/testbench/com/vaadin/tests/FocusingComponents.java b/tests/testbench/com/vaadin/tests/FocusingComponents.java index e74a935830..f63989fafb 100644 --- a/tests/testbench/com/vaadin/tests/FocusingComponents.java +++ b/tests/testbench/com/vaadin/tests/FocusingComponents.java @@ -54,6 +54,7 @@ public class FocusingComponents extends CustomComponent { Button focus = new Button("focus"); focus.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { f.focus(); } diff --git a/tests/testbench/com/vaadin/tests/ListenerOrder.java b/tests/testbench/com/vaadin/tests/ListenerOrder.java index 797561eb00..7f136b10ed 100644 --- a/tests/testbench/com/vaadin/tests/ListenerOrder.java +++ b/tests/testbench/com/vaadin/tests/ListenerOrder.java @@ -59,6 +59,7 @@ public class ListenerOrder extends com.vaadin.Application.LegacyApplication b1.removeListener(b1Listener); // remove non-existing listener b1.removeListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { } }); @@ -107,6 +108,7 @@ public class ListenerOrder extends com.vaadin.Application.LegacyApplication return listener; } + @Override public void buttonClick(ClickEvent event) { System.out.println("ClickEvent from Test1"); s1.addItem("new item " + System.currentTimeMillis()); @@ -133,6 +135,7 @@ public class ListenerOrder extends com.vaadin.Application.LegacyApplication System.out.println("Created listener " + name + ", id=" + count); } + @Override public void buttonClick(ClickEvent event) { String msg = "ClickEvent from MyClickListener " + name + ", id=" + count; @@ -142,18 +145,21 @@ public class ListenerOrder extends com.vaadin.Application.LegacyApplication } + @Override public void containerPropertySetChange(PropertySetChangeEvent event) { String msg = "containerPropertySetChange from " + this; System.out.println(msg); getMainWindow().showNotification(msg); } + @Override public void containerItemSetChange(ItemSetChangeEvent event) { String msg = "containerItemSetChange from " + this; System.out.println(msg); getMainWindow().showNotification(msg); } + @Override public void valueChange(ValueChangeEvent event) { String msg = "valueChange from " + this; System.out.println(msg); diff --git a/tests/testbench/com/vaadin/tests/ModalWindow.java b/tests/testbench/com/vaadin/tests/ModalWindow.java index c848803642..340571cd37 100644 --- a/tests/testbench/com/vaadin/tests/ModalWindow.java +++ b/tests/testbench/com/vaadin/tests/ModalWindow.java @@ -54,6 +54,7 @@ public class ModalWindow extends com.vaadin.Application.LegacyApplication } + @Override public void buttonClick(ClickEvent event) { if (event.getButton() == reopen) { openSubWindow(); diff --git a/tests/testbench/com/vaadin/tests/NativeWindowing.java b/tests/testbench/com/vaadin/tests/NativeWindowing.java index 6a561dd861..f1b9ce2ff1 100644 --- a/tests/testbench/com/vaadin/tests/NativeWindowing.java +++ b/tests/testbench/com/vaadin/tests/NativeWindowing.java @@ -26,6 +26,7 @@ public class NativeWindowing extends Application.LegacyApplication { main.addComponent(new Button("Add new subwindow", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { final Window w = new Window("sw " + System.currentTimeMillis()); @@ -40,6 +41,7 @@ public class NativeWindowing extends Application.LegacyApplication { final Button closebutton = new Button("Close " + w.getCaption(), new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { main.removeWindow(w); } @@ -78,6 +80,7 @@ public class NativeWindowing extends Application.LegacyApplication { main.addComponent(new Button( "Open a currently uncreated application level window", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { main.open( @@ -114,6 +117,7 @@ public class NativeWindowing extends Application.LegacyApplication { ww.addComponent(new Button("Click me", new Button.ClickListener() { int state = 0; + @Override public void buttonClick(ClickEvent event) { ww.addComponent(new Label("Button clicked " + (++state) + " times")); diff --git a/tests/testbench/com/vaadin/tests/OrderedLayoutSwapComponents.java b/tests/testbench/com/vaadin/tests/OrderedLayoutSwapComponents.java index 93e6290ee4..af73bdc652 100644 --- a/tests/testbench/com/vaadin/tests/OrderedLayoutSwapComponents.java +++ b/tests/testbench/com/vaadin/tests/OrderedLayoutSwapComponents.java @@ -60,6 +60,7 @@ public class OrderedLayoutSwapComponents extends CustomComponent { ol.addComponent(new Label(name)); up = new Button("up"); up.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { int newIndex = order.indexOf(MyComponent.this) - 1; MyComponent old = order.get(newIndex); @@ -77,6 +78,7 @@ public class OrderedLayoutSwapComponents extends CustomComponent { down = new Button("down"); down.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { int newIndex = order.indexOf(MyComponent.this) + 1; MyComponent old = order.get(newIndex); diff --git a/tests/testbench/com/vaadin/tests/Parameters.java b/tests/testbench/com/vaadin/tests/Parameters.java index 8d940101c3..1e8ca53875 100644 --- a/tests/testbench/com/vaadin/tests/Parameters.java +++ b/tests/testbench/com/vaadin/tests/Parameters.java @@ -93,6 +93,7 @@ public class Parameters extends com.vaadin.Application.LegacyApplication main.setContent(layout); } + @Override public boolean handleRequest(Application application, WrappedRequest request, WrappedResponse response) throws IOException { diff --git a/tests/testbench/com/vaadin/tests/PerformanceTestLabelsAndOrderedLayouts.java b/tests/testbench/com/vaadin/tests/PerformanceTestLabelsAndOrderedLayouts.java index b3f232f24d..be066269c3 100644 --- a/tests/testbench/com/vaadin/tests/PerformanceTestLabelsAndOrderedLayouts.java +++ b/tests/testbench/com/vaadin/tests/PerformanceTestLabelsAndOrderedLayouts.java @@ -39,6 +39,7 @@ public class PerformanceTestLabelsAndOrderedLayouts extends CustomComponent { main.addComponent(new Button("click when rendered", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { endTest(); } @@ -47,6 +48,7 @@ public class PerformanceTestLabelsAndOrderedLayouts extends CustomComponent { main.addComponent(new Button( "Click for layout repaint (cached components)", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { testContainer.requestRepaint(); } diff --git a/tests/testbench/com/vaadin/tests/PerformanceTestSubTreeCaching.java b/tests/testbench/com/vaadin/tests/PerformanceTestSubTreeCaching.java index 882b776d5d..0cd7a5c67d 100644 --- a/tests/testbench/com/vaadin/tests/PerformanceTestSubTreeCaching.java +++ b/tests/testbench/com/vaadin/tests/PerformanceTestSubTreeCaching.java @@ -39,6 +39,7 @@ public class PerformanceTestSubTreeCaching extends CustomComponent { addInfo(); Button b = new Button("start test", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { startTest(); } @@ -46,6 +47,7 @@ public class PerformanceTestSubTreeCaching extends CustomComponent { b.setDescription("Push this button to start test. A test label will be rendered above existing components."); main.addComponent(b); b = new Button("end test", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { endTest(); } diff --git a/tests/testbench/com/vaadin/tests/ScrollbarStressTest.java b/tests/testbench/com/vaadin/tests/ScrollbarStressTest.java index bd40a7fb7b..9cd27e9d5c 100644 --- a/tests/testbench/com/vaadin/tests/ScrollbarStressTest.java +++ b/tests/testbench/com/vaadin/tests/ScrollbarStressTest.java @@ -73,6 +73,7 @@ public class ScrollbarStressTest extends Application.LegacyApplication { height.setValue("100%"); final Button set = new Button("Set", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { getTable = testComponent.getValue().equals("Table"); diff --git a/tests/testbench/com/vaadin/tests/StressComponentsInTable.java b/tests/testbench/com/vaadin/tests/StressComponentsInTable.java index 9c2703822e..87ab7fa1d4 100644 --- a/tests/testbench/com/vaadin/tests/StressComponentsInTable.java +++ b/tests/testbench/com/vaadin/tests/StressComponentsInTable.java @@ -37,6 +37,7 @@ public class StressComponentsInTable extends CustomComponent { } content.add(new Button("b" + i, new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Button b = event.getButton(); System.out.println(b.getCaption() + " click: " diff --git a/tests/testbench/com/vaadin/tests/TableChangingDatasource.java b/tests/testbench/com/vaadin/tests/TableChangingDatasource.java index fa7edc3a45..3f87f2fe4c 100644 --- a/tests/testbench/com/vaadin/tests/TableChangingDatasource.java +++ b/tests/testbench/com/vaadin/tests/TableChangingDatasource.java @@ -45,6 +45,7 @@ public class TableChangingDatasource extends CustomComponent implements } + @Override public void buttonClick(ClickEvent event) { int i = mode % 4; t.setContainerDataSource(ta[i].getContainerDataSource()); diff --git a/tests/testbench/com/vaadin/tests/TableSelectTest.java b/tests/testbench/com/vaadin/tests/TableSelectTest.java index 62070c4b97..823bdfb3c4 100644 --- a/tests/testbench/com/vaadin/tests/TableSelectTest.java +++ b/tests/testbench/com/vaadin/tests/TableSelectTest.java @@ -113,6 +113,7 @@ public class TableSelectTest extends CustomComponent implements return id; } + @Override public void valueChange(ValueChangeEvent event) { final Object val = event.getProperty().getValue(); diff --git a/tests/testbench/com/vaadin/tests/TestBench.java b/tests/testbench/com/vaadin/tests/TestBench.java index 1ac497e574..04f71ce535 100644 --- a/tests/testbench/com/vaadin/tests/TestBench.java +++ b/tests/testbench/com/vaadin/tests/TestBench.java @@ -120,6 +120,7 @@ public class TestBench extends com.vaadin.Application.LegacyApplication lo.addComponent(menu); mainWindow.getPage().addListener(new Page.FragmentChangedListener() { + @Override public void fragmentChanged(FragmentChangedEvent source) { String fragment = source.getFragment(); if (fragment != null && !"".equals(fragment)) { @@ -238,6 +239,7 @@ public class TestBench extends com.vaadin.Application.LegacyApplication } // Handle menu selection and update body + @Override public void valueChange(Property.ValueChangeEvent event) { bodyLayout.removeAllComponents(); bodyLayout.setCaption(null); diff --git a/tests/testbench/com/vaadin/tests/TestCaptionWrapper.java b/tests/testbench/com/vaadin/tests/TestCaptionWrapper.java index 0e49fdd8ae..9f09a3212d 100644 --- a/tests/testbench/com/vaadin/tests/TestCaptionWrapper.java +++ b/tests/testbench/com/vaadin/tests/TestCaptionWrapper.java @@ -195,6 +195,7 @@ public class TestCaptionWrapper extends CustomComponent implements Listener { layout.addComponent(c); } + @Override public void componentEvent(Event event) { final String feedback = eventListenerString + " source=" + event.getSource() + ", toString()=" + event.toString(); diff --git a/tests/testbench/com/vaadin/tests/TestComponentAddAndRecursion.java b/tests/testbench/com/vaadin/tests/TestComponentAddAndRecursion.java index 3adaff93ea..e13b907f77 100644 --- a/tests/testbench/com/vaadin/tests/TestComponentAddAndRecursion.java +++ b/tests/testbench/com/vaadin/tests/TestComponentAddAndRecursion.java @@ -43,6 +43,7 @@ public class TestComponentAddAndRecursion extends CustomComponent { Button b = new Button("use gridlayout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { p.setContent(new GridLayout()); p2.setContent(new GridLayout()); @@ -53,6 +54,7 @@ public class TestComponentAddAndRecursion extends CustomComponent { main.addComponent(b); b = new Button("use orderedlayout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { p.setContent(new VerticalLayout()); p2.setContent(new VerticalLayout()); @@ -63,6 +65,7 @@ public class TestComponentAddAndRecursion extends CustomComponent { main.addComponent(b); b = new Button("move B", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { p2.addComponent(l2); } @@ -71,6 +74,7 @@ public class TestComponentAddAndRecursion extends CustomComponent { main.addComponent(b); b = new Button("move p", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { p3.addComponent(p); } @@ -79,6 +83,7 @@ public class TestComponentAddAndRecursion extends CustomComponent { main.addComponent(b); b = new Button("add to both", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Label l = new Label("both"); p.addComponent(l); @@ -89,6 +94,7 @@ public class TestComponentAddAndRecursion extends CustomComponent { main.addComponent(b); b = new Button("recurse", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { p3.addComponent(p2); @@ -106,6 +112,7 @@ public class TestComponentAddAndRecursion extends CustomComponent { main.addComponent(b); b = new Button("recurse2", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Panel p = new Panel("dynamic"); p.addComponent(p2); diff --git a/tests/testbench/com/vaadin/tests/TestContainerChanges.java b/tests/testbench/com/vaadin/tests/TestContainerChanges.java index b7f24abd8b..87251c0d65 100644 --- a/tests/testbench/com/vaadin/tests/TestContainerChanges.java +++ b/tests/testbench/com/vaadin/tests/TestContainerChanges.java @@ -70,6 +70,7 @@ public class TestContainerChanges extends CustomComponent { tbl2.setMultiSelect(false); tbl2.setImmediate(true); tbl2.addListener(new Table.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { System.err.println("Value now " + event.getProperty().getValue()); @@ -85,6 +86,7 @@ public class TestContainerChanges extends CustomComponent { Button b = new Button("table.commit()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tbl.commit(); } @@ -95,6 +97,7 @@ public class TestContainerChanges extends CustomComponent { b = new Button("indexedcontainer.addItem()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { cont.addItem(new Integer(cnt++)); } @@ -104,6 +107,7 @@ public class TestContainerChanges extends CustomComponent { b = new Button("indexedcontainer.addItem(null)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { cont.addItem(null); } @@ -113,6 +117,7 @@ public class TestContainerChanges extends CustomComponent { b = new Button("indexedcontainer.removeItem(table.lastItemId()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { cont.removeItem(tbl.lastItemId()); } @@ -123,6 +128,7 @@ public class TestContainerChanges extends CustomComponent { b = new Button("indexedcontainer.addContainerProperty()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { cont.addContainerProperty("prop" + cnt, String.class, "#" + cnt++); @@ -133,6 +139,7 @@ public class TestContainerChanges extends CustomComponent { b = new Button("indexedcontainer.clear()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { cont.removeAllItems(); } @@ -142,6 +149,7 @@ public class TestContainerChanges extends CustomComponent { b = new Button("table.setContainerDataSource(indexedcontainer)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tbl.setContainerDataSource(cont); } @@ -151,6 +159,7 @@ public class TestContainerChanges extends CustomComponent { b = new Button("table.setContainerDataSource(orderedwrapper)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tbl.setContainerDataSource(ordered); } @@ -160,6 +169,7 @@ public class TestContainerChanges extends CustomComponent { b = new Button("table.setContainerDataSource(hierarchicalwrapper)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tbl.setContainerDataSource(hierarchical); } diff --git a/tests/testbench/com/vaadin/tests/TestForBasicApplicationLayout.java b/tests/testbench/com/vaadin/tests/TestForBasicApplicationLayout.java index 67370039bb..eadc787ad8 100644 --- a/tests/testbench/com/vaadin/tests/TestForBasicApplicationLayout.java +++ b/tests/testbench/com/vaadin/tests/TestForBasicApplicationLayout.java @@ -30,6 +30,7 @@ public class TestForBasicApplicationLayout extends CustomComponent { click = new Button("Set height -1", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { tab.setHeight(null); } @@ -38,6 +39,7 @@ public class TestForBasicApplicationLayout extends CustomComponent { click2 = new Button("Set height 100%", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { tab.setHeight(100, TabSheet.UNITS_PERCENTAGE); } diff --git a/tests/testbench/com/vaadin/tests/TestForChildComponentRendering.java b/tests/testbench/com/vaadin/tests/TestForChildComponentRendering.java index e90231eefd..3852c5f13f 100644 --- a/tests/testbench/com/vaadin/tests/TestForChildComponentRendering.java +++ b/tests/testbench/com/vaadin/tests/TestForChildComponentRendering.java @@ -53,6 +53,7 @@ public class TestForChildComponentRendering extends CustomComponent { se.addItem("Valinta 2"); Button b = new Button("refresh view", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { createNewView(); } @@ -60,6 +61,7 @@ public class TestForChildComponentRendering extends CustomComponent { main.addComponent(b); b = new Button("reorder view", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { randomReorder(); } @@ -68,6 +70,7 @@ public class TestForChildComponentRendering extends CustomComponent { b = new Button("remove randomly one component", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { removeRandomComponent(); } diff --git a/tests/testbench/com/vaadin/tests/TestForContainerFilterable.java b/tests/testbench/com/vaadin/tests/TestForContainerFilterable.java index 92b7ae4f62..f3bd5ab227 100644 --- a/tests/testbench/com/vaadin/tests/TestForContainerFilterable.java +++ b/tests/testbench/com/vaadin/tests/TestForContainerFilterable.java @@ -60,6 +60,7 @@ public class TestForContainerFilterable extends CustomComponent { // Handler filterButton.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { ic.removeAllContainerFilters(); if (fooFilter.getValue().length() > 0) { @@ -77,6 +78,7 @@ public class TestForContainerFilterable extends CustomComponent { // Resetbutton lo.addComponent(new Button("Rebind table datasource", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { t.setContainerDataSource(ic); } diff --git a/tests/testbench/com/vaadin/tests/TestForGridLayoutChildComponentRendering.java b/tests/testbench/com/vaadin/tests/TestForGridLayoutChildComponentRendering.java index 6adcf49ec6..982c86781c 100644 --- a/tests/testbench/com/vaadin/tests/TestForGridLayoutChildComponentRendering.java +++ b/tests/testbench/com/vaadin/tests/TestForGridLayoutChildComponentRendering.java @@ -54,6 +54,7 @@ public class TestForGridLayoutChildComponentRendering extends CustomComponent { main.addComponent(se, 0, 1, 1, 1); Button b = new Button("refresh view", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { createNewView(); } @@ -61,6 +62,7 @@ public class TestForGridLayoutChildComponentRendering extends CustomComponent { main.addComponent(b); b = new Button("reorder view", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { randomReorder(); } @@ -69,6 +71,7 @@ public class TestForGridLayoutChildComponentRendering extends CustomComponent { b = new Button("remove randomly one component", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { removeRandomComponent(); } diff --git a/tests/testbench/com/vaadin/tests/TestForMultipleStyleNames.java b/tests/testbench/com/vaadin/tests/TestForMultipleStyleNames.java index e192d2738d..17c118803b 100644 --- a/tests/testbench/com/vaadin/tests/TestForMultipleStyleNames.java +++ b/tests/testbench/com/vaadin/tests/TestForMultipleStyleNames.java @@ -65,6 +65,7 @@ public class TestForMultipleStyleNames extends CustomComponent implements } + @Override public void valueChange(ValueChangeEvent event) { final String currentStyle = l.getStyleName(); diff --git a/tests/testbench/com/vaadin/tests/TestForNativeWindowing.java b/tests/testbench/com/vaadin/tests/TestForNativeWindowing.java index 8e4ec17738..51db064af2 100644 --- a/tests/testbench/com/vaadin/tests/TestForNativeWindowing.java +++ b/tests/testbench/com/vaadin/tests/TestForNativeWindowing.java @@ -26,6 +26,7 @@ public class TestForNativeWindowing extends Application.LegacyApplication { main.addComponent(new Button("Add new subwindow", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { final Window w = new Window("sw " + System.currentTimeMillis()); @@ -40,6 +41,7 @@ public class TestForNativeWindowing extends Application.LegacyApplication { final Button closebutton = new Button("Close " + w.getCaption(), new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { main.removeWindow(w); } @@ -78,6 +80,7 @@ public class TestForNativeWindowing extends Application.LegacyApplication { main.addComponent(new Button( "Open a currently uncreated application level window", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { main.open( @@ -114,6 +117,7 @@ public class TestForNativeWindowing extends Application.LegacyApplication { ww.addComponent(new Button("Click me", new Button.ClickListener() { int state = 0; + @Override public void buttonClick(ClickEvent event) { ww.addComponent(new Label("Button clicked " + (++state) + " times")); diff --git a/tests/testbench/com/vaadin/tests/TestForPreconfiguredComponents.java b/tests/testbench/com/vaadin/tests/TestForPreconfiguredComponents.java index 74fdb0c35f..9a41d719d4 100644 --- a/tests/testbench/com/vaadin/tests/TestForPreconfiguredComponents.java +++ b/tests/testbench/com/vaadin/tests/TestForPreconfiguredComponents.java @@ -91,6 +91,7 @@ public class TestForPreconfiguredComponents extends CustomComponent implements main.addComponent(test); final Button b = new Button("refresh view", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { createNewView(); } @@ -146,6 +147,7 @@ public class TestForPreconfiguredComponents extends CustomComponent implements final Panel status = new Panel("Events"); final Button clear = new Button("clear event log"); clear.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { status.removeAllComponents(); status.addComponent(ol2); @@ -162,6 +164,7 @@ public class TestForPreconfiguredComponents extends CustomComponent implements ol.addComponent(status); t.addListener(new Listener() { + @Override public void componentEvent(Event event) { status.addComponent(new Label(event.getClass().getName())); // TODO should not use Field.toString() @@ -173,10 +176,12 @@ public class TestForPreconfiguredComponents extends CustomComponent implements return ol; } + @Override public Action[] getActions(Object target, Object sender) { return actions; } + @Override public void handleAction(Action action, Object sender, Object target) { if (action == actions[1]) { al.addComponent(new Label("Delete selected on " + target)); diff --git a/tests/testbench/com/vaadin/tests/TestForRichTextEditor.java b/tests/testbench/com/vaadin/tests/TestForRichTextEditor.java index 992222cb9a..7185d2478c 100644 --- a/tests/testbench/com/vaadin/tests/TestForRichTextEditor.java +++ b/tests/testbench/com/vaadin/tests/TestForRichTextEditor.java @@ -53,6 +53,7 @@ public class TestForRichTextEditor extends CustomComponent implements b.setImmediate(true); b.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { rte.setEnabled(!rte.isEnabled()); } @@ -61,6 +62,7 @@ public class TestForRichTextEditor extends CustomComponent implements } + @Override public void valueChange(ValueChangeEvent event) { l.setValue(rte.getValue()); } diff --git a/tests/testbench/com/vaadin/tests/TestForStyledUpload.java b/tests/testbench/com/vaadin/tests/TestForStyledUpload.java index 1fc20fe3e2..2a350b2fbb 100644 --- a/tests/testbench/com/vaadin/tests/TestForStyledUpload.java +++ b/tests/testbench/com/vaadin/tests/TestForStyledUpload.java @@ -70,6 +70,7 @@ public class TestForStyledUpload extends Application.LegacyApplication up.addListener(new Upload.ProgressListener() { + @Override public void updateProgress(long readBytes, long contentLenght) { pi.setValue(new Float(readBytes / (float) contentLenght)); @@ -83,6 +84,7 @@ public class TestForStyledUpload extends Application.LegacyApplication final Button b = new Button("Update status", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { readState(); } @@ -90,6 +92,7 @@ public class TestForStyledUpload extends Application.LegacyApplication final Button c = new Button("Update status with gc", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { gc(); } @@ -112,6 +115,7 @@ public class TestForStyledUpload extends Application.LegacyApplication Button cancel = new Button("Cancel current upload"); cancel.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { buffer.cancel(); } @@ -122,6 +126,7 @@ public class TestForStyledUpload extends Application.LegacyApplication final Button restart = new Button("Restart demo application"); restart.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { TestForStyledUpload.this.close(); } @@ -156,6 +161,7 @@ public class TestForStyledUpload extends Application.LegacyApplication refreshMemUsage(); } + @Override public void uploadFinished(FinishedEvent event) { status.removeAllComponents(); final InputStream stream = buffer.getStream(); @@ -208,6 +214,7 @@ public class TestForStyledUpload extends Application.LegacyApplication up.interruptUpload(); } + @Override public InputStream getStream() { if (file == null) { return null; @@ -225,6 +232,7 @@ public class TestForStyledUpload extends Application.LegacyApplication /** * @see com.vaadin.ui.Upload.Receiver#receiveUpload(String, String) */ + @Override public OutputStream receiveUpload(String filename, String MIMEType) { fileName = filename; mimeType = MIMEType; @@ -242,6 +250,7 @@ public class TestForStyledUpload extends Application.LegacyApplication * * @return String */ + @Override public String getFileName() { return fileName; } @@ -257,11 +266,13 @@ public class TestForStyledUpload extends Application.LegacyApplication } + @Override public void uploadFailed(FailedEvent event) { pi.setVisible(false); l.setValue("Upload was interrupted"); } + @Override public void uploadSucceeded(SucceededEvent event) { pi.setVisible(false); l.setValue("Finished upload, idle"); @@ -280,6 +291,7 @@ public class TestForStyledUpload extends Application.LegacyApplication } + @Override public void uploadStarted(StartedEvent event) { pi.setVisible(true); l.setValue("Started uploading file " + event.getFilename()); diff --git a/tests/testbench/com/vaadin/tests/TestForTabSheet.java b/tests/testbench/com/vaadin/tests/TestForTabSheet.java index 938bf43115..d180bd4be3 100644 --- a/tests/testbench/com/vaadin/tests/TestForTabSheet.java +++ b/tests/testbench/com/vaadin/tests/TestForTabSheet.java @@ -32,6 +32,7 @@ public class TestForTabSheet extends CustomComponent implements tabsheet.addTab(tab3_root, "Third tab", null); } + @Override public void buttonClick(ClickEvent event) { System.out.println("tab2=" + tab2_root.isEnabled() + " tab3=" + tab3_root.isEnabled()); @@ -39,6 +40,7 @@ public class TestForTabSheet extends CustomComponent implements tab3_root.setEnabled(true); } + @Override public void selectedTabChange(SelectedTabChangeEvent event) { /* * Cast to a TabSheet. This isn't really necessary in this example, as diff --git a/tests/testbench/com/vaadin/tests/TestForTablesInitialColumnWidthLogicRendering.java b/tests/testbench/com/vaadin/tests/TestForTablesInitialColumnWidthLogicRendering.java index 48c056ff58..a8d42184a0 100644 --- a/tests/testbench/com/vaadin/tests/TestForTablesInitialColumnWidthLogicRendering.java +++ b/tests/testbench/com/vaadin/tests/TestForTablesInitialColumnWidthLogicRendering.java @@ -103,6 +103,7 @@ public class TestForTablesInitialColumnWidthLogicRendering extends main.addComponent(t); final Button b = new Button("refresh view", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { createNewView(); } @@ -125,6 +126,7 @@ public class TestForTablesInitialColumnWidthLogicRendering extends } Button button = new Button("b", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { System.out.println("b click"); diff --git a/tests/testbench/com/vaadin/tests/TestForTrees.java b/tests/testbench/com/vaadin/tests/TestForTrees.java index 37030a25c2..24d6102f80 100644 --- a/tests/testbench/com/vaadin/tests/TestForTrees.java +++ b/tests/testbench/com/vaadin/tests/TestForTrees.java @@ -87,6 +87,7 @@ public class TestForTrees extends CustomComponent implements Handler { contextTree = t; final Button b = new Button("refresh view", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { createNewView(); } @@ -131,6 +132,7 @@ public class TestForTrees extends CustomComponent implements Handler { final Panel status = new Panel("Events"); final Button clear = new Button("c"); clear.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { status.removeAllComponents(); status.addComponent(clear); @@ -144,6 +146,7 @@ public class TestForTrees extends CustomComponent implements Handler { ol.addComponent(status); t.addListener(new Listener() { + @Override public void componentEvent(Event event) { status.addComponent(new Label(event.getClass().getName())); // TODO should not use Field.toString() @@ -155,10 +158,12 @@ public class TestForTrees extends CustomComponent implements Handler { return ol; } + @Override public Action[] getActions(Object target, Object sender) { return actions; } + @Override public void handleAction(Action action, Object sender, Object target) { if (action == actions[1]) { al.addComponent(new Label("Delete selected on " + target)); diff --git a/tests/testbench/com/vaadin/tests/TestForUpload.java b/tests/testbench/com/vaadin/tests/TestForUpload.java index c254198add..2f3e814b45 100644 --- a/tests/testbench/com/vaadin/tests/TestForUpload.java +++ b/tests/testbench/com/vaadin/tests/TestForUpload.java @@ -95,6 +95,7 @@ public class TestForUpload extends CustomComponent implements up.addListener(new Listener() { private static final long serialVersionUID = -8319074730512324303L; + @Override public void componentEvent(Event event) { // print out all events fired by upload for debug purposes System.out.println("Upload fired event | " + event); @@ -104,6 +105,7 @@ public class TestForUpload extends CustomComponent implements up.addListener(new StartedListener() { private static final long serialVersionUID = 5508883803861085154L; + @Override public void uploadStarted(StartedEvent event) { pi.setVisible(true); pi2.setVisible(true); @@ -117,6 +119,7 @@ public class TestForUpload extends CustomComponent implements up.addListener(new Upload.FinishedListener() { private static final long serialVersionUID = -3773034195991947371L; + @Override public void uploadFinished(FinishedEvent event) { pi.setVisible(false); pi2.setVisible(false); @@ -156,6 +159,7 @@ public class TestForUpload extends CustomComponent implements up.addListener(new Upload.ProgressListener() { + @Override public void updateProgress(long readBytes, long contentLenght) { pi2.setValue(new Float(readBytes / (float) contentLenght)); @@ -166,12 +170,14 @@ public class TestForUpload extends CustomComponent implements final Button b = new Button("Reed state from upload", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { readState(); } }); final Button c = new Button("Force GC", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { gc(); } @@ -183,6 +189,7 @@ public class TestForUpload extends CustomComponent implements main.addComponent(throwExecption); main.addComponent(interrupt); interrupt.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { up.interruptUpload(); } @@ -195,6 +202,7 @@ public class TestForUpload extends CustomComponent implements uploadBufferSelector.addItem("tempfile"); uploadBufferSelector .addListener(new AbstractField.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { setBuffer(); } @@ -222,6 +230,7 @@ public class TestForUpload extends CustomComponent implements final Button restart = new Button("R"); restart.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getApplication().close(); } @@ -280,6 +289,7 @@ public class TestForUpload extends CustomComponent implements } + @Override public InputStream getStream() { if (outputBuffer == null) { return null; @@ -290,6 +300,7 @@ public class TestForUpload extends CustomComponent implements /** * @see com.vaadin.ui.Upload.Receiver#receiveUpload(String, String) */ + @Override public OutputStream receiveUpload(String filename, String MIMEType) { fileName = filename; mimeType = MIMEType; @@ -310,6 +321,7 @@ public class TestForUpload extends CustomComponent implements * * @return String */ + @Override public String getFileName() { return fileName; } @@ -344,6 +356,7 @@ public class TestForUpload extends CustomComponent implements } + @Override public InputStream getStream() { if (file == null) { return null; @@ -360,6 +373,7 @@ public class TestForUpload extends CustomComponent implements /** * @see com.vaadin.ui.Upload.Receiver#receiveUpload(String, String) */ + @Override public OutputStream receiveUpload(String filename, String MIMEType) { fileName = filename; mimeType = MIMEType; @@ -387,6 +401,7 @@ public class TestForUpload extends CustomComponent implements * * @return String */ + @Override public String getFileName() { return fileName; } @@ -402,6 +417,7 @@ public class TestForUpload extends CustomComponent implements } + @Override public void updateProgress(long readBytes, long contentLenght) { pi.setValue(new Float(readBytes / (float) contentLenght)); diff --git a/tests/testbench/com/vaadin/tests/TestForWindowOpen.java b/tests/testbench/com/vaadin/tests/TestForWindowOpen.java index 75395f0d5c..761d9bc106 100644 --- a/tests/testbench/com/vaadin/tests/TestForWindowOpen.java +++ b/tests/testbench/com/vaadin/tests/TestForWindowOpen.java @@ -21,6 +21,7 @@ public class TestForWindowOpen extends CustomComponent { main.addComponent(new Button("Open in this window", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { final ExternalResource r = new ExternalResource( "http://www.google.com"); @@ -33,6 +34,7 @@ public class TestForWindowOpen extends CustomComponent { main.addComponent(new Button("Open in target \"mytarget\"", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { final ExternalResource r = new ExternalResource( "http://www.google.com"); @@ -45,6 +47,7 @@ public class TestForWindowOpen extends CustomComponent { main.addComponent(new Button("Open in target \"secondtarget\"", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { final ExternalResource r = new ExternalResource( "http://www.google.com"); diff --git a/tests/testbench/com/vaadin/tests/TestForWindowing.java b/tests/testbench/com/vaadin/tests/TestForWindowing.java index b9e14608f5..bbd523c0fd 100644 --- a/tests/testbench/com/vaadin/tests/TestForWindowing.java +++ b/tests/testbench/com/vaadin/tests/TestForWindowing.java @@ -37,6 +37,7 @@ public class TestForWindowing extends CustomComponent { final Button create = new Button("Create a new window", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Window w = new Window("Testing Window"); @@ -59,6 +60,7 @@ public class TestForWindowing extends CustomComponent { s1.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { String v = (String) event.getProperty() .getValue(); diff --git a/tests/testbench/com/vaadin/tests/TestSetVisibleAndCaching.java b/tests/testbench/com/vaadin/tests/TestSetVisibleAndCaching.java index a46253598f..064a04847a 100644 --- a/tests/testbench/com/vaadin/tests/TestSetVisibleAndCaching.java +++ b/tests/testbench/com/vaadin/tests/TestSetVisibleAndCaching.java @@ -50,6 +50,7 @@ public class TestSetVisibleAndCaching extends selectPanel(selectedPanel); buttonNextPanel.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { selectedPanel++; if (selectedPanel > 2) { diff --git a/tests/testbench/com/vaadin/tests/TestSizeableIncomponents.java b/tests/testbench/com/vaadin/tests/TestSizeableIncomponents.java index a9005e7fd3..50028137df 100644 --- a/tests/testbench/com/vaadin/tests/TestSizeableIncomponents.java +++ b/tests/testbench/com/vaadin/tests/TestSizeableIncomponents.java @@ -56,6 +56,7 @@ public class TestSizeableIncomponents extends Application.LegacyApplication { prev = new Button("<<-|"); prev.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Object cur = select.getValue(); Testable prev = (Testable) cont.prevItemId(cur); @@ -71,6 +72,7 @@ public class TestSizeableIncomponents extends Application.LegacyApplication { }); next = new Button("|->>"); next.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Object cur = select.getValue(); Testable next = (Testable) cont.nextItemId(cur); @@ -93,6 +95,7 @@ public class TestSizeableIncomponents extends Application.LegacyApplication { select.setContainerDataSource(cont); select.addListener(new ComboBox.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Testable t = (Testable) select.getValue(); if (t != null) { diff --git a/tests/testbench/com/vaadin/tests/TreeFilesystem.java b/tests/testbench/com/vaadin/tests/TreeFilesystem.java index e451d2ced7..736f2cf5af 100644 --- a/tests/testbench/com/vaadin/tests/TreeFilesystem.java +++ b/tests/testbench/com/vaadin/tests/TreeFilesystem.java @@ -60,6 +60,7 @@ public class TreeFilesystem extends com.vaadin.Application.LegacyApplication * Handle tree expand event, populate expanded node's childs with new files * and directories. */ + @Override public void nodeExpand(ExpandEvent event) { final Item i = tree.getItem(event.getItemId()); if (!tree.hasChildren(i)) { diff --git a/tests/testbench/com/vaadin/tests/TreeFilesystemContainer.java b/tests/testbench/com/vaadin/tests/TreeFilesystemContainer.java index 1b32a35a38..2458f2dfa1 100644 --- a/tests/testbench/com/vaadin/tests/TreeFilesystemContainer.java +++ b/tests/testbench/com/vaadin/tests/TreeFilesystemContainer.java @@ -80,6 +80,7 @@ public class TreeFilesystemContainer extends * Listener for any component events. This class has been registered as an * listener for component fsTree. */ + @Override public void componentEvent(Event event) { // Check if event occured at fsTree component if (event.getSource() == filesystem) { diff --git a/tests/testbench/com/vaadin/tests/UpgradingSample.java b/tests/testbench/com/vaadin/tests/UpgradingSample.java index 0db63ca789..3090962b71 100644 --- a/tests/testbench/com/vaadin/tests/UpgradingSample.java +++ b/tests/testbench/com/vaadin/tests/UpgradingSample.java @@ -94,6 +94,7 @@ public class UpgradingSample extends Application.LegacyApplication implements } // Handle menu selection and update visible page + @Override public void valueChange(Property.ValueChangeEvent event) { layout.removeComponent(1, 0); final String title = (String) menu.getValue(); @@ -116,6 +117,7 @@ public class UpgradingSample extends Application.LegacyApplication implements private final Button loginButton = new Button("Enter", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { login(); } @@ -127,6 +129,7 @@ public class UpgradingSample extends Application.LegacyApplication implements private final Button logoutButton = new Button("Logout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { close(); } @@ -163,6 +166,7 @@ public class UpgradingSample extends Application.LegacyApplication implements } // Update login status on application user change events + @Override public void applicationUserChanged(Application.UserChangeEvent event) { updateStatus(); } diff --git a/tests/testbench/com/vaadin/tests/UsingCustomNewItemHandlerInSelect.java b/tests/testbench/com/vaadin/tests/UsingCustomNewItemHandlerInSelect.java index 54a7d3d080..94635d17c4 100644 --- a/tests/testbench/com/vaadin/tests/UsingCustomNewItemHandlerInSelect.java +++ b/tests/testbench/com/vaadin/tests/UsingCustomNewItemHandlerInSelect.java @@ -51,6 +51,7 @@ public class UsingCustomNewItemHandlerInSelect extends CustomComponent { } public class MyNewItemHandler implements AbstractSelect.NewItemHandler { + @Override public void addNewItem(String newItemCaption) { // here could be db insert or other backend operation Integer id = new Integer(sequence++); diff --git a/tests/testbench/com/vaadin/tests/UsingObjectsInSelect.java b/tests/testbench/com/vaadin/tests/UsingObjectsInSelect.java index 13918ace90..f72229ace1 100644 --- a/tests/testbench/com/vaadin/tests/UsingObjectsInSelect.java +++ b/tests/testbench/com/vaadin/tests/UsingObjectsInSelect.java @@ -60,6 +60,7 @@ public class UsingObjectsInSelect extends } } + @Override public void valueChange(ValueChangeEvent event) { final Task task = (Task) select.getValue(); selectedTask.setValue("<b>Type:</b> " + task.getType() diff --git a/tests/testbench/com/vaadin/tests/appengine/GAESyncTest.java b/tests/testbench/com/vaadin/tests/appengine/GAESyncTest.java index 58faec35f0..fbf9e7b46e 100644 --- a/tests/testbench/com/vaadin/tests/appengine/GAESyncTest.java +++ b/tests/testbench/com/vaadin/tests/appengine/GAESyncTest.java @@ -59,6 +59,7 @@ public class GAESyncTest extends Application.LegacyApplication { tf = new TextField("Echo thingie"); tf.setImmediate(true); tf.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { IntrWindow.this.showNotification((String) event .getProperty().getValue()); @@ -73,6 +74,7 @@ public class GAESyncTest extends Application.LegacyApplication { { Button b = new Button("Slow", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { Thread.sleep(15000); @@ -89,6 +91,7 @@ public class GAESyncTest extends Application.LegacyApplication { { Button b = new Button("Add", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (getRoot() == getMainWindow()) { getRoot().getPage().showNotification( diff --git a/tests/testbench/com/vaadin/tests/application/ApplicationCloseTest.java b/tests/testbench/com/vaadin/tests/application/ApplicationCloseTest.java index ce41a895c4..a59764bf45 100644 --- a/tests/testbench/com/vaadin/tests/application/ApplicationCloseTest.java +++ b/tests/testbench/com/vaadin/tests/application/ApplicationCloseTest.java @@ -27,6 +27,7 @@ public class ApplicationCloseTest extends TestBase { Label thisApp = new Label("This applications: " + this); Button close = new Button("Close this", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { event.getButton().getApplication().close(); } diff --git a/tests/testbench/com/vaadin/tests/application/ErrorInUnloadEvent.java b/tests/testbench/com/vaadin/tests/application/ErrorInUnloadEvent.java index fcc4e26b55..690df3f360 100644 --- a/tests/testbench/com/vaadin/tests/application/ErrorInUnloadEvent.java +++ b/tests/testbench/com/vaadin/tests/application/ErrorInUnloadEvent.java @@ -50,6 +50,7 @@ public class ErrorInUnloadEvent extends AbstractTestCase { mainWindow.setContent(formLayout); login.addListener(new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { String username = userField.getValue(); String password = passwordField.getValue(); @@ -81,6 +82,7 @@ public class ErrorInUnloadEvent extends AbstractTestCase { header.addComponent(title); Button logout = new Button("Logout"); logout.addListener(new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { setUser(null); showLoginWindow(); diff --git a/tests/testbench/com/vaadin/tests/application/TerminalErrorNotification.java b/tests/testbench/com/vaadin/tests/application/TerminalErrorNotification.java index f2ae7a3891..4a029e3373 100644 --- a/tests/testbench/com/vaadin/tests/application/TerminalErrorNotification.java +++ b/tests/testbench/com/vaadin/tests/application/TerminalErrorNotification.java @@ -16,6 +16,7 @@ public class TerminalErrorNotification extends TestBase { Button button = new Button("Throw exception", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { throw new RuntimeException("You asked for it"); } diff --git a/tests/testbench/com/vaadin/tests/application/ThreadLocalInstances.java b/tests/testbench/com/vaadin/tests/application/ThreadLocalInstances.java index eeb866138b..def68a7357 100644 --- a/tests/testbench/com/vaadin/tests/application/ThreadLocalInstances.java +++ b/tests/testbench/com/vaadin/tests/application/ThreadLocalInstances.java @@ -61,6 +61,7 @@ public class ThreadLocalInstances extends AbstractTestApplication { mainWindow.addComponent(log); mainWindow.addComponent(new Embedded("Icon", resource)); mainWindow.addComponent(new Button("Sync", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { reportCurrentStatus("button listener"); } diff --git a/tests/testbench/com/vaadin/tests/application/WebBrowserSizeTest.java b/tests/testbench/com/vaadin/tests/application/WebBrowserSizeTest.java index a3f11f2cd3..817acf20b5 100644 --- a/tests/testbench/com/vaadin/tests/application/WebBrowserSizeTest.java +++ b/tests/testbench/com/vaadin/tests/application/WebBrowserSizeTest.java @@ -18,6 +18,7 @@ public class WebBrowserSizeTest extends TestBase { final Button update = new Button("Refresh", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { screenSizeLabel.setValue(getBrowser().getScreenWidth() + " x " + getBrowser().getScreenHeight()); diff --git a/tests/testbench/com/vaadin/tests/application/WebBrowserTest.java b/tests/testbench/com/vaadin/tests/application/WebBrowserTest.java index 35235bbe1f..004c8f1c91 100644 --- a/tests/testbench/com/vaadin/tests/application/WebBrowserTest.java +++ b/tests/testbench/com/vaadin/tests/application/WebBrowserTest.java @@ -38,6 +38,7 @@ public class WebBrowserTest extends TestBase { final Button update = new Button("Get TimeZone from browser", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { TimeZone hkiTZ = TimeZone .getTimeZone("Europe/Helsinki"); diff --git a/tests/testbench/com/vaadin/tests/applicationcontext/ChangeSessionId.java b/tests/testbench/com/vaadin/tests/applicationcontext/ChangeSessionId.java index 17ac74e5a3..abcdf232cd 100644 --- a/tests/testbench/com/vaadin/tests/applicationcontext/ChangeSessionId.java +++ b/tests/testbench/com/vaadin/tests/applicationcontext/ChangeSessionId.java @@ -22,6 +22,7 @@ public class ChangeSessionId extends AbstractTestCase { mainWindow.addComponent(new Button("Show session id", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { logSessionId(); } @@ -29,6 +30,7 @@ public class ChangeSessionId extends AbstractTestCase { setMainWindow(mainWindow); loginButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { WebApplicationContext context = ((WebApplicationContext) getContext()); diff --git a/tests/testbench/com/vaadin/tests/applicationcontext/RemoveTransactionListener.java b/tests/testbench/com/vaadin/tests/applicationcontext/RemoveTransactionListener.java index 8723e23a2a..f1730ed5f5 100644 --- a/tests/testbench/com/vaadin/tests/applicationcontext/RemoveTransactionListener.java +++ b/tests/testbench/com/vaadin/tests/applicationcontext/RemoveTransactionListener.java @@ -15,10 +15,12 @@ public class RemoveTransactionListener extends TestBase { // Add one listener that will remove itself from within transactionEnd getMainWindow().getApplication().getContext() .addTransactionListener(new TransactionListener() { + @Override public void transactionStart(Application application, Object transactionData) { } + @Override public void transactionEnd(Application application, Object transactionData) { removeListener(this); @@ -29,12 +31,14 @@ public class RemoveTransactionListener extends TestBase { // Add one listener that will remove itself from within transactionStart getMainWindow().getApplication().getContext() .addTransactionListener(new TransactionListener() { + @Override public void transactionStart(Application application, Object transactionData) { removeListener(this); log.log("Listener removed in transactionStart"); } + @Override public void transactionEnd(Application application, Object transactionData) { } @@ -45,11 +49,13 @@ public class RemoveTransactionListener extends TestBase { // ignored getMainWindow().getApplication().getContext() .addTransactionListener(new TransactionListener() { + @Override public void transactionStart(Application application, Object transactionData) { log.log("transactionStart from last listener"); } + @Override public void transactionEnd(Application application, Object transactionData) { log.log("transactionEnd from last listener"); diff --git a/tests/testbench/com/vaadin/tests/components/AbstractComponentContainerTest.java b/tests/testbench/com/vaadin/tests/components/AbstractComponentContainerTest.java index 6e9e4e8930..be3b7760f2 100644 --- a/tests/testbench/com/vaadin/tests/components/AbstractComponentContainerTest.java +++ b/tests/testbench/com/vaadin/tests/components/AbstractComponentContainerTest.java @@ -29,6 +29,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent private String CATEGORY_COMPONENT_CONTAINER_FEATURES = "Component container features"; private Command<T, ComponentSize> addButtonCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { Button b = new Button("A button"); c.addComponent(b); @@ -38,6 +39,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent private Command<T, ComponentSize> addNativeButtonCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { NativeButton b = new NativeButton("Native button"); c.addComponent(b); @@ -46,6 +48,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent }; private Command<T, ComponentSize> addTextAreaCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { TextArea ta = new TextArea(); c.addComponent(ta); @@ -54,6 +57,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent }; private Command<T, ComponentSize> addRichTextAreaCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { RichTextArea ta = new RichTextArea(); c.addComponent(ta); @@ -62,6 +66,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent }; private Command<T, ComponentSize> addTextFieldCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { TextField tf = new TextField(); c.addComponent(tf); @@ -70,6 +75,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent }; private Command<T, ComponentSize> addInlineDateFieldCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { InlineDateField tf = new InlineDateField(); c.addComponent(tf); @@ -77,6 +83,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent } }; private Command<T, ComponentSize> addPopupDateFieldCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { PopupDateField tf = new PopupDateField(); c.addComponent(tf); @@ -85,6 +92,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent }; private Command<T, ComponentSize> addVerticalSplitPanelCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { VerticalSplitPanel vsp = new VerticalSplitPanel(); c.addComponent(vsp); @@ -93,6 +101,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent }; private Command<T, ComponentSize> addHorizontalSplitPanelCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { HorizontalSplitPanel vsp = new HorizontalSplitPanel(); c.addComponent(vsp); @@ -101,6 +110,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent }; private Command<T, ComponentSize> addTabSheetCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { TabSheet ts = createTabSheet(); c.addComponent(ts); @@ -110,6 +120,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent private Command<T, ComponentSize> addTableCommand = new Command<T, ComponentSize>() { + @Override public void execute(T c, ComponentSize size, Object data) { Table t = createTable(); c.addComponent(t); @@ -117,12 +128,14 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent } }; private Command<T, Object> removeAllComponentsCommand = new Command<T, Object>() { + @Override public void execute(T c, Object value, Object data) { c.removeAllComponents(); } }; private Command<T, Integer> removeComponentByIndexCommand = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object data) { Component child = getComponentAtIndex(c, value); c.removeComponent(child); @@ -131,6 +144,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent }; private Command<T, Boolean> componentAttachListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.addListener((ComponentAttachListener) AbstractComponentContainerTest.this); @@ -142,6 +156,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent private Command<T, Boolean> componentDetachListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.addListener((ComponentDetachListener) AbstractComponentContainerTest.this); @@ -153,6 +168,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent private Command<T, Integer> setComponentHeight = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object data) { Component child = getComponentAtIndex(c, value); child.setHeight((String) data); @@ -162,6 +178,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent private Command<T, Integer> setComponentWidth = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object data) { Component child = getComponentAtIndex(c, value); child.setWidth((String) data); @@ -348,6 +365,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent } + @Override public void componentDetachedFromContainer(ComponentDetachEvent event) { log(event.getClass().getSimpleName() + ": " + event.getDetachedComponent().getClass().getSimpleName() @@ -355,6 +373,7 @@ public abstract class AbstractComponentContainerTest<T extends AbstractComponent + event.getContainer().getClass().getSimpleName()); } + @Override public void componentAttachedToContainer(ComponentAttachEvent event) { log(event.getClass().getSimpleName() + ": " + event.getAttachedComponent().getClass().getSimpleName() diff --git a/tests/testbench/com/vaadin/tests/components/AbstractComponentTest.java b/tests/testbench/com/vaadin/tests/components/AbstractComponentTest.java index 60ce941565..38bba7721c 100644 --- a/tests/testbench/com/vaadin/tests/components/AbstractComponentTest.java +++ b/tests/testbench/com/vaadin/tests/components/AbstractComponentTest.java @@ -120,6 +120,7 @@ public abstract class AbstractComponentTest<T extends AbstractComponent> MenuItem showEventLog = settingsMenu.addItem("Show event log", new MenuBar.Command() { + @Override public void menuSelected(MenuItem selectedItem) { boolean selected = !isSelected(selectedItem); setLogVisible(selected); @@ -131,6 +132,7 @@ public abstract class AbstractComponentTest<T extends AbstractComponent> settingsMenu.addItem("Clear log", new MenuBar.Command() { + @Override public void menuSelected(MenuItem selectedItem) { log.clear(); } @@ -140,6 +142,7 @@ public abstract class AbstractComponentTest<T extends AbstractComponent> MenuItem layoutHeight = layoutSize.addItem("Height", null); for (final String name : sizeOptions.keySet()) { layoutWidth.addItem(name, new MenuBar.Command() { + @Override public void menuSelected(MenuItem selectedItem) { getTestComponents().get(0).getParent() .setWidth(sizeOptions.get(name)); @@ -147,6 +150,7 @@ public abstract class AbstractComponentTest<T extends AbstractComponent> } }); layoutHeight.addItem(name, new MenuBar.Command() { + @Override public void menuSelected(MenuItem selectedItem) { getTestComponents().get(0).getParent() .setHeight(sizeOptions.get(name)); @@ -243,6 +247,7 @@ public abstract class AbstractComponentTest<T extends AbstractComponent> protected Command<T, Boolean> focusListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { ((FocusNotifier) c).addListener(AbstractComponentTest.this); @@ -253,6 +258,7 @@ public abstract class AbstractComponentTest<T extends AbstractComponent> }; protected Command<T, Boolean> blurListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { ((BlurNotifier) c).addListener(AbstractComponentTest.this); @@ -469,6 +475,7 @@ public abstract class AbstractComponentTest<T extends AbstractComponent> final Object data) { return new MenuBar.Command() { + @Override public void menuSelected(MenuItem selectedItem) { boolean selected = !isSelected(selectedItem); doCommand(getText(selectedItem), booleanCommand, selected, data); @@ -483,6 +490,7 @@ public abstract class AbstractComponentTest<T extends AbstractComponent> final DATATYPE value, final Object data) { return new MenuBar.Command() { + @Override public void menuSelected(MenuItem selectedItem) { doCommand(getText(selectedItem), command, value, data); } @@ -506,6 +514,7 @@ public abstract class AbstractComponentTest<T extends AbstractComponent> final com.vaadin.tests.components.ComponentTestCase.Command<T, VALUETYPE> cmd, final VALUETYPE object, final Object data) { return new MenuBar.Command() { + @Override public void menuSelected(MenuItem selectedItem) { doCommand(getText(selectedItem), cmd, object, data); @@ -722,10 +731,12 @@ public abstract class AbstractComponentTest<T extends AbstractComponent> } + @Override public void focus(FocusEvent event) { log(event.getClass().getSimpleName()); } + @Override public void blur(BlurEvent event) { log(event.getClass().getSimpleName()); } diff --git a/tests/testbench/com/vaadin/tests/components/AbstractComponentTestCase.java b/tests/testbench/com/vaadin/tests/components/AbstractComponentTestCase.java index 57a32aafc4..d8ae43fd6d 100644 --- a/tests/testbench/com/vaadin/tests/components/AbstractComponentTestCase.java +++ b/tests/testbench/com/vaadin/tests/components/AbstractComponentTestCase.java @@ -71,12 +71,14 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> protected Command<T, String> widthCommand = new Command<T, String>() { + @Override public void execute(T t, String value, Object data) { t.setWidth(value); } }; protected Command<T, String> heightCommand = new Command<T, String>() { + @Override public void execute(T t, String value, Object data) { t.setHeight(value); } @@ -84,6 +86,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> protected Command<T, Boolean> enabledCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean enabled, Object data) { c.setEnabled(enabled); } @@ -91,6 +94,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> protected Command<T, Boolean> immediateCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean immediate, Object data) { c.setImmediate(immediate); } @@ -98,6 +102,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> protected Command<T, Boolean> errorIndicatorCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean enabled, Object data) { if (enabled) { c.setComponentError(new UserError(errorMessage)); @@ -111,6 +116,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> protected Command<T, String> errorMessageCommand = new Command<T, String>() { + @Override public void execute(T c, String value, Object data) { errorMessage = value; if (c.getComponentError() != null) { @@ -124,6 +130,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> // TODO Move to AbstractFieldTestCase protected Command<T, Boolean> requiredCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean enabled, Object data) { if (c instanceof Field) { ((Field<?>) c).setRequired(enabled); @@ -135,6 +142,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> }; protected Command<T, String> requiredErrorMessageCommand = new Command<T, String>() { + @Override public void execute(T c, String value, Object data) { ((Field<?>) c).setRequiredError(value); } @@ -142,6 +150,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> }; protected Command<T, String> descriptionCommand = new Command<T, String>() { + @Override public void execute(T c, String value, Object data) { c.setDescription(value); } @@ -149,6 +158,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> protected Command<T, Boolean> readonlyCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean enabled, Object data) { c.setReadOnly(enabled); } @@ -156,6 +166,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> protected Command<T, Boolean> visibleCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean enabled, Object data) { c.setVisible(enabled); } @@ -163,6 +174,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> protected Command<T, Resource> iconCommand = new Command<T, Resource>() { + @Override public void execute(T c, Resource value, Object data) { c.setIcon(value); } @@ -170,6 +182,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> }; protected Command<T, String> captionCommand = new Command<T, String>() { + @Override public void execute(T c, String value, Object data) { c.setCaption(value); } @@ -178,6 +191,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> protected Command<T, Locale> localeCommand = new Command<T, Locale>() { + @Override public void execute(T c, Locale value, Object data) { c.setLocale(value); } @@ -206,6 +220,7 @@ public abstract class AbstractComponentTestCase<T extends AbstractComponent> } protected Command<T, String> styleNameCommand = new Command<T, String>() { + @Override public void execute(T c, String value, Object data) { c.setStyleName(value); } diff --git a/tests/testbench/com/vaadin/tests/components/AbstractLayoutTest.java b/tests/testbench/com/vaadin/tests/components/AbstractLayoutTest.java index 5c25359e28..af62e5e4a4 100644 --- a/tests/testbench/com/vaadin/tests/components/AbstractLayoutTest.java +++ b/tests/testbench/com/vaadin/tests/components/AbstractLayoutTest.java @@ -15,6 +15,7 @@ public abstract class AbstractLayoutTest<T extends AbstractLayout> extends protected static final String CATEGORY_LAYOUT_FEATURES = "Layout features"; private Command<T, MarginInfo> marginCommand = new Command<T, MarginInfo>() { + @Override public void execute(T c, MarginInfo value, Object data) { c.setMargin(value); @@ -22,6 +23,7 @@ public abstract class AbstractLayoutTest<T extends AbstractLayout> extends }; protected Command<T, Boolean> spacingCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { ((SpacingHandler) c).setSpacing(value); } @@ -29,6 +31,7 @@ public abstract class AbstractLayoutTest<T extends AbstractLayout> extends private Command<T, Integer> setComponentAlignment = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object alignment) { Component child = getComponentAtIndex(c, value); ((AlignmentHandler) c).setComponentAlignment(child, diff --git a/tests/testbench/com/vaadin/tests/components/AbstractOrderedLayoutTest.java b/tests/testbench/com/vaadin/tests/components/AbstractOrderedLayoutTest.java index fd323d2156..1d18cba952 100644 --- a/tests/testbench/com/vaadin/tests/components/AbstractOrderedLayoutTest.java +++ b/tests/testbench/com/vaadin/tests/components/AbstractOrderedLayoutTest.java @@ -12,6 +12,7 @@ public abstract class AbstractOrderedLayoutTest<T extends AbstractOrderedLayout> private Command<T, Boolean> layoutClickListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.addListener((LayoutClickListener) AbstractOrderedLayoutTest.this); @@ -24,6 +25,7 @@ public abstract class AbstractOrderedLayoutTest<T extends AbstractOrderedLayout> private Command<T, Integer> setComponentExpandRatio = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object ratio) { Component child = getComponentAtIndex(c, value); c.setExpandRatio(child, (Float) ratio); @@ -74,6 +76,7 @@ public abstract class AbstractOrderedLayoutTest<T extends AbstractOrderedLayout> } + @Override public void layoutClick(LayoutClickEvent event) { log(event.getClass().getSimpleName() + ": button=" + event.getButtonName() + ", childComponent=" diff --git a/tests/testbench/com/vaadin/tests/components/AddRemoveSetStyleNamesTest.java b/tests/testbench/com/vaadin/tests/components/AddRemoveSetStyleNamesTest.java index b458c12188..926af72a2f 100644 --- a/tests/testbench/com/vaadin/tests/components/AddRemoveSetStyleNamesTest.java +++ b/tests/testbench/com/vaadin/tests/components/AddRemoveSetStyleNamesTest.java @@ -26,6 +26,7 @@ public class AddRemoveSetStyleNamesTest extends TestBase { listener = new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { String style = (String) event.getButton().getData(); setComponentsStyle(style, !popupDateField.getStyleName() @@ -43,6 +44,7 @@ public class AddRemoveSetStyleNamesTest extends TestBase { button3 = new Button("Set thestyle", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (popupDateField.getStyleName().contains(thestyle)) { popupDateField.removeStyleName(thestyle); diff --git a/tests/testbench/com/vaadin/tests/components/ComponentTestCase.java b/tests/testbench/com/vaadin/tests/components/ComponentTestCase.java index a2c186df7e..e949d62f71 100644 --- a/tests/testbench/com/vaadin/tests/components/ComponentTestCase.java +++ b/tests/testbench/com/vaadin/tests/components/ComponentTestCase.java @@ -114,6 +114,7 @@ public abstract class ComponentTestCase<T extends AbstractComponent> extends CheckBox checkBox = new CheckBox(caption); checkBox.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean enabled = (Boolean) event.getProperty().getValue(); doCommand(command, enabled); @@ -136,6 +137,7 @@ public abstract class ComponentTestCase<T extends AbstractComponent> extends Button button = new Button(caption); button.setData(Boolean.FALSE); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Button b = event.getButton(); boolean state = (Boolean) b.getData(); @@ -163,6 +165,7 @@ public abstract class ComponentTestCase<T extends AbstractComponent> extends select.setNullSelectionAllowed(false); select.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Object itemId = event.getProperty().getValue(); Item item = select.getItem(itemId); diff --git a/tests/testbench/com/vaadin/tests/components/CustomComponentwithUndefinedSize.java b/tests/testbench/com/vaadin/tests/components/CustomComponentwithUndefinedSize.java index 57b81ddecc..9fe13c457a 100644 --- a/tests/testbench/com/vaadin/tests/components/CustomComponentwithUndefinedSize.java +++ b/tests/testbench/com/vaadin/tests/components/CustomComponentwithUndefinedSize.java @@ -57,6 +57,7 @@ public class CustomComponentwithUndefinedSize extends TestBase { Button button = new Button("Change panel size", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { switch (step++ % 4) { case 0: diff --git a/tests/testbench/com/vaadin/tests/components/DisableEnableCascade.java b/tests/testbench/com/vaadin/tests/components/DisableEnableCascade.java index aa83ff7a42..cd284224a0 100644 --- a/tests/testbench/com/vaadin/tests/components/DisableEnableCascade.java +++ b/tests/testbench/com/vaadin/tests/components/DisableEnableCascade.java @@ -33,6 +33,7 @@ public class DisableEnableCascade extends TestBase { enableDisablePanelButton = new Button("Disable panel", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { enableDisable(outerPanel, enableDisablePanelButton); @@ -42,6 +43,7 @@ public class DisableEnableCascade extends TestBase { enableDisableTabSheetButton = new Button("Disable TabSheet", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { enableDisable(innerTabsheet, enableDisableTabSheetButton); @@ -52,6 +54,7 @@ public class DisableEnableCascade extends TestBase { enableDisableButtonButton = new Button("Disable Button", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { enableDisable(button, enableDisableButtonButton); diff --git a/tests/testbench/com/vaadin/tests/components/DisableEnableCascadeStyles.java b/tests/testbench/com/vaadin/tests/components/DisableEnableCascadeStyles.java index f3391afd1f..0279a92437 100644 --- a/tests/testbench/com/vaadin/tests/components/DisableEnableCascadeStyles.java +++ b/tests/testbench/com/vaadin/tests/components/DisableEnableCascadeStyles.java @@ -55,6 +55,7 @@ public class DisableEnableCascadeStyles extends TestBase { enableDisablePanelButton = new Button("Disable panel", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { enableDisable(outerPanel, enableDisablePanelButton); @@ -64,6 +65,7 @@ public class DisableEnableCascadeStyles extends TestBase { enableDisableTabSheetButton = new Button("Disable TabSheet", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { enableDisable(innerTabsheet, enableDisableTabSheetButton); @@ -74,6 +76,7 @@ public class DisableEnableCascadeStyles extends TestBase { enableDisableLayoutButton = new Button("Disable Tab content (Layout)", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { enableDisable(layout, enableDisableLayoutButton); @@ -82,6 +85,7 @@ public class DisableEnableCascadeStyles extends TestBase { enableDisableComponentsButton = new Button("Disable Layout Components", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { for (Iterator<Component> i = layout .getComponentIterator(); i.hasNext();) { diff --git a/tests/testbench/com/vaadin/tests/components/FocusAndBlurListeners.java b/tests/testbench/com/vaadin/tests/components/FocusAndBlurListeners.java index 267807b16b..7987c800f9 100644 --- a/tests/testbench/com/vaadin/tests/components/FocusAndBlurListeners.java +++ b/tests/testbench/com/vaadin/tests/components/FocusAndBlurListeners.java @@ -23,6 +23,7 @@ public class FocusAndBlurListeners extends TestBase { private FocusListener focusListener = new FocusListener() { + @Override public void focus(FocusEvent event) { Label msg = new Label(new Date() + " Focused " + event.getComponent().getCaption()); @@ -31,6 +32,7 @@ public class FocusAndBlurListeners extends TestBase { }; private BlurListener blurListener = new BlurListener() { + @Override public void blur(BlurEvent event) { Label msg = new Label(new Date() + " Blurred " + event.getComponent().getCaption()); @@ -74,6 +76,7 @@ public class FocusAndBlurListeners extends TestBase { private int i; + @Override public void buttonClick(ClickEvent event) { ogm.addItem("newItem" + i++); diff --git a/tests/testbench/com/vaadin/tests/components/FocusFromShortcutAction.java b/tests/testbench/com/vaadin/tests/components/FocusFromShortcutAction.java index 124f2b9cdf..cffc8ca27b 100644 --- a/tests/testbench/com/vaadin/tests/components/FocusFromShortcutAction.java +++ b/tests/testbench/com/vaadin/tests/components/FocusFromShortcutAction.java @@ -20,6 +20,7 @@ public class FocusFromShortcutAction extends TestBase { addComponent(select); addComponent(text); Button focusText = new Button("Focus text", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { text.focus(); } @@ -29,6 +30,7 @@ public class FocusFromShortcutAction extends TestBase { addComponent(focusText); Button focusSelect = new Button("Focus select", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { select.focus(); } diff --git a/tests/testbench/com/vaadin/tests/components/LayoutAttachListenerInfo.java b/tests/testbench/com/vaadin/tests/components/LayoutAttachListenerInfo.java index dc07c35f62..6e54c0d9f4 100644 --- a/tests/testbench/com/vaadin/tests/components/LayoutAttachListenerInfo.java +++ b/tests/testbench/com/vaadin/tests/components/LayoutAttachListenerInfo.java @@ -27,6 +27,7 @@ public class LayoutAttachListenerInfo extends TestBase { layouts.select("AbsoluteLayout"); layouts.setImmediate(true); layouts.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (event.getProperty().getValue().equals("AbsoluteLayout")) { testAbsoluteLayout(); @@ -64,6 +65,7 @@ public class LayoutAttachListenerInfo extends TestBase { a.setWidth("300px"); a.setHeight("300px"); a.addListener(new ComponentContainer.ComponentAttachListener() { + @Override public void componentAttachedToContainer(ComponentAttachEvent event) { AbsoluteLayout layout = (AbsoluteLayout) event.getContainer(); AbsoluteLayout.ComponentPosition position = layout @@ -78,6 +80,7 @@ public class LayoutAttachListenerInfo extends TestBase { content.addComponent(new Button("Attach label to layout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { a.addComponent(new Label("X"), "top:50px;left:50px"); } @@ -91,6 +94,7 @@ public class LayoutAttachListenerInfo extends TestBase { v.setWidth("300px"); v.setHeight("300px"); v.addListener(new ComponentContainer.ComponentAttachListener() { + @Override public void componentAttachedToContainer(ComponentAttachEvent event) { VerticalLayout layout = (VerticalLayout) event.getContainer(); getMainWindow().showNotification( @@ -104,6 +108,7 @@ public class LayoutAttachListenerInfo extends TestBase { content.addComponent(new Button("Attach label to layout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { v.addComponent(new Label("X")); @@ -118,6 +123,7 @@ public class LayoutAttachListenerInfo extends TestBase { g.setWidth("300px"); g.setHeight("300px"); g.addListener(new ComponentContainer.ComponentAttachListener() { + @Override public void componentAttachedToContainer(ComponentAttachEvent event) { GridLayout layout = (GridLayout) event.getContainer(); GridLayout.Area area = layout.getComponentArea(event @@ -133,6 +139,7 @@ public class LayoutAttachListenerInfo extends TestBase { content.addComponent(new Button("Attach label to layout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { g.addComponent(new Label("X"), 2, 3); } diff --git a/tests/testbench/com/vaadin/tests/components/TouchScrollables.java b/tests/testbench/com/vaadin/tests/components/TouchScrollables.java index 8ad12da85f..0cef24f437 100644 --- a/tests/testbench/com/vaadin/tests/components/TouchScrollables.java +++ b/tests/testbench/com/vaadin/tests/components/TouchScrollables.java @@ -79,12 +79,14 @@ public class TouchScrollables extends TestBase { final Label l = l50; Button button = new Button("Scroll to label 50", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getLayout().getRoot().scrollIntoView(l); } }); cssLayout.addComponent(button); button = new Button("Scroll to 100px", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { p.setScrollTop(100); } @@ -117,6 +119,7 @@ public class TouchScrollables extends TestBase { Button button = new Button("Toggle lazyloading"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (table.getCacheRate() == 100) { table.setCacheRate(2); @@ -131,6 +134,7 @@ public class TouchScrollables extends TestBase { button = new Button("Toggle selectable"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setSelectable(!table.isSelectable()); } @@ -159,6 +163,7 @@ public class TouchScrollables extends TestBase { private Component getSubWindowTest() { Button b = new Button("Open subwindow", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Window w = new Window("Subwindow"); w.center(); @@ -185,10 +190,12 @@ public class TouchScrollables extends TestBase { Action[] actions = new Action[] { new Action("FOO"), new Action("BAR"), new Action("CAR") }; + @Override public Action[] getActions(Object target, Object sender) { return actions; } + @Override public void handleAction(Action action, Object sender, Object target) { Notification.show(action.getCaption()); @@ -206,10 +213,12 @@ public class TouchScrollables extends TestBase { // accept only drags from this table AcceptCriterion crit = new SourceIs(table); + @Override public AcceptCriterion getAcceptCriterion() { return crit; } + @Override public void drop(DragAndDropEvent dropEvent) { AbstractSelectTargetDetails dropTargetData = (AbstractSelectTargetDetails) dropEvent .getTargetDetails(); diff --git a/tests/testbench/com/vaadin/tests/components/absolutelayout/MoveComponentsFromAbsoluteLayoutToInnerLayout.java b/tests/testbench/com/vaadin/tests/components/absolutelayout/MoveComponentsFromAbsoluteLayoutToInnerLayout.java index 139ed5bb0b..826b7cee07 100644 --- a/tests/testbench/com/vaadin/tests/components/absolutelayout/MoveComponentsFromAbsoluteLayoutToInnerLayout.java +++ b/tests/testbench/com/vaadin/tests/components/absolutelayout/MoveComponentsFromAbsoluteLayoutToInnerLayout.java @@ -22,6 +22,7 @@ public class MoveComponentsFromAbsoluteLayoutToInnerLayout extends TestBase { testButton = new Button("Click to move to inner layout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { vl.addComponent(testButton); } @@ -37,6 +38,7 @@ public class MoveComponentsFromAbsoluteLayoutToInnerLayout extends TestBase { Button b = new Button("Repaint inner layout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { vl.requestRepaint(); } diff --git a/tests/testbench/com/vaadin/tests/components/abstractcomponent/EnableState.java b/tests/testbench/com/vaadin/tests/components/abstractcomponent/EnableState.java index 9261962b0d..f8931ecdea 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractcomponent/EnableState.java +++ b/tests/testbench/com/vaadin/tests/components/abstractcomponent/EnableState.java @@ -20,6 +20,7 @@ public class EnableState extends AbstractTestCase { CheckBox enable = new CheckBox("Toggle button enabled", true); enable.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean enabled = (Boolean) event.getProperty().getValue(); button.setEnabled(enabled); @@ -31,6 +32,7 @@ public class EnableState extends AbstractTestCase { CheckBox caption = new CheckBox("Toggle button caption", true); caption.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { button.setCaption(button.getCaption() + "+"); } @@ -40,6 +42,7 @@ public class EnableState extends AbstractTestCase { CheckBox visible = new CheckBox("Toggle panel visibility", true); visible.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean visible = (Boolean) event.getProperty().getValue(); @@ -51,6 +54,7 @@ public class EnableState extends AbstractTestCase { CheckBox panelEnable = new CheckBox("Toggle panel enabled", true); panelEnable.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean enabled = (Boolean) event.getProperty().getValue(); panel.setEnabled(enabled); diff --git a/tests/testbench/com/vaadin/tests/components/abstractcomponent/TooltipTests.java b/tests/testbench/com/vaadin/tests/components/abstractcomponent/TooltipTests.java index c009e1d7bc..300abe1851 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractcomponent/TooltipTests.java +++ b/tests/testbench/com/vaadin/tests/components/abstractcomponent/TooltipTests.java @@ -57,6 +57,7 @@ public class TooltipTests extends TestBase { private final Property.ValueChangeListener panelListener = new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean value = (Boolean) (event.getProperty().getValue()); if (value) { @@ -70,6 +71,7 @@ public class TooltipTests extends TestBase { private final Property.ValueChangeListener layoutListener = new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean value = (Boolean) (event.getProperty().getValue()); if (value) { @@ -83,6 +85,7 @@ public class TooltipTests extends TestBase { private final Property.ValueChangeListener labelListener = new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean value = (Boolean) (event.getProperty().getValue()); if (value) { diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractComponentDataBindingTest.java b/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractComponentDataBindingTest.java index 93ba858e37..9b29ae1bab 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractComponentDataBindingTest.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractComponentDataBindingTest.java @@ -45,6 +45,7 @@ public abstract class AbstractComponentDataBindingTest extends TestBase cb.setImmediate(true); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { updateLocale((Locale) localeSelect.getValue()); } @@ -91,6 +92,7 @@ public abstract class AbstractComponentDataBindingTest extends TestBase return null; } + @Override public void valueChange(ValueChangeEvent event) { AbstractField field = (AbstractField) event.getProperty(); // if (field == localeSelect) { diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldCommitWithInvalidValues.java b/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldCommitWithInvalidValues.java index 5d0e0fe488..aa630c79fd 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldCommitWithInvalidValues.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldCommitWithInvalidValues.java @@ -33,6 +33,7 @@ public class AbstractFieldCommitWithInvalidValues extends TestBase { Button b = new Button("Commit", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { tf.commit(); diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldDataSourceReadOnly.java b/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldDataSourceReadOnly.java index 780130847a..f1b96d24fd 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldDataSourceReadOnly.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldDataSourceReadOnly.java @@ -34,6 +34,7 @@ public class AbstractFieldDataSourceReadOnly extends TestBase { // Button Button button = new Button("Make data source read-only"); button.addListener(new Listener() { + @Override public void componentEvent(Event event) { stateHolder.buttonClicked(); } diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldTest.java b/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldTest.java index 716f80e23f..66b5e23cda 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldTest.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractFieldTest.java @@ -65,6 +65,7 @@ public abstract class AbstractFieldTest<T extends AbstractField<?>> extends .addItem("AbstractField", null); abstractField.addItem("Show value", new MenuBar.Command() { + @Override public void menuSelected(MenuItem selectedItem) { for (T a : getTestComponents()) { log(a.getClass().getSimpleName() + " value: " @@ -101,6 +102,7 @@ public abstract class AbstractFieldTest<T extends AbstractField<?>> extends protected Command<T, Boolean> valueChangeListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.addListener((ValueChangeListener) AbstractFieldTest.this); @@ -111,6 +113,7 @@ public abstract class AbstractFieldTest<T extends AbstractField<?>> extends }; protected Command<T, Boolean> readonlyStatusChangeListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.addListener((ReadOnlyStatusChangeListener) AbstractFieldTest.this); @@ -122,11 +125,13 @@ public abstract class AbstractFieldTest<T extends AbstractField<?>> extends protected Command<T, Object> setValueCommand = new Command<T, Object>() { + @Override public void execute(T c, Object value, Object data) { c.setValue(value); } }; + @Override public void valueChange(com.vaadin.data.Property.ValueChangeEvent event) { log(event.getClass().getSimpleName() + ", new value: " + getValue(event.getProperty())); @@ -168,6 +173,7 @@ public abstract class AbstractFieldTest<T extends AbstractField<?>> extends } + @Override public void readOnlyStatusChange(ReadOnlyStatusChangeEvent event) { log(event.getClass().getSimpleName()); } diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractTextFieldTest.java b/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractTextFieldTest.java index b68134f379..1f407c710f 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractTextFieldTest.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/AbstractTextFieldTest.java @@ -14,12 +14,14 @@ public abstract class AbstractTextFieldTest<T extends AbstractTextField> private Command<T, Integer> maxlengthCommand = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object data) { c.setMaxLength(value); } }; private Command<T, Boolean> nullSelectionAllowedCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { c.setNullSettingAllowed(value); @@ -27,18 +29,21 @@ public abstract class AbstractTextFieldTest<T extends AbstractTextField> }; private Command<T, String> nullRepresentationCommand = new Command<T, String>() { + @Override public void execute(T c, String value, Object data) { c.setNullRepresentation(value); } }; private Command<T, String> inputPromptCommand = new Command<T, String>() { + @Override public void execute(T c, String value, Object data) { c.setInputPrompt(value); } }; private Command<T, Boolean> textChangeListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.addListener((TextChangeListener) AbstractTextFieldTest.this); @@ -49,24 +54,28 @@ public abstract class AbstractTextFieldTest<T extends AbstractTextField> }; private Command<T, Integer> colsCommand = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object data) { c.setColumns(value); } }; private Command<T, TextChangeEventMode> textChangeEventModeCommand = new Command<T, TextChangeEventMode>() { + @Override public void execute(T c, TextChangeEventMode value, Object data) { c.setTextChangeEventMode(value); } }; private Command<T, Integer> textChangeTimeoutCommand = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object data) { c.setTextChangeTimeout(value); } }; private Command<T, Range> selectionRangeCommand = new Command<T, Range>() { + @Override public void execute(T c, Range value, Object data) { c.setSelectionRange(value.getStart(), value.getEnd() - value.getStart()); @@ -74,6 +83,7 @@ public abstract class AbstractTextFieldTest<T extends AbstractTextField> } }; private Command<T, Object> selectAllCommand = new Command<T, Object>() { + @Override public void execute(T c, Object value, Object data) { c.selectAll(); } @@ -81,6 +91,7 @@ public abstract class AbstractTextFieldTest<T extends AbstractTextField> private Command<T, Integer> setCursorPositionCommand = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object data) { c.setCursorPosition(value); } @@ -230,6 +241,7 @@ public abstract class AbstractTextFieldTest<T extends AbstractTextField> } + @Override public void textChange(TextChangeEvent event) { AbstractTextField tf = (AbstractTextField) event.getComponent(); log("TextChangeEvent: text='" + event.getText() + "', cursor position=" diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/DateFieldBasedOnLong.java b/tests/testbench/com/vaadin/tests/components/abstractfield/DateFieldBasedOnLong.java index deea0fbe0a..aa8c7ff778 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/DateFieldBasedOnLong.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/DateFieldBasedOnLong.java @@ -24,6 +24,7 @@ public class DateFieldBasedOnLong extends AbstractComponentDataBindingTest { addComponent(new Button("Set property value to 10000L", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { property.setValue(10000L); diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/IntegerDoubleFieldsWithDataSource.java b/tests/testbench/com/vaadin/tests/components/abstractfield/IntegerDoubleFieldsWithDataSource.java index c13aadd895..01fcb02b77 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/IntegerDoubleFieldsWithDataSource.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/IntegerDoubleFieldsWithDataSource.java @@ -34,6 +34,7 @@ public class IntegerDoubleFieldsWithDataSource extends TestBase { tf.setImmediate(true); tf.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { try { log.log("Value for " + tf.getCaption() + " changed to " diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/IntegerFieldWithoutDataSource.java b/tests/testbench/com/vaadin/tests/components/abstractfield/IntegerFieldWithoutDataSource.java index b25dc9d953..929247fc80 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/IntegerFieldWithoutDataSource.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/IntegerFieldWithoutDataSource.java @@ -29,6 +29,7 @@ public class IntegerFieldWithoutDataSource extends TestBase { tf.setImmediate(true); tf.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { try { log.log("Value for " + tf.getCaption() + " changed to " diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/ShortcutAddAndRemove.java b/tests/testbench/com/vaadin/tests/components/abstractfield/ShortcutAddAndRemove.java index 26720d67f3..309e297374 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/ShortcutAddAndRemove.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/ShortcutAddAndRemove.java @@ -20,6 +20,7 @@ public class ShortcutAddAndRemove extends TestBase { final Button logButton = new Button("Log a row (enter shortcut)"); logButton.setClickShortcut(KeyCode.ENTER); logButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("Log button was clicked"); } @@ -27,6 +28,7 @@ public class ShortcutAddAndRemove extends TestBase { final Button removeShortcut = new Button("Remove shortcut"); removeShortcut.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { logButton.removeClickShortcut(); logButton.setCaption("Log a row (no shortcut)"); @@ -34,6 +36,7 @@ public class ShortcutAddAndRemove extends TestBase { }); final Button addShortcut = new Button("Add shortcut"); addShortcut.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { logButton.setClickShortcut(KeyCode.ENTER); logButton.setCaption("Log a row (enter shortcut)"); diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/TextFieldConversions.java b/tests/testbench/com/vaadin/tests/components/abstractfield/TextFieldConversions.java index 8ce214918d..fc08a4505c 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/TextFieldConversions.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/TextFieldConversions.java @@ -31,6 +31,7 @@ public class TextFieldConversions extends AbstractComponentDataBindingTest { dataType.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { tf.setPropertyDataSource(new ObjectProperty<Object>(o, (Class<Object>) dataType.getValue())); @@ -42,6 +43,7 @@ public class TextFieldConversions extends AbstractComponentDataBindingTest { addComponent(tf); tf.setErrorHandler(new ComponentErrorHandler() { + @Override public boolean handleComponentError(ComponentErrorEvent event) { tf.setComponentError(new UserError("Invalid value")); return true; diff --git a/tests/testbench/com/vaadin/tests/components/abstractfield/Vaadin6ImplicitDoubleConverter.java b/tests/testbench/com/vaadin/tests/components/abstractfield/Vaadin6ImplicitDoubleConverter.java index 0228a59f06..a9aa4d2a43 100644 --- a/tests/testbench/com/vaadin/tests/components/abstractfield/Vaadin6ImplicitDoubleConverter.java +++ b/tests/testbench/com/vaadin/tests/components/abstractfield/Vaadin6ImplicitDoubleConverter.java @@ -7,6 +7,7 @@ import com.vaadin.data.util.converter.Converter; public class Vaadin6ImplicitDoubleConverter implements Converter<String, Double> { + @Override public Double convertToModel(String value, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException { if (null == value) { @@ -15,6 +16,7 @@ public class Vaadin6ImplicitDoubleConverter implements return new Double(value.toString()); } + @Override public String convertToPresentation(Double value, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException { if (value == null) { @@ -24,10 +26,12 @@ public class Vaadin6ImplicitDoubleConverter implements } + @Override public Class<Double> getModelType() { return Double.class; } + @Override public Class<String> getPresentationType() { return String.class; } diff --git a/tests/testbench/com/vaadin/tests/components/accordion/RemoveTabs.java b/tests/testbench/com/vaadin/tests/components/accordion/RemoveTabs.java index a048cf04a8..d24def22dd 100644 --- a/tests/testbench/com/vaadin/tests/components/accordion/RemoveTabs.java +++ b/tests/testbench/com/vaadin/tests/components/accordion/RemoveTabs.java @@ -47,6 +47,7 @@ public class RemoveTabs extends TestBase { closeCurrent = new Button("Close current tab"); closeCurrent.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { closeCurrentTab(); @@ -55,6 +56,7 @@ public class RemoveTabs extends TestBase { closeFirst = new Button("close first tab"); closeFirst.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { closeFirstTab(); @@ -63,6 +65,7 @@ public class RemoveTabs extends TestBase { closeLast = new Button("close last tab"); closeLast.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { closeLastTab(); @@ -71,6 +74,7 @@ public class RemoveTabs extends TestBase { reorderTabs = new Button("reorder"); reorderTabs.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { reorder(); diff --git a/tests/testbench/com/vaadin/tests/components/beanitemcontainer/BeanItemContainerNullValues.java b/tests/testbench/com/vaadin/tests/components/beanitemcontainer/BeanItemContainerNullValues.java index f613a8b14f..605ab676b6 100644 --- a/tests/testbench/com/vaadin/tests/components/beanitemcontainer/BeanItemContainerNullValues.java +++ b/tests/testbench/com/vaadin/tests/components/beanitemcontainer/BeanItemContainerNullValues.java @@ -29,6 +29,7 @@ public class BeanItemContainerNullValues extends TestBase { Button b = new Button("Disable sorting", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setSortEnabled(!table.isSortEnabled()); if (table.isSortEnabled()) { diff --git a/tests/testbench/com/vaadin/tests/components/button/ButtonEnterWithWindowShortcut.java b/tests/testbench/com/vaadin/tests/components/button/ButtonEnterWithWindowShortcut.java index 7efd40ca5d..0d4981a441 100644 --- a/tests/testbench/com/vaadin/tests/components/button/ButtonEnterWithWindowShortcut.java +++ b/tests/testbench/com/vaadin/tests/components/button/ButtonEnterWithWindowShortcut.java @@ -17,10 +17,12 @@ public class ButtonEnterWithWindowShortcut extends TestBase { getMainWindow().addActionHandler(new Handler() { private static final long serialVersionUID = -4976129418325394913L; + @Override public void handleAction(Action action, Object sender, Object target) { log.log(action.getCaption() + " pressed in window"); } + @Override public Action[] getActions(Object target, Object sender) { ShortcutAction enter = new ShortcutAction("enter", ShortcutAction.KeyCode.ENTER, null); @@ -32,6 +34,7 @@ public class ButtonEnterWithWindowShortcut extends TestBase { Button button = new Button("Focus me and press enter", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("button click listener fired"); } diff --git a/tests/testbench/com/vaadin/tests/components/button/ButtonErrorMessage.java b/tests/testbench/com/vaadin/tests/components/button/ButtonErrorMessage.java index aca85d4efe..b27f948669 100644 --- a/tests/testbench/com/vaadin/tests/components/button/ButtonErrorMessage.java +++ b/tests/testbench/com/vaadin/tests/components/button/ButtonErrorMessage.java @@ -11,6 +11,7 @@ public class ButtonErrorMessage extends TestBase { protected void setup() { Button b = new Button("Click for error"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { throw new NullPointerException(); } diff --git a/tests/testbench/com/vaadin/tests/components/button/ButtonHtml.java b/tests/testbench/com/vaadin/tests/components/button/ButtonHtml.java index 253de5b43c..5cdc34e8e8 100644 --- a/tests/testbench/com/vaadin/tests/components/button/ButtonHtml.java +++ b/tests/testbench/com/vaadin/tests/components/button/ButtonHtml.java @@ -19,6 +19,7 @@ public class ButtonHtml extends TestBase { final Button swapButton = new Button("<i>Swap button<i>"); swapButton.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { swapButton.setHtmlContentAllowed(!swapButton .isHtmlContentAllowed()); diff --git a/tests/testbench/com/vaadin/tests/components/button/ButtonMouseDetails.java b/tests/testbench/com/vaadin/tests/components/button/ButtonMouseDetails.java index 8fe56b7619..2e60c7cfcc 100644 --- a/tests/testbench/com/vaadin/tests/components/button/ButtonMouseDetails.java +++ b/tests/testbench/com/vaadin/tests/components/button/ButtonMouseDetails.java @@ -14,6 +14,7 @@ public class ButtonMouseDetails extends TestBase { private Button.ClickListener clickListener = new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { StringBuilder str = new StringBuilder(out.getValue().toString()); str.append(clickCounter + ":\t"); diff --git a/tests/testbench/com/vaadin/tests/components/button/Buttons2.java b/tests/testbench/com/vaadin/tests/components/button/Buttons2.java index e04d50bddb..7526e7dbc3 100644 --- a/tests/testbench/com/vaadin/tests/components/button/Buttons2.java +++ b/tests/testbench/com/vaadin/tests/components/button/Buttons2.java @@ -13,6 +13,7 @@ public class Buttons2<T extends Button> extends AbstractComponentTest<T> private Command<T, Boolean> disableOnClickCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { c.setDisableOnClick(value); } @@ -20,6 +21,7 @@ public class Buttons2<T extends Button> extends AbstractComponentTest<T> private Command<T, Boolean> clickListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.addListener((Button.ClickListener) Buttons2.this); @@ -62,6 +64,7 @@ public class Buttons2<T extends Button> extends AbstractComponentTest<T> } + @Override public void buttonClick(ClickEvent event) { log(event.getClass().getSimpleName()); } diff --git a/tests/testbench/com/vaadin/tests/components/button/ShortCutListenerModification.java b/tests/testbench/com/vaadin/tests/components/button/ShortCutListenerModification.java index 295c04fc0c..4fb8df678e 100644 --- a/tests/testbench/com/vaadin/tests/components/button/ShortCutListenerModification.java +++ b/tests/testbench/com/vaadin/tests/components/button/ShortCutListenerModification.java @@ -60,6 +60,7 @@ public class ShortCutListenerModification extends TestBase implements } + @Override public void buttonClick(ClickEvent event) { Component c = event.getButton(); while (!(c instanceof Window)) { diff --git a/tests/testbench/com/vaadin/tests/components/button/TooltipForDisabledButton.java b/tests/testbench/com/vaadin/tests/components/button/TooltipForDisabledButton.java index 4952b4bc50..c1f1846415 100644 --- a/tests/testbench/com/vaadin/tests/components/button/TooltipForDisabledButton.java +++ b/tests/testbench/com/vaadin/tests/components/button/TooltipForDisabledButton.java @@ -27,6 +27,7 @@ public class TooltipForDisabledButton extends TestBase { buttonDisabled.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().showNotification("Clicked Disabled"); } @@ -35,6 +36,7 @@ public class TooltipForDisabledButton extends TestBase { buttonEnabled.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().showNotification("Clicked Enabled"); } diff --git a/tests/testbench/com/vaadin/tests/components/caption/IconsInCaption.java b/tests/testbench/com/vaadin/tests/components/caption/IconsInCaption.java index 3211a9c142..cbdde63df0 100644 --- a/tests/testbench/com/vaadin/tests/components/caption/IconsInCaption.java +++ b/tests/testbench/com/vaadin/tests/components/caption/IconsInCaption.java @@ -47,6 +47,7 @@ public class IconsInCaption extends TestBase { iconTypeSelect.setImmediate(true); iconTypeSelect.setNullSelectionAllowed(false); iconTypeSelect.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { updateContainer(); } @@ -60,6 +61,7 @@ public class IconsInCaption extends TestBase { containerSelect.setImmediate(true); containerSelect.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { updateContainer(); diff --git a/tests/testbench/com/vaadin/tests/components/checkbox/CheckBoxNullValue.java b/tests/testbench/com/vaadin/tests/components/checkbox/CheckBoxNullValue.java index 2c981432c8..28abf5172d 100644 --- a/tests/testbench/com/vaadin/tests/components/checkbox/CheckBoxNullValue.java +++ b/tests/testbench/com/vaadin/tests/components/checkbox/CheckBoxNullValue.java @@ -29,6 +29,7 @@ public class CheckBoxNullValue extends TestBase { final Button button = new Button("Validate"); addComponent(button); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { checkbox.setComponentError(null); requiredCheckbox.setComponentError(null); diff --git a/tests/testbench/com/vaadin/tests/components/checkbox/CheckBoxes2.java b/tests/testbench/com/vaadin/tests/components/checkbox/CheckBoxes2.java index 4f9cd10ecc..6734c752de 100644 --- a/tests/testbench/com/vaadin/tests/components/checkbox/CheckBoxes2.java +++ b/tests/testbench/com/vaadin/tests/components/checkbox/CheckBoxes2.java @@ -19,6 +19,7 @@ public class CheckBoxes2 extends AbstractFieldTest<CheckBox> implements } + @Override public void buttonClick(ClickEvent event) { log(event.getClass().getSimpleName()); } diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxCombinedWithEnterShortcut.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxCombinedWithEnterShortcut.java index 88a403b1b6..38bdf0c5fe 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxCombinedWithEnterShortcut.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxCombinedWithEnterShortcut.java @@ -29,6 +29,7 @@ public class ComboBoxCombinedWithEnterShortcut extends TestBase { aButton.setClickShortcut(KeyCode.ENTER); aButton.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("Button clicked. ComboBox value: " + l.getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxDataSourceChange.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxDataSourceChange.java index 9285983b99..a475c86ca0 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxDataSourceChange.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxDataSourceChange.java @@ -57,6 +57,7 @@ public class ComboBoxDataSourceChange extends TestBase { Button b = new Button("Use ds1"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { cb2.setContainerDataSource(ds1); currentDS.setValue("ds1"); @@ -72,6 +73,7 @@ public class ComboBoxDataSourceChange extends TestBase { b = new Button("Use ds2"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { cb2.setContainerDataSource(ds2); currentDS.setValue("ds2"); @@ -82,6 +84,7 @@ public class ComboBoxDataSourceChange extends TestBase { addComponent(hl); cb2.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { currentValue.setValue(event.getProperty().getValue()); } diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxEnablesComboBox.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxEnablesComboBox.java index d9739602f6..c5e411678d 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxEnablesComboBox.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxEnablesComboBox.java @@ -16,6 +16,7 @@ public class ComboBoxEnablesComboBox extends TestBase { populate(cb); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { cb2.setEnabled(true); } diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxIdenticalItems.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxIdenticalItems.java index fd434a7acd..5f33b96a73 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxIdenticalItems.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxIdenticalItems.java @@ -27,6 +27,7 @@ public class ComboBoxIdenticalItems extends TestBase { select.addListener(new Property.ValueChangeListener() { private static final long serialVersionUID = -7932700771673919620L; + @Override public void valueChange(ValueChangeEvent event) { log.log("Item " + select.getValue() + " selected"); diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxInPopup.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxInPopup.java index 70aad31364..c0490c127d 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxInPopup.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxInPopup.java @@ -17,6 +17,7 @@ public class ComboBoxInPopup extends TestBase { w.addComponent(createComboBox()); Button close = new Button("Close window", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { w.close(); } diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxInvalidNullSelection.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxInvalidNullSelection.java index e11b10f3e1..0afa1e887e 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxInvalidNullSelection.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxInvalidNullSelection.java @@ -24,6 +24,7 @@ public class ComboBoxInvalidNullSelection extends TestBase { Button b = new Button("Swap data source"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (combo.getContainerDataSource() == ds1) { combo.setContainerDataSource(ds2); @@ -39,6 +40,7 @@ public class ComboBoxInvalidNullSelection extends TestBase { combo.setContainerDataSource(ds1); combo.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { log.log("Value is now: " + combo.getValue()); } diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java index c78ff7675f..5dc5a2efbd 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxReapperingOldValue.java @@ -58,6 +58,7 @@ public class ComboBoxReapperingOldValue extends Application.LegacyApplication return container; } + @Override public void valueChange(ValueChangeEvent event) { cbox2.removeAllItems(); if ("1".equals(event.getProperty().getValue().toString())) { diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSlow.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSlow.java index 15742cc783..0336ff423b 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSlow.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSlow.java @@ -45,6 +45,7 @@ public class ComboBoxSlow extends TestBase { } cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { log.log("Value changed to " + cb.getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSlowInFF.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSlowInFF.java index 5c1dad4a30..d98997d28f 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSlowInFF.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSlowInFF.java @@ -24,6 +24,7 @@ public class ComboBoxSlowInFF extends TestBase { Button fill = new Button("fill it"); fill.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { t.removeAllItems(); for (int i = 0; i < 200; i++) { diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSuggestionOnDetach.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSuggestionOnDetach.java index 09354fdacf..24aea18314 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSuggestionOnDetach.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxSuggestionOnDetach.java @@ -16,6 +16,7 @@ public class ComboBoxSuggestionOnDetach extends TestBase { ComboBox comboBox = new ComboBox("Combo box", Arrays.asList("Option 1", "Option 2", "Option 3")); comboBox.addListener(new FieldEvents.FocusListener() { + @Override public void focus(FocusEvent event) { popup.close(); } diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxTextFieldEventOrder.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxTextFieldEventOrder.java index 6f6e550ab4..d33a858dc8 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxTextFieldEventOrder.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxTextFieldEventOrder.java @@ -17,6 +17,7 @@ public class ComboBoxTextFieldEventOrder extends TestBase { final Select select = new Select("select", Arrays.asList("1", "2", "3", "4")); textField.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { select.addItem(Long.valueOf(select.size() + 1).toString()); // or // just diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxValueUpdate.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxValueUpdate.java index b8f7a9758d..76ee83384e 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxValueUpdate.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxValueUpdate.java @@ -29,6 +29,7 @@ public class ComboBoxValueUpdate extends TestBase { select.addListener(new ComboBox.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { System.err .println("Selected " + event.getProperty().getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxes2.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxes2.java index 8befbb4612..3071ab4c2d 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxes2.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboBoxes2.java @@ -10,12 +10,14 @@ import com.vaadin.ui.Select; public class ComboBoxes2 extends SelectTest<ComboBox> { private Command<ComboBox, String> inputPromptCommand = new Command<ComboBox, String>() { + @Override public void execute(ComboBox c, String value, Object data) { c.setInputPrompt(value); } }; private Command<ComboBox, Integer> filteringModeCommand = new Command<ComboBox, Integer>() { + @Override public void execute(ComboBox c, Integer value, Object data) { c.setFilteringMode(value); } @@ -39,6 +41,7 @@ public class ComboBoxes2 extends SelectTest<ComboBox> { private void createTextInputAlowedAction(String category) { createBooleanAction("Text input allowed", category, true, new Command<ComboBox, Boolean>() { + @Override public void execute(ComboBox c, Boolean value, Object data) { c.setTextInputAllowed(value.booleanValue()); } @@ -48,6 +51,7 @@ public class ComboBoxes2 extends SelectTest<ComboBox> { private void createNewItemsAllowedAction(String category) { createBooleanAction("New items allowed", category, false, new Command<ComboBox, Boolean>() { + @Override public void execute(ComboBox c, Boolean value, Object data) { c.setNewItemsAllowed(value.booleanValue()); } @@ -80,6 +84,7 @@ public class ComboBoxes2 extends SelectTest<ComboBox> { createSelectAction("Icon", category, createIconOptions(false), "-", new Command<ComboBox, Resource>() { + @Override public void execute(ComboBox c, Resource value, Object data) { for (Object id : c.getItemIds()) { if (value == null) { diff --git a/tests/testbench/com/vaadin/tests/components/combobox/ComboFocusBlurEvents.java b/tests/testbench/com/vaadin/tests/components/combobox/ComboFocusBlurEvents.java index 44285f97c2..ef390007be 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/ComboFocusBlurEvents.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/ComboFocusBlurEvents.java @@ -34,6 +34,7 @@ public class ComboFocusBlurEvents extends TestBase { final ObjectProperty<String> log = new ObjectProperty<String>(""); cb.addListener(new FieldEvents.FocusListener() { + @Override public void focus(FocusEvent event) { log.setValue(log.getValue().toString() + "<br>" + counter + ": Focus event!"); @@ -42,6 +43,7 @@ public class ComboFocusBlurEvents extends TestBase { }); cb.addListener(new FieldEvents.BlurListener() { + @Override public void blur(BlurEvent event) { log.setValue(log.getValue().toString() + "<br>" + counter + ": Blur event!"); diff --git a/tests/testbench/com/vaadin/tests/components/combobox/Comboboxes.java b/tests/testbench/com/vaadin/tests/components/combobox/Comboboxes.java index 94ab20df43..5b1af58421 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/Comboboxes.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/Comboboxes.java @@ -136,6 +136,7 @@ public class Comboboxes extends ComponentTestCase<ComboBox> { return createSelectAction("Icon", options, "<None>", new Command<ComboBox, String>() { + @Override public void execute(ComboBox c, String value, Object data) { for (Object id : c.getItemIds()) { if (value == null) { diff --git a/tests/testbench/com/vaadin/tests/components/combobox/NewItemsESCPress.java b/tests/testbench/com/vaadin/tests/components/combobox/NewItemsESCPress.java index d93db563e3..00e9242a7a 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/NewItemsESCPress.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/NewItemsESCPress.java @@ -17,6 +17,7 @@ public class NewItemsESCPress extends TestBase { final ComboBox box = new ComboBox("New items are allowed"); box.setNewItemsAllowed(true); box.setNewItemHandler(new NewItemHandler() { + @Override public void addNewItem(String newItemCaption) { String value = (String) addedItems.getValue(); addedItems.setValue(value + newItemCaption + "\n"); diff --git a/tests/testbench/com/vaadin/tests/components/combobox/RemovalOfSelectedIcon.java b/tests/testbench/com/vaadin/tests/components/combobox/RemovalOfSelectedIcon.java index a79b85ece4..ce6a24d9bd 100644 --- a/tests/testbench/com/vaadin/tests/components/combobox/RemovalOfSelectedIcon.java +++ b/tests/testbench/com/vaadin/tests/components/combobox/RemovalOfSelectedIcon.java @@ -22,6 +22,7 @@ public class RemovalOfSelectedIcon extends TestBase { btClear.setImmediate(true); btClear.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { cb2.removeAllItems(); cb2.setContainerDataSource(null); diff --git a/tests/testbench/com/vaadin/tests/components/customcomponent/ClipContent.java b/tests/testbench/com/vaadin/tests/components/customcomponent/ClipContent.java index 22fc381c72..9ca5a58487 100644 --- a/tests/testbench/com/vaadin/tests/components/customcomponent/ClipContent.java +++ b/tests/testbench/com/vaadin/tests/components/customcomponent/ClipContent.java @@ -24,6 +24,7 @@ public class ClipContent extends TestBase { final TextField w = new TextField("Width"); w.setValue("20px"); w.addListener(new TextField.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { cc.setWidth(w.getValue()); } @@ -32,6 +33,7 @@ public class ClipContent extends TestBase { final TextField h = new TextField("Height"); h.setValue("20px"); h.addListener(new TextField.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { cc.setHeight(h.getValue()); } diff --git a/tests/testbench/com/vaadin/tests/components/customcomponent/CustomComponentGrowingContent.java b/tests/testbench/com/vaadin/tests/components/customcomponent/CustomComponentGrowingContent.java index 9a559f7414..4311ad1f08 100644 --- a/tests/testbench/com/vaadin/tests/components/customcomponent/CustomComponentGrowingContent.java +++ b/tests/testbench/com/vaadin/tests/components/customcomponent/CustomComponentGrowingContent.java @@ -24,6 +24,7 @@ public class CustomComponentGrowingContent extends TestBase { }); addComponent(new Button("Set long content", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { label.setValue("Longer content that should be fully visible"); } diff --git a/tests/testbench/com/vaadin/tests/components/customcomponent/CustomComponentSizeUpdate.java b/tests/testbench/com/vaadin/tests/components/customcomponent/CustomComponentSizeUpdate.java index 43d4c70eb8..2351b02e2a 100644 --- a/tests/testbench/com/vaadin/tests/components/customcomponent/CustomComponentSizeUpdate.java +++ b/tests/testbench/com/vaadin/tests/components/customcomponent/CustomComponentSizeUpdate.java @@ -20,6 +20,7 @@ public class CustomComponentSizeUpdate extends TestBase { nb.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { cc.setWidth((cc.getWidth() - 20) + "px"); cc.setHeight((cc.getHeight() - 20) + "px"); diff --git a/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTemplate.java b/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTemplate.java index 2dc3063b0c..28e4dfb385 100644 --- a/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTemplate.java +++ b/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTemplate.java @@ -54,6 +54,7 @@ public class CustomLayoutUsingTemplate extends TestBase implements return null; } + @Override public void buttonClick(ClickEvent event) { layout.addComponent(new TextField("A text field!"), "location2"); } diff --git a/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTheme.java b/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTheme.java index 6ea1d0a0c5..06dd39ac38 100644 --- a/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTheme.java +++ b/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTheme.java @@ -28,6 +28,7 @@ public class CustomLayoutUsingTheme extends TestBase implements ClickListener { VerticalLayout menu = new VerticalLayout(); menu.addComponent(new Button("Set body to label", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { layout.addComponent(new Label(LoremIpsum.get(200)), "body"); } @@ -35,6 +36,7 @@ public class CustomLayoutUsingTheme extends TestBase implements ClickListener { menu.addComponent(new Button("Set body to huge NativeButton", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { layout.addComponent(new NativeButton( "This is it, the body!"), "body"); @@ -53,6 +55,7 @@ public class CustomLayoutUsingTheme extends TestBase implements ClickListener { return null; } + @Override public void buttonClick(ClickEvent event) { layout.addComponent(new TextField("A text field!"), "location2"); } diff --git a/tests/testbench/com/vaadin/tests/components/customfield/AbstractNestedFormExample.java b/tests/testbench/com/vaadin/tests/components/customfield/AbstractNestedFormExample.java index c15ca1916a..07c740a96d 100644 --- a/tests/testbench/com/vaadin/tests/components/customfield/AbstractNestedFormExample.java +++ b/tests/testbench/com/vaadin/tests/components/customfield/AbstractNestedFormExample.java @@ -52,6 +52,7 @@ public abstract class AbstractNestedFormExample extends TestBase { private Property.ValueChangeListener getTableValueChangeListener() { return new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (personForm != null) { removeComponent(personForm); diff --git a/tests/testbench/com/vaadin/tests/components/customfield/AddressFormExample.java b/tests/testbench/com/vaadin/tests/components/customfield/AddressFormExample.java index 02c080e8fd..693b1e11b1 100644 --- a/tests/testbench/com/vaadin/tests/components/customfield/AddressFormExample.java +++ b/tests/testbench/com/vaadin/tests/components/customfield/AddressFormExample.java @@ -21,6 +21,7 @@ public class AddressFormExample extends TestBase { addComponent(field); Button commitButton = new Button("Save", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { field.commit(); Address address = field.getValue(); diff --git a/tests/testbench/com/vaadin/tests/components/customfield/BooleanField.java b/tests/testbench/com/vaadin/tests/components/customfield/BooleanField.java index dc60d7e517..409ecccca8 100644 --- a/tests/testbench/com/vaadin/tests/components/customfield/BooleanField.java +++ b/tests/testbench/com/vaadin/tests/components/customfield/BooleanField.java @@ -23,6 +23,7 @@ public class BooleanField extends CustomField { final Button button = new Button("Click me"); button.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Object value = getValue(); boolean newValue = true; diff --git a/tests/testbench/com/vaadin/tests/components/customfield/BooleanFieldExample.java b/tests/testbench/com/vaadin/tests/components/customfield/BooleanFieldExample.java index 88c6f7fc45..a52b168e84 100644 --- a/tests/testbench/com/vaadin/tests/components/customfield/BooleanFieldExample.java +++ b/tests/testbench/com/vaadin/tests/components/customfield/BooleanFieldExample.java @@ -61,6 +61,7 @@ public class BooleanFieldExample extends TestBase { layout.addComponent(form); Button submit = new Button("Submit", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.commit(); Notification.show("The custom boolean field value is " diff --git a/tests/testbench/com/vaadin/tests/components/customfield/NestedPersonForm.java b/tests/testbench/com/vaadin/tests/components/customfield/NestedPersonForm.java index e0a3b08bc7..0bc4f45545 100644 --- a/tests/testbench/com/vaadin/tests/components/customfield/NestedPersonForm.java +++ b/tests/testbench/com/vaadin/tests/components/customfield/NestedPersonForm.java @@ -48,6 +48,7 @@ public class NestedPersonForm extends Form { buttons.setSpacing(true); Button discardChanges = new Button("Discard changes", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { NestedPersonForm.this.discard(); } @@ -56,6 +57,7 @@ public class NestedPersonForm extends Form { buttons.setComponentAlignment(discardChanges, Alignment.MIDDLE_LEFT); Button apply = new Button("Apply", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { NestedPersonForm.this.commit(); diff --git a/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.java b/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.java index 1395b4d735..c4f001ac41 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.java @@ -72,6 +72,7 @@ public class CommitInvalid extends TestBase { Button validate = new Button("Validate"); validate.setDebugId("_validate"); validate.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { form.validate(); @@ -88,6 +89,7 @@ public class CommitInvalid extends TestBase { Button commit = new Button("Commit"); commit.setDebugId("_commit"); commit.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { form.commit(); @@ -103,6 +105,7 @@ public class CommitInvalid extends TestBase { form.getFooter().addComponent(commit); Button printState = new Button("printState"); printState.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { printState(); } diff --git a/tests/testbench/com/vaadin/tests/components/datefield/CustomDateFormats.java b/tests/testbench/com/vaadin/tests/components/datefield/CustomDateFormats.java index 48bf3622d1..acca47ee5e 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/CustomDateFormats.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/CustomDateFormats.java @@ -37,6 +37,7 @@ public class CustomDateFormats extends TestBase { s.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { setDateFieldLocale((Locale) s.getValue()); } @@ -155,6 +156,7 @@ public class CustomDateFormats extends TestBase { df.setValue(cal.getTime()); df.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { updateServerSideLabel((DateField) event.getProperty()); } diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldEmptyValid.java b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldEmptyValid.java index dac3169b18..1d5554ac3e 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldEmptyValid.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldEmptyValid.java @@ -48,6 +48,7 @@ public class DateFieldEmptyValid extends TestBase { df.setImmediate(true); df.setResolution(DateField.RESOLUTION_DAY); df.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { log.log("Value changeEvent"); checkEmpty(); @@ -59,6 +60,7 @@ public class DateFieldEmptyValid extends TestBase { b.setDebugId("clear"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("Clearing date aka setValue(null)"); df.setValue(null); @@ -70,6 +72,7 @@ public class DateFieldEmptyValid extends TestBase { b.setDebugId("set4.5.1990"); b.addListener(new ClickListener() { + @Override @SuppressWarnings("deprecation") public void buttonClick(ClickEvent event) { log.log("Setting new value to datefield (4.5.1990)"); @@ -81,6 +84,7 @@ public class DateFieldEmptyValid extends TestBase { b = new Button("Set date to 5.6.2000 using a property data source"); b.addListener(new ClickListener() { + @Override @SuppressWarnings("deprecation") public void buttonClick(ClickEvent event) { log.log("Setting new object property (5.6.2000) to datefield"); @@ -97,6 +101,7 @@ public class DateFieldEmptyValid extends TestBase { b.setDebugId("set-via-ds"); b.addListener(new ClickListener() { + @Override @SuppressWarnings("deprecation") public void buttonClick(ClickEvent event) { log.log("Setting object property (with value null) to datefield and set value of property to 27.8.2005"); @@ -111,6 +116,7 @@ public class DateFieldEmptyValid extends TestBase { b = new Button("Check value"); b.setDebugId("check-value"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("Checking state"); checkEmpty(); diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldInSubWindow.java b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldInSubWindow.java index 298359068e..2a7807670b 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldInSubWindow.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldInSubWindow.java @@ -106,6 +106,7 @@ public class DateFieldInSubWindow extends AbstractTestCase { Button b = new Button("Close", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { TestCaseWindow.this.close(); } @@ -122,6 +123,7 @@ public class DateFieldInSubWindow extends AbstractTestCase { LegacyWindow mainWindow = new LegacyWindow(); setMainWindow(mainWindow); Button open = new Button("Open window", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().addWindow(new TestCaseWindow()); } diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldLocale.java b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldLocale.java index dd61ccd60c..5d06895d11 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldLocale.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldLocale.java @@ -21,6 +21,7 @@ public class DateFieldLocale extends TestBase { addComponent(new Button("Change locale", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (dateField.getLocale().getCountry().equalsIgnoreCase("fi")) { dateField.setLocale(new Locale("zh", "CN")); diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldMinResolution.java b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldMinResolution.java index e7c3442060..1a3b3858b8 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldMinResolution.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldMinResolution.java @@ -39,6 +39,7 @@ public class DateFieldMinResolution extends TestBase { idf.setImmediate(true); idf.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { lbl.setValue(dformat.format(event.getProperty().getValue())); } diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldRangeValidation.java b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldRangeValidation.java index bf93d8c8b9..befdd65693 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldRangeValidation.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldRangeValidation.java @@ -56,6 +56,7 @@ public class DateFieldRangeValidation extends TestBase { private Range range = new Range(); private ValueChangeListener refreshField = new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { actualDateField.requestRepaint(); } diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldReadOnly.java b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldReadOnly.java index 516d207a38..392dbaf9c6 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldReadOnly.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldReadOnly.java @@ -43,6 +43,7 @@ public class DateFieldReadOnly extends TestBase { Button b = new Button("Switch read-only"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { timeField.setReadOnly(!timeField.isReadOnly()); } diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldTest.java b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldTest.java index e8c8b69f9f..c502b9597e 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldTest.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldTest.java @@ -21,6 +21,7 @@ public class DateFieldTest<T extends DateField> extends AbstractFieldTest<T> { private Command<T, Date> setValue = new Command<T, Date>() { + @Override public void execute(T c, Date value, Object data) { c.setValue(value); } @@ -109,6 +110,7 @@ public class DateFieldTest<T extends DateField> extends AbstractFieldTest<T> { private Command<T, Resolution> resolutionCommand = new Command<T, Resolution>() { + @Override public void execute(T c, Resolution value, Object data) { c.setResolution(value); @@ -116,6 +118,7 @@ public class DateFieldTest<T extends DateField> extends AbstractFieldTest<T> { }; private Command<T, Boolean> lenientCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { c.setLenient(false); @@ -123,6 +126,7 @@ public class DateFieldTest<T extends DateField> extends AbstractFieldTest<T> { }; private Command<T, Boolean> weekNumberCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { c.setShowISOWeekNumbers(value); @@ -130,6 +134,7 @@ public class DateFieldTest<T extends DateField> extends AbstractFieldTest<T> { }; private Command<T, String> dateFormatCommand = new Command<T, String>() { + @Override public void execute(T c, String value, Object data) { c.setDateFormat(value); } diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldTimezone.java b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldTimezone.java index 340b647931..6f31b4d80f 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldTimezone.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldTimezone.java @@ -51,6 +51,7 @@ public class DateFieldTimezone extends TestBase { timezoneSelector.setNullSelectionItemId(nullValue); timezoneSelector.setFilteringMode(ComboBox.FILTERINGMODE_CONTAINS); timezoneSelector.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Object value = event.getProperty().getValue(); TimeZone timeZone; @@ -75,6 +76,7 @@ public class DateFieldTimezone extends TestBase { dateField.setTimeZone(cal.getTimeZone()); dateField.setLocale(EN); dateField.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Date date = dateField.getValue(); DateFormat format = DateFormat.getDateTimeInstance( diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldUnparsableDate.java b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldUnparsableDate.java index 9b4a3c3383..bbe2423a3f 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldUnparsableDate.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldUnparsableDate.java @@ -15,6 +15,7 @@ public class DateFieldUnparsableDate extends TestBase { public MyDateField(String caption) { super(caption); addListener(new Property.ValueChangeListener() { + @Override public void valueChange( com.vaadin.data.Property.ValueChangeEvent event) { oldDate = getValue(); diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DefaultHandleUnparsableDateField.java b/tests/testbench/com/vaadin/tests/components/datefield/DefaultHandleUnparsableDateField.java index 060c7fcc0a..b5842694f0 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DefaultHandleUnparsableDateField.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DefaultHandleUnparsableDateField.java @@ -15,6 +15,7 @@ public class DefaultHandleUnparsableDateField extends TestBase { date.setImmediate(true); addComponent(date); date.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (date.isValid()) { getMainWindow() diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java b/tests/testbench/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java index 8f201e120d..4e256aa947 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java @@ -16,6 +16,7 @@ public class DisabledDateFieldWidth extends TestBase { Button button = new Button("Repaint datefield", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { dateField1.requestRepaint(); } diff --git a/tests/testbench/com/vaadin/tests/components/datefield/InlineDateFields.java b/tests/testbench/com/vaadin/tests/components/datefield/InlineDateFields.java index b8c5be57bf..c642db1bc0 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/InlineDateFields.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/InlineDateFields.java @@ -81,6 +81,7 @@ public class InlineDateFields extends ComponentTestCase<InlineDateField> { return createSelectAction("Resolution", options, "Year", new Command<InlineDateField, Resolution>() { + @Override public void execute(InlineDateField c, Resolution value, Object data) { c.setResolution(value); @@ -97,6 +98,7 @@ public class InlineDateFields extends ComponentTestCase<InlineDateField> { return createSelectAction("Locale", options, LOCALES[0].toString(), new Command<InlineDateField, Locale>() { + @Override public void execute(InlineDateField c, Locale value, Object data) { c.setCaption(c.getCaption().replaceAll( diff --git a/tests/testbench/com/vaadin/tests/components/datefield/LenientMode.java b/tests/testbench/com/vaadin/tests/components/datefield/LenientMode.java index cbe9ac613f..585395d747 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/LenientMode.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/LenientMode.java @@ -73,6 +73,7 @@ public class LenientMode extends TestBase implements ValueChangeListener { } + @Override public void valueChange(ValueChangeEvent event) { getMainWindow().showNotification( "New value" + event.getProperty().getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/datefield/LowResolution.java b/tests/testbench/com/vaadin/tests/components/datefield/LowResolution.java index 1c1994cbe5..9c2d3d7d51 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/LowResolution.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/LowResolution.java @@ -16,6 +16,7 @@ public class LowResolution extends TestBase { dateField.setValue(new java.util.Date()); dateField.setResolution(PopupDateField.RESOLUTION_MONTH); dateField.addListener(new PopupDateField.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { getMainWindow().showNotification( "Date now" + event.getProperty()); @@ -28,6 +29,7 @@ public class LowResolution extends TestBase { // dateField.setValue(new java.util.Date()); dateField3.setResolution(PopupDateField.RESOLUTION_YEAR); dateField3.addListener(new PopupDateField.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { getMainWindow().showNotification( "Date now" + event.getProperty()); @@ -40,6 +42,7 @@ public class LowResolution extends TestBase { dateField2.setValue(new java.util.Date()); dateField2.setResolution(PopupDateField.RESOLUTION_MONTH); dateField2.addListener(new PopupDateField.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { getMainWindow().showNotification( "Date now" + event.getProperty()); @@ -52,6 +55,7 @@ public class LowResolution extends TestBase { "Immediate (use sync button to change fields) "); immediate.setValue(true); immediate.addListener(new CheckBox.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean immediate = !dateField.isImmediate(); dateField.setImmediate(immediate); diff --git a/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFieldExtendedRange.java b/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFieldExtendedRange.java index 357c61f4f6..a12bdfa44c 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFieldExtendedRange.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFieldExtendedRange.java @@ -41,6 +41,7 @@ public class PopupDateFieldExtendedRange extends TestBase { } addComponent(new Button("Change date", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { date.set(2010, 1, 16); for (PopupDateField f : fields) { diff --git a/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFieldTest.java b/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFieldTest.java index 3ab1f52891..3e8b0678a7 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFieldTest.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFieldTest.java @@ -27,6 +27,7 @@ public class PopupDateFieldTest extends DateFieldTest<PopupDateField> { createSelectAction("Input prompt", category, options, "<none>", new Command<PopupDateField, String>() { + @Override public void execute(PopupDateField c, String value, Object data) { c.setInputPrompt(value); diff --git a/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFields.java b/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFields.java index ad961ee7a6..bf2a679c63 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFields.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/PopupDateFields.java @@ -77,6 +77,7 @@ public class PopupDateFields extends ComponentTestCase<PopupDateField> { return createSelectAction("Resolution", options, "Year", new Command<PopupDateField, Resolution>() { + @Override public void execute(PopupDateField c, Resolution value, Object data) { c.setResolution(value); @@ -94,6 +95,7 @@ public class PopupDateFields extends ComponentTestCase<PopupDateField> { return createSelectAction("Input prompt", options, "<none>", new Command<PopupDateField, String>() { + @Override public void execute(PopupDateField c, String value, Object data) { c.setInputPrompt(value); diff --git a/tests/testbench/com/vaadin/tests/components/datefield/ShowSelectedDateAfterInvalid.java b/tests/testbench/com/vaadin/tests/components/datefield/ShowSelectedDateAfterInvalid.java index 6686fa6fe0..da8f45690c 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/ShowSelectedDateAfterInvalid.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/ShowSelectedDateAfterInvalid.java @@ -28,6 +28,7 @@ public class ShowSelectedDateAfterInvalid extends TestBase { Button button = new Button("Validate"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { form.setValidationVisible(true); if (form.isValid()) { diff --git a/tests/testbench/com/vaadin/tests/components/datefield/ValueThroughProperty.java b/tests/testbench/com/vaadin/tests/components/datefield/ValueThroughProperty.java index 578c4df903..403590f609 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/ValueThroughProperty.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/ValueThroughProperty.java @@ -44,6 +44,7 @@ public class ValueThroughProperty extends TestBase { cal.set(Calendar.DAY_OF_MONTH, 14); Button setDateButton1 = new Button( "Set value to 12/14/10 using property", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { dateProperty.setValue(cal.getTime()); } @@ -53,6 +54,7 @@ public class ValueThroughProperty extends TestBase { Button setDateButton2 = new Button( "Set value to 12/14/10 using setValue", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { df.setValue(cal.getTime()); } diff --git a/tests/testbench/com/vaadin/tests/components/datefield/WidthRecalculationOnEnableStateChange.java b/tests/testbench/com/vaadin/tests/components/datefield/WidthRecalculationOnEnableStateChange.java index 88542751c3..b7b0f50947 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/WidthRecalculationOnEnableStateChange.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/WidthRecalculationOnEnableStateChange.java @@ -20,12 +20,14 @@ public class WidthRecalculationOnEnableStateChange extends TestBase { addComponent(df); addComponent(new Button("Toggle disabled for date field", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { df.setEnabled(!df.isEnabled()); } })); addComponent(new Button("Toggle read only for date field", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { df.setReadOnly(!df.isReadOnly()); } diff --git a/tests/testbench/com/vaadin/tests/components/draganddropwrapper/DragAndDropWrapperTooltips.java b/tests/testbench/com/vaadin/tests/components/draganddropwrapper/DragAndDropWrapperTooltips.java index 6b89d1392c..aeb0864707 100644 --- a/tests/testbench/com/vaadin/tests/components/draganddropwrapper/DragAndDropWrapperTooltips.java +++ b/tests/testbench/com/vaadin/tests/components/draganddropwrapper/DragAndDropWrapperTooltips.java @@ -80,10 +80,12 @@ public class DragAndDropWrapperTooltips extends TestBase { private DropHandler dh = new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } + @Override public void drop(DragAndDropEvent dropEvent) { Transferable transferable = dropEvent.getTransferable(); if (transferable instanceof TransferableImpl) { diff --git a/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedAltText.java b/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedAltText.java index f8874810fc..9a412cee9d 100644 --- a/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedAltText.java +++ b/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedAltText.java @@ -38,6 +38,7 @@ public class EmbeddedAltText extends TestBase { Button changeAltTexts = new Button("Change alt texts", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { e.setAlternateText("New alt text of the image!"); player.setAlternateText("New alt text of the object!"); diff --git a/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedClickListenerRelativeCoordinates.java b/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedClickListenerRelativeCoordinates.java index 96b1d36901..c9b6991d8f 100644 --- a/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedClickListenerRelativeCoordinates.java +++ b/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedClickListenerRelativeCoordinates.java @@ -14,6 +14,7 @@ public class EmbeddedClickListenerRelativeCoordinates extends TestBase { "../runo/icons/64/ok.png")); e.addListener(new ClickListener() { + @Override public void click(ClickEvent event) { getMainWindow() .showNotification( diff --git a/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedImageRefresh.java b/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedImageRefresh.java index 1a5327c8b9..e316fcc5ec 100644 --- a/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedImageRefresh.java +++ b/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedImageRefresh.java @@ -45,6 +45,7 @@ public class EmbeddedImageRefresh extends TestBase { // The button requests repainting the embedded. Button button = new Button("refr"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { embedded.requestRepaint(); } @@ -52,6 +53,7 @@ public class EmbeddedImageRefresh extends TestBase { addComponent(button); button = new Button("refr name"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { ((StreamResource) embedded.getSource()).setFilename(new Date() .getTime() + ".png"); @@ -61,6 +63,7 @@ public class EmbeddedImageRefresh extends TestBase { addComponent(button); button = new Button("200x200"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { embedded.setWidth("200px"); embedded.setHeight("200px"); @@ -69,6 +72,7 @@ public class EmbeddedImageRefresh extends TestBase { addComponent(button); button = new Button("undef"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { embedded.setSizeUndefined(); } @@ -85,6 +89,7 @@ public class EmbeddedImageRefresh extends TestBase { return (int) Math.round(pos * resolution / (cells * 1.0)); } + @Override public InputStream getStream() { // Create an image and draw some background on it. BufferedImage image = new BufferedImage(640, 480, diff --git a/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedPdf.java b/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedPdf.java index d507cebebc..c3854d2420 100644 --- a/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedPdf.java +++ b/tests/testbench/com/vaadin/tests/components/embedded/EmbeddedPdf.java @@ -29,6 +29,7 @@ public class EmbeddedPdf extends TestBase { addComponent(player); addComponent(new Button("Remove pdf", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { removeComponent(player); } diff --git a/tests/testbench/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java b/tests/testbench/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java index 5255b97ffa..539263a363 100644 --- a/tests/testbench/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java +++ b/tests/testbench/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java @@ -42,6 +42,7 @@ public class FormClearDatasourceRepaint extends TestBase { addComponent(form); addComponent(new Button("Clear datasource", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.setItemDataSource(null); } @@ -49,6 +50,7 @@ public class FormClearDatasourceRepaint extends TestBase { addComponent(new Button("Change data source", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.setItemDataSource(new BeanItem<MyBean>( new MyBean())); diff --git a/tests/testbench/com/vaadin/tests/components/form/FormCommitWithInvalidValues.java b/tests/testbench/com/vaadin/tests/components/form/FormCommitWithInvalidValues.java index 6bc7cb5cca..907b8a27f3 100644 --- a/tests/testbench/com/vaadin/tests/components/form/FormCommitWithInvalidValues.java +++ b/tests/testbench/com/vaadin/tests/components/form/FormCommitWithInvalidValues.java @@ -34,6 +34,7 @@ public class FormCommitWithInvalidValues extends TestBase { Button b = new Button("Commit", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { form.commit(); diff --git a/tests/testbench/com/vaadin/tests/components/form/FormDescription.java b/tests/testbench/com/vaadin/tests/components/form/FormDescription.java index 63369413f6..76ea039756 100644 --- a/tests/testbench/com/vaadin/tests/components/form/FormDescription.java +++ b/tests/testbench/com/vaadin/tests/components/form/FormDescription.java @@ -17,6 +17,7 @@ public class FormDescription extends TestBase { addComponent(new Button("Toggle description", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (form.getDescription() == null) { form.setDescription("Form description"); diff --git a/tests/testbench/com/vaadin/tests/components/form/FormRenderingFlicker.java b/tests/testbench/com/vaadin/tests/components/form/FormRenderingFlicker.java index ecf3215005..41e1a91781 100644 --- a/tests/testbench/com/vaadin/tests/components/form/FormRenderingFlicker.java +++ b/tests/testbench/com/vaadin/tests/components/form/FormRenderingFlicker.java @@ -49,6 +49,7 @@ public class FormRenderingFlicker extends TestBase { table.setImmediate(true); table.addListener(new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { clicked(event.getItem()); } diff --git a/tests/testbench/com/vaadin/tests/components/form/FormTest.java b/tests/testbench/com/vaadin/tests/components/form/FormTest.java index 451a1b7fa3..ec7ba2e03c 100644 --- a/tests/testbench/com/vaadin/tests/components/form/FormTest.java +++ b/tests/testbench/com/vaadin/tests/components/form/FormTest.java @@ -30,6 +30,7 @@ public class FormTest extends AbstractFieldTest<Form> { private Command<Form, String> footerWidthCommand = new Command<Form, String>() { + @Override public void execute(Form c, String value, Object data) { Layout footer = c.getFooter(); if (footer != null) { @@ -40,6 +41,7 @@ public class FormTest extends AbstractFieldTest<Form> { }; private Command<Form, String> footerHeightCommand = new Command<Form, String>() { + @Override public void execute(Form c, String value, Object data) { Layout footer = c.getFooter(); if (footer != null) { @@ -51,6 +53,7 @@ public class FormTest extends AbstractFieldTest<Form> { private Command<Form, Class<? extends Layout>> formLayoutCommand = new Command<Form, Class<? extends Layout>>() { + @Override public void execute(Form c, Class<? extends Layout> value, Object data) { if (value == null) { c.setLayout(null); @@ -73,6 +76,7 @@ public class FormTest extends AbstractFieldTest<Form> { }; private Command<Form, Class<? extends Layout>> formFooterCommand = new Command<Form, Class<? extends Layout>>() { + @Override public void execute(Form c, Class<? extends Layout> value, Object data) { if (value == null) { c.setFooter(null); @@ -92,6 +96,7 @@ public class FormTest extends AbstractFieldTest<Form> { }; private Command<Form, Item> formItemDataSourceCommand = new Command<Form, Item>() { + @Override public void execute(Form c, Item value, Object data) { c.setItemDataSource(value); } @@ -148,6 +153,7 @@ public class FormTest extends AbstractFieldTest<Form> { options.put("Default", DefaultFieldFactory.get()); options.put("Custom FieldFactory", new FormFieldFactory() { + @Override public Field<?> createField(Item item, Object propertyId, Component uiContext) { Class<?> type = item.getItemProperty(propertyId).getType(); @@ -186,6 +192,7 @@ public class FormTest extends AbstractFieldTest<Form> { Command<Form, FormFieldFactory> formFactoryCommand = new Command<Form, FormFieldFactory>() { + @Override public void execute(Form c, FormFieldFactory value, Object data) { c.setFormFieldFactory(value); c.setItemDataSource(c.getItemDataSource()); @@ -227,6 +234,7 @@ public class FormTest extends AbstractFieldTest<Form> { } Command<Form, Alignment> footerComponentAlignmentCommand = new Command<Form, Alignment>() { + @Override public void execute(Form c, Alignment value, Object data) { Layout l = c.getFooter(); if (l instanceof AlignmentHandler) { diff --git a/tests/testbench/com/vaadin/tests/components/form/FormWithEnterShortCut.java b/tests/testbench/com/vaadin/tests/components/form/FormWithEnterShortCut.java index 689ba7ea83..ed1a3d9bd9 100644 --- a/tests/testbench/com/vaadin/tests/components/form/FormWithEnterShortCut.java +++ b/tests/testbench/com/vaadin/tests/components/form/FormWithEnterShortCut.java @@ -20,6 +20,7 @@ public class FormWithEnterShortCut extends TestBase { Button button = new Button("Go"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("search: " + tf.getValue()); } diff --git a/tests/testbench/com/vaadin/tests/components/form/FormWithPropertyFormatterConnected.java b/tests/testbench/com/vaadin/tests/components/form/FormWithPropertyFormatterConnected.java index b803f8667f..24d207739e 100644 --- a/tests/testbench/com/vaadin/tests/components/form/FormWithPropertyFormatterConnected.java +++ b/tests/testbench/com/vaadin/tests/components/form/FormWithPropertyFormatterConnected.java @@ -18,6 +18,7 @@ public class FormWithPropertyFormatterConnected extends TestBase { Form form2 = new Form(); form2.setFormFieldFactory(new FormFieldFactory() { + @Override public Field createField(Item item, Object propertyId, Component uiContext) { AbstractField f = (AbstractField) DefaultFieldFactory.get() diff --git a/tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutCaptionStyles.java b/tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutCaptionStyles.java index e74969f637..0055c3782e 100644 --- a/tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutCaptionStyles.java +++ b/tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutCaptionStyles.java @@ -20,6 +20,7 @@ public class FormLayoutCaptionStyles extends TestBase { fl.addComponent(new Button("Toggle Text field 2 bold style", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if ("bold".equals(f2.getStyleName())) { f2.setStyleName(""); diff --git a/tests/testbench/com/vaadin/tests/components/gridlayout/GridLayoutInForm.java b/tests/testbench/com/vaadin/tests/components/gridlayout/GridLayoutInForm.java index 648bbd2d52..165827eb6b 100644 --- a/tests/testbench/com/vaadin/tests/components/gridlayout/GridLayoutInForm.java +++ b/tests/testbench/com/vaadin/tests/components/gridlayout/GridLayoutInForm.java @@ -45,6 +45,7 @@ public class GridLayoutInForm extends TestBase { addComponent(new Button("Use 15 first fields", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.setVisibleItemProperties(propertyIds .subList(0, 15)); @@ -52,6 +53,7 @@ public class GridLayoutInForm extends TestBase { })); addComponent(new Button("Use 15 last fields", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.setVisibleItemProperties(propertyIds.subList(35, 50)); @@ -59,6 +61,7 @@ public class GridLayoutInForm extends TestBase { })); addComponent(new Button("Use all fields", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.setVisibleItemProperties(propertyIds); } diff --git a/tests/testbench/com/vaadin/tests/components/gridlayout/MoveComponentsFromGridLayoutToInnerLayout.java b/tests/testbench/com/vaadin/tests/components/gridlayout/MoveComponentsFromGridLayoutToInnerLayout.java index da0efe9464..1c10b1d9d7 100644 --- a/tests/testbench/com/vaadin/tests/components/gridlayout/MoveComponentsFromGridLayoutToInnerLayout.java +++ b/tests/testbench/com/vaadin/tests/components/gridlayout/MoveComponentsFromGridLayoutToInnerLayout.java @@ -22,6 +22,7 @@ public class MoveComponentsFromGridLayoutToInnerLayout extends TestBase { testButton = new Button("Click to move to inner layout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { vl.addComponent(testButton); } @@ -37,6 +38,7 @@ public class MoveComponentsFromGridLayoutToInnerLayout extends TestBase { Button b = new Button("Repaint inner layout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { vl.requestRepaint(); } diff --git a/tests/testbench/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponent.java b/tests/testbench/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponent.java index a7430705f5..d2ab0787da 100644 --- a/tests/testbench/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponent.java +++ b/tests/testbench/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponent.java @@ -42,17 +42,20 @@ public class BasicJavaScriptComponent extends AbstractTestRoot { public class ExampleWidget extends AbstractJavaScriptComponent { public ExampleWidget() { registerRpc(new TestRpc() { + @Override public void sendRpc(String message) { log.log("Got RPC message: " + message); } }); registerCallback("messageToServer", new JavaScriptCallback() { + @Override public void call(JSONArray arguments) throws JSONException { log.log("Got callback message: " + arguments.getString(0)); } }); registerCallback("reportParentIds", new JavaScriptCallback() { + @Override public void call(JSONArray arguments) throws JSONException { JSONArray parentIds = arguments.getJSONArray(0); if (!parentIds.getString(0).equals(getConnectorId())) { diff --git a/tests/testbench/com/vaadin/tests/components/label/HundredPercentWideLabelResize.java b/tests/testbench/com/vaadin/tests/components/label/HundredPercentWideLabelResize.java index a5bb291b67..61caf9a2f2 100644 --- a/tests/testbench/com/vaadin/tests/components/label/HundredPercentWideLabelResize.java +++ b/tests/testbench/com/vaadin/tests/components/label/HundredPercentWideLabelResize.java @@ -27,6 +27,7 @@ public class HundredPercentWideLabelResize extends TestBase { getLayout().addComponent( new Button("toggle width", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (getLayout().getWidth() == 500) { getLayout().setWidth("100px"); diff --git a/tests/testbench/com/vaadin/tests/components/label/LabelTest.java b/tests/testbench/com/vaadin/tests/components/label/LabelTest.java index 6547e7a20f..17c3dc8402 100644 --- a/tests/testbench/com/vaadin/tests/components/label/LabelTest.java +++ b/tests/testbench/com/vaadin/tests/components/label/LabelTest.java @@ -14,12 +14,14 @@ public class LabelTest extends AbstractComponentTest<Label> implements private Command<Label, Object> setValueCommand = new Command<Label, Object>() { + @Override public void execute(Label c, Object value, Object data) { c.setValue(value); } }; private Command<Label, Boolean> valueChangeListenerCommand = new Command<Label, Boolean>() { + @Override public void execute(Label c, Boolean value, Object data) { if (value) { c.addListener(LabelTest.this); @@ -31,6 +33,7 @@ public class LabelTest extends AbstractComponentTest<Label> implements }; private Command<Label, ContentMode> contentModeCommand = new Command<Label, ContentMode>() { + @Override public void execute(Label c, ContentMode value, Object data) { c.setContentMode(value); } @@ -87,6 +90,7 @@ public class LabelTest extends AbstractComponentTest<Label> implements valueChangeListenerCommand); } + @Override public void valueChange(com.vaadin.data.Property.ValueChangeEvent event) { Object o = event.getProperty().getValue(); diff --git a/tests/testbench/com/vaadin/tests/components/label/LabelWrapping.java b/tests/testbench/com/vaadin/tests/components/label/LabelWrapping.java index 166d0bda77..82969fdb08 100644 --- a/tests/testbench/com/vaadin/tests/components/label/LabelWrapping.java +++ b/tests/testbench/com/vaadin/tests/components/label/LabelWrapping.java @@ -28,6 +28,7 @@ public class LabelWrapping extends TestBase { Button changeLength = new Button("Change length"); changeLength.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (longLabel.getValue().equals(longString)) { longLabel.setValue(""); diff --git a/tests/testbench/com/vaadin/tests/components/link/LinkToPercentage.java b/tests/testbench/com/vaadin/tests/components/link/LinkToPercentage.java index ce8626444c..f14e1afd8c 100644 --- a/tests/testbench/com/vaadin/tests/components/link/LinkToPercentage.java +++ b/tests/testbench/com/vaadin/tests/components/link/LinkToPercentage.java @@ -15,6 +15,7 @@ public class LinkToPercentage extends TestBase { protected void setup() { String filename = "110% Vaadin"; ApplicationResource resource = new StreamResource(new StreamSource() { + @Override public InputStream getStream() { return new InputStream() { boolean first = true; diff --git a/tests/testbench/com/vaadin/tests/components/listselect/ListSelects.java b/tests/testbench/com/vaadin/tests/components/listselect/ListSelects.java index 3bab03287c..a3fa973bc2 100644 --- a/tests/testbench/com/vaadin/tests/components/listselect/ListSelects.java +++ b/tests/testbench/com/vaadin/tests/components/listselect/ListSelects.java @@ -8,12 +8,14 @@ import com.vaadin.ui.ListSelect; public class ListSelects extends AbstractSelectTestCase<ListSelect> { private Command<ListSelect, Integer> rowsCommand = new Command<ListSelect, Integer>() { + @Override public void execute(ListSelect c, Integer value, Object data) { c.setRows(value); } }; private Command<ListSelect, Integer> colsCommand = new Command<ListSelect, Integer>() { + @Override public void execute(ListSelect c, Integer value, Object data) { c.setColumns(value); } diff --git a/tests/testbench/com/vaadin/tests/components/loginform/LoginFormTest.java b/tests/testbench/com/vaadin/tests/components/loginform/LoginFormTest.java index bbc7d2ca7e..629edc2130 100644 --- a/tests/testbench/com/vaadin/tests/components/loginform/LoginFormTest.java +++ b/tests/testbench/com/vaadin/tests/components/loginform/LoginFormTest.java @@ -31,6 +31,7 @@ public class LoginFormTest extends TestBase { */ private static final long serialVersionUID = 1L; + @Override public void onLogin(LoginEvent event) { login((LoginForm) event.getSource(), event.getLoginParameter("username"), @@ -43,6 +44,7 @@ public class LoginFormTest extends TestBase { Button changeWidth = new Button("Change width", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (loginForm.getWidth() < 0) { loginForm.setWidth("300px"); @@ -55,6 +57,7 @@ public class LoginFormTest extends TestBase { Button changeHeight = new Button("Change height", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (loginForm.getHeight() < 0) { loginForm.setHeight("200px"); @@ -88,6 +91,7 @@ public class LoginFormTest extends TestBase { + "' logged in"); Button logoutButton = new Button("Log out", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Button b = event.getButton(); loginFormLayout.replaceComponent(b.getParent(), diff --git a/tests/testbench/com/vaadin/tests/components/loginform/LoginFormWithMultipleWindows.java b/tests/testbench/com/vaadin/tests/components/loginform/LoginFormWithMultipleWindows.java index 1295cadf95..83f89f0214 100644 --- a/tests/testbench/com/vaadin/tests/components/loginform/LoginFormWithMultipleWindows.java +++ b/tests/testbench/com/vaadin/tests/components/loginform/LoginFormWithMultipleWindows.java @@ -27,6 +27,7 @@ public class LoginFormWithMultipleWindows extends Application { private static final long serialVersionUID = 1L; + @Override public void onLogin(LoginEvent event) { showNotification(event.getLoginParameter("username") + ":" + event.getLoginParameter("password")); diff --git a/tests/testbench/com/vaadin/tests/components/media/Media.java b/tests/testbench/com/vaadin/tests/components/media/Media.java index 84b6974293..a1977c6ba1 100644 --- a/tests/testbench/com/vaadin/tests/components/media/Media.java +++ b/tests/testbench/com/vaadin/tests/components/media/Media.java @@ -27,6 +27,7 @@ public class Media extends TestBase { addComponent(v); addComponent(new Button("Play video", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { v.play(); } @@ -34,6 +35,7 @@ public class Media extends TestBase { })); addComponent(new Button("Pause video", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { v.pause(); } @@ -50,6 +52,7 @@ public class Media extends TestBase { addComponent(new Button("Play audio", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { a.play(); } @@ -57,6 +60,7 @@ public class Media extends TestBase { })); addComponent(new Button("Pause audio", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { a.pause(); } diff --git a/tests/testbench/com/vaadin/tests/components/menubar/MenuBarHtmlItems.java b/tests/testbench/com/vaadin/tests/components/menubar/MenuBarHtmlItems.java index ba22bcb7a4..d7585af8ac 100644 --- a/tests/testbench/com/vaadin/tests/components/menubar/MenuBarHtmlItems.java +++ b/tests/testbench/com/vaadin/tests/components/menubar/MenuBarHtmlItems.java @@ -44,6 +44,7 @@ public class MenuBarHtmlItems extends ComponentTestCase<MenuBar> { private Component createSwitchHtmlAction() { return createBooleanAction("Html content allowed", false, new Command<MenuBar, Boolean>() { + @Override public void execute(MenuBar c, Boolean value, Object data) { c.setHtmlContentAllowed(value.booleanValue()); } diff --git a/tests/testbench/com/vaadin/tests/components/menubar/MenuBarNavigation.java b/tests/testbench/com/vaadin/tests/components/menubar/MenuBarNavigation.java index ede0c0c5a5..3af07645d6 100644 --- a/tests/testbench/com/vaadin/tests/components/menubar/MenuBarNavigation.java +++ b/tests/testbench/com/vaadin/tests/components/menubar/MenuBarNavigation.java @@ -47,6 +47,7 @@ public class MenuBarNavigation extends TestBase implements Command { return 5174; } + @Override public void menuSelected(MenuItem selectedItem) { log.log("MenuItem " + getName(selectedItem) + " selected"); } diff --git a/tests/testbench/com/vaadin/tests/components/menubar/MenuBarRootItemSelectWithKeyboard.java b/tests/testbench/com/vaadin/tests/components/menubar/MenuBarRootItemSelectWithKeyboard.java index f162386336..c093a61812 100644 --- a/tests/testbench/com/vaadin/tests/components/menubar/MenuBarRootItemSelectWithKeyboard.java +++ b/tests/testbench/com/vaadin/tests/components/menubar/MenuBarRootItemSelectWithKeyboard.java @@ -10,6 +10,7 @@ public class MenuBarRootItemSelectWithKeyboard extends TestBase { @Override protected void setup() { Command c = new Command() { + @Override public void menuSelected(MenuItem selectedItem) { getMainWindow().showNotification(selectedItem.getText()); diff --git a/tests/testbench/com/vaadin/tests/components/menubar/MenuBarTest.java b/tests/testbench/com/vaadin/tests/components/menubar/MenuBarTest.java index 2dc119bf43..5ab2b2145f 100644 --- a/tests/testbench/com/vaadin/tests/components/menubar/MenuBarTest.java +++ b/tests/testbench/com/vaadin/tests/components/menubar/MenuBarTest.java @@ -141,6 +141,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { /* COMMANDS */ Command<MenuBar, Integer> createRootMenuItems = new Command<MenuBar, Integer>() { + @Override public void execute(MenuBar c, Integer value, Object data) { rootItems = value; createRootItems(c); @@ -149,6 +150,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { Command<MenuBar, Integer> createSubMenuItems = new Command<MenuBar, Integer>() { + @Override public void execute(MenuBar c, Integer value, Object data) { subItems = value; createSubItems(c); @@ -157,6 +159,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { Command<MenuBar, Integer> setSubMenuLevels = new Command<MenuBar, Integer>() { + @Override public void execute(MenuBar c, Integer value, Object data) { subLevels = value; createSubItems(c); @@ -164,6 +167,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { }; private Command<MenuBar, Integer> setMenuIcons = new Command<MenuBar, Integer>() { + @Override public void execute(MenuBar c, Integer value, Object data) { iconInterval = value; updateIcons(c); @@ -172,6 +176,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { private Command<MenuBar, Integer> setSubMenuDensity = new Command<MenuBar, Integer>() { + @Override public void execute(MenuBar c, Integer value, Object data) { subMenuDensity = value; createSubItems(c); @@ -180,6 +185,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { private Command<MenuBar, Integer> setMenuItemDisabledDensity = new Command<MenuBar, Integer>() { + @Override public void execute(MenuBar c, Integer value, Object data) { disabledDensity = value; createRootItems(c); @@ -188,6 +194,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { private Command<MenuBar, Integer> setMenuItemInvisibleDensity = new Command<MenuBar, Integer>() { + @Override public void execute(MenuBar c, Integer value, Object data) { invisibleDensity = value; createRootItems(c); @@ -196,6 +203,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { private Command<MenuBar, Integer> setMenuItemCheckableDensity = new Command<MenuBar, Integer>() { + @Override public void execute(MenuBar c, Integer value, Object data) { checkableDensity = value; createRootItems(c); @@ -204,6 +212,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { private Command<MenuBar, Integer> setSubMenuSeparatorDensity = new Command<MenuBar, Integer>() { + @Override public void execute(MenuBar c, Integer value, Object data) { subMenuSeparatorDensity = value; createSubItems(c); @@ -212,6 +221,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { private Command<MenuBar, Boolean> setOpenRootOnHover = new Command<MenuBar, Boolean>() { + @Override public void execute(MenuBar c, Boolean value, Object data) { openRootMenuOnHover = value; c.setAutoOpen(value); @@ -221,6 +231,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { private Command<MenuBar, Integer> selectIcon = new Command<MenuBar, Integer>() { + @Override public void execute(MenuBar c, Integer value, Object data) { iconSize = value; updateIcons(c); @@ -231,6 +242,7 @@ public class MenuBarTest extends AbstractComponentTest<MenuBar> { private MenuBar.Command menuCommand = new MenuBar.Command() { + @Override public void menuSelected(MenuItem selectedItem) { log("Menu item '" + selectedItem.getText() + "' selected"); diff --git a/tests/testbench/com/vaadin/tests/components/nativebutton/NativeButtonHtml.java b/tests/testbench/com/vaadin/tests/components/nativebutton/NativeButtonHtml.java index 011439f810..94023db2d0 100644 --- a/tests/testbench/com/vaadin/tests/components/nativebutton/NativeButtonHtml.java +++ b/tests/testbench/com/vaadin/tests/components/nativebutton/NativeButtonHtml.java @@ -20,6 +20,7 @@ public class NativeButtonHtml extends TestBase { final NativeButton swapButton = new NativeButton("<i>Swap button<i>"); swapButton.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { swapButton.setHtmlContentAllowed(!swapButton .isHtmlContentAllowed()); diff --git a/tests/testbench/com/vaadin/tests/components/nativeselect/NativeSelects.java b/tests/testbench/com/vaadin/tests/components/nativeselect/NativeSelects.java index ec46757106..80b088f03a 100644 --- a/tests/testbench/com/vaadin/tests/components/nativeselect/NativeSelects.java +++ b/tests/testbench/com/vaadin/tests/components/nativeselect/NativeSelects.java @@ -35,6 +35,7 @@ public class NativeSelects extends AbstractSelectTestCase<NativeSelect> { private Command<NativeSelect, Integer> columnsAction = new Command<NativeSelect, Integer>() { + @Override public void execute(NativeSelect c, Integer value, Object data) { c.setColumns(value); } diff --git a/tests/testbench/com/vaadin/tests/components/notification/Notifications.java b/tests/testbench/com/vaadin/tests/components/notification/Notifications.java index b0c597004e..ab632a2a57 100644 --- a/tests/testbench/com/vaadin/tests/components/notification/Notifications.java +++ b/tests/testbench/com/vaadin/tests/components/notification/Notifications.java @@ -50,6 +50,7 @@ public class Notifications extends TestBase implements ClickListener { return null; } + @Override public void buttonClick(ClickEvent event) { Notification n = new Notification(tf.getValue(), (Integer) type.getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/notification/NotificationsAndModalWindow.java b/tests/testbench/com/vaadin/tests/components/notification/NotificationsAndModalWindow.java index 547ef3077b..25bc05c771 100644 --- a/tests/testbench/com/vaadin/tests/components/notification/NotificationsAndModalWindow.java +++ b/tests/testbench/com/vaadin/tests/components/notification/NotificationsAndModalWindow.java @@ -17,6 +17,7 @@ public class NotificationsAndModalWindow extends TestBase { Button b = new Button("Button"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Window w = new Window("This is a window"); w.setModal(true); diff --git a/tests/testbench/com/vaadin/tests/components/notification/NotificationsHtmlAllowed.java b/tests/testbench/com/vaadin/tests/components/notification/NotificationsHtmlAllowed.java index 8e42db57f3..767d16b6da 100644 --- a/tests/testbench/com/vaadin/tests/components/notification/NotificationsHtmlAllowed.java +++ b/tests/testbench/com/vaadin/tests/components/notification/NotificationsHtmlAllowed.java @@ -44,6 +44,7 @@ public class NotificationsHtmlAllowed extends TestBase implements ClickListener return 6097; } + @Override public void buttonClick(ClickEvent event) { Notification n = makeNotification(); n.show(Page.getCurrent()); diff --git a/tests/testbench/com/vaadin/tests/components/optiongroup/DisabledOptionGroupItems.java b/tests/testbench/com/vaadin/tests/components/optiongroup/DisabledOptionGroupItems.java index 4668ef5ab8..877f9aa675 100644 --- a/tests/testbench/com/vaadin/tests/components/optiongroup/DisabledOptionGroupItems.java +++ b/tests/testbench/com/vaadin/tests/components/optiongroup/DisabledOptionGroupItems.java @@ -52,6 +52,7 @@ public class DisabledOptionGroupItems extends ComponentTestCase<OptionGroup> { return createButtonAction("Toggle selection mode", new Command<OptionGroup, Boolean>() { + @Override public void execute(OptionGroup og, Boolean value, Object data) { if (og.isMultiSelect()) { @@ -69,6 +70,7 @@ public class DisabledOptionGroupItems extends ComponentTestCase<OptionGroup> { return createButtonAction("Invert disabled items", new Command<OptionGroup, Boolean>() { + @Override public void execute(OptionGroup c, Boolean value, Object data) { for (Object itemId : c.getItemIds()) { diff --git a/tests/testbench/com/vaadin/tests/components/optiongroup/HtmlOptionGroupItems.java b/tests/testbench/com/vaadin/tests/components/optiongroup/HtmlOptionGroupItems.java index 0f6ae8917a..179d1aa5ff 100644 --- a/tests/testbench/com/vaadin/tests/components/optiongroup/HtmlOptionGroupItems.java +++ b/tests/testbench/com/vaadin/tests/components/optiongroup/HtmlOptionGroupItems.java @@ -54,6 +54,7 @@ public class HtmlOptionGroupItems extends ComponentTestCase<OptionGroup> { private Component createInvertHtmlItemsAction() { return createButtonAction("Toggle html mode", new Command<OptionGroup, Boolean>() { + @Override public void execute(OptionGroup og, Boolean value, Object data) { og.setHtmlContentAllowed(!og.isHtmlContentAllowed()); @@ -65,6 +66,7 @@ public class HtmlOptionGroupItems extends ComponentTestCase<OptionGroup> { return createButtonAction("Toggle selection mode", new Command<OptionGroup, Boolean>() { + @Override public void execute(OptionGroup og, Boolean value, Object data) { if (og.isMultiSelect()) { @@ -82,6 +84,7 @@ public class HtmlOptionGroupItems extends ComponentTestCase<OptionGroup> { return createButtonAction("Invert disabled items", new Command<OptionGroup, Boolean>() { + @Override public void execute(OptionGroup c, Boolean value, Object data) { for (Object itemId : c.getItemIds()) { diff --git a/tests/testbench/com/vaadin/tests/components/optiongroup/OptionGroupMultipleValueChange.java b/tests/testbench/com/vaadin/tests/components/optiongroup/OptionGroupMultipleValueChange.java index ff860f3293..4c08a902ab 100644 --- a/tests/testbench/com/vaadin/tests/components/optiongroup/OptionGroupMultipleValueChange.java +++ b/tests/testbench/com/vaadin/tests/components/optiongroup/OptionGroupMultipleValueChange.java @@ -33,6 +33,7 @@ public class OptionGroupMultipleValueChange extends TestBase { og.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { String s = "ValueChange: " + event.getProperty().getValue(); events.setValue(events.getValue() + "\n" + s); diff --git a/tests/testbench/com/vaadin/tests/components/optiongroup/OptionGroups.java b/tests/testbench/com/vaadin/tests/components/optiongroup/OptionGroups.java index f8af6b07e4..c20de87ec7 100644 --- a/tests/testbench/com/vaadin/tests/components/optiongroup/OptionGroups.java +++ b/tests/testbench/com/vaadin/tests/components/optiongroup/OptionGroups.java @@ -21,6 +21,7 @@ public class OptionGroups extends AbstractSelectTestCase<OptionGroup> { createDisabledItemsMultiToggle("Disabled items"); createBooleanAction("HTML content allowed", CATEGORY_STATE, false, new Command<OptionGroup, Boolean>() { + @Override public void execute(OptionGroup og, Boolean value, Object data) { og.setHtmlContentAllowed(value.booleanValue()); @@ -39,6 +40,7 @@ public class OptionGroups extends AbstractSelectTestCase<OptionGroup> { createSelectAction(string, CATEGORY_DECORATIONS, options, options .keySet().iterator().next(), new Command<OptionGroup, ThemeResource>() { + @Override public void execute(OptionGroup c, ThemeResource icon, Object data) { Collection<?> itemIds = c.getItemIds(); @@ -58,6 +60,7 @@ public class OptionGroups extends AbstractSelectTestCase<OptionGroup> { private Command<OptionGroup, Boolean> enabledItemCommand = new Command<OptionGroup, Boolean>() { + @Override public void execute(OptionGroup c, Boolean value, Object data) { c.setItemEnabled(data, value); diff --git a/tests/testbench/com/vaadin/tests/components/orderedlayout/LayoutClickListenerTest.java b/tests/testbench/com/vaadin/tests/components/orderedlayout/LayoutClickListenerTest.java index 4f4faf15bb..821a5dbb93 100644 --- a/tests/testbench/com/vaadin/tests/components/orderedlayout/LayoutClickListenerTest.java +++ b/tests/testbench/com/vaadin/tests/components/orderedlayout/LayoutClickListenerTest.java @@ -59,6 +59,7 @@ public class LayoutClickListenerTest extends TestBase { // Listen for layout click events layout.addListener(new LayoutClickListener() { + @Override public void layoutClick(LayoutClickEvent event) { // Get the deepest nested component which was clicked diff --git a/tests/testbench/com/vaadin/tests/components/orderedlayout/LayoutResizeTest.java b/tests/testbench/com/vaadin/tests/components/orderedlayout/LayoutResizeTest.java index 455c16c425..539cb482f0 100644 --- a/tests/testbench/com/vaadin/tests/components/orderedlayout/LayoutResizeTest.java +++ b/tests/testbench/com/vaadin/tests/components/orderedlayout/LayoutResizeTest.java @@ -38,6 +38,7 @@ public class LayoutResizeTest extends TestBase { Button resize = new Button("Resize to 700x400", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { JavaScript .getCurrent() @@ -48,6 +49,7 @@ public class LayoutResizeTest extends TestBase { left.addComponent(resize); resize = new Button("Resize to 900x600", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { JavaScript .getCurrent() diff --git a/tests/testbench/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java b/tests/testbench/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java index 172e808070..46fd6ee852 100644 --- a/tests/testbench/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java +++ b/tests/testbench/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java @@ -29,18 +29,21 @@ public class OrderedLayoutCases extends AbstractTestRoot { setStyleName("sampleChild"); addComponent(createSimpleSelector("Child width", new ValueChangeListener() { + @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)); addComponent(createSimpleSelector("Caption", new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { String value = event.getProperty().getValue() .toString(); @@ -56,6 +59,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { addComponent(createSimpleSelector("Expand ratio", new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { AbstractOrderedLayout parent = (AbstractOrderedLayout) getParent(); if (parent == null) { @@ -79,6 +83,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { } addComponent(createSimpleSelector("Alignment", new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { String value = event.getProperty().getValue() .toString(); @@ -128,6 +133,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { sizeBar.addComponent(createSimpleSelector("Layout width", new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { currentLayout.setWidth(event.getProperty().getValue() .toString()); @@ -135,6 +141,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { }, dimensionValues)); sizeBar.addComponent(createSimpleSelector("Layout height", new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { currentLayout.setHeight(event.getProperty().getValue() .toString()); @@ -142,6 +149,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { }, dimensionValues)); sizeBar.addComponent(createSimpleSelector("Spacing", new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { currentLayout.setSpacing(Boolean.parseBoolean(event .getProperty().getValue().toString())); @@ -149,6 +157,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { }, "false", "true")); sizeBar.addComponent(createSimpleSelector("Margin", new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { currentLayout.setMargin(Boolean.parseBoolean(event .getProperty().getValue().toString())); @@ -156,6 +165,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { }, "false", "true")); sizeBar.addComponent(createSimpleSelector("Direction", new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Object value = event.getProperty().getValue(); @@ -189,6 +199,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { HorizontalLayout caseBar = new HorizontalLayout(); caseBar.addComponent(new Button("Undefined without relative", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { resetState(); setState(sizeBar, 2, 1); @@ -202,6 +213,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { })); caseBar.addComponent(new Button("Undefined with relative", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { resetState(); // width: 100% to middle child @@ -210,6 +222,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { })); caseBar.addComponent(new Button("Fixed with overflow", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { resetState(); // layout width: 350px @@ -220,6 +233,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { })); caseBar.addComponent(new Button("Fixed with extra space", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { resetState(); // Layout width: 800px @@ -237,6 +251,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { caseBar.addComponent(new Button("Expand with alignment", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { resetState(); // Layout width: 800px @@ -254,6 +269,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { caseBar.addComponent(new Button("Multiple expands", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { resetState(); // Layout width: 800px @@ -276,6 +292,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { caseBar.addComponent(new Button("Fixed + relative height", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { resetState(); // Layout height: 100% @@ -293,6 +310,7 @@ public class OrderedLayoutCases extends AbstractTestRoot { caseBar.addComponent(new Button("Undefined + relative height", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { resetState(); // Height: 350px to left child diff --git a/tests/testbench/com/vaadin/tests/components/orderedlayout/ReplaceComponentNPE.java b/tests/testbench/com/vaadin/tests/components/orderedlayout/ReplaceComponentNPE.java index 501c377ab7..a18400ce08 100644 --- a/tests/testbench/com/vaadin/tests/components/orderedlayout/ReplaceComponentNPE.java +++ b/tests/testbench/com/vaadin/tests/components/orderedlayout/ReplaceComponentNPE.java @@ -26,6 +26,7 @@ public class ReplaceComponentNPE extends TestBase { Button changer = new Button("ReplaceComponent"); changer.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getLayout().replaceComponent(button, outer); outer.addComponent(button); diff --git a/tests/testbench/com/vaadin/tests/components/orderedlayout/VerticalLayoutWidthCalculation.java b/tests/testbench/com/vaadin/tests/components/orderedlayout/VerticalLayoutWidthCalculation.java index f20f26153f..945ccf0e28 100644 --- a/tests/testbench/com/vaadin/tests/components/orderedlayout/VerticalLayoutWidthCalculation.java +++ b/tests/testbench/com/vaadin/tests/components/orderedlayout/VerticalLayoutWidthCalculation.java @@ -43,6 +43,7 @@ public class VerticalLayoutWidthCalculation extends AbstractTestCase { Button btn = new Button("Show/hide"); btn.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tf2.setVisible(!tf2.isVisible()); } diff --git a/tests/testbench/com/vaadin/tests/components/panel/BasicPanelTest.java b/tests/testbench/com/vaadin/tests/components/panel/BasicPanelTest.java index 671b2c3fca..b3eac5c82e 100644 --- a/tests/testbench/com/vaadin/tests/components/panel/BasicPanelTest.java +++ b/tests/testbench/com/vaadin/tests/components/panel/BasicPanelTest.java @@ -37,6 +37,7 @@ public class BasicPanelTest extends TestBase { final CheckBox heightSelection = new CheckBox("Undefined height"); heightSelection.setImmediate(true); heightSelection.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (heightSelection.getValue() == Boolean.TRUE) { panel.setHeight(null); diff --git a/tests/testbench/com/vaadin/tests/components/panel/PanelChangeContents.java b/tests/testbench/com/vaadin/tests/components/panel/PanelChangeContents.java index 4859b22932..7722e182ff 100644 --- a/tests/testbench/com/vaadin/tests/components/panel/PanelChangeContents.java +++ b/tests/testbench/com/vaadin/tests/components/panel/PanelChangeContents.java @@ -48,6 +48,7 @@ public class PanelChangeContents extends AbstractTestRoot implements setContent(content); } + @Override public void buttonClick(ClickEvent event) { if (event.getButton() == statsButton) { panel.setContent(stats); diff --git a/tests/testbench/com/vaadin/tests/components/panel/PanelClickListenerRelativeCoordinates.java b/tests/testbench/com/vaadin/tests/components/panel/PanelClickListenerRelativeCoordinates.java index 65a185b160..40f6d5ea33 100644 --- a/tests/testbench/com/vaadin/tests/components/panel/PanelClickListenerRelativeCoordinates.java +++ b/tests/testbench/com/vaadin/tests/components/panel/PanelClickListenerRelativeCoordinates.java @@ -12,6 +12,7 @@ public class PanelClickListenerRelativeCoordinates extends TestBase { Panel panel = new Panel("Panel's caption"); panel.addListener(new ClickListener() { + @Override public void click(ClickEvent event) { getMainWindow() .showNotification( diff --git a/tests/testbench/com/vaadin/tests/components/panel/PanelShouldNotScroll.java b/tests/testbench/com/vaadin/tests/components/panel/PanelShouldNotScroll.java index 65754de0f3..c8d9690703 100644 --- a/tests/testbench/com/vaadin/tests/components/panel/PanelShouldNotScroll.java +++ b/tests/testbench/com/vaadin/tests/components/panel/PanelShouldNotScroll.java @@ -23,6 +23,7 @@ public class PanelShouldNotScroll extends TestBase { p.addComponent(foo()); addMore = new Button("Add"); addMore.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { p.removeComponent(addMore); p.addComponent(foo()); diff --git a/tests/testbench/com/vaadin/tests/components/panel/PanelShouldRemoveActionHandler.java b/tests/testbench/com/vaadin/tests/components/panel/PanelShouldRemoveActionHandler.java index eec39359aa..5ca5c5135f 100644 --- a/tests/testbench/com/vaadin/tests/components/panel/PanelShouldRemoveActionHandler.java +++ b/tests/testbench/com/vaadin/tests/components/panel/PanelShouldRemoveActionHandler.java @@ -34,6 +34,7 @@ public class PanelShouldRemoveActionHandler extends TestBase { Button add = new Button("Add an action handler", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { add(); } @@ -42,6 +43,7 @@ public class PanelShouldRemoveActionHandler extends TestBase { Button addAnother = new Button("Add another action handler", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { addAnother(); } @@ -50,6 +52,7 @@ public class PanelShouldRemoveActionHandler extends TestBase { Button remove = new Button("Remove an action handler", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { remove(); } @@ -73,12 +76,14 @@ public class PanelShouldRemoveActionHandler extends TestBase { panel.setCaption(panel.getCaption() + " - Added handler"); Handler actionHandler = new Handler() { + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { new ShortcutAction("Ctrl+Left", ShortcutAction.KeyCode.ARROW_LEFT, new int[] { ModifierKey.CTRL }) }; } + @Override public void handleAction(Action action, Object sender, Object target) { getMainWindow().showNotification( "Handling action " + action.getCaption()); @@ -92,12 +97,14 @@ public class PanelShouldRemoveActionHandler extends TestBase { public void addAnother() { Handler actionHandler = new Handler() { + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { new ShortcutAction("Ctrl+Right", ShortcutAction.KeyCode.ARROW_RIGHT, new int[] { ModifierKey.CTRL }) }; } + @Override public void handleAction(Action action, Object sender, Object target) { getMainWindow().showNotification( "Handling action " + action.getCaption()); diff --git a/tests/testbench/com/vaadin/tests/components/popupview/PopupViewNullValues.java b/tests/testbench/com/vaadin/tests/components/popupview/PopupViewNullValues.java index 481c134ee6..75f95977bd 100644 --- a/tests/testbench/com/vaadin/tests/components/popupview/PopupViewNullValues.java +++ b/tests/testbench/com/vaadin/tests/components/popupview/PopupViewNullValues.java @@ -20,6 +20,7 @@ public class PopupViewNullValues extends TestBase { addComponent(pv[0]); b[0] = new Button("Open popupview 1", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { pv[0].setPopupVisible(true); } @@ -38,6 +39,7 @@ public class PopupViewNullValues extends TestBase { addComponent(pv[1]); b[1] = new Button("Open popupview 2", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { pv[1].setPopupVisible(true); } @@ -55,6 +57,7 @@ public class PopupViewNullValues extends TestBase { addComponent(pv[2]); b[2] = new Button("Open popupview 3", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { pv[2].setPopupVisible(true); } @@ -72,6 +75,7 @@ public class PopupViewNullValues extends TestBase { addComponent(pv[3]); b[3] = new Button("Open popupview 4", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { pv[3].setPopupVisible(true); } diff --git a/tests/testbench/com/vaadin/tests/components/popupview/PopupViewOffScreen.java b/tests/testbench/com/vaadin/tests/components/popupview/PopupViewOffScreen.java index 72183e3570..a9a3a0b008 100644 --- a/tests/testbench/com/vaadin/tests/components/popupview/PopupViewOffScreen.java +++ b/tests/testbench/com/vaadin/tests/components/popupview/PopupViewOffScreen.java @@ -42,6 +42,7 @@ public class PopupViewOffScreen extends TestBase { Button showall = new Button("Popup all", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { for (PopupView pv : popupViews) { pv.setPopupVisible(true); diff --git a/tests/testbench/com/vaadin/tests/components/popupview/PopupViewShouldCloseOnTabOut.java b/tests/testbench/com/vaadin/tests/components/popupview/PopupViewShouldCloseOnTabOut.java index 7e917630c8..271a7eea2a 100644 --- a/tests/testbench/com/vaadin/tests/components/popupview/PopupViewShouldCloseOnTabOut.java +++ b/tests/testbench/com/vaadin/tests/components/popupview/PopupViewShouldCloseOnTabOut.java @@ -24,10 +24,12 @@ public class PopupViewShouldCloseOnTabOut extends TestBase { protected void setup() { PopupView pv = new PopupView(new Content() { + @Override public String getMinimizedValueAsHTML() { return "<b>click me</b>"; } + @Override public Component getPopupComponent() { VerticalLayout vl = new VerticalLayout(); TextField field1 = new TextField(); diff --git a/tests/testbench/com/vaadin/tests/components/popupview/PopupViewWithRTE.java b/tests/testbench/com/vaadin/tests/components/popupview/PopupViewWithRTE.java index 5ed0a375fe..069ccef2bb 100644 --- a/tests/testbench/com/vaadin/tests/components/popupview/PopupViewWithRTE.java +++ b/tests/testbench/com/vaadin/tests/components/popupview/PopupViewWithRTE.java @@ -27,6 +27,7 @@ public class PopupViewWithRTE extends TestBase { VerticalLayout vl = new VerticalLayout(); + @Override public String getMinimizedValueAsHTML() { String value = rte.getValue(); if (value == null || "".equals(value)) { @@ -40,6 +41,7 @@ public class PopupViewWithRTE extends TestBase { return value.toString(); } + @Override public Component getPopupComponent() { return vl; } diff --git a/tests/testbench/com/vaadin/tests/components/popupview/ReopenPopupView.java b/tests/testbench/com/vaadin/tests/components/popupview/ReopenPopupView.java index 89f6d155f2..bef3cfced8 100644 --- a/tests/testbench/com/vaadin/tests/components/popupview/ReopenPopupView.java +++ b/tests/testbench/com/vaadin/tests/components/popupview/ReopenPopupView.java @@ -18,6 +18,7 @@ public class ReopenPopupView extends AbstractTestRoot { addComponent(log); addComponent(new PopupView("PopupView", new Button("Button", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("Button clicked"); } diff --git a/tests/testbench/com/vaadin/tests/components/progressindicator/ProgressIndicatorInvisible.java b/tests/testbench/com/vaadin/tests/components/progressindicator/ProgressIndicatorInvisible.java index 62dba61191..9f632ac806 100644 --- a/tests/testbench/com/vaadin/tests/components/progressindicator/ProgressIndicatorInvisible.java +++ b/tests/testbench/com/vaadin/tests/components/progressindicator/ProgressIndicatorInvisible.java @@ -22,6 +22,7 @@ public class ProgressIndicatorInvisible extends TestBase { addComponent(b); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { // If we skip hiding the layout, hiding the ProgressIndicator // will stop the polling diff --git a/tests/testbench/com/vaadin/tests/components/richtextarea/RichTextAreaTest.java b/tests/testbench/com/vaadin/tests/components/richtextarea/RichTextAreaTest.java index cb7b991bda..4155dd8a07 100644 --- a/tests/testbench/com/vaadin/tests/components/richtextarea/RichTextAreaTest.java +++ b/tests/testbench/com/vaadin/tests/components/richtextarea/RichTextAreaTest.java @@ -14,6 +14,7 @@ public class RichTextAreaTest extends AbstractFieldTest<RichTextArea> { private Command<RichTextArea, Boolean> nullSelectionAllowedCommand = new Command<RichTextArea, Boolean>() { + @Override public void execute(RichTextArea c, Boolean value, Object data) { c.setNullSettingAllowed(value); @@ -21,6 +22,7 @@ public class RichTextAreaTest extends AbstractFieldTest<RichTextArea> { }; private Command<RichTextArea, String> nullRepresentationCommand = new Command<RichTextArea, String>() { + @Override public void execute(RichTextArea c, String value, Object data) { c.setNullRepresentation(value); } diff --git a/tests/testbench/com/vaadin/tests/components/richtextarea/RichTextAreaWithKeyboardShortcuts.java b/tests/testbench/com/vaadin/tests/components/richtextarea/RichTextAreaWithKeyboardShortcuts.java index 3b77de8b86..73d7a95e9f 100644 --- a/tests/testbench/com/vaadin/tests/components/richtextarea/RichTextAreaWithKeyboardShortcuts.java +++ b/tests/testbench/com/vaadin/tests/components/richtextarea/RichTextAreaWithKeyboardShortcuts.java @@ -20,6 +20,7 @@ public class RichTextAreaWithKeyboardShortcuts extends TestBase { ShortcutAction save = new ShortcutAction("^Save"); private Action[] actions = new Action[] { save }; + @Override public void handleAction(Action action, Object sender, Object target) { String msg = "Action: " + action.getCaption(); msg += " From : " + sender.getClass().getSimpleName() + " '" @@ -38,6 +39,7 @@ public class RichTextAreaWithKeyboardShortcuts extends TestBase { } + @Override public Action[] getActions(Object target, Object sender) { return actions; } diff --git a/tests/testbench/com/vaadin/tests/components/root/UriFragmentTest.java b/tests/testbench/com/vaadin/tests/components/root/UriFragmentTest.java index 251672fb9a..d34c7718ce 100644 --- a/tests/testbench/com/vaadin/tests/components/root/UriFragmentTest.java +++ b/tests/testbench/com/vaadin/tests/components/root/UriFragmentTest.java @@ -17,12 +17,14 @@ public class UriFragmentTest extends AbstractTestRoot { addComponent(fragmentLabel); updateLabel(); getPage().addListener(new Page.FragmentChangedListener() { + @Override public void fragmentChanged(FragmentChangedEvent event) { updateLabel(); } }); addComponent(new Button("Navigate to #test", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getPage().setFragment("test"); } diff --git a/tests/testbench/com/vaadin/tests/components/select/AbstractSelectTestCase.java b/tests/testbench/com/vaadin/tests/components/select/AbstractSelectTestCase.java index 0565811e15..7c2d8dd243 100644 --- a/tests/testbench/com/vaadin/tests/components/select/AbstractSelectTestCase.java +++ b/tests/testbench/com/vaadin/tests/components/select/AbstractSelectTestCase.java @@ -146,6 +146,7 @@ public abstract class AbstractSelectTestCase<T extends AbstractSelect> extends protected Command<T, Boolean> nullSelectionAllowedCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { (c).setNullSelectionAllowed(value); } @@ -153,6 +154,7 @@ public abstract class AbstractSelectTestCase<T extends AbstractSelect> extends protected Command<T, Boolean> multiselectCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { c.setMultiSelect(value); } @@ -160,6 +162,7 @@ public abstract class AbstractSelectTestCase<T extends AbstractSelect> extends protected Command<T, Object> nullSelectItemIdCommand = new Command<T, Object>() { + @Override public void execute(T c, Object value, Object data) { c.setNullSelectionItemId(value); } @@ -167,6 +170,7 @@ public abstract class AbstractSelectTestCase<T extends AbstractSelect> extends protected Command<T, Integer> itemsInContainerCommand = new Command<T, Integer>() { + @Override public void execute(T t, Integer value, Object data) { items = value; updateContainer(); @@ -175,6 +179,7 @@ public abstract class AbstractSelectTestCase<T extends AbstractSelect> extends protected Command<T, Integer> propertiesInContainerCommand = new Command<T, Integer>() { + @Override public void execute(T t, Integer value, Object data) { properties = value; updateContainer(); @@ -183,6 +188,7 @@ public abstract class AbstractSelectTestCase<T extends AbstractSelect> extends protected Command<T, Boolean> itemClickListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { ((ItemClickNotifier) c) @@ -206,6 +212,7 @@ public abstract class AbstractSelectTestCase<T extends AbstractSelect> extends /* COMMANDS END */ + @Override public void itemClick(ItemClickEvent event) { String type = event.getButtonName(); if (event.isDoubleClick()) { diff --git a/tests/testbench/com/vaadin/tests/components/select/ComboBoxAddWhileFiltering.java b/tests/testbench/com/vaadin/tests/components/select/ComboBoxAddWhileFiltering.java index 931686003a..470c97442f 100644 --- a/tests/testbench/com/vaadin/tests/components/select/ComboBoxAddWhileFiltering.java +++ b/tests/testbench/com/vaadin/tests/components/select/ComboBoxAddWhileFiltering.java @@ -22,6 +22,7 @@ public class ComboBoxAddWhileFiltering extends TestBase { Button b = new Button("add item (^N)"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { addItem(comboBox); } diff --git a/tests/testbench/com/vaadin/tests/components/select/FocusListenerBreaksDropdownMenu.java b/tests/testbench/com/vaadin/tests/components/select/FocusListenerBreaksDropdownMenu.java index dd2a8bb1a8..6f203bf8c9 100644 --- a/tests/testbench/com/vaadin/tests/components/select/FocusListenerBreaksDropdownMenu.java +++ b/tests/testbench/com/vaadin/tests/components/select/FocusListenerBreaksDropdownMenu.java @@ -14,6 +14,7 @@ public class FocusListenerBreaksDropdownMenu extends TestBase { } comboBox.addListener(new FieldEvents.FocusListener() { + @Override public void focus(FieldEvents.FocusEvent event) { comboBox.addItem(); } diff --git a/tests/testbench/com/vaadin/tests/components/select/NativeSelects.java b/tests/testbench/com/vaadin/tests/components/select/NativeSelects.java index d5577e213c..75a3f1b751 100644 --- a/tests/testbench/com/vaadin/tests/components/select/NativeSelects.java +++ b/tests/testbench/com/vaadin/tests/components/select/NativeSelects.java @@ -108,6 +108,7 @@ public class NativeSelects extends ComponentTestCase<NativeSelect> { actions.add(createBooleanAction("Null selection allowed", false, new Command<NativeSelect, Boolean>() { + @Override public void execute(NativeSelect c, Boolean value, Object data) { c.setNullSelectionAllowed(value); diff --git a/tests/testbench/com/vaadin/tests/components/select/NullSelectionItemId.java b/tests/testbench/com/vaadin/tests/components/select/NullSelectionItemId.java index 74ebb08826..984bab5b34 100644 --- a/tests/testbench/com/vaadin/tests/components/select/NullSelectionItemId.java +++ b/tests/testbench/com/vaadin/tests/components/select/NullSelectionItemId.java @@ -36,6 +36,7 @@ public class NullSelectionItemId extends TestBase implements ClickListener { button = new Button( "Select null with select(NULL_ITEM_ID) (should make value null)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { mySelect.select(NULL_ITEM_ID); } @@ -46,6 +47,7 @@ public class NullSelectionItemId extends TestBase implements ClickListener { button = new Button( "Select null with setValue(null) (should make value null)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { mySelect.setValue(null); } @@ -55,6 +57,7 @@ public class NullSelectionItemId extends TestBase implements ClickListener { } + @Override public void buttonClick(ClickEvent event) { getMainWindow().showNotification( "mySelect.getValue() returns: " + mySelect.getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/select/SelectDisplaysOldValue.java b/tests/testbench/com/vaadin/tests/components/select/SelectDisplaysOldValue.java index 743dc071c9..b9ae958a03 100644 --- a/tests/testbench/com/vaadin/tests/components/select/SelectDisplaysOldValue.java +++ b/tests/testbench/com/vaadin/tests/components/select/SelectDisplaysOldValue.java @@ -143,6 +143,7 @@ public class SelectDisplaysOldValue extends TestBase { private class ControllerUpdatedListener implements Property.ValueChangeListener { + @Override public void valueChange(Property.ValueChangeEvent valueChangeEvent) { refreshSlaveDropdown((Integer) valueChangeEvent.getProperty() .getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.java b/tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.java index b3911f19c7..b97231ae8e 100644 --- a/tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.java +++ b/tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.java @@ -19,6 +19,7 @@ public class StylingPopupOpener extends TestBase { addComponent(select); addComponent(new Button("Update style", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { select.setStyleName("mystyle"); } diff --git a/tests/testbench/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.java b/tests/testbench/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.java index cf33e2c7ff..789174260f 100644 --- a/tests/testbench/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.java +++ b/tests/testbench/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.java @@ -20,6 +20,7 @@ public class TwinColSelectCaptionStyles extends TestBase { Button b = new Button("Set height and width to 500px", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { sel.setHeight("500px"); sel.setWidth("500px"); diff --git a/tests/testbench/com/vaadin/tests/components/select/TwinColSelectTest.java b/tests/testbench/com/vaadin/tests/components/select/TwinColSelectTest.java index 031a7e9d3d..b27dfa0ec8 100644 --- a/tests/testbench/com/vaadin/tests/components/select/TwinColSelectTest.java +++ b/tests/testbench/com/vaadin/tests/components/select/TwinColSelectTest.java @@ -7,12 +7,14 @@ import com.vaadin.ui.TwinColSelect; public class TwinColSelectTest extends AbstractSelectTestCase<TwinColSelect> { private Command<TwinColSelect, Integer> rowsCommand = new Command<TwinColSelect, Integer>() { + @Override public void execute(TwinColSelect c, Integer value, Object data) { c.setRows(value); } }; private Command<TwinColSelect, Integer> colsCommand = new Command<TwinColSelect, Integer>() { + @Override public void execute(TwinColSelect c, Integer value, Object data) { c.setColumns(value); } @@ -20,6 +22,7 @@ public class TwinColSelectTest extends AbstractSelectTestCase<TwinColSelect> { private Command<TwinColSelect, String> leftColumnCaptionCommand = new Command<TwinColSelect, String>() { + @Override public void execute(TwinColSelect c, String value, Object data) { c.setLeftColumnCaption(value); } @@ -27,6 +30,7 @@ public class TwinColSelectTest extends AbstractSelectTestCase<TwinColSelect> { private Command<TwinColSelect, String> rightColumnCaptionCommand = new Command<TwinColSelect, String>() { + @Override public void execute(TwinColSelect c, String value, Object data) { c.setRightColumnCaption(value); } diff --git a/tests/testbench/com/vaadin/tests/components/slider/SliderTest.java b/tests/testbench/com/vaadin/tests/components/slider/SliderTest.java index e34a294740..9be1fea987 100644 --- a/tests/testbench/com/vaadin/tests/components/slider/SliderTest.java +++ b/tests/testbench/com/vaadin/tests/components/slider/SliderTest.java @@ -8,23 +8,27 @@ import com.vaadin.ui.Slider; public class SliderTest extends AbstractFieldTest<Slider> { private Command<Slider, Double> minCommand = new Command<Slider, Double>() { + @Override public void execute(Slider c, Double value, Object data) { c.setMin(value); } }; private Command<Slider, Double> maxCommand = new Command<Slider, Double>() { + @Override public void execute(Slider c, Double value, Object data) { c.setMax(value); } }; private Command<Slider, Integer> orientationCommand = new Command<Slider, Integer>() { + @Override public void execute(Slider c, Integer value, Object data) { c.setOrientation(value); } }; private Command<Slider, Integer> resolutionCommand = new Command<Slider, Integer>() { + @Override public void execute(Slider c, Integer value, Object data) { c.setResolution(value); } diff --git a/tests/testbench/com/vaadin/tests/components/splitpanel/AbstractSplitPanelTest.java b/tests/testbench/com/vaadin/tests/components/splitpanel/AbstractSplitPanelTest.java index 1f7b6b7cbe..dc361b1b27 100644 --- a/tests/testbench/com/vaadin/tests/components/splitpanel/AbstractSplitPanelTest.java +++ b/tests/testbench/com/vaadin/tests/components/splitpanel/AbstractSplitPanelTest.java @@ -13,6 +13,7 @@ public abstract class AbstractSplitPanelTest<T extends AbstractSplitPanel> private Command<T, Boolean> splitterClickListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.addListener((SplitterClickListener) AbstractSplitPanelTest.this); @@ -23,12 +24,14 @@ public abstract class AbstractSplitPanelTest<T extends AbstractSplitPanel> } }; private Command<T, SplitPosition> setSplitPositionCommand = new Command<T, AbstractSplitPanelTest.SplitPosition>() { + @Override public void execute(T c, SplitPosition value, Object data) { value.apply(c); } }; private Command<T, Boolean> splitterLockCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { c.setLocked(value); } @@ -122,6 +125,7 @@ public abstract class AbstractSplitPanelTest<T extends AbstractSplitPanel> } + @Override public void splitterClick(SplitterClickEvent event) { log(event.getClass().getSimpleName() + ": " + event.getButtonName() + " at " + event.getRelativeX() + "," + event.getRelativeY()); diff --git a/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelExtraScrollbars.java b/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelExtraScrollbars.java index d4716433b7..05e10397ac 100644 --- a/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelExtraScrollbars.java +++ b/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelExtraScrollbars.java @@ -53,6 +53,7 @@ public class SplitPanelExtraScrollbars extends AbstractTestCase implements return 3458; } + @Override public void buttonClick(ClickEvent event) { if (b.getHeight() == 200) { b.setHeight("1200px"); diff --git a/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelReversePosition.java b/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelReversePosition.java index ef17a3c668..a86d209f65 100644 --- a/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelReversePosition.java +++ b/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelReversePosition.java @@ -26,6 +26,7 @@ public class SplitPanelReversePosition extends TestBase { hsplit.setImmediate(true); hsplit.setSplitPosition(100, Sizeable.UNITS_PIXELS, hsplitReversed); hsplit.addListener(new HorizontalSplitPanel.SplitterClickListener() { + @Override public void splitterClick(SplitterClickEvent event) { getMainWindow().showNotification("Horizontal Splitter Clicked"); } @@ -40,6 +41,7 @@ public class SplitPanelReversePosition extends TestBase { vsplit.setImmediate(true); vsplit.setSplitPosition(10, Sizeable.UNITS_PERCENTAGE, vsplitReversed); vsplit.addListener(new SplitterClickListener() { + @Override public void splitterClick(SplitterClickEvent event) { getMainWindow().showNotification("Vertical Splitter Clicked"); } @@ -61,6 +63,7 @@ public class SplitPanelReversePosition extends TestBase { buttons.addComponent(new Button("Swap horizontal positioning", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { hsplitReversed = !hsplitReversed; hsplit.setSplitPosition(100, Sizeable.UNITS_PIXELS, @@ -71,6 +74,7 @@ public class SplitPanelReversePosition extends TestBase { buttons.addComponent(new Button("Swap vertical positioning", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { vsplitReversed = !vsplitReversed; vsplit.setSplitPosition(10, Sizeable.UNITS_PERCENTAGE, diff --git a/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelSplitterWidth.java b/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelSplitterWidth.java index 5fad68fef5..08e602241f 100644 --- a/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelSplitterWidth.java +++ b/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelSplitterWidth.java @@ -47,6 +47,7 @@ public class SplitPanelSplitterWidth extends TestBase { getLayout().addComponent( new Button("Unlock", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { split.setLocked(false); split2.setLocked(false); diff --git a/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelSwapComponents.java b/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelSwapComponents.java index 470a47f160..26abd0a782 100644 --- a/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelSwapComponents.java +++ b/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelSwapComponents.java @@ -19,6 +19,7 @@ public class SplitPanelSwapComponents extends TestBase { getLayout().addComponent(hsplit); Button swap = new Button("Swap components", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Component first = hsplit.getFirstComponent(); hsplit.removeComponent(first); diff --git a/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelWithMinimumAndMaximum.java b/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelWithMinimumAndMaximum.java index f7c3dd84e4..2a730da9be 100644 --- a/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelWithMinimumAndMaximum.java +++ b/tests/testbench/com/vaadin/tests/components/splitpanel/SplitPanelWithMinimumAndMaximum.java @@ -276,6 +276,7 @@ public class SplitPanelWithMinimumAndMaximum extends TestBase { Button disableMinimum = new Button("Disable min limit", new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { togglableSplitPanel.setMinSplitPosition(0, Sizeable.UNITS_PERCENTAGE); @@ -284,6 +285,7 @@ public class SplitPanelWithMinimumAndMaximum extends TestBase { }); Button enableMinimum = new Button("Enable min limit", new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { togglableSplitPanel.setMinSplitPosition(10, Sizeable.UNITS_PERCENTAGE); @@ -292,6 +294,7 @@ public class SplitPanelWithMinimumAndMaximum extends TestBase { }); Button disableMaximum = new Button("Disable max limit", new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { togglableSplitPanel.setMaxSplitPosition(100, Sizeable.UNITS_PERCENTAGE); @@ -300,6 +303,7 @@ public class SplitPanelWithMinimumAndMaximum extends TestBase { }); Button enableMaximum = new Button("Enable max limit", new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { togglableSplitPanel.setMaxSplitPosition(80, Sizeable.UNITS_PERCENTAGE); diff --git a/tests/testbench/com/vaadin/tests/components/table/AddItemToEmptyTable.java b/tests/testbench/com/vaadin/tests/components/table/AddItemToEmptyTable.java index e8445f8422..bde50af013 100644 --- a/tests/testbench/com/vaadin/tests/components/table/AddItemToEmptyTable.java +++ b/tests/testbench/com/vaadin/tests/components/table/AddItemToEmptyTable.java @@ -20,6 +20,7 @@ public class AddItemToEmptyTable extends TestBase { cb.setImmediate(true); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if ((Boolean) event.getProperty().getValue()) { rightTable.setColumnWidth("name", 150); @@ -36,6 +37,7 @@ public class AddItemToEmptyTable extends TestBase { cb.setImmediate(true); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if ((Boolean) event.getProperty().getValue()) { rightTable.setColumnWidth("info", 20); @@ -71,6 +73,7 @@ public class AddItemToEmptyTable extends TestBase { Button b = new Button("Add item", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Object id = rightTable.addItem(); Item item = rightTable.getItem(id); @@ -83,6 +86,7 @@ public class AddItemToEmptyTable extends TestBase { b = new Button("Clear", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { rightTable.removeAllItems(); } diff --git a/tests/testbench/com/vaadin/tests/components/table/AddNonRenderedRow.java b/tests/testbench/com/vaadin/tests/components/table/AddNonRenderedRow.java index 5486d6248d..80b136d2ab 100644 --- a/tests/testbench/com/vaadin/tests/components/table/AddNonRenderedRow.java +++ b/tests/testbench/com/vaadin/tests/components/table/AddNonRenderedRow.java @@ -22,6 +22,7 @@ public class AddNonRenderedRow extends TestBase { Button addrowButton = new Button("Add row"); addrowButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent pEvent) { addRow(); } diff --git a/tests/testbench/com/vaadin/tests/components/table/CellStyleGeneratorTest.java b/tests/testbench/com/vaadin/tests/components/table/CellStyleGeneratorTest.java index 08bbd0790f..35f35c1407 100644 --- a/tests/testbench/com/vaadin/tests/components/table/CellStyleGeneratorTest.java +++ b/tests/testbench/com/vaadin/tests/components/table/CellStyleGeneratorTest.java @@ -16,6 +16,7 @@ public class CellStyleGeneratorTest extends TestBase { CellStyleGenerator g = new CellStyleGenerator() { + @Override public String getStyle(Object itemId, Object propertyId) { if (propertyId != null && propertyId.equals("red")) { return "red"; diff --git a/tests/testbench/com/vaadin/tests/components/table/ColumnCollapsingAndColumnExpansion.java b/tests/testbench/com/vaadin/tests/components/table/ColumnCollapsingAndColumnExpansion.java index 95e94bcd47..08b65e2ef5 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ColumnCollapsingAndColumnExpansion.java +++ b/tests/testbench/com/vaadin/tests/components/table/ColumnCollapsingAndColumnExpansion.java @@ -30,10 +30,12 @@ public class ColumnCollapsingAndColumnExpansion extends TestBase { final Action H = new Action("Toggle Col2"); final Action[] actions = new Action[] { H }; + @Override public Action[] getActions(Object target, Object sender) { return actions; } + @Override public void handleAction(Action action, Object sender, Object target) { table.setColumnCollapsed("Col2", !table.isColumnCollapsed("Col2")); @@ -55,6 +57,7 @@ public class ColumnCollapsingAndColumnExpansion extends TestBase { final TextField tf = new TextField("Column name (ColX)"); Button hide = new Button("Collapse", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnCollapsed(tf.getValue(), true); } @@ -63,6 +66,7 @@ public class ColumnCollapsingAndColumnExpansion extends TestBase { Button show = new Button("Show", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnCollapsed(tf.getValue(), false); } diff --git a/tests/testbench/com/vaadin/tests/components/table/ColumnGeneratorAddingOrder.java b/tests/testbench/com/vaadin/tests/components/table/ColumnGeneratorAddingOrder.java index d3dfa61ceb..2898750113 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ColumnGeneratorAddingOrder.java +++ b/tests/testbench/com/vaadin/tests/components/table/ColumnGeneratorAddingOrder.java @@ -23,6 +23,7 @@ public class ColumnGeneratorAddingOrder extends TestBase { Table t = new Table(); t.addGeneratedColumn("col2", new Table.ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { return new Button("generated b c2"); @@ -39,6 +40,7 @@ public class ColumnGeneratorAddingOrder extends TestBase { t.setContainerDataSource(c); t.addGeneratedColumn("col1", new Table.ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { return new Button("generated b c1"); diff --git a/tests/testbench/com/vaadin/tests/components/table/ColumnHeaderAlignments.java b/tests/testbench/com/vaadin/tests/components/table/ColumnHeaderAlignments.java index fdcb458a6a..324d1a63cf 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ColumnHeaderAlignments.java +++ b/tests/testbench/com/vaadin/tests/components/table/ColumnHeaderAlignments.java @@ -30,6 +30,7 @@ public class ColumnHeaderAlignments extends TestBase { theme.setNullSelectionAllowed(false); theme.setImmediate(true); theme.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { setTheme(String.valueOf(event.getProperty().getValue())); } @@ -38,6 +39,7 @@ public class ColumnHeaderAlignments extends TestBase { CheckBox footers = new CheckBox("Show footers"); footers.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean visible = (Boolean) event.getProperty().getValue(); fooTable.setFooterVisible(visible); diff --git a/tests/testbench/com/vaadin/tests/components/table/ColumnReorderEvent.java b/tests/testbench/com/vaadin/tests/components/table/ColumnReorderEvent.java index 4c1fc70e5e..f32633eece 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ColumnReorderEvent.java +++ b/tests/testbench/com/vaadin/tests/components/table/ColumnReorderEvent.java @@ -83,6 +83,7 @@ public class ColumnReorderEvent extends TestBase { table.setColumnHeader("lastname", "LastName"); table.addListener(new Table.ColumnReorderListener() { + @Override public void columnReorder( com.vaadin.ui.Table.ColumnReorderEvent event) { order.setValue(aToString(table.getVisibleColumns())); diff --git a/tests/testbench/com/vaadin/tests/components/table/ColumnResizeEvent.java b/tests/testbench/com/vaadin/tests/components/table/ColumnResizeEvent.java index 29131b8d7a..f092ba8bca 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ColumnResizeEvent.java +++ b/tests/testbench/com/vaadin/tests/components/table/ColumnResizeEvent.java @@ -84,6 +84,7 @@ public class ColumnResizeEvent extends TestBase { column3Width.setValue(table.getColumnWidth("150pxfixedCol") + "px"); table.addListener(new ColumnResizeListener() { + @Override public void columnResize(com.vaadin.ui.Table.ColumnResizeEvent event) { if (event.getPropertyId().equals("firstname")) { diff --git a/tests/testbench/com/vaadin/tests/components/table/ContainerChangeWithPartlySamePropertyIds.java b/tests/testbench/com/vaadin/tests/components/table/ContainerChangeWithPartlySamePropertyIds.java index b8e9226ad2..c76edca40d 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ContainerChangeWithPartlySamePropertyIds.java +++ b/tests/testbench/com/vaadin/tests/components/table/ContainerChangeWithPartlySamePropertyIds.java @@ -68,6 +68,7 @@ public class ContainerChangeWithPartlySamePropertyIds extends TestBase { Button switchContainerButton = new Button("switch container"); switchContainerButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (testTable.getContainerDataSource() == containerA) { testTable.setContainerDataSource(containerB); @@ -80,6 +81,7 @@ public class ContainerChangeWithPartlySamePropertyIds extends TestBase { Button clearButton = new Button("clear (click twice)"); clearButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { me.removeComponent(testTable); diff --git a/tests/testbench/com/vaadin/tests/components/table/ContainerSizeChange.java b/tests/testbench/com/vaadin/tests/components/table/ContainerSizeChange.java index 84e98deffb..c24be6de96 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ContainerSizeChange.java +++ b/tests/testbench/com/vaadin/tests/components/table/ContainerSizeChange.java @@ -32,6 +32,7 @@ public class ContainerSizeChange extends TestBase { Button b = new Button("Decrease size", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { ds.decreaseSize(); } @@ -42,6 +43,7 @@ public class ContainerSizeChange extends TestBase { b = new Button("Increase size", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { ds.increaseSize(); } diff --git a/tests/testbench/com/vaadin/tests/components/table/DisabledTableShouldNotSendPageLengthUpdates.java b/tests/testbench/com/vaadin/tests/components/table/DisabledTableShouldNotSendPageLengthUpdates.java index 86646f522f..c52f57358c 100644 --- a/tests/testbench/com/vaadin/tests/components/table/DisabledTableShouldNotSendPageLengthUpdates.java +++ b/tests/testbench/com/vaadin/tests/components/table/DisabledTableShouldNotSendPageLengthUpdates.java @@ -16,6 +16,7 @@ public class DisabledTableShouldNotSendPageLengthUpdates extends TestBase { HorizontalSplitPanel split = new HorizontalSplitPanel(); table.addContainerProperty("name", Integer.class, 0); Button button = new Button("Add items", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { for (int i = 0; i < 5; i++) { Object id = table.addItem(); diff --git a/tests/testbench/com/vaadin/tests/components/table/DoublesInTable.java b/tests/testbench/com/vaadin/tests/components/table/DoublesInTable.java index c048c770fa..920ccc2038 100644 --- a/tests/testbench/com/vaadin/tests/components/table/DoublesInTable.java +++ b/tests/testbench/com/vaadin/tests/components/table/DoublesInTable.java @@ -40,6 +40,7 @@ public class DoublesInTable extends TestBase { editMode.setImmediate(true); editMode.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setEditable(editMode.getValue()); @@ -50,6 +51,7 @@ public class DoublesInTable extends TestBase { useCustomConverters.setImmediate(true); useCustomConverters.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { recreateTable(); } @@ -75,6 +77,7 @@ public class DoublesInTable extends TestBase { cb.setValue(Locale.US); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { recreateTable(); } @@ -134,6 +137,7 @@ public class DoublesInTable extends TestBase { t.setImmediate(true); t.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { log.log("Value is now: " + event.getProperty().getValue()); @@ -145,12 +149,14 @@ public class DoublesInTable extends TestBase { private void addConverters(Table t) { t.setConverter("sex", new Converter<String, Sex>() { + @Override public Sex convertToModel(String value, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException { // not used in this test - Table only converts to presentation return null; } + @Override public String convertToPresentation(Sex value, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException { if (value == null) { @@ -159,22 +165,26 @@ public class DoublesInTable extends TestBase { return value.getStringRepresentation(); } + @Override public Class<Sex> getModelType() { return Sex.class; } + @Override public Class<String> getPresentationType() { return String.class; } }); t.setConverter("deceased", new Converter<String, Boolean>() { + @Override public Boolean convertToModel(String value, Locale locale) { // not used in this test - Table only converts from source to // target return null; } + @Override public String convertToPresentation(Boolean value, Locale locale) { if (value == null || value) { return "YES, DEAD!"; @@ -183,16 +193,19 @@ public class DoublesInTable extends TestBase { } } + @Override public Class<Boolean> getModelType() { return Boolean.class; } + @Override public Class<String> getPresentationType() { return String.class; } }); t.setConverter("age", new Converter<String, Integer>() { + @Override public Integer convertToModel(String value, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException { // not used in this test - Table only converts from source to @@ -200,6 +213,7 @@ public class DoublesInTable extends TestBase { return null; } + @Override public String convertToPresentation(Integer value, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException { if (value == null) { @@ -216,32 +230,38 @@ public class DoublesInTable extends TestBase { } } + @Override public Class<Integer> getModelType() { return Integer.class; } + @Override public Class<String> getPresentationType() { return String.class; } }); t.setConverter("address", new Converter<String, Address>() { + @Override public Address convertToModel(String value, Locale locale) throws ConversionException { // not used in this test - Table only converts to presentation return null; } + @Override public String convertToPresentation(Address value, Locale locale) throws ConversionException { return value.getStreetAddress() + ", " + value.getCity() + " (" + value.getCountry() + ")"; } + @Override public Class<Address> getModelType() { return Address.class; } + @Override public Class<String> getPresentationType() { return String.class; } diff --git a/tests/testbench/com/vaadin/tests/components/table/EditableModeChange.java b/tests/testbench/com/vaadin/tests/components/table/EditableModeChange.java index acb866a1da..5db294088a 100644 --- a/tests/testbench/com/vaadin/tests/components/table/EditableModeChange.java +++ b/tests/testbench/com/vaadin/tests/components/table/EditableModeChange.java @@ -44,6 +44,7 @@ public class EditableModeChange extends TestBase { items.addListener(new ItemClickEvent.ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { if (event.isDoubleClick()) { selectionEvent = event; diff --git a/tests/testbench/com/vaadin/tests/components/table/EditableTableLeak.java b/tests/testbench/com/vaadin/tests/components/table/EditableTableLeak.java index 8aa6d1277f..f7adc98103 100644 --- a/tests/testbench/com/vaadin/tests/components/table/EditableTableLeak.java +++ b/tests/testbench/com/vaadin/tests/components/table/EditableTableLeak.java @@ -88,6 +88,7 @@ public class EditableTableLeak extends TestBase { useFieldFactory.setImmediate(true); useFieldFactory.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (useFieldFactory.getValue()) { table.setTableFieldFactory(new CachingFieldFactory()); @@ -111,6 +112,7 @@ public class EditableTableLeak extends TestBase { addComponent(sizeLabel); addComponent(new Button("Show size of the table", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.requestRepaintAll(); updateSize(); @@ -119,6 +121,7 @@ public class EditableTableLeak extends TestBase { })); addComponent(new Button("Select the second row", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.select("AL"); updateSize(); diff --git a/tests/testbench/com/vaadin/tests/components/table/Footer.java b/tests/testbench/com/vaadin/tests/components/table/Footer.java index c962ce8468..7fd8d3563f 100644 --- a/tests/testbench/com/vaadin/tests/components/table/Footer.java +++ b/tests/testbench/com/vaadin/tests/components/table/Footer.java @@ -50,6 +50,7 @@ public class Footer extends TestBase { final CheckBox visible = new CheckBox("Footers Visible", true); visible.setImmediate(true); visible.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setFooterVisible((Boolean) visible.getValue()); @@ -61,6 +62,7 @@ public class Footer extends TestBase { final TextField footer1Value = new TextField(null, "Footer1"); footer1Value.setImmediate(true); Button footer1Btn = new Button("Change", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnFooter("col1", footer1Value.getValue() == null ? "" : footer1Value @@ -75,6 +77,7 @@ public class Footer extends TestBase { final TextField footer2Value = new TextField(null, "Footer2"); footer2Value.setImmediate(true); Button footer2Btn = new Button("Change", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnFooter("col2", footer2Value.getValue() == null ? "" : footer2Value @@ -89,6 +92,7 @@ public class Footer extends TestBase { final TextField footer3Value = new TextField(null, "Footer3"); footer3Value.setImmediate(true); Button footer3Btn = new Button("Change", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnFooter("col3", footer3Value.getValue() == null ? "" : footer3Value diff --git a/tests/testbench/com/vaadin/tests/components/table/FooterClick.java b/tests/testbench/com/vaadin/tests/components/table/FooterClick.java index 2ae663986b..08dc47908a 100644 --- a/tests/testbench/com/vaadin/tests/components/table/FooterClick.java +++ b/tests/testbench/com/vaadin/tests/components/table/FooterClick.java @@ -42,6 +42,7 @@ public class FooterClick extends TestBase { // Add a footer click listener table.addListener(new Table.FooterClickListener() { + @Override public void footerClick(FooterClickEvent event) { columnField.setValue(String.valueOf(event.getPropertyId())); log.log("Clicked on footer: " + event.getPropertyId()); @@ -53,6 +54,7 @@ public class FooterClick extends TestBase { immediateCheckbox.setValue(table.isImmediate()); immediateCheckbox.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setImmediate((Boolean) event.getProperty().getValue()); } @@ -65,6 +67,7 @@ public class FooterClick extends TestBase { columnReorderingCheckbox .addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setColumnReorderingAllowed((Boolean) event .getProperty().getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/table/HeaderClick.java b/tests/testbench/com/vaadin/tests/components/table/HeaderClick.java index d5debcfe16..b335e34d84 100644 --- a/tests/testbench/com/vaadin/tests/components/table/HeaderClick.java +++ b/tests/testbench/com/vaadin/tests/components/table/HeaderClick.java @@ -28,6 +28,7 @@ public class HeaderClick extends TestBase { // Add a header click listener table.addListener(new Table.HeaderClickListener() { + @Override public void headerClick(HeaderClickEvent event) { columnField.setValue(String.valueOf(event.getPropertyId())); } @@ -38,6 +39,7 @@ public class HeaderClick extends TestBase { immediateCheckbox.setValue(table.isImmediate()); immediateCheckbox.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setImmediate((Boolean) event.getProperty().getValue()); } @@ -48,6 +50,7 @@ public class HeaderClick extends TestBase { sortEnabledCheckbox.setValue(table.isSortEnabled()); sortEnabledCheckbox.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setSortDisabled(!(Boolean) event.getProperty().getValue()); } @@ -60,6 +63,7 @@ public class HeaderClick extends TestBase { columnReorderingCheckbox .addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setColumnReorderingAllowed((Boolean) event .getProperty().getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/table/HeaderFooterClickLeftRightMiddle.java b/tests/testbench/com/vaadin/tests/components/table/HeaderFooterClickLeftRightMiddle.java index cd54e21395..ec82b36575 100644 --- a/tests/testbench/com/vaadin/tests/components/table/HeaderFooterClickLeftRightMiddle.java +++ b/tests/testbench/com/vaadin/tests/components/table/HeaderFooterClickLeftRightMiddle.java @@ -33,6 +33,7 @@ public class HeaderFooterClickLeftRightMiddle extends TestBase { immediateCheckbox.setValue(table.isImmediate()); immediateCheckbox.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setImmediate((Boolean) event.getProperty().getValue()); } @@ -45,6 +46,7 @@ public class HeaderFooterClickLeftRightMiddle extends TestBase { private HeaderClickListener headerClickListener = new HeaderClickListener() { + @Override public void headerClick(HeaderClickEvent event) { String type = event.isDoubleClick() ? "Double click" : "Click"; @@ -55,6 +57,7 @@ public class HeaderFooterClickLeftRightMiddle extends TestBase { }; + @Override public void valueChange(ValueChangeEvent event) { if (table.getListeners(HeaderClickEvent.class).isEmpty()) { table.addListener(headerClickListener); @@ -72,6 +75,7 @@ public class HeaderFooterClickLeftRightMiddle extends TestBase { private FooterClickListener footerClickListener = new FooterClickListener() { + @Override public void footerClick(FooterClickEvent event) { String type = event.isDoubleClick() ? "Double click" : "Click"; @@ -81,6 +85,7 @@ public class HeaderFooterClickLeftRightMiddle extends TestBase { } }; + @Override public void valueChange(ValueChangeEvent event) { if (table.getListeners(FooterClickEvent.class).isEmpty()) { table.addListener(footerClickListener); @@ -95,6 +100,7 @@ public class HeaderFooterClickLeftRightMiddle extends TestBase { sortEnabledCheckbox.setImmediate(true); sortEnabledCheckbox.setValue(table.isSortEnabled()); sortEnabledCheckbox.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setSortEnabled((Boolean) event.getProperty().getValue()); } @@ -106,6 +112,7 @@ public class HeaderFooterClickLeftRightMiddle extends TestBase { columnReorderingCheckbox.setValue(table.isColumnReorderingAllowed()); columnReorderingCheckbox.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setColumnReorderingAllowed((Boolean) event.getProperty() .getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/table/HeaderUpdateWhenNoRows.java b/tests/testbench/com/vaadin/tests/components/table/HeaderUpdateWhenNoRows.java index f1e4e09d57..6dafdd3dd5 100644 --- a/tests/testbench/com/vaadin/tests/components/table/HeaderUpdateWhenNoRows.java +++ b/tests/testbench/com/vaadin/tests/components/table/HeaderUpdateWhenNoRows.java @@ -20,6 +20,7 @@ public class HeaderUpdateWhenNoRows extends TestBase { final CheckBox showHeaders = new CheckBox("Show headers"); showHeaders.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (showHeaders.getValue()) { table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID); diff --git a/tests/testbench/com/vaadin/tests/components/table/HiddenColumnsExpandRatios.java b/tests/testbench/com/vaadin/tests/components/table/HiddenColumnsExpandRatios.java index 007c93573f..4a729d221f 100644 --- a/tests/testbench/com/vaadin/tests/components/table/HiddenColumnsExpandRatios.java +++ b/tests/testbench/com/vaadin/tests/components/table/HiddenColumnsExpandRatios.java @@ -35,12 +35,14 @@ public class HiddenColumnsExpandRatios extends TestBase { } addComponent(new Button("All", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setVisibleColumns(table.getContainerPropertyIds() .toArray()); } })); addComponent(new Button("Some", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setWidth("100px"); table.setWidth("800px"); diff --git a/tests/testbench/com/vaadin/tests/components/table/HugeRowCount.java b/tests/testbench/com/vaadin/tests/components/table/HugeRowCount.java index 3478750622..434d650d6d 100644 --- a/tests/testbench/com/vaadin/tests/components/table/HugeRowCount.java +++ b/tests/testbench/com/vaadin/tests/components/table/HugeRowCount.java @@ -22,6 +22,7 @@ public class HugeRowCount extends TestBase { final TextField tf = new TextField("Rows"); tf.setValue(String.valueOf(100000)); tf.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { container.setSize(Integer.parseInt(tf.getValue().toString())); } diff --git a/tests/testbench/com/vaadin/tests/components/table/ItemClickEvents.java b/tests/testbench/com/vaadin/tests/components/table/ItemClickEvents.java index 537461ce0f..4bdb20adea 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ItemClickEvents.java +++ b/tests/testbench/com/vaadin/tests/components/table/ItemClickEvents.java @@ -27,6 +27,7 @@ public class ItemClickEvents extends TestBase { HorizontalLayout ol = createHorizontalLayout(tree); Button b = new Button("icon", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (tree.getItemIconPropertyId() == null) { tree.setItemIconPropertyId("icon"); @@ -55,6 +56,7 @@ public class ItemClickEvents extends TestBase { "http://www.itmill.com/res/images/itmill_logo.gif")); tree.addListener(new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { logEvent(event, "tree"); } @@ -73,6 +75,7 @@ public class ItemClickEvents extends TestBase { } table.addListener(new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { logEvent(event, "table"); } @@ -82,6 +85,7 @@ public class ItemClickEvents extends TestBase { addComponent(log); addComponent(new Button("Clear log", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.clear(); } diff --git a/tests/testbench/com/vaadin/tests/components/table/KeyControl.java b/tests/testbench/com/vaadin/tests/components/table/KeyControl.java index e662db338c..2998940db1 100644 --- a/tests/testbench/com/vaadin/tests/components/table/KeyControl.java +++ b/tests/testbench/com/vaadin/tests/components/table/KeyControl.java @@ -41,6 +41,7 @@ public class KeyControl extends TestBase { layout1.addComponent(table1); table1.addListener(new Table.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { @SuppressWarnings("unchecked") Set<String> value = (Set<String>) table1.getValue(); @@ -63,6 +64,7 @@ public class KeyControl extends TestBase { layout2.addComponent(table2); table2.addListener(new Table.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { String value = table2.getValue() == null ? "No selected items" : table2.getValue().toString(); @@ -86,6 +88,7 @@ public class KeyControl extends TestBase { layout3.addComponent(table3); table3.addListener(new Table.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { @SuppressWarnings("unchecked") Set<String> value = (Set<String>) table3.getValue(); diff --git a/tests/testbench/com/vaadin/tests/components/table/KeyboardNavigationWithChangingContent.java b/tests/testbench/com/vaadin/tests/components/table/KeyboardNavigationWithChangingContent.java index 44a2dcd9a9..bc0601684f 100644 --- a/tests/testbench/com/vaadin/tests/components/table/KeyboardNavigationWithChangingContent.java +++ b/tests/testbench/com/vaadin/tests/components/table/KeyboardNavigationWithChangingContent.java @@ -35,6 +35,7 @@ public class KeyboardNavigationWithChangingContent extends TestBase { new Button("Change elements and selection", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { bic.removeAllItems(); diff --git a/tests/testbench/com/vaadin/tests/components/table/LabelEmbeddedClickThroughForTable.java b/tests/testbench/com/vaadin/tests/components/table/LabelEmbeddedClickThroughForTable.java index de0d2b8d56..895e05c111 100644 --- a/tests/testbench/com/vaadin/tests/components/table/LabelEmbeddedClickThroughForTable.java +++ b/tests/testbench/com/vaadin/tests/components/table/LabelEmbeddedClickThroughForTable.java @@ -56,6 +56,7 @@ public class LabelEmbeddedClickThroughForTable extends TestBase { table.addListener(new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { System.out.println("Clickevent on item " + event.getItemId() + ", column: " + event.getPropertyId()); diff --git a/tests/testbench/com/vaadin/tests/components/table/LastColumnNegative.java b/tests/testbench/com/vaadin/tests/components/table/LastColumnNegative.java index 2100d3852e..b7379b4f2c 100644 --- a/tests/testbench/com/vaadin/tests/components/table/LastColumnNegative.java +++ b/tests/testbench/com/vaadin/tests/components/table/LastColumnNegative.java @@ -16,6 +16,7 @@ public class LastColumnNegative extends TestBase { Button addButton = new Button("Add a table", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { wrapper.addComponent(table); } @@ -24,6 +25,7 @@ public class LastColumnNegative extends TestBase { Button removeButton = new Button("Remove a table", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { wrapper.removeComponent(table); } @@ -31,6 +33,7 @@ public class LastColumnNegative extends TestBase { Button shrinkWrapper = new Button("Shrink wrapper", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { wrapper.setWidth("400px"); } diff --git a/tests/testbench/com/vaadin/tests/components/table/LongMultiselect.java b/tests/testbench/com/vaadin/tests/components/table/LongMultiselect.java index 0196395bf4..43a89e4211 100644 --- a/tests/testbench/com/vaadin/tests/components/table/LongMultiselect.java +++ b/tests/testbench/com/vaadin/tests/components/table/LongMultiselect.java @@ -41,6 +41,7 @@ public class LongMultiselect extends TestBase { // Add action button layout.addComponent(new Button("Do It", new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { // Set ItemProperty.COLUMN2 for all selected values of table Collection selectedIds = (Collection) table.getValue(); diff --git a/tests/testbench/com/vaadin/tests/components/table/MissingScrollbar.java b/tests/testbench/com/vaadin/tests/components/table/MissingScrollbar.java index 5f65b40f2f..e51cec2a6d 100644 --- a/tests/testbench/com/vaadin/tests/components/table/MissingScrollbar.java +++ b/tests/testbench/com/vaadin/tests/components/table/MissingScrollbar.java @@ -43,6 +43,7 @@ public class MissingScrollbar extends TestBase { Button b = new Button("Set items to 2", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setContainerDataSource(container2); } @@ -51,6 +52,7 @@ public class MissingScrollbar extends TestBase { b = new Button("Set items to 50", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setContainerDataSource(container50); } diff --git a/tests/testbench/com/vaadin/tests/components/table/ModifyContainerProperty.java b/tests/testbench/com/vaadin/tests/components/table/ModifyContainerProperty.java index a472b43ce7..00965220db 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ModifyContainerProperty.java +++ b/tests/testbench/com/vaadin/tests/components/table/ModifyContainerProperty.java @@ -26,12 +26,14 @@ public class ModifyContainerProperty extends TestBase { table.setContainerDataSource(ic); addComponent(new Button("Remove container property", new Button.ClickListener() { + @Override public void buttonClick(com.vaadin.ui.Button.ClickEvent arg0) { ic.removeContainerProperty("one"); } })); addComponent(new Button("Add container property", new Button.ClickListener() { + @Override public void buttonClick(com.vaadin.ui.Button.ClickEvent arg0) { boolean added = ic.addContainerProperty("three", String.class, "three"); diff --git a/tests/testbench/com/vaadin/tests/components/table/MultiClickingItemThatDetachesTable.java b/tests/testbench/com/vaadin/tests/components/table/MultiClickingItemThatDetachesTable.java index d437ab7a04..0e440a95d0 100644 --- a/tests/testbench/com/vaadin/tests/components/table/MultiClickingItemThatDetachesTable.java +++ b/tests/testbench/com/vaadin/tests/components/table/MultiClickingItemThatDetachesTable.java @@ -21,6 +21,7 @@ public class MultiClickingItemThatDetachesTable extends TestBase { item.getItemProperty("p1").setValue(i + ""); } table.addListener(new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { if (event.isDoubleClick()) { try { diff --git a/tests/testbench/com/vaadin/tests/components/table/MultiSelectWithNotIdentityEqualIds.java b/tests/testbench/com/vaadin/tests/components/table/MultiSelectWithNotIdentityEqualIds.java index 6773f0a96c..06deb98f7f 100644 --- a/tests/testbench/com/vaadin/tests/components/table/MultiSelectWithNotIdentityEqualIds.java +++ b/tests/testbench/com/vaadin/tests/components/table/MultiSelectWithNotIdentityEqualIds.java @@ -20,6 +20,7 @@ public class MultiSelectWithNotIdentityEqualIds extends TestBase { t.setSelectable(true); t.setImmediate(true); t.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Notification.show("Selected: " + event.getProperty()); diff --git a/tests/testbench/com/vaadin/tests/components/table/ProgrammaticUnselectInRange.java b/tests/testbench/com/vaadin/tests/components/table/ProgrammaticUnselectInRange.java index 758fa4bf1a..0b5b1d139c 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ProgrammaticUnselectInRange.java +++ b/tests/testbench/com/vaadin/tests/components/table/ProgrammaticUnselectInRange.java @@ -29,6 +29,7 @@ public class ProgrammaticUnselectInRange extends TestBase { table.addItem(new Object[] { value }, value); } table.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { updateSelectionLabel(); } @@ -37,6 +38,7 @@ public class ProgrammaticUnselectInRange extends TestBase { addComponent(table); addComponent(selectionLabel); addComponent(new Button("Deselect item 2", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.unselect(Integer.valueOf(2)); } diff --git a/tests/testbench/com/vaadin/tests/components/table/PropertyValueChange.java b/tests/testbench/com/vaadin/tests/components/table/PropertyValueChange.java index 311c3cf3c1..1bc9cf525d 100644 --- a/tests/testbench/com/vaadin/tests/components/table/PropertyValueChange.java +++ b/tests/testbench/com/vaadin/tests/components/table/PropertyValueChange.java @@ -44,6 +44,7 @@ public class PropertyValueChange extends TestBase { return i * 3; } + @Override public Component generateCell(Table source, Object itemId, Object columnId) { final Label l = new Label(); @@ -57,6 +58,7 @@ public class PropertyValueChange extends TestBase { if (integer instanceof Property.ValueChangeNotifier) { Property.ValueChangeNotifier notifier = (Property.ValueChangeNotifier) integer; notifier.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { l.setValue(String.valueOf(getMultipliedValue(integer))); } @@ -144,6 +146,7 @@ class MyFieldFactory extends DefaultFieldFactory { cb.setContainerDataSource(texts); cb.setNewItemsAllowed(true); cb.setNewItemHandler(new NewItemHandler() { + @Override public void addNewItem(String newItemCaption) { texts.addItem(newItemCaption); cb.setValue(newItemCaption); diff --git a/tests/testbench/com/vaadin/tests/components/table/RowAdditionTest.java b/tests/testbench/com/vaadin/tests/components/table/RowAdditionTest.java index 82d5508c72..c6d071f34c 100644 --- a/tests/testbench/com/vaadin/tests/components/table/RowAdditionTest.java +++ b/tests/testbench/com/vaadin/tests/components/table/RowAdditionTest.java @@ -33,6 +33,7 @@ public class RowAdditionTest extends TestBase { HorizontalLayout hl = new HorizontalLayout(); hl.addComponent(new Button("Add first", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Item item = container.addItemAt(0, new Object()); item.getItemProperty("column1").setValue("0"); @@ -40,6 +41,7 @@ public class RowAdditionTest extends TestBase { })); hl.addComponent(new Button("Add at position 50", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Item item = container.addItemAt(50, new Object()); item.getItemProperty("column1").setValue("50"); @@ -47,6 +49,7 @@ public class RowAdditionTest extends TestBase { })); hl.addComponent(new Button("Add at position 100", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Item item = container.addItemAt(100, new Object()); item.getItemProperty("column1").setValue("100"); diff --git a/tests/testbench/com/vaadin/tests/components/table/RowGenerators.java b/tests/testbench/com/vaadin/tests/components/table/RowGenerators.java index 1ddb03c316..c3bf46c12d 100644 --- a/tests/testbench/com/vaadin/tests/components/table/RowGenerators.java +++ b/tests/testbench/com/vaadin/tests/components/table/RowGenerators.java @@ -34,6 +34,7 @@ public class RowGenerators extends TestBase implements RowGenerator { return c; } + @Override public GeneratedRow generateRow(Table table, Object itemId) { if ((Integer) itemId % 5 == 0) { if ((Integer) itemId % 10 == 0) { diff --git a/tests/testbench/com/vaadin/tests/components/table/RowUpdateShouldRetainContextMenu.java b/tests/testbench/com/vaadin/tests/components/table/RowUpdateShouldRetainContextMenu.java index d3ba232f79..a9d5869e5f 100644 --- a/tests/testbench/com/vaadin/tests/components/table/RowUpdateShouldRetainContextMenu.java +++ b/tests/testbench/com/vaadin/tests/components/table/RowUpdateShouldRetainContextMenu.java @@ -18,6 +18,7 @@ public class RowUpdateShouldRetainContextMenu extends TestBase { protected void setup() { indicator.setWidth("200px"); indicator.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { // Do some changes to the table table.setColumnHeader("Column", "Column " + ctr); @@ -49,9 +50,11 @@ public class RowUpdateShouldRetainContextMenu extends TestBase { table.setHeight("200px"); table.addActionHandler(new Action.Handler() { + @Override public void handleAction(Action action, Object sender, Object target) { } + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { new Action("Action 1"), new Action("Action 2"), }; diff --git a/tests/testbench/com/vaadin/tests/components/table/SafariRenderingBugWhiteSpace.java b/tests/testbench/com/vaadin/tests/components/table/SafariRenderingBugWhiteSpace.java index 133a5e83a5..dffab6dbad 100644 --- a/tests/testbench/com/vaadin/tests/components/table/SafariRenderingBugWhiteSpace.java +++ b/tests/testbench/com/vaadin/tests/components/table/SafariRenderingBugWhiteSpace.java @@ -33,6 +33,7 @@ public class SafariRenderingBugWhiteSpace extends TestBase { table.setSizeFull(); table.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (table.getValue() == null) { split.setSplitPosition(100, Sizeable.UNITS_PERCENTAGE); diff --git a/tests/testbench/com/vaadin/tests/components/table/ScrollDetachSynchronization.java b/tests/testbench/com/vaadin/tests/components/table/ScrollDetachSynchronization.java index 44367d0fe1..5cc77f23d9 100644 --- a/tests/testbench/com/vaadin/tests/components/table/ScrollDetachSynchronization.java +++ b/tests/testbench/com/vaadin/tests/components/table/ScrollDetachSynchronization.java @@ -47,6 +47,7 @@ public class ScrollDetachSynchronization extends TestBase { first.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (mainLayout.getComponent(1).equals(secondLayout)) { mainLayout.replaceComponent(secondLayout, firstLayout); @@ -56,6 +57,7 @@ public class ScrollDetachSynchronization extends TestBase { }); second.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (mainLayout.getComponent(1).equals(firstLayout)) { mainLayout.replaceComponent(firstLayout, secondLayout); diff --git a/tests/testbench/com/vaadin/tests/components/table/SelectingItemScrollsRight.java b/tests/testbench/com/vaadin/tests/components/table/SelectingItemScrollsRight.java index cfe0301775..d9401c21b4 100644 --- a/tests/testbench/com/vaadin/tests/components/table/SelectingItemScrollsRight.java +++ b/tests/testbench/com/vaadin/tests/components/table/SelectingItemScrollsRight.java @@ -14,6 +14,7 @@ public class SelectingItemScrollsRight extends TestBase { table.setWidth("300px"); table.setColumnWidth("Column", 500); table.addGeneratedColumn("Column", new Table.ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { return new Label( diff --git a/tests/testbench/com/vaadin/tests/components/table/SetCurrentPageFirstItemId.java b/tests/testbench/com/vaadin/tests/components/table/SetCurrentPageFirstItemId.java index 536348a393..aebb494247 100644 --- a/tests/testbench/com/vaadin/tests/components/table/SetCurrentPageFirstItemId.java +++ b/tests/testbench/com/vaadin/tests/components/table/SetCurrentPageFirstItemId.java @@ -30,6 +30,7 @@ public class SetCurrentPageFirstItemId extends TestBase { Button addrowButton = new Button("Add row"); addrowButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent pEvent) { Object id = addRow(); table.setCurrentPageFirstItemId(id); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableAndBrowserContextMenu.java b/tests/testbench/com/vaadin/tests/components/table/TableAndBrowserContextMenu.java index a616d4dfb3..18eec814bc 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableAndBrowserContextMenu.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableAndBrowserContextMenu.java @@ -25,6 +25,7 @@ public class TableAndBrowserContextMenu extends TestBase implements cb.setImmediate(true); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (((Boolean) event.getProperty().getValue())) { table.addListener(TableAndBrowserContextMenu.this); @@ -40,6 +41,7 @@ public class TableAndBrowserContextMenu extends TestBase implements cbActionHandler.setImmediate(true); cbActionHandler.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (((Boolean) event.getProperty().getValue())) { table.addActionHandler(TableAndBrowserContextMenu.this); @@ -55,6 +57,7 @@ public class TableAndBrowserContextMenu extends TestBase implements cbActionHasActions.setImmediate(true); cbActionHasActions.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { actionHandlerHasActions = ((Boolean) event.getProperty() .getValue()); @@ -80,6 +83,7 @@ public class TableAndBrowserContextMenu extends TestBase implements // Add a generated column with a link to Google table.addGeneratedColumn("Search", new Table.ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { Item item = source.getItem(itemId); @@ -131,11 +135,13 @@ public class TableAndBrowserContextMenu extends TestBase implements return 5924; } + @Override public void itemClick(ItemClickEvent event) { getMainWindow() .showNotification("Click using " + event.getButtonName()); } + @Override public Action[] getActions(Object target, Object sender) { if (!actionHandlerHasActions) { return null; @@ -144,6 +150,7 @@ public class TableAndBrowserContextMenu extends TestBase implements return new Action[] { new Action("test") }; } + @Override public void handleAction(Action action, Object sender, Object target) { getMainWindow().showNotification("Action: " + action.getCaption()); } diff --git a/tests/testbench/com/vaadin/tests/components/table/TableCacheBuildEfficiency.java b/tests/testbench/com/vaadin/tests/components/table/TableCacheBuildEfficiency.java index 3c6445349a..75f2679234 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableCacheBuildEfficiency.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableCacheBuildEfficiency.java @@ -45,6 +45,7 @@ public class TableCacheBuildEfficiency extends TestBase { Button b = new Button("Click to add row", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.addItem(); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableClickAndDragOnIconAndComponents.java b/tests/testbench/com/vaadin/tests/components/table/TableClickAndDragOnIconAndComponents.java index ee04813ce6..1a8fc37634 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableClickAndDragOnIconAndComponents.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableClickAndDragOnIconAndComponents.java @@ -43,6 +43,7 @@ public class TableClickAndDragOnIconAndComponents extends TestBase { private static final long serialVersionUID = -5042109683675242407L; + @Override public Component generateCell(Table source, Object itemId, Object columnId) { Item item = source.getItem(itemId); @@ -53,6 +54,7 @@ public class TableClickAndDragOnIconAndComponents extends TestBase { private static final long serialVersionUID = -5042109683675242407L; + @Override public Component generateCell(Table source, Object itemId, Object columnId) { Item item = source.getItem(itemId); @@ -66,6 +68,7 @@ public class TableClickAndDragOnIconAndComponents extends TestBase { private static final long serialVersionUID = -5042109683675242407L; + @Override public Component generateCell(Table source, Object itemId, Object columnId) { Item item = source.getItem(itemId); @@ -80,6 +83,7 @@ public class TableClickAndDragOnIconAndComponents extends TestBase { private static final long serialVersionUID = -5042109683675242407L; + @Override public Component generateCell(Table source, Object itemId, Object columnId) { Embedded embedded = new Embedded(null, new ThemeResource( @@ -91,10 +95,12 @@ public class TableClickAndDragOnIconAndComponents extends TestBase { table.setDragMode(TableDragMode.ROW); table.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } + @Override public void drop(DragAndDropEvent event) { DataBoundTransferable t = (DataBoundTransferable) event .getTransferable(); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableClickValueChangeInteraction.java b/tests/testbench/com/vaadin/tests/components/table/TableClickValueChangeInteraction.java index 79a7eca852..00df9fa3c3 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableClickValueChangeInteraction.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableClickValueChangeInteraction.java @@ -61,6 +61,7 @@ public class TableClickValueChangeInteraction extends TestBase { if (listenClicks) { table.addListener(new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { table.requestRepaint(); clickLabel.setValue("Click " + event.getItemId()); @@ -70,6 +71,7 @@ public class TableClickValueChangeInteraction extends TestBase { if (listenValueChanges) { table.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { valueChangeLabel.setValue("Value " + event.getProperty().getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableColumnResizeContentsWidth.java b/tests/testbench/com/vaadin/tests/components/table/TableColumnResizeContentsWidth.java index fbe7ed88ef..1895191cc4 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableColumnResizeContentsWidth.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableColumnResizeContentsWidth.java @@ -15,6 +15,7 @@ public class TableColumnResizeContentsWidth extends TestBase { protected void setup() { final Table table = new Table(); table.addGeneratedColumn(COL1, new ColumnGenerator() { + @Override public Object generateCell(Table source, Object itemId, Object columnId) { TextField textField = new TextField(); @@ -30,12 +31,14 @@ public class TableColumnResizeContentsWidth extends TestBase { addComponent(table); addComponent(new Button("Increase width", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnWidth(COL1, table.getColumnWidth(COL1) + 20); table.requestRepaint(); } })); addComponent(new Button("Decrease width", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnWidth(COL1, table.getColumnWidth(COL1) - 40); table.requestRepaint(); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableContextMenu.java b/tests/testbench/com/vaadin/tests/components/table/TableContextMenu.java index 06afd406ef..9416ffe70c 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableContextMenu.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableContextMenu.java @@ -16,10 +16,12 @@ public class TableContextMenu extends TestBase { table.setMultiSelect(true); table.addActionHandler(new Action.Handler() { + @Override public void handleAction(Action action, Object sender, Object target) { Notification.show("Done that :-)"); } + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { ACTION_MYACTION }; } diff --git a/tests/testbench/com/vaadin/tests/components/table/TableContextMenuOnField.java b/tests/testbench/com/vaadin/tests/components/table/TableContextMenuOnField.java index 4c6f658a24..3b639be21f 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableContextMenuOnField.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableContextMenuOnField.java @@ -22,11 +22,13 @@ public class TableContextMenuOnField extends TestBase { table.setMultiSelect(true); table.addActionHandler(new Action.Handler() { + @Override public void handleAction(Action action, Object sender, Object target) { // TODO Auto-generated method stub } + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { ACTION_MYACTION }; } @@ -34,6 +36,7 @@ public class TableContextMenuOnField extends TestBase { table.addGeneratedColumn("layout", new Table.ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { @@ -42,6 +45,7 @@ public class TableContextMenuOnField extends TestBase { layout.addListener(new LayoutClickListener() { + @Override public void layoutClick(LayoutClickEvent event) { getMainWindow().showNotification("HELLO"); @@ -53,6 +57,7 @@ public class TableContextMenuOnField extends TestBase { }); table.addGeneratedColumn("textfield", new Table.ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { return new TextField(); @@ -60,6 +65,7 @@ public class TableContextMenuOnField extends TestBase { }); table.addGeneratedColumn("link", new Table.ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { return new Link("Link", null); @@ -67,6 +73,7 @@ public class TableContextMenuOnField extends TestBase { }); table.addGeneratedColumn("button", new Table.ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { return new Button("Button"); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableHeightWhenHidingHeaders.java b/tests/testbench/com/vaadin/tests/components/table/TableHeightWhenHidingHeaders.java index 27b962cddd..0173f928dd 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableHeightWhenHidingHeaders.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableHeightWhenHidingHeaders.java @@ -34,6 +34,7 @@ public class TableHeightWhenHidingHeaders extends AbstractTestCase { CheckBox showHeaders = new CheckBox("Show headers"); showHeaders.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if ((Boolean) event.getProperty().getValue()) { // table body height is now 77px, which together diff --git a/tests/testbench/com/vaadin/tests/components/table/TableItemDescriptionGeneratorTest.java b/tests/testbench/com/vaadin/tests/components/table/TableItemDescriptionGeneratorTest.java index 1f15b224dc..0d5d6802d7 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableItemDescriptionGeneratorTest.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableItemDescriptionGeneratorTest.java @@ -23,6 +23,7 @@ public class TableItemDescriptionGeneratorTest extends TestBase { addComponent(table); table.setItemDescriptionGenerator(new ItemDescriptionGenerator() { + @Override public String generateDescription(Component source, Object itemId, Object propertyId) { if (propertyId == null) { @@ -37,6 +38,7 @@ public class TableItemDescriptionGeneratorTest extends TestBase { table.addGeneratedColumn(COLUMN3_PROPERTY_ID, new Table.ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { TextField lbl = new TextField(); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableModifcationsWhenScrolledRight.java b/tests/testbench/com/vaadin/tests/components/table/TableModifcationsWhenScrolledRight.java index 91ca8256c8..74a5089a84 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableModifcationsWhenScrolledRight.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableModifcationsWhenScrolledRight.java @@ -28,6 +28,7 @@ public class TableModifcationsWhenScrolledRight extends TestBase { btn.addListener(new ClickListener() { Integer row = 2; + @Override public void buttonClick(ClickEvent event) { t.addItem(row).getItemProperty("name").setValue("Row" + row); row++; diff --git a/tests/testbench/com/vaadin/tests/components/table/TableMultiSelectSimple.java b/tests/testbench/com/vaadin/tests/components/table/TableMultiSelectSimple.java index c33ba30193..88d20b9eb0 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableMultiSelectSimple.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableMultiSelectSimple.java @@ -28,6 +28,7 @@ public class TableMultiSelectSimple extends TestBase { t.setImmediate(true); t.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { TreeSet<?> sorted = new TreeSet<Object>((Set<?>) event .getProperty().getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/table/TablePageLengthUpdate.java b/tests/testbench/com/vaadin/tests/components/table/TablePageLengthUpdate.java index c7f138ea8f..75b672a277 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TablePageLengthUpdate.java +++ b/tests/testbench/com/vaadin/tests/components/table/TablePageLengthUpdate.java @@ -47,6 +47,7 @@ public class TablePageLengthUpdate extends TestBase { Button updateButton = new Button("Update pageLength", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { updatePageLengthLabel(); } diff --git a/tests/testbench/com/vaadin/tests/components/table/TableRepaintWhenMadeVisibile.java b/tests/testbench/com/vaadin/tests/components/table/TableRepaintWhenMadeVisibile.java index 5354525f1e..2b02e89c80 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableRepaintWhenMadeVisibile.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableRepaintWhenMadeVisibile.java @@ -17,6 +17,7 @@ public class TableRepaintWhenMadeVisibile extends TestBase { Button show = new Button("show", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setVisible(true); } @@ -24,6 +25,7 @@ public class TableRepaintWhenMadeVisibile extends TestBase { addComponent(show); Button hide = new Button("hide", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setVisible(false); } diff --git a/tests/testbench/com/vaadin/tests/components/table/TableRowHeight.java b/tests/testbench/com/vaadin/tests/components/table/TableRowHeight.java index b3864ae0e4..eb5efbc4f3 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableRowHeight.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableRowHeight.java @@ -89,6 +89,7 @@ public class TableRowHeight extends TestBase { public class LabelColumnGenerator implements ColumnGenerator { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { Item item = source.getItem(itemId); @@ -104,6 +105,7 @@ public class TableRowHeight extends TestBase { public class LayoutColumnGenerator implements ColumnGenerator { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { Item item = source.getItem(itemId); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableScrollOnFocus.java b/tests/testbench/com/vaadin/tests/components/table/TableScrollOnFocus.java index 4053665898..4782ca94f7 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableScrollOnFocus.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableScrollOnFocus.java @@ -14,6 +14,7 @@ public class TableScrollOnFocus extends TestBase { chkSelectable.setImmediate(true); chkSelectable.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { table.setSelectable((Boolean) chkSelectable.getValue()); } diff --git a/tests/testbench/com/vaadin/tests/components/table/TableShouldNotEatValueChanges.java b/tests/testbench/com/vaadin/tests/components/table/TableShouldNotEatValueChanges.java index d64bc0035d..030a4ee259 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableShouldNotEatValueChanges.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableShouldNotEatValueChanges.java @@ -26,6 +26,7 @@ public class TableShouldNotEatValueChanges extends TestBase { tf.setTabIndex(1); ItemClickListener l = new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { Notification.show("TF Value on the server:" + tf.getValue(), Notification.TYPE_WARNING_MESSAGE); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableSingleSelect.java b/tests/testbench/com/vaadin/tests/components/table/TableSingleSelect.java index 62d0cce9df..827593cd91 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableSingleSelect.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableSingleSelect.java @@ -22,6 +22,7 @@ public class TableSingleSelect extends TestBase { t.setImmediate(true); t.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { log.log("Selected value: " + event.getProperty().getValue()); } diff --git a/tests/testbench/com/vaadin/tests/components/table/TableSorting.java b/tests/testbench/com/vaadin/tests/components/table/TableSorting.java index a0d9b8e69d..6417e8e853 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableSorting.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableSorting.java @@ -32,6 +32,7 @@ public class TableSorting extends TestBase { // Handle selection change. testTable.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { System.out.println("ValueChanged: " + testTable.getValue().toString()); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableToggleVisibility.java b/tests/testbench/com/vaadin/tests/components/table/TableToggleVisibility.java index 0cc125acaa..0465d2f886 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableToggleVisibility.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableToggleVisibility.java @@ -140,6 +140,7 @@ public class TableToggleVisibility extends AbstractTestCase { addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { boolean wasVisible = ToggleButton.this.table.isVisible(); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableUndefinedSize.java b/tests/testbench/com/vaadin/tests/components/table/TableUndefinedSize.java index 73b80f62f4..544fe9bb67 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableUndefinedSize.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableUndefinedSize.java @@ -39,6 +39,7 @@ public class TableUndefinedSize extends TestBase { controls.addComponent(new Button("Fixed size (200x200)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tbl.setWidth("200px"); tbl.setHeight("200px"); @@ -48,6 +49,7 @@ public class TableUndefinedSize extends TestBase { controls.addComponent(new Button("Fixed size (600x200)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tbl.setWidth("600px"); tbl.setHeight("200px"); @@ -57,6 +59,7 @@ public class TableUndefinedSize extends TestBase { controls.addComponent(new Button("Undefined size", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tbl.setSizeUndefined(); log.log("Size undefined"); @@ -68,6 +71,7 @@ public class TableUndefinedSize extends TestBase { pageLength.setImmediate(true); pageLength.setNullSelectionAllowed(false); pageLength.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { int pageLength = Integer.valueOf(event.getProperty().getValue() .toString()); @@ -81,6 +85,7 @@ public class TableUndefinedSize extends TestBase { cb.setValue(true); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Boolean value = (Boolean) event.getProperty().getValue(); tbl.setColumnCollapsed("Column 1", !value); @@ -98,6 +103,7 @@ public class TableUndefinedSize extends TestBase { cb.setValue(true); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Boolean value = (Boolean) event.getProperty().getValue(); tbl.setColumnCollapsed("Column 2", !value); @@ -116,6 +122,7 @@ public class TableUndefinedSize extends TestBase { cb.setValue(true); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Boolean value = (Boolean) event.getProperty().getValue(); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableUnregisterComponent.java b/tests/testbench/com/vaadin/tests/components/table/TableUnregisterComponent.java index 6fd4a9db52..11f450baf2 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableUnregisterComponent.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableUnregisterComponent.java @@ -76,12 +76,14 @@ public class TableUnregisterComponent extends TestBase { addComponent(table); addComponent(new Button("Switch column collapse", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnCollapsed(COL_A, !table.isColumnCollapsed(COL_A)); } })); addComponent(new Button("Switch editable", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setEditable(!table.isEditable()); } diff --git a/tests/testbench/com/vaadin/tests/components/table/TableVisibleColumnsUpdate.java b/tests/testbench/com/vaadin/tests/components/table/TableVisibleColumnsUpdate.java index ad8eacb4b7..98cd4e0aaa 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableVisibleColumnsUpdate.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableVisibleColumnsUpdate.java @@ -46,6 +46,7 @@ public class TableVisibleColumnsUpdate extends TestBase { Button updateButton = new Button("Change columns", new ClickListener() { private boolean one = true; + @Override public void buttonClick(ClickEvent event) { table.setVisibleColumns((one ? cols2 : cols1)); one = !one; diff --git a/tests/testbench/com/vaadin/tests/components/table/TableWithChildComponents.java b/tests/testbench/com/vaadin/tests/components/table/TableWithChildComponents.java index 1d1c162cae..7eb9c3239c 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableWithChildComponents.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableWithChildComponents.java @@ -27,6 +27,7 @@ public class TableWithChildComponents extends TestBase implements ClickListener table.addGeneratedColumn(COL2, new ColumnGenerator() { + @Override public Object generateCell(Table source, Object itemId, Object columnId) { return new Button( @@ -58,6 +59,7 @@ public class TableWithChildComponents extends TestBase implements ClickListener return null; } + @Override public void buttonClick(ClickEvent event) { log.log("Click on " + event.getButton().getCaption()); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableWithContainerRequiringEqualsForItemId.java b/tests/testbench/com/vaadin/tests/components/table/TableWithContainerRequiringEqualsForItemId.java index 1b0335b673..733f46959a 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableWithContainerRequiringEqualsForItemId.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableWithContainerRequiringEqualsForItemId.java @@ -23,6 +23,7 @@ public class TableWithContainerRequiringEqualsForItemId extends TestBase { super(MyEntity.class); setBeanIdResolver(new BeanIdResolver<Long, TableWithContainerRequiringEqualsForItemId.MyEntity>() { + @Override public Long getIdForBean(MyEntity bean) { // Return a new instance every time to ensure Table can // handle it @@ -46,10 +47,12 @@ public class TableWithContainerRequiringEqualsForItemId extends TestBase { protected void setup() { Table t = new Table("Table with 1000 item"); t.addGeneratedColumn("Actions", new Table.ColumnGenerator() { + @Override public Component generateCell(final Table source, final Object itemId, final Object columnId) { Button tripFolderLink = new Button("Button" + itemId); tripFolderLink.addListener(new Button.ClickListener() { + @Override public void buttonClick(final ClickEvent event) { log.log("Button " + event.getButton().getCaption() + " clicked"); diff --git a/tests/testbench/com/vaadin/tests/components/table/TableWithNoncollapsibleColumns.java b/tests/testbench/com/vaadin/tests/components/table/TableWithNoncollapsibleColumns.java index 404ba5d779..226fde3b29 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TableWithNoncollapsibleColumns.java +++ b/tests/testbench/com/vaadin/tests/components/table/TableWithNoncollapsibleColumns.java @@ -30,6 +30,7 @@ public class TableWithNoncollapsibleColumns extends TestBase { final Button button1 = new Button("Column 1: collapse/show", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnCollapsed( "Column 1 - noncollapsible", @@ -38,6 +39,7 @@ public class TableWithNoncollapsibleColumns extends TestBase { }); final Button button2 = new Button("Column 2: collapse/show", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnCollapsed( "Column 2 - collapsible", @@ -47,6 +49,7 @@ public class TableWithNoncollapsibleColumns extends TestBase { final Button button3 = new Button("Column 3: collapse/show", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnCollapsed( "Column 3 - toggle collapsing", @@ -56,6 +59,7 @@ public class TableWithNoncollapsibleColumns extends TestBase { final Button button4 = new Button( "Column 3: make noncollapsible/collapsible", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnCollapsible( "Column 3 - toggle collapsing", diff --git a/tests/testbench/com/vaadin/tests/components/table/Tables.java b/tests/testbench/com/vaadin/tests/components/table/Tables.java index 11ffff0655..c96625e3e4 100644 --- a/tests/testbench/com/vaadin/tests/components/table/Tables.java +++ b/tests/testbench/com/vaadin/tests/components/table/Tables.java @@ -47,6 +47,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> /* COMMANDS */ private Command<T, Align> columnAlignmentCommand = new Command<T, Align>() { + @Override public void execute(T c, Align alignment, Object propertyId) { c.setColumnAlignment(propertyId, alignment); } @@ -54,6 +55,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> }; private Command<T, Boolean> columnVisibleCommand = new Command<T, Boolean>() { + @Override public void execute(Table c, Boolean visible, Object propertyId) { List<Object> visibleColumns = new ArrayList<Object>(Arrays.asList(c .getVisibleColumns())); @@ -72,6 +74,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> private Command<T, Boolean> columnCollapsed = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean collapsed, Object propertyId) { c.setColumnCollapsed(propertyId, collapsed); @@ -80,6 +83,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> private Command<T, Boolean> columnCollapsibleCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean collapsible, Object propertyId) { c.setColumnCollapsible(propertyId, collapsible); @@ -88,6 +92,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> protected Command<T, Boolean> columnResizeListenerCommand = new Command<T, Boolean>() { + @Override public void execute(Table c, Boolean value, Object data) { if (value) { c.addListener((ColumnResizeListener) Tables.this); @@ -99,6 +104,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> protected Command<T, Boolean> headerClickListenerCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.addListener((HeaderClickListener) Tables.this); @@ -110,6 +116,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> protected Command<T, Boolean> footerClickListenerCommand = new Command<T, Boolean>() { + @Override public void execute(Table c, Boolean value, Object data) { if (value) { c.addListener((FooterClickListener) Tables.this); @@ -121,6 +128,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> protected Command<T, RowHeaderMode> rowHeaderModeCommand = new Command<T, RowHeaderMode>() { + @Override public void execute(Table c, RowHeaderMode value, Object data) { if (value == RowHeaderMode.PROPERTY) { c.setItemCaptionPropertyId("Property 3"); @@ -131,6 +139,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> protected Command<T, String> footerTextCommand = new Command<T, String>() { + @Override public void execute(Table c, String value, Object data) { for (Object propertyId : c.getContainerPropertyIds()) { if (value != null) { @@ -145,6 +154,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> protected Command<T, Object> alignColumnLeftCommand = new Command<T, Object>() { + @Override public void execute(T c, Object propertyId, Object data) { c.setColumnAlignment(propertyId, (Align) data); } @@ -152,17 +162,20 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> private Command<T, ContextMenu> contextMenuCommand = new Command<T, ContextMenu>() { + @Override public void execute(T c, final ContextMenu value, Object data) { c.removeAllActionHandlers(); if (value != null) { c.addActionHandler(new Handler() { + @Override public void handleAction(Action action, Object sender, Object target) { log("Action " + action.getCaption() + " performed on " + target); } + @Override public Action[] getActions(Object target, Object sender) { return value.getActions(target, sender); } @@ -172,6 +185,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> }; private Command<T, Integer> columnWidthCommand = new Command<T, Integer>() { + @Override public void execute(T c, Integer width, Object propertyId) { c.setColumnWidth(propertyId, width); @@ -180,6 +194,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> private Command<T, Resource> columnIconCommand = new Command<T, Resource>() { + @Override public void execute(T c, Resource icon, Object propertyId) { c.setColumnIcon(propertyId, icon); @@ -187,6 +202,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> }; private Command<T, ColumnHeaderMode> columnHeaderModeCommand = new Command<T, ColumnHeaderMode>() { + @Override public void execute(T c, ColumnHeaderMode columnHeaderMode, Object data) { c.setColumnHeaderMode(columnHeaderMode); @@ -194,6 +210,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> }; private Command<T, String> columnHeaderCommand = new Command<T, String>() { + @Override public void execute(T c, String header, Object propertyId) { c.setColumnHeader(propertyId, header); @@ -201,6 +218,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> }; private Command<T, Float> columnExpandRatioCommand = new Command<T, Float>() { + @Override public void execute(T c, Float expandRatio, Object propertyId) { c.setColumnExpandRatio(propertyId, expandRatio); } @@ -224,6 +242,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> private Command<T, GeneratedColumn> addGeneratedColumnCommand = new Command<T, GeneratedColumn>() { + @Override public void execute(T c, final GeneratedColumn col, Object data) { while (c.getColumnGenerator(generatedColumnId + generatedColumnNextNr) != null) { @@ -233,6 +252,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> c.addGeneratedColumn(generatedColumnId + generatedColumnNextNr, new ColumnGenerator() { + @Override public Object generateCell(Table source, Object itemId, Object columnId) { String value = ""; @@ -273,6 +293,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> }; private Command<T, Object> removeGeneratedColumnsCommand = new Command<T, Object>() { + @Override public void execute(T c, Object value, Object data) { for (int i = 0; i < generatedColumnNextNr; i++) { String columnId = generatedColumnId + i; @@ -306,12 +327,14 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> private Command<T, CellStyleInfo> cellStyleCommand = new Command<T, CellStyleInfo>() { + @Override public void execute(T c, final CellStyleInfo cellStyleInfo, Object data) { if (cellStyleInfo == null) { c.setCellStyleGenerator(null); } else { c.setCellStyleGenerator(new CellStyleGenerator() { + @Override public String getStyle(Object itemId, Object propertyId) { if (cellStyleInfo.appliesTo(itemId, propertyId)) { return cellStyleInfo.styleName; @@ -349,6 +372,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> private Command<T, GeneratedRowInfo> rowGeneratorCommand = new Command<T, GeneratedRowInfo>() { + @Override public void execute(T c, final GeneratedRowInfo generatedRowInfo, Object data) { if (generatedRowInfo == null) { @@ -356,6 +380,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> } else { c.setRowGenerator(new RowGenerator() { + @Override public GeneratedRow generateRow(Table table, Object itemId) { if (generatedRowInfo.appliesTo(itemId)) { GeneratedRow generatedRow = new GeneratedRow( @@ -373,6 +398,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> private Command<T, Boolean> setSortEnabledCommand = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { c.setSortDisabled(!value); @@ -546,6 +572,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> private void createColumnReorderingAllowedCheckbox(String category) { createBooleanAction("Column reordering allowed", category, true, new Command<T, Boolean>() { + @Override public void execute(Table c, Boolean value, Object data) { c.setColumnReorderingAllowed(value); } @@ -555,6 +582,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> private void createColumnCollapsingAllowedCheckbox(String category) { createBooleanAction("Column collapsing allowed", category, true, new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { c.setColumnCollapsingAllowed(value); } @@ -697,6 +725,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> createSelectAction("Texts in header", category, options, "None", new Command<T, String>() { + @Override public void execute(T c, String value, Object data) { int nr = 0; for (Object propertyId : c.getContainerPropertyIds()) { @@ -746,6 +775,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> createBooleanAction("Footer visible", category, true, new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { c.setFooterVisible(value); } @@ -763,6 +793,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> createSelectAction("Header mode", category, options, "Explicit defaults id", new Command<T, ColumnHeaderMode>() { + @Override public void execute(T c, ColumnHeaderMode value, Object data) { c.setColumnHeaderMode(value); @@ -781,6 +812,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> createSelectAction("PageLength", category, options, "10", new Command<T, Integer>() { + @Override public void execute(Table t, Integer value, Object data) { t.setPageLength(value); } @@ -801,6 +833,7 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> createSelectAction("Selection Mode", category, options, "Multi - ctrl/shift", new Command<T, SelectMode>() { + @Override public void execute(Table t, SelectMode value, Object data) { switch (value) { case NONE: @@ -825,16 +858,19 @@ public class Tables<T extends Table> extends AbstractSelectTestCase<T> }); } + @Override public void columnResize(ColumnResizeEvent event) { log("ColumnResize on " + event.getPropertyId() + " from " + event.getPreviousWidth() + " to " + event.getCurrentWidth()); } + @Override public void footerClick(FooterClickEvent event) { log("FooterClick on " + event.getPropertyId() + " using " + event.getButtonName()); } + @Override public void headerClick(HeaderClickEvent event) { log("HeaderClick on " + event.getPropertyId() + " using " + event.getButtonName()); diff --git a/tests/testbench/com/vaadin/tests/components/table/TestCurrentPageFirstItem.java b/tests/testbench/com/vaadin/tests/components/table/TestCurrentPageFirstItem.java index 7fb096739a..d629c9a917 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TestCurrentPageFirstItem.java +++ b/tests/testbench/com/vaadin/tests/components/table/TestCurrentPageFirstItem.java @@ -50,6 +50,7 @@ public class TestCurrentPageFirstItem extends TestBase implements ClickListener baseLayout.addComponent(buttonItem); } + @Override public void buttonClick(ClickEvent event) { Item item = container.addItem(++counter); item.getItemProperty("row").setValue(counter + ""); diff --git a/tests/testbench/com/vaadin/tests/components/table/TextFieldRelativeWidth.java b/tests/testbench/com/vaadin/tests/components/table/TextFieldRelativeWidth.java index 865a50c5f7..ae3f4c42a4 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TextFieldRelativeWidth.java +++ b/tests/testbench/com/vaadin/tests/components/table/TextFieldRelativeWidth.java @@ -55,6 +55,7 @@ public class TextFieldRelativeWidth extends TestBase { addListener(new Property.ValueChangeListener() { private static final long serialVersionUID = 448896474865195605L; + @Override public void valueChange( com.vaadin.data.Property.ValueChangeEvent event) { // IndexedContainer idc = (IndexedContainer) @@ -99,6 +100,7 @@ public class TextFieldRelativeWidth extends TestBase { addButton.setCaption(caption); } + @Override public void buttonClick(ClickEvent event) { Button b = event.getButton(); if (b == addButton) { diff --git a/tests/testbench/com/vaadin/tests/components/table/TextFieldValueGoesMissing.java b/tests/testbench/com/vaadin/tests/components/table/TextFieldValueGoesMissing.java index f3ff5e983e..9ffad7f1e4 100644 --- a/tests/testbench/com/vaadin/tests/components/table/TextFieldValueGoesMissing.java +++ b/tests/testbench/com/vaadin/tests/components/table/TextFieldValueGoesMissing.java @@ -20,6 +20,7 @@ public class TextFieldValueGoesMissing extends TestBase { Button button = new Button("Replace label"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (verticalLayout.getComponentIndex(label1) > -1) { verticalLayout.replaceComponent(label1, label2); diff --git a/tests/testbench/com/vaadin/tests/components/table/UncollapsedCollumnWidth.java b/tests/testbench/com/vaadin/tests/components/table/UncollapsedCollumnWidth.java index 99b954fa63..8e623499cf 100644 --- a/tests/testbench/com/vaadin/tests/components/table/UncollapsedCollumnWidth.java +++ b/tests/testbench/com/vaadin/tests/components/table/UncollapsedCollumnWidth.java @@ -23,6 +23,7 @@ public class UncollapsedCollumnWidth extends TestBase { addComponent(table); addComponent(new Button("Uncollapse col2", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { table.setColumnCollapsed("Col2", false); } diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/AddAndRemoveTabs.java b/tests/testbench/com/vaadin/tests/components/tabsheet/AddAndRemoveTabs.java index 3b5166a21e..4b5d216906 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/AddAndRemoveTabs.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/AddAndRemoveTabs.java @@ -20,6 +20,7 @@ public class AddAndRemoveTabs extends TestBase { Button addTabBtn = new Button("Add new tab", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { addTab(); } @@ -34,6 +35,7 @@ public class AddAndRemoveTabs extends TestBase { Button closeTab = new Button("Close tab", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tabSheet.removeComponent(layout); diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/PreventTabChange.java b/tests/testbench/com/vaadin/tests/components/tabsheet/PreventTabChange.java index f1faecb711..434c73f778 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/PreventTabChange.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/PreventTabChange.java @@ -46,6 +46,7 @@ public class PreventTabChange extends TestBase implements addComponent(tabSheet); } + @Override public void selectedTabChange(SelectedTabChangeEvent event) { TabSheet tabsheet = event.getTabSheet(); diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/RemoveTabs.java b/tests/testbench/com/vaadin/tests/components/tabsheet/RemoveTabs.java index 1cd96c5c4c..2b37c4358e 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/RemoveTabs.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/RemoveTabs.java @@ -49,6 +49,7 @@ public class RemoveTabs extends TestBase { closeCurrent = new Button("Close current tab"); closeCurrent.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { closeCurrentTab(); @@ -57,6 +58,7 @@ public class RemoveTabs extends TestBase { closeCurrentWithTab = new Button("Close current tab with Tab"); closeCurrentWithTab.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { closeCurrentTabWithTab(); @@ -65,6 +67,7 @@ public class RemoveTabs extends TestBase { closeFirst = new Button("close first tab"); closeFirst.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { closeFirstTab(); @@ -73,6 +76,7 @@ public class RemoveTabs extends TestBase { closeLast = new Button("close last tab"); closeLast.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { closeLastTab(); @@ -81,6 +85,7 @@ public class RemoveTabs extends TestBase { reorderTabs = new Button("reorder"); reorderTabs.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { reorder(); diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabGetAndReplaceComponent.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabGetAndReplaceComponent.java index c49133dd7c..0d4f1fe562 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabGetAndReplaceComponent.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabGetAndReplaceComponent.java @@ -25,6 +25,7 @@ public class TabGetAndReplaceComponent extends TestBase { Button replace2 = new Button("Replace Content 2", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Iterator<Component> iter = tabs.getComponentIterator(); iter.next(); diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabKeyboardNavigation.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabKeyboardNavigation.java index a3886853ff..ba737f1df8 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabKeyboardNavigation.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabKeyboardNavigation.java @@ -32,12 +32,14 @@ public class TabKeyboardNavigation extends TestBase { ts.setHeight("500px"); ts.addListener(new FocusListener() { + @Override public void focus(FocusEvent event) { focusblur.log("Tabsheet focused!"); } }); ts.addListener(new BlurListener() { + @Override public void blur(BlurEvent event) { focusblur.log("Tabsheet blurred!"); } @@ -48,11 +50,13 @@ public class TabKeyboardNavigation extends TestBase { } Button addTab = new Button("Add a tab", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { addTab(); } }); Button focus = new Button("Focus tabsheet", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { ts.focus(); } diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetCaptions.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetCaptions.java index 3d8d02b8b6..e3867cff9f 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetCaptions.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetCaptions.java @@ -42,6 +42,7 @@ public class TabSheetCaptions extends TestBase { Button button = new Button("Update tab caption"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tabSheet.getTab(panel1).setCaption( "This is a new tab caption " @@ -51,6 +52,7 @@ public class TabSheetCaptions extends TestBase { Button button2 = new Button("Update panel caption"); button2.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { panel1.setCaption("This is a new panel caption " + dateFormatter.format(date)); diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetDisabling.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetDisabling.java index bdce3e83d0..dfe37f2e27 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetDisabling.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetDisabling.java @@ -20,6 +20,7 @@ public class TabSheetDisabling extends TestBase { buttons[i] = new Button("Disable this tab", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Button b = event.getButton(); tabSheet.getTab(b).setEnabled(false); @@ -30,6 +31,7 @@ public class TabSheetDisabling extends TestBase { } else { buttons[i] = new Button("Hide this tab", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Button b = event.getButton(); tabSheet.getTab(b).setVisible(false); @@ -41,6 +43,7 @@ public class TabSheetDisabling extends TestBase { } Button button = new Button("Enable/disable", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { tabSheet.setEnabled(!tabSheet.isEnabled()); } diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetDiscardsMovedComponents.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetDiscardsMovedComponents.java index 410172ddb0..8d312f0cd8 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetDiscardsMovedComponents.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetDiscardsMovedComponents.java @@ -32,6 +32,7 @@ public class TabSheetDiscardsMovedComponents extends TestBase { private void addTestComponent(final Component component) { grid.addComponent(component); grid.addComponent(new Button("Move to tab", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tabSheet.addTab(component); grid.removeComponent(event.getButton()); diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetIndexOperations.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetIndexOperations.java index 5ae9e69975..de637bbed7 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetIndexOperations.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetIndexOperations.java @@ -24,6 +24,7 @@ public class TabSheetIndexOperations extends TestBase { Button addTab = new Button("Add tab at index 2", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tabs.addTab(new Label("Content " + tabCounter), "Added Tab " + tabCounter, null, 2); @@ -34,6 +35,7 @@ public class TabSheetIndexOperations extends TestBase { Button setCaption = new Button("Invert tab caption at index 2", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Tab tab = tabs.getTab(2); tab.setCaption(new StringBuffer(tab.getCaption()) @@ -44,6 +46,7 @@ public class TabSheetIndexOperations extends TestBase { Button move = new Button("Move selected tab to index 2", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tabs.setTabPosition(tabs.getTab(tabs.getSelectedTab()), 2); @@ -53,6 +56,7 @@ public class TabSheetIndexOperations extends TestBase { Button getIndex = new Button("Get selected tab index", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().showNotification( "Index: " diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetMinimal.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetMinimal.java index 105b4149a1..b6cf27f6bb 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetMinimal.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetMinimal.java @@ -16,6 +16,7 @@ public class TabSheetMinimal extends TestBase { ts.setStyleName("minimal"); Button b = new Button("Add a tab", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { ts.addTab(new Label("" + index), "Tab " + index, null); index++; diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetTabStyleNames.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetTabStyleNames.java index 3c3dec478c..54a5ed4857 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetTabStyleNames.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetTabStyleNames.java @@ -25,6 +25,7 @@ public class TabSheetTabStyleNames extends TestBase { new Button.ClickListener() { int counter = 0; + @Override public void buttonClick(ClickEvent event) { if (tab1.getStyleName() == null) { tab1.setStyleName(STYLE_NAME); diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetTest.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetTest.java index 3077c1a97b..fea255a98d 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetTest.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabSheetTest.java @@ -16,6 +16,7 @@ public class TabSheetTest<T extends TabSheet> extends private Command<T, Integer> setTabCaption = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object data) { c.getTab(value).setCaption((String) data); @@ -23,6 +24,7 @@ public class TabSheetTest<T extends TabSheet> extends }; private Command<T, Integer> setTabIcon = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object data) { c.getTab(value).setIcon((Resource) data); @@ -30,15 +32,18 @@ public class TabSheetTest<T extends TabSheet> extends }; private Command<T, Integer> setTabClosable = new Command<T, Integer>() { + @Override public void execute(T c, Integer value, Object data) { c.getTab(value).setClosable((Boolean) data); } }; private Command<T, Boolean> setCloseHandlerListener = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.setCloseHandler(new CloseHandler() { + @Override public void onTabClose(TabSheet tabsheet, Component c) { tabClosed(tabsheet, tabsheet.getTab(c)); tabsheet.removeComponent(c); @@ -47,6 +52,7 @@ public class TabSheetTest<T extends TabSheet> extends }); } else { c.setCloseHandler(new CloseHandler() { + @Override public void onTabClose(TabSheet tabsheet, Component c) { tabsheet.removeComponent(c); } @@ -57,6 +63,7 @@ public class TabSheetTest<T extends TabSheet> extends }; private Command<T, Boolean> setSelectedTabListener = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { if (value) { c.addListener((SelectedTabChangeListener) TabSheetTest.this); @@ -68,12 +75,14 @@ public class TabSheetTest<T extends TabSheet> extends }; private Command<T, Integer> selectTab = new Command<T, Integer>() { + @Override public void execute(T c, Integer index, Object data) { c.setSelectedTab(c.getTab(index).getComponent()); } }; private Command<T, Boolean> hideTabs = new Command<T, Boolean>() { + @Override public void execute(T c, Boolean value, Object data) { c.hideTabs(value); @@ -194,6 +203,7 @@ public class TabSheetTest<T extends TabSheet> extends log("Tab " + tabSheet.getTabPosition(tab) + " closed"); } + @Override public void selectedTabChange(SelectedTabChangeEvent event) { TabSheet ts = event.getTabSheet(); log("Tab " + ts.getTabPosition(ts.getTab(ts.getSelectedTab())) diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabsheetNPE.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabsheetNPE.java index 24077b972c..8e4c4d40fb 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabsheetNPE.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabsheetNPE.java @@ -49,6 +49,7 @@ public class TabsheetNPE extends AbstractTestCase implements ClickListener { return layout; } + @Override public void buttonClick(ClickEvent event) { for (int i = 0; i < TABS_COUNT; i++) { tab[i].setEnabled(true); diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/TabsheetScrolling.java b/tests/testbench/com/vaadin/tests/components/tabsheet/TabsheetScrolling.java index 5321b51f9c..da449a2461 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/TabsheetScrolling.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/TabsheetScrolling.java @@ -22,6 +22,7 @@ public class TabsheetScrolling extends TestBase { Button b = new Button("Hide this tab (" + i + ")", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { fixedSizeTabSheet.getTab(event.getButton()) .setVisible(false); @@ -44,6 +45,7 @@ public class TabsheetScrolling extends TestBase { Button b = new Button("Hide this tab (" + i + ")", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { autoWideTabSheet.getTab(event.getButton()) .setVisible(false); diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/WrapTabSheetInTabSheet.java b/tests/testbench/com/vaadin/tests/components/tabsheet/WrapTabSheetInTabSheet.java index 3872f7a8dd..7a676c63fb 100644 --- a/tests/testbench/com/vaadin/tests/components/tabsheet/WrapTabSheetInTabSheet.java +++ b/tests/testbench/com/vaadin/tests/components/tabsheet/WrapTabSheetInTabSheet.java @@ -17,6 +17,7 @@ public class WrapTabSheetInTabSheet extends TestBase { Button b = new Button("Wrap main layout in a TabSheet"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { TabSheet tabsheet = new TabSheet(); ComponentContainer mainParent = (ComponentContainer) mainLayout diff --git a/tests/testbench/com/vaadin/tests/components/textarea/TextAreaCursorPosition.java b/tests/testbench/com/vaadin/tests/components/textarea/TextAreaCursorPosition.java index 0fc63860e1..992f20843b 100644 --- a/tests/testbench/com/vaadin/tests/components/textarea/TextAreaCursorPosition.java +++ b/tests/testbench/com/vaadin/tests/components/textarea/TextAreaCursorPosition.java @@ -33,6 +33,7 @@ public class TextAreaCursorPosition extends TestBase { newTextField.setTextChangeEventMode(TextChangeEventMode.EAGER); newTextField.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { AbstractTextField component = (AbstractTextField) event .getComponent(); diff --git a/tests/testbench/com/vaadin/tests/components/textarea/TextAreaTest.java b/tests/testbench/com/vaadin/tests/components/textarea/TextAreaTest.java index 278d14e43d..e071bdd8fb 100644 --- a/tests/testbench/com/vaadin/tests/components/textarea/TextAreaTest.java +++ b/tests/testbench/com/vaadin/tests/components/textarea/TextAreaTest.java @@ -8,12 +8,14 @@ import com.vaadin.ui.TextArea; public class TextAreaTest extends AbstractTextFieldTest<TextArea> { private Command<TextArea, Boolean> wordwrapCommand = new Command<TextArea, Boolean>() { + @Override public void execute(TextArea c, Boolean value, Object data) { c.setWordwrap(value); } }; private Command<TextArea, Integer> rowsCommand = new Command<TextArea, Integer>() { + @Override public void execute(TextArea c, Integer value, Object data) { c.setRows(value); } diff --git a/tests/testbench/com/vaadin/tests/components/textarea/Wordwrap.java b/tests/testbench/com/vaadin/tests/components/textarea/Wordwrap.java index b33a1a4765..8672d4019e 100644 --- a/tests/testbench/com/vaadin/tests/components/textarea/Wordwrap.java +++ b/tests/testbench/com/vaadin/tests/components/textarea/Wordwrap.java @@ -31,6 +31,7 @@ public class Wordwrap extends TestBase { CheckBox onoff = new CheckBox("Wrap state for the right field"); onoff.setValue(false); onoff.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean wrap = (Boolean) event.getProperty().getValue(); area2.setWordwrap(wrap); diff --git a/tests/testbench/com/vaadin/tests/components/textfield/EnterShortcutMaySendInputPromptAsValue.java b/tests/testbench/com/vaadin/tests/components/textfield/EnterShortcutMaySendInputPromptAsValue.java index bf9924cdbb..938ecf60ce 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/EnterShortcutMaySendInputPromptAsValue.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/EnterShortcutMaySendInputPromptAsValue.java @@ -31,10 +31,12 @@ public class EnterShortcutMaySendInputPromptAsValue extends TestBase { final Action enter = new ShortcutAction("enter", ShortcutAction.KeyCode.ENTER, null); + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { enter }; } + @Override public void handleAction(Action action, Object sender, Object target) { if (action == enter) { @@ -43,6 +45,7 @@ public class EnterShortcutMaySendInputPromptAsValue extends TestBase { }); testField.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { String value = event.getProperty().getValue().toString(); addComponent(new Label("TextField sent value: " + value)); diff --git a/tests/testbench/com/vaadin/tests/components/textfield/MultipleTextChangeEvents.java b/tests/testbench/com/vaadin/tests/components/textfield/MultipleTextChangeEvents.java index 62d3a1679a..58bc4c5383 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/MultipleTextChangeEvents.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/MultipleTextChangeEvents.java @@ -20,6 +20,7 @@ public class MultipleTextChangeEvents extends TestBase { tf.setTextChangeEventMode(TextChangeEventMode.TIMEOUT); tf.setTextChangeTimeout(500); tf.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { log.log("TextChangeEvent: " + event.getText()); } @@ -35,10 +36,12 @@ public class MultipleTextChangeEvents extends TestBase { Action actionenter = new ShortcutAction("Enter", ShortcutAction.KeyCode.ENTER, null); + @Override public Action[] getActions(Object theTarget, Object theSender) { return new Action[] { actionenter }; } + @Override public void handleAction(Action theAction, Object theSender, Object theTarget) { log.log("Enter"); diff --git a/tests/testbench/com/vaadin/tests/components/textfield/OutOfSyncIssueWithKeyboardShortcut.java b/tests/testbench/com/vaadin/tests/components/textfield/OutOfSyncIssueWithKeyboardShortcut.java index cf59a9d7f4..89f9ffda40 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/OutOfSyncIssueWithKeyboardShortcut.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/OutOfSyncIssueWithKeyboardShortcut.java @@ -82,6 +82,7 @@ public class OutOfSyncIssueWithKeyboardShortcut extends TestBase { saveButton.setClickShortcut(KeyCode.ENTER); table.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Object value = event.getProperty().getValue(); if (value != null) { @@ -96,6 +97,7 @@ public class OutOfSyncIssueWithKeyboardShortcut extends TestBase { }); saveButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.commit(); Topping entity = getEntityForItem(form.getItemDataSource()); diff --git a/tests/testbench/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java b/tests/testbench/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java index 962a85ffcb..f6368f0c78 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java @@ -28,6 +28,7 @@ public class SelectionAndCursorPosition extends TestBase { CheckBox ml = new CheckBox("Multiline"); ml.setImmediate(true); ml.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (textField.getApplication() == null) { replaceComponent(textArea, textField); @@ -42,6 +43,7 @@ public class SelectionAndCursorPosition extends TestBase { Button b = new Button("Select all ( selectAll() )"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { activeComponent.selectAll(); } @@ -55,6 +57,7 @@ public class SelectionAndCursorPosition extends TestBase { final TextField length = new TextField("Selection length:"); b = new Button("select"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { int startPos = Integer.parseInt(start.getValue()); int lenght = Integer.parseInt(length.getValue()); @@ -72,6 +75,7 @@ public class SelectionAndCursorPosition extends TestBase { final TextField pos = new TextField("Position:"); b = new Button("set"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { int startPos = Integer.parseInt(pos.getValue()); activeComponent.setCursorPosition(startPos); diff --git a/tests/testbench/com/vaadin/tests/components/textfield/SetTabIndex.java b/tests/testbench/com/vaadin/tests/components/textfield/SetTabIndex.java index d81d26591a..da4ea9de0b 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/SetTabIndex.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/SetTabIndex.java @@ -28,6 +28,7 @@ public class SetTabIndex extends TestBase { final CheckBox readonly = new CheckBox("Readonly"); readonly.setImmediate(true); readonly.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean readonly = Boolean.valueOf(event.getProperty() .getValue().toString()); diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEvents.java b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEvents.java index b3ea5b8186..a12a5a8836 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEvents.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEvents.java @@ -19,6 +19,7 @@ public class TextChangeEvents extends TestBase { TextChangeListener inputEventListener = new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { l.log("Text change event for " + event.getComponent().getCaption() @@ -91,6 +92,7 @@ public class TextChangeEvents extends TestBase { + ".nomatch {background:red;}"); } + @Override public void textChange(TextChangeEvent event) { boolean atTheEndOfText = event.getText().length() == getCursorPosition(); String match = findMatch(event.getText()); diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEvents2.java b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEvents2.java index b40ebb2434..363e9d448d 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEvents2.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEvents2.java @@ -23,12 +23,14 @@ public class TextChangeEvents2 extends TestBase { getLayout().addComponent(tf); tf.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { System.err.println(tf.getCaption() + " textChange"); } }); tf.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { System.err.println(tf.getCaption() + " valueChange"); } @@ -36,12 +38,14 @@ public class TextChangeEvents2 extends TestBase { tf.addListener(new BlurListener() { + @Override public void blur(BlurEvent event) { System.err.println(tf.getCaption() + " blur"); } }); tf.addListener(new FocusListener() { + @Override public void focus(FocusEvent event) { System.err.println(tf.getCaption() + " focus"); } @@ -55,12 +59,14 @@ public class TextChangeEvents2 extends TestBase { final Label l = new Label(); getLayout().addComponent(l); tf.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { l.setValue(event.getText()); } }); tf.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { System.err.println(tf.getCaption() + " valueChange"); } @@ -77,12 +83,14 @@ public class TextChangeEvents2 extends TestBase { getLayout().addComponent(l); tf.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { l.setValue(event.getText()); } }); tf.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { System.err.println(tf.getCaption() + " valueChange"); } @@ -98,12 +106,14 @@ public class TextChangeEvents2 extends TestBase { getLayout().addComponent(l); tf.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { tf.setValue(event.getText().toUpperCase()); } }); tf.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { System.err.println(tf.getCaption() + " valueChange"); } @@ -124,6 +134,7 @@ public class TextChangeEvents2 extends TestBase { tf.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { String txt = event.getText(); int len = txt.length(); @@ -149,6 +160,7 @@ public class TextChangeEvents2 extends TestBase { }); tf.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { TextField tf = (TextField) event.getProperty(); String val = (String) tf.getValue(); diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEventsEternalLoop.java b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEventsEternalLoop.java index 22348bb5b5..1a49729b6f 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEventsEternalLoop.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEventsEternalLoop.java @@ -13,6 +13,7 @@ public class TextChangeEventsEternalLoop extends TestBase { getLayout().addComponent(tf); tf.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { tf.setValue(event.getText()); } diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEventsWithNonImmediateValueChange.java b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEventsWithNonImmediateValueChange.java index ab3fd49cd6..ebb8b88411 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEventsWithNonImmediateValueChange.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeEventsWithNonImmediateValueChange.java @@ -18,6 +18,7 @@ public class TextChangeEventsWithNonImmediateValueChange extends TestBase { TextChangeListener inputEventListener = new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { l.log("Text change event, text content currently:'" + event.getText() + "' Cursor at index:" @@ -31,6 +32,7 @@ public class TextChangeEventsWithNonImmediateValueChange extends TestBase { tf.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { l.log("Value change: '" + event.getProperty().getValue() + "'"); } diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeListenerChangingNonTextProperties.java b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeListenerChangingNonTextProperties.java index 8a3678ab62..5b84ff20f2 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeListenerChangingNonTextProperties.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeListenerChangingNonTextProperties.java @@ -31,6 +31,7 @@ public class TextChangeListenerChangingNonTextProperties extends TestBase { }; tf2.setTextChangeEventMode(TextChangeEventMode.EAGER); tf2.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { tf2.setStyleName(getNextStyle()); } diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeTimeoutAfterDetach.java b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeTimeoutAfterDetach.java index 2f0c54ee39..00783e0106 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeTimeoutAfterDetach.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeTimeoutAfterDetach.java @@ -18,6 +18,7 @@ public class TextChangeTimeoutAfterDetach extends TestBase { field.setTextChangeTimeout(2000); field.setTextChangeEventMode(TextChangeEventMode.TIMEOUT); field.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { // Need to add a listener for events to occur } @@ -26,6 +27,7 @@ public class TextChangeTimeoutAfterDetach extends TestBase { Button detachBtn = new Button("detach field", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { removeComponent(field); getLayout().addComponentAsFirst( diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextFieldEagerRepaint.java b/tests/testbench/com/vaadin/tests/components/textfield/TextFieldEagerRepaint.java index 08751a59fd..e103afbe62 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextFieldEagerRepaint.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextFieldEagerRepaint.java @@ -14,6 +14,7 @@ public class TextFieldEagerRepaint extends TestBase { final TextField tf1 = new TextField("Updates value"); tf1.setTextChangeEventMode(TextChangeEventMode.EAGER); tf1.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { String text = event.getText(); if (!text.matches("[a-z]*")) { @@ -26,6 +27,7 @@ public class TextFieldEagerRepaint extends TestBase { final TextField tf2 = new TextField("Updates width"); tf2.setTextChangeEventMode(TextChangeEventMode.EAGER); tf2.addListener(new TextChangeListener() { + @Override public void textChange(TextChangeEvent event) { String text = event.getText(); if (!text.matches("[a-z]*")) { diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextFieldFocusAndBlurListeners.java b/tests/testbench/com/vaadin/tests/components/textfield/TextFieldFocusAndBlurListeners.java index e2f5c45b72..21dba6a196 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextFieldFocusAndBlurListeners.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextFieldFocusAndBlurListeners.java @@ -40,12 +40,14 @@ public class TextFieldFocusAndBlurListeners extends TestBase implements tf2.setWidth("300px"); tf2.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { TextFieldFocusAndBlurListeners.this.valueChange(event); } }); tf2.addListener(new FocusListener() { + @Override public void focus(FocusEvent event) { TextFieldFocusAndBlurListeners.this.focus(event); } @@ -53,6 +55,7 @@ public class TextFieldFocusAndBlurListeners extends TestBase implements }); tf2.addListener(new BlurListener() { + @Override public void blur(BlurEvent event) { TextFieldFocusAndBlurListeners.this.blur(event); } @@ -76,11 +79,13 @@ public class TextFieldFocusAndBlurListeners extends TestBase implements addComponent(tf4); } + @Override public void focus(FocusEvent event) { log.log(event.getComponent().getCaption() + ": Focus"); } + @Override public void blur(BlurEvent event) { TextField tf = (TextField) event.getComponent(); log.log(tf.getCaption() + ": Blur. Value is: " @@ -88,6 +93,7 @@ public class TextFieldFocusAndBlurListeners extends TestBase implements } + @Override public void valueChange(ValueChangeEvent event) { TextField tf = (TextField) event.getProperty(); log.log(tf.getCaption() + ": ValueChange: " + tf.getValue().toString()); diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextFieldInputPromptAndClickShortcut.java b/tests/testbench/com/vaadin/tests/components/textfield/TextFieldInputPromptAndClickShortcut.java index c04c9d6c13..d52efa0572 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextFieldInputPromptAndClickShortcut.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextFieldInputPromptAndClickShortcut.java @@ -19,6 +19,7 @@ public class TextFieldInputPromptAndClickShortcut extends TestBase { final TextField textField = new TextField(); Button button = new Button("Show Text", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("Field value: " + textField.getValue()); } @@ -28,6 +29,7 @@ public class TextFieldInputPromptAndClickShortcut extends TestBase { final CheckBox inputPromptSelection = new CheckBox("Input prompt"); inputPromptSelection.setImmediate(true); inputPromptSelection.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (event.getProperty().getValue() == Boolean.TRUE) { textField.setInputPrompt("Input prompt"); diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextFieldWithProperty.java b/tests/testbench/com/vaadin/tests/components/textfield/TextFieldWithProperty.java index b753978666..747301f4e4 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextFieldWithProperty.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextFieldWithProperty.java @@ -24,6 +24,7 @@ public class TextFieldWithProperty extends TestBase { Button b = new Button( "Set BAR to underlaying property (should propagate to UI)"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { op.setValue("BAR"); } diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextFieldWithPropertyFormatter.java b/tests/testbench/com/vaadin/tests/components/textfield/TextFieldWithPropertyFormatter.java index ea4b572604..4184892545 100644 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextFieldWithPropertyFormatter.java +++ b/tests/testbench/com/vaadin/tests/components/textfield/TextFieldWithPropertyFormatter.java @@ -28,10 +28,12 @@ public class TextFieldWithPropertyFormatter extends TestBase { property = new Property<BigDecimal>() { private BigDecimal value; + @Override public BigDecimal getValue() { return value; } + @Override public void setValue(Object newValue) throws ReadOnlyException { if (newValue == null) { value = null; @@ -43,14 +45,17 @@ public class TextFieldWithPropertyFormatter extends TestBase { } } + @Override public Class<BigDecimal> getType() { return BigDecimal.class; } + @Override public boolean isReadOnly() { return false; } + @Override public void setReadOnly(boolean newStatus) { // ignore } @@ -98,12 +103,14 @@ public class TextFieldWithPropertyFormatter extends TestBase { Button b = new Button( "Sync (typing 12345.6789 and clicking this should format field)"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { } }); addComponent(b); b = new Button("Set '12345.6789' to textfield on the server side"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { tf1.setValue("12345.6789"); } diff --git a/tests/testbench/com/vaadin/tests/components/tree/CtrlShiftMultiselect.java b/tests/testbench/com/vaadin/tests/components/tree/CtrlShiftMultiselect.java index 69956e4d2c..03645557f2 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/CtrlShiftMultiselect.java +++ b/tests/testbench/com/vaadin/tests/components/tree/CtrlShiftMultiselect.java @@ -30,6 +30,7 @@ public class CtrlShiftMultiselect extends TestBase { tree.expandItemsRecursively("Item 4"); tree.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (tree.getValue() instanceof Set) { @SuppressWarnings("unchecked") diff --git a/tests/testbench/com/vaadin/tests/components/tree/ExpandCollapseTree.java b/tests/testbench/com/vaadin/tests/components/tree/ExpandCollapseTree.java index e23213fafc..d5c3654b4e 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/ExpandCollapseTree.java +++ b/tests/testbench/com/vaadin/tests/components/tree/ExpandCollapseTree.java @@ -30,6 +30,7 @@ public class ExpandCollapseTree extends TestBase { tree.expandItemsRecursively("Item 4"); tree.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (tree.getValue() instanceof Set) { @SuppressWarnings("unchecked") diff --git a/tests/testbench/com/vaadin/tests/components/tree/ItemStyleGenerator.java b/tests/testbench/com/vaadin/tests/components/tree/ItemStyleGenerator.java index f2ca2a85bd..33bd4cef65 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/ItemStyleGenerator.java +++ b/tests/testbench/com/vaadin/tests/components/tree/ItemStyleGenerator.java @@ -32,6 +32,7 @@ public class ItemStyleGenerator extends TestBase { Tree tree = new Tree(); tree.setItemStyleGenerator(new Tree.ItemStyleGenerator() { + @Override public String getStyle(Object itemId) { // simple return itemId as css style name return itemId.toString(); diff --git a/tests/testbench/com/vaadin/tests/components/tree/TreeConnectors.java b/tests/testbench/com/vaadin/tests/components/tree/TreeConnectors.java index b37d371b17..4072610996 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/TreeConnectors.java +++ b/tests/testbench/com/vaadin/tests/components/tree/TreeConnectors.java @@ -27,6 +27,7 @@ public class TreeConnectors extends TestBase { cb.setImmediate(true); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if ((Boolean) event.getProperty().getValue()) { tree.addStyleName(BaseTheme.TREE_CONNECTORS); @@ -50,11 +51,13 @@ public class TreeConnectors extends TestBase { tree.setDragMode(TreeDragMode.NODE); tree.setDropHandler(new DropHandler() { + @Override public void drop(DragAndDropEvent event) { // TODO Auto-generated method stub } + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } diff --git a/tests/testbench/com/vaadin/tests/components/tree/TreeContainerChange.java b/tests/testbench/com/vaadin/tests/components/tree/TreeContainerChange.java index df2682a14c..f4374ca2ee 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/TreeContainerChange.java +++ b/tests/testbench/com/vaadin/tests/components/tree/TreeContainerChange.java @@ -57,6 +57,7 @@ public class TreeContainerChange extends TestBase { Button b = new Button("Use ds1"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tree.setContainerDataSource(ds1); currentDS.setValue("ds1"); @@ -72,6 +73,7 @@ public class TreeContainerChange extends TestBase { b = new Button("Use ds2"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tree.setContainerDataSource(ds2); currentDS.setValue("ds2"); @@ -82,6 +84,7 @@ public class TreeContainerChange extends TestBase { addComponent(hl); tree.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { currentValue.setValue(event.getProperty().getValue()); } diff --git a/tests/testbench/com/vaadin/tests/components/tree/TreeDragAndDropFromTable.java b/tests/testbench/com/vaadin/tests/components/tree/TreeDragAndDropFromTable.java index dca2d96628..7aa3933752 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/TreeDragAndDropFromTable.java +++ b/tests/testbench/com/vaadin/tests/components/tree/TreeDragAndDropFromTable.java @@ -38,10 +38,12 @@ public class TreeDragAndDropFromTable extends TestBase { final Tree tree = new Tree(); tree.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return TargetItemAllowsChildren.get(); } + @Override public void drop(DragAndDropEvent dropEvent) { // criteria verify that this is safe DataBoundTransferable t = (DataBoundTransferable) dropEvent diff --git a/tests/testbench/com/vaadin/tests/components/tree/TreeFiltering.java b/tests/testbench/com/vaadin/tests/components/tree/TreeFiltering.java index 20d1eacb97..bd7984cdeb 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/TreeFiltering.java +++ b/tests/testbench/com/vaadin/tests/components/tree/TreeFiltering.java @@ -47,6 +47,7 @@ public class TreeFiltering extends TestBase { filterType.setImmediate(true); filterType.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { cont.setIncludeParentsWhenFiltering((Boolean) ((CheckBox) event .getProperty()).getValue()); @@ -56,6 +57,7 @@ public class TreeFiltering extends TestBase { addComponent(filterType); final Button b = new Button("Add filter 'foo'", new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { cont.addContainerFilter("caption", "foo", true, false); @@ -63,6 +65,7 @@ public class TreeFiltering extends TestBase { }); addComponent(b); final Button b2 = new Button("Add filter 'Num'", new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { cont.addContainerFilter("caption", "Num", true, false); @@ -71,6 +74,7 @@ public class TreeFiltering extends TestBase { addComponent(b2); final Button num = new Button("Add filter '0'", new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { cont.addContainerFilter("caption", "0", true, false); @@ -79,6 +83,7 @@ public class TreeFiltering extends TestBase { addComponent(num); final Button num2 = new Button("Add filter '0-'", new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { cont.addContainerFilter("caption", "0-", true, false); @@ -88,6 +93,7 @@ public class TreeFiltering extends TestBase { addComponent(num2); final Button num3 = new Button("Add filter 'Number 4'", new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { cont.addContainerFilter("caption", "Number 4", true, false); @@ -98,6 +104,7 @@ public class TreeFiltering extends TestBase { addComponent(num3); final Button p1 = new Button("Set Number 3 parent to Number 0", new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { cont.setParent(3, 0); @@ -105,6 +112,7 @@ public class TreeFiltering extends TestBase { }); addComponent(p1); final Button r = new Button("Remove filters", new ClickListener() { + @Override public void buttonClick(final ClickEvent event) { cont.removeAllContainerFilters(); diff --git a/tests/testbench/com/vaadin/tests/components/tree/TreeFocusGaining.java b/tests/testbench/com/vaadin/tests/components/tree/TreeFocusGaining.java index 87170214ca..dd407fd62a 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/TreeFocusGaining.java +++ b/tests/testbench/com/vaadin/tests/components/tree/TreeFocusGaining.java @@ -20,6 +20,7 @@ public class TreeFocusGaining extends TestBase { addComponent(textField); textField.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { log.log("TF value now:" + event.getProperty().getValue()); } @@ -30,6 +31,7 @@ public class TreeFocusGaining extends TestBase { addComponent(tree); tree.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { log.log("Tree value now:" + event.getProperty().getValue()); } @@ -39,6 +41,7 @@ public class TreeFocusGaining extends TestBase { tree = new Tree("Simple tree with itemm click listener"); tree.addItem("Item1"); tree.addListener(new ItemClickEvent.ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { log.log("Item click event"); } diff --git a/tests/testbench/com/vaadin/tests/components/tree/TreeItemClickListening.java b/tests/testbench/com/vaadin/tests/components/tree/TreeItemClickListening.java index e772be7cde..182bc97c44 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/TreeItemClickListening.java +++ b/tests/testbench/com/vaadin/tests/components/tree/TreeItemClickListening.java @@ -28,6 +28,7 @@ public class TreeItemClickListening extends TestBase { tree.setItemCaptionPropertyId("caption"); tree.addListener(new ItemClickEvent.ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { clickCounter++; switch (event.getButton()) { diff --git a/tests/testbench/com/vaadin/tests/components/tree/TreeScrollingOnSelection.java b/tests/testbench/com/vaadin/tests/components/tree/TreeScrollingOnSelection.java index a6079160ab..b3ab5c2b01 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/TreeScrollingOnSelection.java +++ b/tests/testbench/com/vaadin/tests/components/tree/TreeScrollingOnSelection.java @@ -29,6 +29,7 @@ public class TreeScrollingOnSelection extends TestBase { private static final long serialVersionUID = 5955518276555388126L; + @Override public void itemClick(ItemClickEvent event) { charLabel.setValue(event.getItemId().toString()); } diff --git a/tests/testbench/com/vaadin/tests/components/tree/TreeToolTips.java b/tests/testbench/com/vaadin/tests/components/tree/TreeToolTips.java index c6e29bc3b8..4b892c2150 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/TreeToolTips.java +++ b/tests/testbench/com/vaadin/tests/components/tree/TreeToolTips.java @@ -13,6 +13,7 @@ public class TreeToolTips extends TestBase { protected void setup() { final Tree tree = new Tree(null, createContainer()); tree.setItemDescriptionGenerator(new AbstractSelect.ItemDescriptionGenerator() { + @Override public String generateDescription(Component source, Object itemId, Object propertyId) { return "This is a tooltip for item id '" + itemId + "'"; diff --git a/tests/testbench/com/vaadin/tests/components/tree/TreeWithPreselectedItemNotShown.java b/tests/testbench/com/vaadin/tests/components/tree/TreeWithPreselectedItemNotShown.java index 92c82a6ccf..8da6759b20 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/TreeWithPreselectedItemNotShown.java +++ b/tests/testbench/com/vaadin/tests/components/tree/TreeWithPreselectedItemNotShown.java @@ -11,6 +11,7 @@ public class TreeWithPreselectedItemNotShown extends TestBase { protected void setup() { Button open = new Button("Open modal window with tree", new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { getMainWindow().addWindow(new SubwindowWithTree()); } diff --git a/tests/testbench/com/vaadin/tests/components/tree/Trees.java b/tests/testbench/com/vaadin/tests/components/tree/Trees.java index 79de4de412..3ee1d7b0de 100644 --- a/tests/testbench/com/vaadin/tests/components/tree/Trees.java +++ b/tests/testbench/com/vaadin/tests/components/tree/Trees.java @@ -26,6 +26,7 @@ public class Trees extends AbstractSelectTestCase<Tree> implements private ItemStyleGenerator rootGreenSecondLevelRed = new com.vaadin.ui.Tree.ItemStyleGenerator() { + @Override public String getStyle(Object itemId) { Hierarchical c = (Container.Hierarchical) getComponent() .getContainerDataSource(); @@ -50,6 +51,7 @@ public class Trees extends AbstractSelectTestCase<Tree> implements private ItemStyleGenerator evenItemsBold = new com.vaadin.ui.Tree.ItemStyleGenerator() { + @Override public String getStyle(Object itemId) { Hierarchical c = (Container.Hierarchical) getComponent() .getContainerDataSource(); @@ -80,17 +82,20 @@ public class Trees extends AbstractSelectTestCase<Tree> implements private Command<Tree, ContextMenu> contextMenuCommand = new Command<Tree, ContextMenu>() { + @Override public void execute(Tree c, final ContextMenu value, Object data) { c.removeAllActionHandlers(); if (value != null) { c.addActionHandler(new Handler() { + @Override public void handleAction(Action action, Object sender, Object target) { log("Action " + action.getCaption() + " performed on " + target); } + @Override public Action[] getActions(Object target, Object sender) { return value.getActions(target, sender); } @@ -176,6 +181,7 @@ public class Trees extends AbstractSelectTestCase<Tree> implements createSelectAction("Selection Mode", category, options, "Multi - ctrl/shift", new Command<Tree, SelectMode>() { + @Override public void execute(Tree t, SelectMode value, Object data) { switch (value) { case NONE: @@ -318,6 +324,7 @@ public class Trees extends AbstractSelectTestCase<Tree> implements */ private Command<Tree, Integer> rootItemIdsCommand = new Command<Tree, Integer>() { + @Override public void execute(Tree c, Integer value, Object data) { rootItemIds = value; updateContainer(); @@ -326,12 +333,14 @@ public class Trees extends AbstractSelectTestCase<Tree> implements private Command<Tree, Object> expandItemCommand = new Command<Tree, Object>() { + @Override public void execute(Tree c, Object itemId, Object data) { c.expandItem(itemId); } }; private Command<Tree, Object> expandItemRecursivelyCommand = new Command<Tree, Object>() { + @Override public void execute(Tree c, Object itemId, Object data) { c.expandItemsRecursively(itemId); } @@ -339,6 +348,7 @@ public class Trees extends AbstractSelectTestCase<Tree> implements private Command<Tree, Object> collapseItemCommand = new Command<Tree, Object>() { + @Override public void execute(Tree c, Object itemId, Object data) { c.collapseItem(itemId); } @@ -346,12 +356,14 @@ public class Trees extends AbstractSelectTestCase<Tree> implements private Command<Tree, Boolean> setChildrenAllowedCommand = new Command<Tree, Boolean>() { + @Override public void execute(Tree c, Boolean areChildrenAllowed, Object itemId) { c.setChildrenAllowed(itemId, areChildrenAllowed); } }; private Command<Tree, Boolean> expandListenerCommand = new Command<Tree, Boolean>() { + @Override public void execute(Tree c, Boolean value, Object data) { if (value) { c.addListener((ExpandListener) Trees.this); @@ -362,6 +374,7 @@ public class Trees extends AbstractSelectTestCase<Tree> implements }; private Command<Tree, Boolean> collapseListenerCommand = new Command<Tree, Boolean>() { + @Override public void execute(Tree c, Boolean value, Object data) { if (value) { c.addListener((CollapseListener) Trees.this); @@ -373,6 +386,7 @@ public class Trees extends AbstractSelectTestCase<Tree> implements private Command<Tree, com.vaadin.ui.Tree.ItemStyleGenerator> itemStyleGeneratorCommand = new Command<Tree, com.vaadin.ui.Tree.ItemStyleGenerator>() { + @Override public void execute(Tree c, com.vaadin.ui.Tree.ItemStyleGenerator value, Object data) { c.setItemStyleGenerator(value); @@ -380,10 +394,12 @@ public class Trees extends AbstractSelectTestCase<Tree> implements } }; + @Override public void nodeCollapse(CollapseEvent event) { log(event.getClass().getSimpleName() + ": " + event.getItemId()); } + @Override public void nodeExpand(ExpandEvent event) { log(event.getClass().getSimpleName() + ": " + event.getItemId()); } diff --git a/tests/testbench/com/vaadin/tests/components/treetable/AddNodesOnExpand.java b/tests/testbench/com/vaadin/tests/components/treetable/AddNodesOnExpand.java index 5bf0370bab..ae12d46988 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/AddNodesOnExpand.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/AddNodesOnExpand.java @@ -18,6 +18,7 @@ public class AddNodesOnExpand extends TestBase { treetable.setPageLength(0); treetable.addContainerProperty("foo", String.class, ""); treetable.addListener(new Tree.ExpandListener() { + @Override public void nodeExpand(ExpandEvent event) { Object openedItemId = event.getItemId(); if (!treetable.hasChildren(openedItemId)) { @@ -30,6 +31,7 @@ public class AddNodesOnExpand extends TestBase { } }); treetable.addListener(new Tree.CollapseListener() { + @Override public void nodeCollapse(CollapseEvent event) { /* Uncomment this to "fix" the TreeTable */ // orgTree.refreshRowCache(); diff --git a/tests/testbench/com/vaadin/tests/components/treetable/ChangeDataSourcePageLengthZero.java b/tests/testbench/com/vaadin/tests/components/treetable/ChangeDataSourcePageLengthZero.java index 9cb60efd74..0fe8a3d1b9 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/ChangeDataSourcePageLengthZero.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/ChangeDataSourcePageLengthZero.java @@ -21,12 +21,14 @@ public class ChangeDataSourcePageLengthZero extends TestBase { addComponent(tt); Button page1 = new Button("Set new data source (20 items)"); page1.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { setupContainer(tt, 20); } }); Button page2 = new Button("Set new data source (10 items)"); page2.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { setupContainer(tt, 10); } @@ -35,6 +37,7 @@ public class ChangeDataSourcePageLengthZero extends TestBase { addButton.addListener(new Button.ClickListener() { private int i = 1; + @Override public void buttonClick(ClickEvent event) { HierarchicalContainer container = (HierarchicalContainer) tt .getContainerDataSource(); diff --git a/tests/testbench/com/vaadin/tests/components/treetable/DynamicallyModified.java b/tests/testbench/com/vaadin/tests/components/treetable/DynamicallyModified.java index 89211dbecc..6dc5417d28 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/DynamicallyModified.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/DynamicallyModified.java @@ -87,6 +87,7 @@ public class DynamicallyModified extends TestBase implements private int newChild = 1; + @Override public void nodeExpand(ExpandEvent event) { Object expandedItemId = event.getItemId(); // 7 == "Customer Project 1" @@ -100,6 +101,7 @@ public class DynamicallyModified extends TestBase implements treetable.setChildrenAllowed(newChildId, false); } + @Override public void nodeCollapse(CollapseEvent event) { Object collapsedItemId = event.getItemId(); diff --git a/tests/testbench/com/vaadin/tests/components/treetable/KeepAllItemsVisible.java b/tests/testbench/com/vaadin/tests/components/treetable/KeepAllItemsVisible.java index ad0255a2da..799537f923 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/KeepAllItemsVisible.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/KeepAllItemsVisible.java @@ -37,6 +37,7 @@ public class KeepAllItemsVisible extends TestBase implements ExpandListener, tt.addListener((CollapseListener) this); tt.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { recalculatePageLength(tt); tt.requestRepaint(); @@ -49,6 +50,7 @@ public class KeepAllItemsVisible extends TestBase implements ExpandListener, Button b = new Button("Set pagelength to 10", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tt.setPageLength(10); } @@ -56,6 +58,7 @@ public class KeepAllItemsVisible extends TestBase implements ExpandListener, addComponent(b); b = new Button("Set pagelength to 20", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tt.setPageLength(20); } @@ -63,6 +66,7 @@ public class KeepAllItemsVisible extends TestBase implements ExpandListener, addComponent(b); b = new Button("Set pagelength to 0", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tt.setPageLength(0); } @@ -121,11 +125,13 @@ public class KeepAllItemsVisible extends TestBase implements ExpandListener, return 7292; } + @Override public void nodeCollapse(CollapseEvent event) { recalculatePageLength((TreeTable) event.getSource()); } + @Override public void nodeExpand(ExpandEvent event) { recalculatePageLength((TreeTable) event.getSource()); } diff --git a/tests/testbench/com/vaadin/tests/components/treetable/ProgrammaticCollapse.java b/tests/testbench/com/vaadin/tests/components/treetable/ProgrammaticCollapse.java index 447ce6c465..ea76a9639a 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/ProgrammaticCollapse.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/ProgrammaticCollapse.java @@ -30,6 +30,7 @@ public class ProgrammaticCollapse extends TestBase { layout.addComponent(table); layout.addComponent(new Button("Expand / Collapse", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { boolean collapsed = !table.isCollapsed(1); Notification.show("set collapsed: " + collapsed); @@ -38,6 +39,7 @@ public class ProgrammaticCollapse extends TestBase { })); layout.addComponent(new Button("Expand / Collapse last", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { boolean collapsed = !table.isCollapsed(100); Notification.show("set collapsed: " + collapsed); @@ -48,6 +50,7 @@ public class ProgrammaticCollapse extends TestBase { new ClickListener() { private boolean collapsed = true; + @Override public void buttonClick(ClickEvent event) { collapsed = !collapsed; Notification.show("set collapsed: " + collapsed); diff --git a/tests/testbench/com/vaadin/tests/components/treetable/ProgrammaticSelect.java b/tests/testbench/com/vaadin/tests/components/treetable/ProgrammaticSelect.java index fc68d0be15..7088497b4e 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/ProgrammaticSelect.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/ProgrammaticSelect.java @@ -23,6 +23,7 @@ public class ProgrammaticSelect extends TestBase { Button selectItem = new Button("Select first row", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Object id = tt.getItemIds().iterator().next(); tt.select(id); diff --git a/tests/testbench/com/vaadin/tests/components/treetable/RemoveAllItemsRefresh.java b/tests/testbench/com/vaadin/tests/components/treetable/RemoveAllItemsRefresh.java index 69198ca006..a92a9e045e 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/RemoveAllItemsRefresh.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/RemoveAllItemsRefresh.java @@ -39,6 +39,7 @@ public class RemoveAllItemsRefresh extends TestBase { Button cleanUp = new Button("clear"); cleanUp.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { treeContainer.removeAllItems(); } @@ -47,6 +48,7 @@ public class RemoveAllItemsRefresh extends TestBase { Button refresh = new Button("fill"); refresh.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { fill(); } diff --git a/tests/testbench/com/vaadin/tests/components/treetable/TreeTableCacheOnPartialUpdates.java b/tests/testbench/com/vaadin/tests/components/treetable/TreeTableCacheOnPartialUpdates.java index ae6a9d0c0b..c2bd3da860 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/TreeTableCacheOnPartialUpdates.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/TreeTableCacheOnPartialUpdates.java @@ -68,6 +68,7 @@ public class TreeTableCacheOnPartialUpdates extends TestBase { } public class Col3ColumnGenerator implements ColumnGenerator { + @Override public Component generateCell(final com.vaadin.ui.Table source, final Object itemId, Object columnId) { TestBean tb = (TestBean) itemId; @@ -78,6 +79,7 @@ public class TreeTableCacheOnPartialUpdates extends TestBase { System.out.println("Generating new Button for " + identifier); Button btnCol3 = new NativeButton(identifier); btnCol3.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("Button " + event.getButton().getCaption() + " clicked. Row index: " @@ -117,6 +119,7 @@ public class TreeTableCacheOnPartialUpdates extends TestBase { addComponent(b); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("First visible item id is: " + treeTable.getCurrentPageFirstItemId()); @@ -131,6 +134,7 @@ public class TreeTableCacheOnPartialUpdates extends TestBase { cacheRateSelect.setValue(2); cacheRateSelect.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { treeTable .setCacheRate((Integer) event.getProperty().getValue()); @@ -154,6 +158,7 @@ public class TreeTableCacheOnPartialUpdates extends TestBase { treeTable.addGeneratedColumn("col3", new Col3ColumnGenerator()); treeTable.addListener(new ExpandListener() { + @Override public void nodeExpand(ExpandEvent event) { logExpandCollapse(event.getItemId(), "expanded"); @@ -161,6 +166,7 @@ public class TreeTableCacheOnPartialUpdates extends TestBase { }); treeTable.addListener(new CollapseListener() { + @Override public void nodeCollapse(CollapseEvent event) { logExpandCollapse(event.getItemId(), "collapsed"); diff --git a/tests/testbench/com/vaadin/tests/components/treetable/TreeTableModifyAndSetCollapsed.java b/tests/testbench/com/vaadin/tests/components/treetable/TreeTableModifyAndSetCollapsed.java index 336ffb5a52..02ce397a05 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/TreeTableModifyAndSetCollapsed.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/TreeTableModifyAndSetCollapsed.java @@ -26,6 +26,7 @@ public class TreeTableModifyAndSetCollapsed extends TestBase { addComponent(tt); Button repopulate = new Button("Repopulate", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { // repopulate the container and expand root item container.removeAllItems(); diff --git a/tests/testbench/com/vaadin/tests/components/treetable/TreeTableOutOfSync.java b/tests/testbench/com/vaadin/tests/components/treetable/TreeTableOutOfSync.java index 0c1fcdbfd8..e688e039eb 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/TreeTableOutOfSync.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/TreeTableOutOfSync.java @@ -16,6 +16,7 @@ public class TreeTableOutOfSync extends TestBase { TreeTable tt = new TreeTable(); tt.addContainerProperty("i", Integer.class, null); tt.addGeneratedColumn("text", new Table.ColumnGenerator() { + @Override public Object generateCell(Table source, Object itemId, Object columnId) { if ("text".equals(columnId)) { @@ -23,6 +24,7 @@ public class TreeTableOutOfSync extends TestBase { + source.getContainerDataSource().getItem(itemId) .getItemProperty("i").getValue()); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().showNotification("click"); } diff --git a/tests/testbench/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.java b/tests/testbench/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.java index 2a14c946f3..7159addb5b 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.java @@ -12,6 +12,7 @@ public class TreeTableSetCollapsed extends TestBase { createTreeTableAndPopulate(); addComponent(new Button("Create another TreeTable", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { createTreeTableAndPopulate(); } diff --git a/tests/testbench/com/vaadin/tests/components/treetable/TreeTableTest.java b/tests/testbench/com/vaadin/tests/components/treetable/TreeTableTest.java index d7d9c18d7e..f27a47f12b 100644 --- a/tests/testbench/com/vaadin/tests/components/treetable/TreeTableTest.java +++ b/tests/testbench/com/vaadin/tests/components/treetable/TreeTableTest.java @@ -27,6 +27,7 @@ public class TreeTableTest extends Tables<TreeTable> implements private int rootItemIds = 3; private CellStyleGenerator rootGreenSecondLevelRed = new com.vaadin.ui.Table.CellStyleGenerator() { + @Override public String getStyle(Object itemId, Object propertyId) { if (propertyId != null) { return null; @@ -54,6 +55,7 @@ public class TreeTableTest extends Tables<TreeTable> implements private CellStyleGenerator evenItemsBold = new CellStyleGenerator() { + @Override public String getStyle(Object itemId, Object propertyId) { if (propertyId != null) { return null; @@ -235,6 +237,7 @@ public class TreeTableTest extends Tables<TreeTable> implements */ private Command<TreeTable, Integer> rootItemIdsCommand = new Command<TreeTable, Integer>() { + @Override public void execute(TreeTable c, Integer value, Object data) { rootItemIds = value; updateContainer(); @@ -243,6 +246,7 @@ public class TreeTableTest extends Tables<TreeTable> implements private Command<TreeTable, Object> expandItemCommand = new Command<TreeTable, Object>() { + @Override public void execute(TreeTable c, Object itemId, Object data) { c.setCollapsed(itemId, false); } @@ -250,6 +254,7 @@ public class TreeTableTest extends Tables<TreeTable> implements private Command<TreeTable, Object> collapseItemCommand = new Command<TreeTable, Object>() { + @Override public void execute(TreeTable c, Object itemId, Object data) { c.setCollapsed(itemId, true); } @@ -257,6 +262,7 @@ public class TreeTableTest extends Tables<TreeTable> implements private Command<TreeTable, Boolean> setChildrenAllowedCommand = new Command<TreeTable, Boolean>() { + @Override public void execute(TreeTable c, Boolean areChildrenAllowed, Object itemId) { c.setChildrenAllowed(itemId, areChildrenAllowed); @@ -264,6 +270,7 @@ public class TreeTableTest extends Tables<TreeTable> implements }; private Command<TreeTable, Boolean> expandListenerCommand = new Command<TreeTable, Boolean>() { + @Override public void execute(TreeTable c, Boolean value, Object data) { if (value) { c.addListener((ExpandListener) TreeTableTest.this); @@ -274,6 +281,7 @@ public class TreeTableTest extends Tables<TreeTable> implements }; private Command<TreeTable, Boolean> collapseListenerCommand = new Command<TreeTable, Boolean>() { + @Override public void execute(TreeTable c, Boolean value, Object data) { if (value) { c.addListener((CollapseListener) TreeTableTest.this); @@ -285,15 +293,18 @@ public class TreeTableTest extends Tables<TreeTable> implements protected Command<TreeTable, Boolean> animationCommand = new Command<TreeTable, Boolean>() { + @Override public void execute(TreeTable c, Boolean enabled, Object data) { c.setAnimationsEnabled(enabled); } }; + @Override public void nodeCollapse(CollapseEvent event) { log(event.getClass().getSimpleName() + ": " + event.getItemId()); } + @Override public void nodeExpand(ExpandEvent event) { log(event.getClass().getSimpleName() + ": " + event.getItemId()); } diff --git a/tests/testbench/com/vaadin/tests/components/twincolselect/TwinColSelects.java b/tests/testbench/com/vaadin/tests/components/twincolselect/TwinColSelects.java index ddb418dab3..fc1b11bb94 100644 --- a/tests/testbench/com/vaadin/tests/components/twincolselect/TwinColSelects.java +++ b/tests/testbench/com/vaadin/tests/components/twincolselect/TwinColSelects.java @@ -51,12 +51,14 @@ public class TwinColSelects extends AbstractSelectTestCase<TwinColSelect> { private Command<TwinColSelect, Integer> columnsAction = new Command<TwinColSelect, Integer>() { + @Override public void execute(TwinColSelect c, Integer value, Object data) { c.setColumns(value); } }; private Command<TwinColSelect, Integer> rowsAction = new Command<TwinColSelect, Integer>() { + @Override public void execute(TwinColSelect c, Integer value, Object data) { c.setRows(value); } diff --git a/tests/testbench/com/vaadin/tests/components/upload/ForceSubmit.java b/tests/testbench/com/vaadin/tests/components/upload/ForceSubmit.java index 84e266dea2..47aad46348 100644 --- a/tests/testbench/com/vaadin/tests/components/upload/ForceSubmit.java +++ b/tests/testbench/com/vaadin/tests/components/upload/ForceSubmit.java @@ -21,6 +21,7 @@ public class ForceSubmit extends TestBase implements Receiver { return 6630; } + @Override public OutputStream receiveUpload(String filename, String MIMEType) { return new ByteArrayOutputStream(); } @@ -40,6 +41,7 @@ public class ForceSubmit extends TestBase implements Receiver { addComponent(u); u.addListener(new Upload.FinishedListener() { + @Override public void uploadFinished(FinishedEvent event) { String filename = event.getFilename(); long length = event.getLength(); @@ -49,12 +51,14 @@ public class ForceSubmit extends TestBase implements Receiver { }); u.addListener(new Upload.FailedListener() { + @Override public void uploadFailed(FailedEvent event) { getMainWindow().showNotification("Failed. No file selected?"); } }); u.addListener(new Upload.StartedListener() { + @Override public void uploadStarted(StartedEvent event) { getMainWindow().showNotification( "Started upload. TF value :" + textField.getValue()); @@ -64,6 +68,7 @@ public class ForceSubmit extends TestBase implements Receiver { Button button = new Button( "I'm an external button (not the uploads builtin), hit me to start upload."); button.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { u.submitUpload(); } diff --git a/tests/testbench/com/vaadin/tests/components/upload/TestFileUpload.java b/tests/testbench/com/vaadin/tests/components/upload/TestFileUpload.java index 4f1e8358f4..529a977ede 100644 --- a/tests/testbench/com/vaadin/tests/components/upload/TestFileUpload.java +++ b/tests/testbench/com/vaadin/tests/components/upload/TestFileUpload.java @@ -21,6 +21,7 @@ public class TestFileUpload extends TestBase implements Receiver { protected void setup() { Upload u = new Upload("Upload", new Upload.Receiver() { + @Override public OutputStream receiveUpload(String filename, String mimeType) { return baos; } @@ -28,6 +29,7 @@ public class TestFileUpload extends TestBase implements Receiver { u.setDebugId("UPL"); u.addListener(new Upload.FinishedListener() { + @Override public void uploadFinished(FinishedEvent event) { String hash = DigestUtils.md5Hex(baos.toByteArray()); log.log("Upload finished. Name: " + event.getFilename() @@ -40,6 +42,7 @@ public class TestFileUpload extends TestBase implements Receiver { addComponent(u); } + @Override public OutputStream receiveUpload(String filename, String MIMEType) { getMainWindow().showNotification("Receiving upload"); return new ByteArrayOutputStream(); diff --git a/tests/testbench/com/vaadin/tests/components/upload/TestImmediateUploadInFormLayout.java b/tests/testbench/com/vaadin/tests/components/upload/TestImmediateUploadInFormLayout.java index b6126f41da..7607536357 100644 --- a/tests/testbench/com/vaadin/tests/components/upload/TestImmediateUploadInFormLayout.java +++ b/tests/testbench/com/vaadin/tests/components/upload/TestImmediateUploadInFormLayout.java @@ -46,6 +46,7 @@ public class TestImmediateUploadInFormLayout extends return Collections.emptyList(); } + @Override public OutputStream receiveUpload(String filename, String MIMEType) { getMainWindow().showNotification("Receiving upload"); return new ByteArrayOutputStream(); diff --git a/tests/testbench/com/vaadin/tests/components/upload/TestUpload.java b/tests/testbench/com/vaadin/tests/components/upload/TestUpload.java index 535372f710..9ca0cb9c38 100644 --- a/tests/testbench/com/vaadin/tests/components/upload/TestUpload.java +++ b/tests/testbench/com/vaadin/tests/components/upload/TestUpload.java @@ -32,6 +32,7 @@ public class TestUpload extends ComponentTestCase<Upload> implements Receiver { addTestComponent(u); u.addListener(new Upload.FinishedListener() { + @Override public void uploadFinished(FinishedEvent event) { getMainWindow().showNotification("Done"); } @@ -51,6 +52,7 @@ public class TestUpload extends ComponentTestCase<Upload> implements Receiver { return actions; } + @Override public OutputStream receiveUpload(String filename, String MIMEType) { getMainWindow().showNotification("Receiving upload"); return new ByteArrayOutputStream(); diff --git a/tests/testbench/com/vaadin/tests/components/upload/TestUploadAndDisableOnSuccess.java b/tests/testbench/com/vaadin/tests/components/upload/TestUploadAndDisableOnSuccess.java index 0aa8e809c4..516ca2d7c9 100644 --- a/tests/testbench/com/vaadin/tests/components/upload/TestUploadAndDisableOnSuccess.java +++ b/tests/testbench/com/vaadin/tests/components/upload/TestUploadAndDisableOnSuccess.java @@ -51,6 +51,7 @@ public class TestUploadAndDisableOnSuccess extends ComponentTestCase<Upload> u.addListener(new Upload.StartedListener() { + @Override public void uploadStarted(StartedEvent event) { /* * Remove component before upload from the same vertical layout. @@ -63,6 +64,7 @@ public class TestUploadAndDisableOnSuccess extends ComponentTestCase<Upload> }); u.addListener(new Upload.FinishedListener() { + @Override public void uploadFinished(FinishedEvent event) { getMainWindow().showNotification("Done"); l.setValue(getUploadcount()); @@ -81,6 +83,7 @@ public class TestUploadAndDisableOnSuccess extends ComponentTestCase<Upload> actions.add(createButtonAction("Toggle Enabled", new Command<Upload, Boolean>() { + @Override public void execute(Upload c, Boolean value, Object data) { c.setEnabled(!c.isEnabled()); } @@ -89,6 +92,7 @@ public class TestUploadAndDisableOnSuccess extends ComponentTestCase<Upload> return actions; } + @Override public OutputStream receiveUpload(String filename, String MIMEType) { // sleep to ensure change before upload is complete try { diff --git a/tests/testbench/com/vaadin/tests/components/upload/TestUploadFilename.java b/tests/testbench/com/vaadin/tests/components/upload/TestUploadFilename.java index 12006412f2..de0cca5009 100644 --- a/tests/testbench/com/vaadin/tests/components/upload/TestUploadFilename.java +++ b/tests/testbench/com/vaadin/tests/components/upload/TestUploadFilename.java @@ -23,6 +23,7 @@ public class TestUploadFilename extends TestBase { addComponent(result); upload.addListener(new Upload.FinishedListener() { + @Override public void uploadFinished(FinishedEvent event) { result.setValue("Got file (should not contain path): " + receiver.getFilename()); @@ -35,6 +36,7 @@ public class TestUploadFilename extends TestBase { private String filename; + @Override public OutputStream receiveUpload(String filename, String MIMEType) { this.filename = filename; return new ByteArrayOutputStream(); diff --git a/tests/testbench/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java b/tests/testbench/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java index ae3d4bc053..52a94daec7 100644 --- a/tests/testbench/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java +++ b/tests/testbench/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java @@ -84,6 +84,7 @@ public class AttachShouldBeCalledForSubWindows extends AbstractTestCase }; okButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log("Button clicked"); @@ -114,6 +115,7 @@ public class AttachShouldBeCalledForSubWindows extends AbstractTestCase return 8170; } + @Override public void onRequestStart(HttpServletRequest request, HttpServletResponse response) { if (request.getParameter("attachMainFirst") != null) { @@ -122,6 +124,7 @@ public class AttachShouldBeCalledForSubWindows extends AbstractTestCase } + @Override public void onRequestEnd(HttpServletRequest request, HttpServletResponse response) { // TODO Auto-generated method stub diff --git a/tests/testbench/com/vaadin/tests/components/window/CloseSubWindow.java b/tests/testbench/com/vaadin/tests/components/window/CloseSubWindow.java index bcfbc7f55a..e618cd38b5 100644 --- a/tests/testbench/com/vaadin/tests/components/window/CloseSubWindow.java +++ b/tests/testbench/com/vaadin/tests/components/window/CloseSubWindow.java @@ -18,6 +18,7 @@ public class CloseSubWindow extends TestBase { Button openWindowButton = new Button("Open sub-window"); openWindowButton.setDebugId("opensub"); openWindowButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Window sub = createClosableSubWindow("Sub-window"); getMainWindow().addWindow(sub); @@ -36,6 +37,7 @@ public class CloseSubWindow extends TestBase { Button closeButton = new Button("Close"); closeButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { event.getButton().findAncestor(Window.class).close(); } @@ -44,6 +46,7 @@ public class CloseSubWindow extends TestBase { Button removeButton = new Button("Remove from parent"); removeButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { window.close(); } @@ -51,6 +54,7 @@ public class CloseSubWindow extends TestBase { window.addComponent(closeButton); window.addListener(new CloseListener() { + @Override public void windowClose(CloseEvent e) { log.log("Window '" + title + "' closed"); } diff --git a/tests/testbench/com/vaadin/tests/components/window/DownloadAndUpdate.java b/tests/testbench/com/vaadin/tests/components/window/DownloadAndUpdate.java index ca9c31513f..76b93cae56 100644 --- a/tests/testbench/com/vaadin/tests/components/window/DownloadAndUpdate.java +++ b/tests/testbench/com/vaadin/tests/components/window/DownloadAndUpdate.java @@ -12,6 +12,7 @@ public class DownloadAndUpdate extends TestBase { protected void setup() { addComponent(new Button("Download and update", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { downloadAndUpdate(); } diff --git a/tests/testbench/com/vaadin/tests/components/window/ExecuteJavaScript.java b/tests/testbench/com/vaadin/tests/components/window/ExecuteJavaScript.java index bf979b1aa3..a9744b2c06 100644 --- a/tests/testbench/com/vaadin/tests/components/window/ExecuteJavaScript.java +++ b/tests/testbench/com/vaadin/tests/components/window/ExecuteJavaScript.java @@ -26,6 +26,7 @@ public class ExecuteJavaScript extends AbstractTestCase { Button b = new Button(script); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().executeJavaScript(script); } diff --git a/tests/testbench/com/vaadin/tests/components/window/ExtraWindowShown.java b/tests/testbench/com/vaadin/tests/components/window/ExtraWindowShown.java index e81e02b22b..fc8d7474af 100644 --- a/tests/testbench/com/vaadin/tests/components/window/ExtraWindowShown.java +++ b/tests/testbench/com/vaadin/tests/components/window/ExtraWindowShown.java @@ -13,12 +13,14 @@ public class ExtraWindowShown extends TestBase { protected void setup() { Button b = new Button("Open window", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { final Window w = new Window("Sub window"); w.center(); w.addComponent(new Button("Close", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { w.close(); } diff --git a/tests/testbench/com/vaadin/tests/components/window/LazyWindowResize.java b/tests/testbench/com/vaadin/tests/components/window/LazyWindowResize.java index 9eaabf7340..e44b1e4518 100644 --- a/tests/testbench/com/vaadin/tests/components/window/LazyWindowResize.java +++ b/tests/testbench/com/vaadin/tests/components/window/LazyWindowResize.java @@ -25,12 +25,14 @@ public class LazyWindowResize extends AbstractTestCase { protected ResizeListener resizeListener = new ResizeListener() { + @Override public void windowResized(ResizeEvent e) { log.log("Sub window resized"); } }; protected BrowserWindowResizeListener browserWindowResizeListener = new BrowserWindowResizeListener() { + @Override public void browserWindowResized(BrowserWindowResizeEvent event) { log.log("Main window resized"); } @@ -63,6 +65,7 @@ public class LazyWindowResize extends AbstractTestCase { lazyMode.setImmediate(true); lazyMode.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { setLazy(lazyMode.getValue()); } @@ -72,6 +75,7 @@ public class LazyWindowResize extends AbstractTestCase { resizeListenerCheckBox.setImmediate(true); resizeListenerCheckBox.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (resizeListenerCheckBox.getValue()) { subWindow.addListener(resizeListener); @@ -88,6 +92,7 @@ public class LazyWindowResize extends AbstractTestCase { immediateCheckBox.setImmediate(true); immediateCheckBox.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { mainWindow.setImmediate(immediateCheckBox.getValue()); subWindow.setImmediate(immediateCheckBox.getValue()); diff --git a/tests/testbench/com/vaadin/tests/components/window/LongNotifications.java b/tests/testbench/com/vaadin/tests/components/window/LongNotifications.java index c916973713..be67cfe9a0 100644 --- a/tests/testbench/com/vaadin/tests/components/window/LongNotifications.java +++ b/tests/testbench/com/vaadin/tests/components/window/LongNotifications.java @@ -25,6 +25,7 @@ public class LongNotifications extends TestBase { Button b = new Button("Show loooong notification", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().showNotification( @@ -38,6 +39,7 @@ public class LongNotifications extends TestBase { b = new Button("Show notifications", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().showNotification("Example failed", @@ -51,6 +53,7 @@ public class LongNotifications extends TestBase { b = new Button("Show loooong notification (error)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow() @@ -65,6 +68,7 @@ public class LongNotifications extends TestBase { b = new Button("Show notification (error)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().showNotification("Example failed", diff --git a/tests/testbench/com/vaadin/tests/components/window/RepaintWindowContents.java b/tests/testbench/com/vaadin/tests/components/window/RepaintWindowContents.java index 353eb535ca..59cd35c2cb 100644 --- a/tests/testbench/com/vaadin/tests/components/window/RepaintWindowContents.java +++ b/tests/testbench/com/vaadin/tests/components/window/RepaintWindowContents.java @@ -30,6 +30,7 @@ public class RepaintWindowContents extends AbstractTestRoot { button1.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { window.setContent(layout2); } @@ -37,6 +38,7 @@ public class RepaintWindowContents extends AbstractTestRoot { button2.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { window.setContent(layout1); } diff --git a/tests/testbench/com/vaadin/tests/components/window/SubWindowFocus.java b/tests/testbench/com/vaadin/tests/components/window/SubWindowFocus.java index f0dccda66c..389c926986 100644 --- a/tests/testbench/com/vaadin/tests/components/window/SubWindowFocus.java +++ b/tests/testbench/com/vaadin/tests/components/window/SubWindowFocus.java @@ -41,6 +41,7 @@ public class SubWindowFocus extends TestBase { addComponent(tf); Button b = new Button("new", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { final Window win = new Window("Subwin"); win.getContent().setWidth(null); @@ -56,10 +57,12 @@ public class SubWindowFocus extends TestBase { ShortcutAction spc = new ShortcutAction("Space", ShortcutAction.KeyCode.SPACEBAR, null); + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { esc, spc }; } + @Override public void handleAction(Action action, Object sender, Object target) { if (action == esc) { diff --git a/tests/testbench/com/vaadin/tests/components/window/SubWindowFocusAndBlurListeners.java b/tests/testbench/com/vaadin/tests/components/window/SubWindowFocusAndBlurListeners.java index 1e342abe01..061ee7900f 100644 --- a/tests/testbench/com/vaadin/tests/components/window/SubWindowFocusAndBlurListeners.java +++ b/tests/testbench/com/vaadin/tests/components/window/SubWindowFocusAndBlurListeners.java @@ -36,12 +36,14 @@ public class SubWindowFocusAndBlurListeners extends TestBase { window.addComponent(new TextField()); window.addListener(new FocusListener() { + @Override public void focus(FocusEvent event) { Notification.show("Focused window"); } }); window.addListener(new BlurListener() { + @Override public void blur(BlurEvent event) { Notification.show("Blurred window"); } @@ -51,10 +53,12 @@ public class SubWindowFocusAndBlurListeners extends TestBase { private Action[] s = new Action[] { new ShortcutAction("^Save") }; + @Override public Action[] getActions(Object target, Object sender) { return s; } + @Override public void handleAction(Action action, Object sender, Object target) { Notification.show("Action!"); } @@ -68,6 +72,7 @@ public class SubWindowFocusAndBlurListeners extends TestBase { Button button = new Button("Bring to front (should focus too)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { window.bringToFront(); } diff --git a/tests/testbench/com/vaadin/tests/components/window/SubWindowOrder.java b/tests/testbench/com/vaadin/tests/components/window/SubWindowOrder.java index 9b4fcea22b..02241476d5 100644 --- a/tests/testbench/com/vaadin/tests/components/window/SubWindowOrder.java +++ b/tests/testbench/com/vaadin/tests/components/window/SubWindowOrder.java @@ -64,6 +64,7 @@ public class SubWindowOrder extends TestBase { toggleModality.addListener(this); } + @Override public void buttonClick(ClickEvent event) { if (event.getButton() == bf) { getCurWindow().bringToFront(); diff --git a/tests/testbench/com/vaadin/tests/components/window/SubWindowWithUndefinedHeight.java b/tests/testbench/com/vaadin/tests/components/window/SubWindowWithUndefinedHeight.java index fc99309b50..5bda762d3f 100644 --- a/tests/testbench/com/vaadin/tests/components/window/SubWindowWithUndefinedHeight.java +++ b/tests/testbench/com/vaadin/tests/components/window/SubWindowWithUndefinedHeight.java @@ -38,6 +38,7 @@ public class SubWindowWithUndefinedHeight extends TestBase { tabsheet.addComponent(tabButton); tabsheet.addComponent(table); tabsheet.addListener(new TabSheet.SelectedTabChangeListener() { + @Override public void selectedTabChange(TabSheet.SelectedTabChangeEvent event) { if (tabsheet.getSelectedTab() == tabButton) { tabsheet.setSizeUndefined(); @@ -54,6 +55,7 @@ public class SubWindowWithUndefinedHeight extends TestBase { subwindow.addComponent(tabsheet); Button button = new Button("click me", new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { getMainWindow().addWindow(subwindow); } diff --git a/tests/testbench/com/vaadin/tests/components/window/SubWindows.java b/tests/testbench/com/vaadin/tests/components/window/SubWindows.java index e939f0b9a4..c39bfdb713 100644 --- a/tests/testbench/com/vaadin/tests/components/window/SubWindows.java +++ b/tests/testbench/com/vaadin/tests/components/window/SubWindows.java @@ -32,6 +32,7 @@ public class SubWindows extends TestBase { Button b = new Button("Remove"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Button b = event.getButton(); ComponentContainer cc = (ComponentContainer) b.getParent(); @@ -51,6 +52,7 @@ public class SubWindows extends TestBase { autoWideWindow.addComponent(new TextField("Field 2")); autoWideWindow.addComponent(new Button("Add", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { autoWideWindow.addComponent(createRemoveButton()); diff --git a/tests/testbench/com/vaadin/tests/components/window/SubwindowDraggability.java b/tests/testbench/com/vaadin/tests/components/window/SubwindowDraggability.java index e1927982cd..45fb343b45 100644 --- a/tests/testbench/com/vaadin/tests/components/window/SubwindowDraggability.java +++ b/tests/testbench/com/vaadin/tests/components/window/SubwindowDraggability.java @@ -21,6 +21,7 @@ public class SubwindowDraggability extends TestBase { Button b = new Button("Swap", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { boolean b = draggableSubWindow.isDraggable(); diff --git a/tests/testbench/com/vaadin/tests/components/window/UndefinedHeightSubWindowAndContent.java b/tests/testbench/com/vaadin/tests/components/window/UndefinedHeightSubWindowAndContent.java index ed259b2f4c..715d089f57 100644 --- a/tests/testbench/com/vaadin/tests/components/window/UndefinedHeightSubWindowAndContent.java +++ b/tests/testbench/com/vaadin/tests/components/window/UndefinedHeightSubWindowAndContent.java @@ -28,6 +28,7 @@ public class UndefinedHeightSubWindowAndContent extends TestBase { field1.setImmediate(true); field1.addValidator(new Validator() { + @Override public void validate(Object value) throws InvalidValueException { if (!isValid(value)) { throw new InvalidValueException("FAIL!"); diff --git a/tests/testbench/com/vaadin/tests/components/window/WindowClickEvents.java b/tests/testbench/com/vaadin/tests/components/window/WindowClickEvents.java index 041ccaaf30..a4120b7d42 100644 --- a/tests/testbench/com/vaadin/tests/components/window/WindowClickEvents.java +++ b/tests/testbench/com/vaadin/tests/components/window/WindowClickEvents.java @@ -29,6 +29,7 @@ public class WindowClickEvents extends TestBase { protected void setup() { VerticalLayout layout = new VerticalLayout(); layout.addListener(new LayoutClickListener() { + @Override public void layoutClick(LayoutClickEvent event) { WindowClickEvents.this.click("Sub window layout", event); } @@ -36,6 +37,7 @@ public class WindowClickEvents extends TestBase { ((VerticalLayout) getMainWindow().getContent()) .addListener(new LayoutClickListener() { + @Override public void layoutClick(LayoutClickEvent event) { WindowClickEvents.this.click("Main window layout", event); @@ -45,6 +47,7 @@ public class WindowClickEvents extends TestBase { Window centered = new Window("A window with a click listener", layout); centered.addListener(new ClickListener() { + @Override public void click(ClickEvent event) { WindowClickEvents.this.click("Sub window", event); } @@ -60,6 +63,7 @@ public class WindowClickEvents extends TestBase { "Clicking here should not produce a layout click event"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { log.log("Click on button"); } @@ -73,6 +77,7 @@ public class WindowClickEvents extends TestBase { addComponent(log); getMainWindow().addListener(new ClickListener() { + @Override public void click(ClickEvent event) { WindowClickEvents.this.click("Main window", event); } diff --git a/tests/testbench/com/vaadin/tests/components/window/WindowResizeListener.java b/tests/testbench/com/vaadin/tests/components/window/WindowResizeListener.java index ac6c313d29..74d7b564db 100644 --- a/tests/testbench/com/vaadin/tests/components/window/WindowResizeListener.java +++ b/tests/testbench/com/vaadin/tests/components/window/WindowResizeListener.java @@ -34,6 +34,7 @@ public class WindowResizeListener extends TestBase { getLayout().addComponent(l); getMainWindow().addListener(new Page.BrowserWindowResizeListener() { + @Override public void browserWindowResized(BrowserWindowResizeEvent event) { l.setValue("Current browser window size: " + getMainWindow().getBrowserWindowWidth() + " x " @@ -45,6 +46,7 @@ public class WindowResizeListener extends TestBase { subwindow.setImmediate(true); subwindow.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if ((Boolean) event.getProperty().getValue()) { getMainWindow().addWindow(subwin); @@ -58,6 +60,7 @@ public class WindowResizeListener extends TestBase { CheckBox immediate = new CheckBox("immediate"); immediate.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { boolean booleanValue = (Boolean) event.getProperty().getValue(); getMainWindow().setImmediate(booleanValue); @@ -87,6 +90,7 @@ class ResizeListenerWindow extends Window { hl.addComponent(sizeLabel); addListener(new ResizeListener() { + @Override public void windowResized(ResizeEvent e) { updateLabel(); } diff --git a/tests/testbench/com/vaadin/tests/components/window/WindowScrollingComponentIntoView.java b/tests/testbench/com/vaadin/tests/components/window/WindowScrollingComponentIntoView.java index 9f3f27cf6a..fdeb21d29c 100644 --- a/tests/testbench/com/vaadin/tests/components/window/WindowScrollingComponentIntoView.java +++ b/tests/testbench/com/vaadin/tests/components/window/WindowScrollingComponentIntoView.java @@ -60,6 +60,7 @@ public class WindowScrollingComponentIntoView extends AbstractTestCase { window.addComponent(new Button("Scroll mainwin to X9", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().scrollIntoView(x9); @@ -67,6 +68,7 @@ public class WindowScrollingComponentIntoView extends AbstractTestCase { })); window.addComponent(new Button("Scroll mainwin to Y9", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().scrollIntoView(y9); @@ -100,6 +102,7 @@ public class WindowScrollingComponentIntoView extends AbstractTestCase { ((VerticalLayout) getMainWindow().getContent()).addComponent( new Button("Scroll win to X9", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { throw new RuntimeException("Currently not implemented"); // window.scrollIntoView(x29); @@ -107,6 +110,7 @@ public class WindowScrollingComponentIntoView extends AbstractTestCase { }), 0); ((VerticalLayout) getMainWindow().getContent()).addComponent( new Button("Scroll win to Y9", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { throw new RuntimeException("Currently not implemented"); // window.scrollIntoView(y29); diff --git a/tests/testbench/com/vaadin/tests/components/window/WindowScrollingUp.java b/tests/testbench/com/vaadin/tests/components/window/WindowScrollingUp.java index 2054b751ef..43f8297a5d 100644 --- a/tests/testbench/com/vaadin/tests/components/window/WindowScrollingUp.java +++ b/tests/testbench/com/vaadin/tests/components/window/WindowScrollingUp.java @@ -26,6 +26,7 @@ public class WindowScrollingUp extends AbstractTestCase { final Button up = new Button("up"); up.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { up.getRoot().setScrollTop(0); } diff --git a/tests/testbench/com/vaadin/tests/components/window/WindowShouldRemoveActionHandler.java b/tests/testbench/com/vaadin/tests/components/window/WindowShouldRemoveActionHandler.java index 88fb014690..fa01706c56 100644 --- a/tests/testbench/com/vaadin/tests/components/window/WindowShouldRemoveActionHandler.java +++ b/tests/testbench/com/vaadin/tests/components/window/WindowShouldRemoveActionHandler.java @@ -30,6 +30,7 @@ public class WindowShouldRemoveActionHandler extends TestBase { Button add = new Button("Add an action handler", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { add(); } @@ -38,6 +39,7 @@ public class WindowShouldRemoveActionHandler extends TestBase { Button addAnother = new Button("Add another action handler", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { addAnother(); } @@ -46,6 +48,7 @@ public class WindowShouldRemoveActionHandler extends TestBase { Button remove = new Button("Remove an action handler", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { remove(); } @@ -71,12 +74,14 @@ public class WindowShouldRemoveActionHandler extends TestBase { getMainWindow().getCaption() + " - Added handler"); Handler actionHandler = new Handler() { + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { new ShortcutAction("Ctrl+Left", ShortcutAction.KeyCode.ARROW_LEFT, new int[] { ModifierKey.CTRL }) }; } + @Override public void handleAction(Action action, Object sender, Object target) { getMainWindow().showNotification( "Handling action " + action.getCaption()); @@ -90,12 +95,14 @@ public class WindowShouldRemoveActionHandler extends TestBase { public void addAnother() { Handler actionHandler = new Handler() { + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { new ShortcutAction("Ctrl+Right", ShortcutAction.KeyCode.ARROW_RIGHT, new int[] { ModifierKey.CTRL }) }; } + @Override public void handleAction(Action action, Object sender, Object target) { getMainWindow().showNotification( "Handling action " + action.getCaption()); diff --git a/tests/testbench/com/vaadin/tests/components/window/WindowStyleNames.java b/tests/testbench/com/vaadin/tests/components/window/WindowStyleNames.java index 3a36926b42..615f391613 100644 --- a/tests/testbench/com/vaadin/tests/components/window/WindowStyleNames.java +++ b/tests/testbench/com/vaadin/tests/components/window/WindowStyleNames.java @@ -22,6 +22,7 @@ public class WindowStyleNames extends TestBase { setWindowStyle("old"); addComponent(new Button("Set style to 'new'", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { setWindowStyle("new"); } @@ -30,6 +31,7 @@ public class WindowStyleNames extends TestBase { addComponent(new Button("Set style to 'custom'", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { setWindowStyle("custom"); } @@ -38,6 +40,7 @@ public class WindowStyleNames extends TestBase { addComponent(new Button("Add 'foo' style", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().addStyleName("foo"); } diff --git a/tests/testbench/com/vaadin/tests/containers/BeanItemContainerFilteringTest.java b/tests/testbench/com/vaadin/tests/containers/BeanItemContainerFilteringTest.java index 77a3efa6ad..4f41410ba3 100644 --- a/tests/testbench/com/vaadin/tests/containers/BeanItemContainerFilteringTest.java +++ b/tests/testbench/com/vaadin/tests/containers/BeanItemContainerFilteringTest.java @@ -89,6 +89,7 @@ public class BeanItemContainerFilteringTest extends TestBase { final CheckBox cb = new CheckBox("Filter on value"); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { container.removeAllContainerFilters(); if (((CheckBox) event.getProperty()).getValue()) { @@ -108,6 +109,7 @@ public class BeanItemContainerFilteringTest extends TestBase { final Button addItemButton = new Button("addItem()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { container.addItem(new TestBean("addItem() " + nextToAdd, "value " + nextToAdd)); @@ -120,6 +122,7 @@ public class BeanItemContainerFilteringTest extends TestBase { final Button addItemAfterButton = new Button("addItemAfter()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Object selection = table.getValue(); if (selection == null) { @@ -145,6 +148,7 @@ public class BeanItemContainerFilteringTest extends TestBase { final Button addItemAtButton = new Button("addItemAt()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { int index = Integer.parseInt(position.getValue() .toString()); diff --git a/tests/testbench/com/vaadin/tests/containers/HierarchicalWrapperOrdering.java b/tests/testbench/com/vaadin/tests/containers/HierarchicalWrapperOrdering.java index f60e0c74e7..eba8ded705 100644 --- a/tests/testbench/com/vaadin/tests/containers/HierarchicalWrapperOrdering.java +++ b/tests/testbench/com/vaadin/tests/containers/HierarchicalWrapperOrdering.java @@ -94,6 +94,7 @@ public class HierarchicalWrapperOrdering extends TestBase { new ClickListener() { private static final long serialVersionUID = 1L; + @Override public void buttonClick(ClickEvent event) { // Get first item Object itemId = indexedContainer.getIdByIndex(0); diff --git a/tests/testbench/com/vaadin/tests/containers/IndexedContainerFilteringTest.java b/tests/testbench/com/vaadin/tests/containers/IndexedContainerFilteringTest.java index 2ed5de3bfa..b30ef3e616 100644 --- a/tests/testbench/com/vaadin/tests/containers/IndexedContainerFilteringTest.java +++ b/tests/testbench/com/vaadin/tests/containers/IndexedContainerFilteringTest.java @@ -56,6 +56,7 @@ public class IndexedContainerFilteringTest extends TestBase { final CheckBox cb = new CheckBox("Filter"); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { container.removeAllContainerFilters(); if (((CheckBox) event.getProperty()).getValue()) { @@ -75,6 +76,7 @@ public class IndexedContainerFilteringTest extends TestBase { final Button addItemButton = new Button("addItem()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Item item = container.addItem("addItem() " + nextToAdd); if (item != null) { @@ -90,6 +92,7 @@ public class IndexedContainerFilteringTest extends TestBase { final Button addItemAfterButton = new Button("addItemAfter()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Object selection = table.getValue(); if (selection == null) { @@ -117,6 +120,7 @@ public class IndexedContainerFilteringTest extends TestBase { final Button addItemAtButton = new Button("addItemAt()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { int index = Integer.parseInt(position.getValue() .toString()); diff --git a/tests/testbench/com/vaadin/tests/containers/TestItemSorter.java b/tests/testbench/com/vaadin/tests/containers/TestItemSorter.java index 0a1c592876..46c4e004c1 100644 --- a/tests/testbench/com/vaadin/tests/containers/TestItemSorter.java +++ b/tests/testbench/com/vaadin/tests/containers/TestItemSorter.java @@ -27,6 +27,7 @@ public class TestItemSorter extends TestBase { populateContainer(container); container.setItemSorter(new DefaultItemSorter(new Comparator<Object>() { + @Override public int compare(Object o1, Object o2) { if (o1 instanceof CheckBox && o2 instanceof CheckBox) { Boolean b1 = (Boolean) ((CheckBox) o1).getValue(); diff --git a/tests/testbench/com/vaadin/tests/containers/filesystemcontainer/FileSystemContainerInTreeTable.java b/tests/testbench/com/vaadin/tests/containers/filesystemcontainer/FileSystemContainerInTreeTable.java index 91403f54d6..0afaf2c15f 100644 --- a/tests/testbench/com/vaadin/tests/containers/filesystemcontainer/FileSystemContainerInTreeTable.java +++ b/tests/testbench/com/vaadin/tests/containers/filesystemcontainer/FileSystemContainerInTreeTable.java @@ -51,6 +51,7 @@ public class FileSystemContainerInTreeTable extends TestBase { treeTable.setColumnWidth("Name", 400); treeTable.addListener(new ExpandListener() { + @Override public void nodeExpand(ExpandEvent event) { logExpandCollapse(event.getItemId(), "expanded"); @@ -58,6 +59,7 @@ public class FileSystemContainerInTreeTable extends TestBase { }); treeTable.addListener(new CollapseListener() { + @Override public void nodeCollapse(CollapseEvent event) { logExpandCollapse(event.getItemId(), "collapsed"); @@ -71,6 +73,7 @@ public class FileSystemContainerInTreeTable extends TestBase { buttonLayout.setSpacing(true); buttonLayout.addComponent(new Button("Create dir11", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { new File(folder, "dir11").mkdir(); log.log("Row dir11 created"); @@ -78,6 +81,7 @@ public class FileSystemContainerInTreeTable extends TestBase { })); buttonLayout.addComponent(new Button("Delete dir11", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { new File(folder, "dir11").delete(); log.log("Row dir11 deleted"); @@ -86,6 +90,7 @@ public class FileSystemContainerInTreeTable extends TestBase { // to clean up explicitly before ending an automated test buttonLayout.addComponent(new Button("Clean all files", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { folder.delete(); } diff --git a/tests/testbench/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java b/tests/testbench/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java index 674f610ed7..a5a8f7d24b 100644 --- a/tests/testbench/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java +++ b/tests/testbench/com/vaadin/tests/containers/sqlcontainer/CheckboxUpdateProblem.java @@ -45,6 +45,7 @@ public class CheckboxUpdateProblem extends Application.LegacyApplication databaseHelper.getTestContainer().addListener( new ItemSetChangeListener() { + @Override public void containerItemSetChange(ItemSetChangeEvent event) { Object selected = testList.getValue(); if (selected != null) { @@ -62,6 +63,7 @@ public class CheckboxUpdateProblem extends Application.LegacyApplication getMainWindow().setContent(horizontalSplit); } + @Override public void valueChange(ValueChangeEvent event) { Property<?> property = event.getProperty(); @@ -89,6 +91,7 @@ public class CheckboxUpdateProblem extends Application.LegacyApplication getFooter().setVisible(false); } + @Override public void buttonClick(ClickEvent event) { if (event.getSource() == save) { super.commit(); diff --git a/tests/testbench/com/vaadin/tests/containers/sqlcontainer/MassInsertMemoryLeakTestApp.java b/tests/testbench/com/vaadin/tests/containers/sqlcontainer/MassInsertMemoryLeakTestApp.java index 2b76612c35..dc919fdb12 100644 --- a/tests/testbench/com/vaadin/tests/containers/sqlcontainer/MassInsertMemoryLeakTestApp.java +++ b/tests/testbench/com/vaadin/tests/containers/sqlcontainer/MassInsertMemoryLeakTestApp.java @@ -35,6 +35,7 @@ public class MassInsertMemoryLeakTestApp extends Application.LegacyApplication { setMainWindow(new LegacyWindow("SQLContainer Test", buildLayout())); process.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { MassInsert mi = new MassInsert(); mi.start(); diff --git a/tests/testbench/com/vaadin/tests/converter/ConverterThatEnforcesAFormat.java b/tests/testbench/com/vaadin/tests/converter/ConverterThatEnforcesAFormat.java index 8b17cb3f48..59aa45dc36 100644 --- a/tests/testbench/com/vaadin/tests/converter/ConverterThatEnforcesAFormat.java +++ b/tests/testbench/com/vaadin/tests/converter/ConverterThatEnforcesAFormat.java @@ -16,6 +16,7 @@ public class ConverterThatEnforcesAFormat extends TestBase { "This field should always be formatted with 3 digits"); tf.setConverter(new StringToDoubleConverterWithThreeFractionDigits()); tf.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { log.log("Value changed to " + event.getProperty().getValue() diff --git a/tests/testbench/com/vaadin/tests/dd/AcceptAnythingWindow.java b/tests/testbench/com/vaadin/tests/dd/AcceptAnythingWindow.java index 308f002e4f..e98c0e0606 100644 --- a/tests/testbench/com/vaadin/tests/dd/AcceptAnythingWindow.java +++ b/tests/testbench/com/vaadin/tests/dd/AcceptAnythingWindow.java @@ -28,10 +28,12 @@ public class AcceptAnythingWindow extends Window { final DragAndDropWrapper wrapper = new DragAndDropWrapper(layout); wrapper.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } + @Override public void drop(DragAndDropEvent event) { WrapperTargetDetails ed = (WrapperTargetDetails) event .getTargetDetails(); diff --git a/tests/testbench/com/vaadin/tests/dd/AcceptFromComponent.java b/tests/testbench/com/vaadin/tests/dd/AcceptFromComponent.java index 43bdce2ad4..5243f6b993 100644 --- a/tests/testbench/com/vaadin/tests/dd/AcceptFromComponent.java +++ b/tests/testbench/com/vaadin/tests/dd/AcceptFromComponent.java @@ -37,6 +37,7 @@ public class AcceptFromComponent extends Window { final ServerSideCriterion serverSideCriterion = new ServerSideCriterion() { + @Override public boolean accept(DragAndDropEvent dragEvent) { Transferable transferable = dragEvent.getTransferable(); if (transferable instanceof TransferableImpl) { @@ -51,10 +52,12 @@ public class AcceptFromComponent extends Window { wrapper.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return serverSideCriterion; } + @Override public void drop(DragAndDropEvent event) { WrapperTargetDetails ed = (WrapperTargetDetails) event diff --git a/tests/testbench/com/vaadin/tests/dd/ActiveDragSourceClassName.java b/tests/testbench/com/vaadin/tests/dd/ActiveDragSourceClassName.java index 93e99274bb..9ef1b4029b 100644 --- a/tests/testbench/com/vaadin/tests/dd/ActiveDragSourceClassName.java +++ b/tests/testbench/com/vaadin/tests/dd/ActiveDragSourceClassName.java @@ -23,6 +23,7 @@ public class ActiveDragSourceClassName extends TestBase { private static final String GREENBOXES = ".greenblock {float:left; width:60px;height:60px;background: green !important; padding:0; margin:2px;-webkit-transition: width 0.3s ease-in-out;}"; private static final String HIDEDRAGSOURCE = ".v-active-drag-source { overflow:hidden; width:0px !important;}"; + @Override protected void setup() { TestUtils.injectCSS(getMainWindow(), GREENBOXES + HIDEDRAGSOURCE); @@ -69,10 +70,12 @@ public class ActiveDragSourceClassName extends TestBase { private DropHandler dh = new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } + @Override public void drop(DragAndDropEvent dropEvent) { Transferable transferable = dropEvent.getTransferable(); if (transferable instanceof TransferableImpl) { diff --git a/tests/testbench/com/vaadin/tests/dd/CustomDDImplementation.java b/tests/testbench/com/vaadin/tests/dd/CustomDDImplementation.java index 2b38a3438e..f6e196761e 100644 --- a/tests/testbench/com/vaadin/tests/dd/CustomDDImplementation.java +++ b/tests/testbench/com/vaadin/tests/dd/CustomDDImplementation.java @@ -38,14 +38,17 @@ public class CustomDDImplementation extends CustomComponent { * */ class MyDropTarget extends AbstractComponent implements DropTarget { + @Override public DropHandler getDropHandler() { return new DropHandler() { + @Override public void drop(DragAndDropEvent event) { // Do something with data return; } + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } @@ -53,6 +56,7 @@ public class CustomDDImplementation extends CustomComponent { }; } + @Override public TargetDetails translateDropTargetDetails( Map<String, Object> clientVariables) { // If component has some special drop details that it needs to diff --git a/tests/testbench/com/vaadin/tests/dd/DDTest1.java b/tests/testbench/com/vaadin/tests/dd/DDTest1.java index 0d709844e9..5d1af94ee7 100644 --- a/tests/testbench/com/vaadin/tests/dd/DDTest1.java +++ b/tests/testbench/com/vaadin/tests/dd/DDTest1.java @@ -62,6 +62,7 @@ public class DDTest1 extends TestBase { */ private static final long serialVersionUID = 1L; + @Override public boolean accept(DragAndDropEvent dragEvent) { Transferable transferable = dragEvent.getTransferable(); // System.out.println("Simulating 500ms processing..."); @@ -188,6 +189,7 @@ public class DDTest1 extends TestBase { } + @Override public void drop(DragAndDropEvent event) { TreeTargetDetails details = (TreeTargetDetails) event .getTargetDetails(); @@ -224,6 +226,7 @@ public class DDTest1 extends TestBase { return; } + @Override public AcceptCriterion getAcceptCriterion() { // TODO should actually check that source is same as target return AcceptItem.ALL; diff --git a/tests/testbench/com/vaadin/tests/dd/DDTest2.java b/tests/testbench/com/vaadin/tests/dd/DDTest2.java index 0dda0d693c..272be53034 100644 --- a/tests/testbench/com/vaadin/tests/dd/DDTest2.java +++ b/tests/testbench/com/vaadin/tests/dd/DDTest2.java @@ -88,6 +88,7 @@ public class DDTest2 extends TestBase { }; tree3.setDropHandler(new DropHandler() { + @Override public void drop(DragAndDropEvent dropEvent) { Transferable transferable = dropEvent.getTransferable(); @@ -110,6 +111,7 @@ public class DDTest2 extends TestBase { } + @Override public AcceptCriterion getAcceptCriterion() { return crit; } @@ -136,6 +138,7 @@ public class DDTest2 extends TestBase { DropHandler dropHandler = new DropHandler() { + @Override public void drop(DragAndDropEvent event) { /* * We know transferrable is from table, so it is of type @@ -177,6 +180,7 @@ public class DDTest2 extends TestBase { } + @Override public AcceptCriterion getAcceptCriterion() { return and; } @@ -194,6 +198,7 @@ public class DDTest2 extends TestBase { */ dropHandler = new DropHandler() { + @Override public void drop(DragAndDropEvent event) { AbstractSelectTargetDetails details = (AbstractSelectTargetDetails) event .getTargetDetails(); @@ -233,6 +238,7 @@ public class DDTest2 extends TestBase { } } + @Override public AcceptCriterion getAcceptCriterion() { return AcceptItem.ALL; } diff --git a/tests/testbench/com/vaadin/tests/dd/DDTest4.java b/tests/testbench/com/vaadin/tests/dd/DDTest4.java index 654a30486a..53309fabcc 100644 --- a/tests/testbench/com/vaadin/tests/dd/DDTest4.java +++ b/tests/testbench/com/vaadin/tests/dd/DDTest4.java @@ -64,10 +64,12 @@ public class DDTest4 extends TestBase { // accept only drags from this table AcceptCriterion crit = new SourceIs(table); + @Override public AcceptCriterion getAcceptCriterion() { return crit; } + @Override public void drop(DragAndDropEvent dropEvent) { AbstractSelectTargetDetails dropTargetData = (AbstractSelectTargetDetails) dropEvent .getTargetDetails(); diff --git a/tests/testbench/com/vaadin/tests/dd/DDTest5.java b/tests/testbench/com/vaadin/tests/dd/DDTest5.java index a5d97f4473..63d1e9e3c2 100644 --- a/tests/testbench/com/vaadin/tests/dd/DDTest5.java +++ b/tests/testbench/com/vaadin/tests/dd/DDTest5.java @@ -86,10 +86,12 @@ public class DDTest5 extends TestBase { dh = new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } + @Override public void drop(DragAndDropEvent dropEvent) { /* diff --git a/tests/testbench/com/vaadin/tests/dd/DDTest6.java b/tests/testbench/com/vaadin/tests/dd/DDTest6.java index c6c6689bcb..debe26ba39 100644 --- a/tests/testbench/com/vaadin/tests/dd/DDTest6.java +++ b/tests/testbench/com/vaadin/tests/dd/DDTest6.java @@ -97,10 +97,12 @@ public class DDTest6 extends TestBase { tree1.setDragMode(TreeDragMode.NODE); DropHandler dropHandler = new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } + @Override public void drop(DragAndDropEvent dropEvent) { File file = null; Folder folder = null; @@ -127,12 +129,14 @@ public class DDTest6 extends TestBase { private Action[] actions = new Action[] { new Action("Remove") }; + @Override public void handleAction(Action action, Object sender, Object target) { ContainerHierarchicalWrapper containerDataSource = (ContainerHierarchicalWrapper) tree1 .getContainerDataSource(); containerDataSource.removeItemRecursively(target); } + @Override public Action[] getActions(Object target, Object sender) { return actions; } @@ -140,6 +144,7 @@ public class DDTest6 extends TestBase { tree1.addActionHandler(actionHandler); tree1.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Object value = event.getProperty().getValue(); if (value != null && !(value instanceof Folder)) { @@ -215,6 +220,7 @@ public class DDTest6 extends TestBase { public Resource getResource() { StreamSource streamSource = new StreamSource() { + @Override public InputStream getStream() { if (bas != null) { byte[] byteArray = bas.toByteArray(); @@ -355,6 +361,7 @@ public class DDTest6 extends TestBase { } + @Override @SuppressWarnings("static-access") public void drop(DragAndDropEvent dropEvent) { @@ -402,29 +409,36 @@ public class DDTest6 extends TestBase { StreamVariable streamVariable = new StreamVariable() { + @Override public OutputStream getOutputStream() { return bas; } + @Override public boolean listenProgress() { return false; } + @Override public void onProgress(StreamingProgressEvent event) { } + @Override public void streamingStarted( StreamingStartEvent event) { } + @Override public void streamingFinished( StreamingEndEvent event) { } + @Override public void streamingFailed( StreamingErrorEvent event) { } + @Override public boolean isInterrupted() { return false; } @@ -448,6 +462,7 @@ public class DDTest6 extends TestBase { } } + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } @@ -473,6 +488,7 @@ public class DDTest6 extends TestBase { l.addComponent(new Label(name)); l.addListener(new LayoutClickListener() { + @Override @SuppressWarnings("static-access") public void layoutClick(LayoutClickEvent event) { if (event.isDoubleClick()) { @@ -506,10 +522,12 @@ public class DDTest6 extends TestBase { setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return new Not(SourceIsTarget.get()); } + @Override public void drop(DragAndDropEvent dropEvent) { File f = null; diff --git a/tests/testbench/com/vaadin/tests/dd/DDTest7.java b/tests/testbench/com/vaadin/tests/dd/DDTest7.java index 26521f5a57..f9be935b23 100644 --- a/tests/testbench/com/vaadin/tests/dd/DDTest7.java +++ b/tests/testbench/com/vaadin/tests/dd/DDTest7.java @@ -95,10 +95,12 @@ public class DDTest7 extends TestBase { } }; + @Override public AcceptCriterion getAcceptCriterion() { return crit; } + @Override public void drop(DragAndDropEvent dropEvent) { AbstractSelectTargetDetails dropTargetData = (AbstractSelectTargetDetails) dropEvent .getTargetDetails(); diff --git a/tests/testbench/com/vaadin/tests/dd/DDTest8.java b/tests/testbench/com/vaadin/tests/dd/DDTest8.java index fed889b5c1..f797670f3e 100644 --- a/tests/testbench/com/vaadin/tests/dd/DDTest8.java +++ b/tests/testbench/com/vaadin/tests/dd/DDTest8.java @@ -113,6 +113,7 @@ public class DDTest8 extends TestBase { } + @Override public void drop(DragAndDropEvent event) { TreeTargetDetails details = (TreeTargetDetails) event .getTargetDetails(); @@ -149,6 +150,7 @@ public class DDTest8 extends TestBase { return; } + @Override public AcceptCriterion getAcceptCriterion() { return new Or(new AbstractSelect.TargetItemIs(t, "Foo", "Bar"), new AbstractSelect.AcceptItem(t, "Foo"), diff --git a/tests/testbench/com/vaadin/tests/dd/DragAndDropFiles.java b/tests/testbench/com/vaadin/tests/dd/DragAndDropFiles.java index 4b4ec75f0e..bea00ae0ad 100644 --- a/tests/testbench/com/vaadin/tests/dd/DragAndDropFiles.java +++ b/tests/testbench/com/vaadin/tests/dd/DragAndDropFiles.java @@ -35,10 +35,12 @@ public class DragAndDropFiles extends TestBase { dragAndDropWrapper.setSizeUndefined(); dragAndDropWrapper.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } + @Override public void drop(DragAndDropEvent event) { WrapperTransferable transferable = (WrapperTransferable) event .getTransferable(); @@ -59,19 +61,23 @@ public class DragAndDropFiles extends TestBase { StreamVariable streamVariable = new StreamVariable() { + @Override public OutputStream getOutputStream() { return new NullOutputStream(); } + @Override public boolean listenProgress() { return true; } + @Override public void onProgress(StreamingProgressEvent event) { System.err.println("Progress" + event.getBytesReceived()); } + @Override public void streamingStarted( StreamingStartEvent event) { getMainWindow().showNotification( @@ -79,6 +85,7 @@ public class DragAndDropFiles extends TestBase { + event.getFileName()); } + @Override public void streamingFinished( StreamingEndEvent event) { getMainWindow().showNotification( @@ -86,6 +93,7 @@ public class DragAndDropFiles extends TestBase { + event.getFileName()); } + @Override public void streamingFailed( StreamingErrorEvent event) { getMainWindow().showNotification( @@ -93,6 +101,7 @@ public class DragAndDropFiles extends TestBase { + event.getFileName()); } + @Override public boolean isInterrupted() { return false; } diff --git a/tests/testbench/com/vaadin/tests/dd/DragDropPane.java b/tests/testbench/com/vaadin/tests/dd/DragDropPane.java index 1b7b7b997b..3c37b5a065 100644 --- a/tests/testbench/com/vaadin/tests/dd/DragDropPane.java +++ b/tests/testbench/com/vaadin/tests/dd/DragDropPane.java @@ -51,6 +51,7 @@ public class DragDropPane extends DragAndDropWrapper implements DropHandler { this.crit = crit; } + @Override public void drop(DragAndDropEvent event) { WrapperTargetDetails ed = (WrapperTargetDetails) event @@ -135,28 +136,35 @@ public class DragDropPane extends DragAndDropWrapper implements DropHandler { html5File.setStreamVariable(new StreamVariable() { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + @Override public OutputStream getOutputStream() { return byteArrayOutputStream; } + @Override public boolean listenProgress() { return false; } + @Override public void onProgress(StreamingProgressEvent event) { } + @Override public void streamingStarted(StreamingStartEvent event) { } + @Override public void streamingFinished(StreamingEndEvent event) { l.setValue((new String(byteArrayOutputStream .toByteArray()).substring(0, 80) + "...")); } + @Override public void streamingFailed(StreamingErrorEvent event) { } + @Override public boolean isInterrupted() { return false; } @@ -172,6 +180,7 @@ public class DragDropPane extends DragAndDropWrapper implements DropHandler { return; } + @Override public AcceptCriterion getAcceptCriterion() { return crit != null ? crit : AcceptAll.get(); } diff --git a/tests/testbench/com/vaadin/tests/dd/HorizontalLayoutSortableWithWrappers.java b/tests/testbench/com/vaadin/tests/dd/HorizontalLayoutSortableWithWrappers.java index aa51dd539d..fe33bce76b 100644 --- a/tests/testbench/com/vaadin/tests/dd/HorizontalLayoutSortableWithWrappers.java +++ b/tests/testbench/com/vaadin/tests/dd/HorizontalLayoutSortableWithWrappers.java @@ -54,10 +54,12 @@ public class HorizontalLayoutSortableWithWrappers extends Window { AcceptCriterion crit = new And(new TargetDetailIs("horizontalLocation", "LEFT"), new Not(SourceIsTarget.get())); + @Override public AcceptCriterion getAcceptCriterion() { return crit; } + @Override public void drop(DragAndDropEvent dropEvent) { Transferable transferable = dropEvent.getTransferable(); if (transferable instanceof TransferableImpl) { diff --git a/tests/testbench/com/vaadin/tests/dd/HorizontalSortableCssLayoutWithWrappers.java b/tests/testbench/com/vaadin/tests/dd/HorizontalSortableCssLayoutWithWrappers.java index a77faffd2e..4e9e89add5 100644 --- a/tests/testbench/com/vaadin/tests/dd/HorizontalSortableCssLayoutWithWrappers.java +++ b/tests/testbench/com/vaadin/tests/dd/HorizontalSortableCssLayoutWithWrappers.java @@ -48,10 +48,12 @@ public class HorizontalSortableCssLayoutWithWrappers extends Window { private DropHandler dh = new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } + @Override public void drop(DragAndDropEvent dropEvent) { Transferable transferable = dropEvent.getTransferable(); if (transferable instanceof TransferableImpl) { diff --git a/tests/testbench/com/vaadin/tests/dd/MyDragSourceConnector.java b/tests/testbench/com/vaadin/tests/dd/MyDragSourceConnector.java index 2b01bad2cf..79dc90280f 100644 --- a/tests/testbench/com/vaadin/tests/dd/MyDragSourceConnector.java +++ b/tests/testbench/com/vaadin/tests/dd/MyDragSourceConnector.java @@ -14,6 +14,7 @@ import com.vaadin.tests.dd.CustomDDImplementation.MyDragSource; public class MyDragSourceConnector extends AbstractComponentConnector implements Paintable { + @Override public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { if (!isRealUpdate(uidl)) { return; diff --git a/tests/testbench/com/vaadin/tests/dd/MyDropTargetConnector.java b/tests/testbench/com/vaadin/tests/dd/MyDropTargetConnector.java index 5671efa236..9934cffd75 100644 --- a/tests/testbench/com/vaadin/tests/dd/MyDropTargetConnector.java +++ b/tests/testbench/com/vaadin/tests/dd/MyDropTargetConnector.java @@ -14,6 +14,7 @@ import com.vaadin.tests.dd.CustomDDImplementation.MyDropTarget; public class MyDropTargetConnector extends AbstractComponentConnector implements Paintable { + @Override public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { if (!isRealUpdate(uidl)) { return; diff --git a/tests/testbench/com/vaadin/tests/dd/NotPaintedAcceptSource.java b/tests/testbench/com/vaadin/tests/dd/NotPaintedAcceptSource.java index 74774f09ab..abe8553267 100644 --- a/tests/testbench/com/vaadin/tests/dd/NotPaintedAcceptSource.java +++ b/tests/testbench/com/vaadin/tests/dd/NotPaintedAcceptSource.java @@ -26,10 +26,12 @@ public class NotPaintedAcceptSource extends TestBase { source2.setDragMode(TableDragMode.ROW); target.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return new SourceIs(source1, source2); } + @Override public void drop(DragAndDropEvent event) { TableTransferable transferable = (TableTransferable) event .getTransferable(); @@ -55,6 +57,7 @@ public class NotPaintedAcceptSource extends TestBase { addComponent(horizontalLayout); addComponent(new Button("Swap sources", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (source1.getParent() != null) { horizontalLayout.replaceComponent(source1, source2); diff --git a/tests/testbench/com/vaadin/tests/dd/NotPaintedAcceptSourceInTabSheet.java b/tests/testbench/com/vaadin/tests/dd/NotPaintedAcceptSourceInTabSheet.java index ac92193764..e19bbaf2c5 100644 --- a/tests/testbench/com/vaadin/tests/dd/NotPaintedAcceptSourceInTabSheet.java +++ b/tests/testbench/com/vaadin/tests/dd/NotPaintedAcceptSourceInTabSheet.java @@ -24,10 +24,12 @@ public class NotPaintedAcceptSourceInTabSheet extends TestBase { source2.setDragMode(TableDragMode.ROW); target.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return new SourceIs(source1, source2); } + @Override public void drop(DragAndDropEvent event) { TableTransferable transferable = (TableTransferable) event .getTransferable(); diff --git a/tests/testbench/com/vaadin/tests/dd/ScrolledDropTarget.java b/tests/testbench/com/vaadin/tests/dd/ScrolledDropTarget.java index 093e12f84a..b2a0a00be0 100644 --- a/tests/testbench/com/vaadin/tests/dd/ScrolledDropTarget.java +++ b/tests/testbench/com/vaadin/tests/dd/ScrolledDropTarget.java @@ -28,10 +28,12 @@ public class ScrolledDropTarget extends TestBase { table.setDragMode(TableDragMode.ROW); table.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return VerticalLocationIs.MIDDLE; } + @Override public void drop(DragAndDropEvent event) { AbstractSelectTargetDetails targetDetails = (AbstractSelectTargetDetails) event .getTargetDetails(); @@ -44,6 +46,7 @@ public class ScrolledDropTarget extends TestBase { addComponent(table); addComponent(new Button("Scroll body", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().executeJavaScript( "document.body.style.overflow = 'auto';" diff --git a/tests/testbench/com/vaadin/tests/dd/StartHtml5Drag.java b/tests/testbench/com/vaadin/tests/dd/StartHtml5Drag.java index 2cdef65d31..1a01564220 100644 --- a/tests/testbench/com/vaadin/tests/dd/StartHtml5Drag.java +++ b/tests/testbench/com/vaadin/tests/dd/StartHtml5Drag.java @@ -27,10 +27,12 @@ public class StartHtml5Drag extends TestBase { "over here")); dropTarget.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return AcceptAll.get(); } + @Override public void drop(DragAndDropEvent event) { getWindows() .iterator() diff --git a/tests/testbench/com/vaadin/tests/dd/TreeDragStart.java b/tests/testbench/com/vaadin/tests/dd/TreeDragStart.java index 4ef7023aa6..7b3b49ae75 100644 --- a/tests/testbench/com/vaadin/tests/dd/TreeDragStart.java +++ b/tests/testbench/com/vaadin/tests/dd/TreeDragStart.java @@ -38,6 +38,7 @@ public class TreeDragStart extends TestBase { checkBox.setImmediate(true); checkBox.setValue(true); checkBox.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { tree.setEnabled(!tree.isEnabled()); } @@ -47,6 +48,7 @@ public class TreeDragStart extends TestBase { checkBox.setImmediate(true); checkBox.setValue(true); checkBox.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if ((Boolean) ((CheckBox) event.getProperty()).getValue()) { tree.setDragMode(TreeDragMode.NODE); @@ -75,6 +77,7 @@ public class TreeDragStart extends TestBase { // Allow the tree to receive drag drops and handle them tree.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { // Accept drops in the middle of container items // and below and above all items. @@ -82,6 +85,7 @@ public class TreeDragStart extends TestBase { VerticalLocationIs.MIDDLE)); } + @Override public void drop(DragAndDropEvent event) { // Wrapper for the object that is dragged DataBoundTransferable t = (DataBoundTransferable) event @@ -152,10 +156,12 @@ public class TreeDragStart extends TestBase { // Allow the table to receive drops and handle them table.setDropHandler(new DropHandler() { + @Override public AcceptCriterion getAcceptCriterion() { return new Not(VerticalLocationIs.MIDDLE); } + @Override public void drop(DragAndDropEvent event) { // Wrapper for the object that is dragged DataBoundTransferable t = (DataBoundTransferable) event diff --git a/tests/testbench/com/vaadin/tests/dd/VMyDragSource.java b/tests/testbench/com/vaadin/tests/dd/VMyDragSource.java index 7e91d2b9aa..e6c7078e8e 100644 --- a/tests/testbench/com/vaadin/tests/dd/VMyDragSource.java +++ b/tests/testbench/com/vaadin/tests/dd/VMyDragSource.java @@ -43,6 +43,7 @@ public class VMyDragSource extends Composite implements MouseDownHandler, * mouse is moved 5 pixels with left mouse key down. */ + @Override public void onMouseDown(MouseDownEvent event) { if (event.getNativeButton() == NativeEvent.BUTTON_LEFT) { mouseDown = true; @@ -50,6 +51,7 @@ public class VMyDragSource extends Composite implements MouseDownHandler, } } + @Override public void onMouseMove(MouseMoveEvent event) { if (mouseDown) { int deltaX = Math.abs(mDownEvent.getClientX() - event.getClientX()); @@ -74,6 +76,7 @@ public class VMyDragSource extends Composite implements MouseDownHandler, } + @Override public void onMouseOut(MouseOutEvent event) { mouseDown = false; mDownEvent = null; diff --git a/tests/testbench/com/vaadin/tests/dd/VMyDropTarget.java b/tests/testbench/com/vaadin/tests/dd/VMyDropTarget.java index 582c951251..627f0554f6 100644 --- a/tests/testbench/com/vaadin/tests/dd/VMyDropTarget.java +++ b/tests/testbench/com/vaadin/tests/dd/VMyDropTarget.java @@ -12,33 +12,40 @@ public class VMyDropTarget extends Composite implements VHasDropHandler, ApplicationConnection client; + @Override public void dragEnter(VDragEvent drag) { } + @Override public void dragLeave(VDragEvent drag) { // TODO Auto-generated method stub } + @Override public void dragOver(VDragEvent currentDrag) { // TODO Auto-generated method stub } + @Override public boolean drop(VDragEvent drag) { // TODO Auto-generated method stub // return true to tell DDManager do server visit return false; } + @Override public VDropHandler getDropHandler() { // Drophandler implemented by widget itself return this; } + @Override public ComponentConnector getConnector() { // TODO Auto-generated method stub return null; } + @Override public ApplicationConnection getApplicationConnection() { return client; } diff --git a/tests/testbench/com/vaadin/tests/extensions/HelloWorldExtension.java b/tests/testbench/com/vaadin/tests/extensions/HelloWorldExtension.java index 23b892be66..cb26cd7a83 100644 --- a/tests/testbench/com/vaadin/tests/extensions/HelloWorldExtension.java +++ b/tests/testbench/com/vaadin/tests/extensions/HelloWorldExtension.java @@ -13,6 +13,7 @@ public class HelloWorldExtension extends AbstractExtension { public HelloWorldExtension() { registerRpc(new HelloWorldRpc() { + @Override public void onMessageSent(String message) { Notification.show(message); } diff --git a/tests/testbench/com/vaadin/tests/extensions/HelloWorldExtensionTest.java b/tests/testbench/com/vaadin/tests/extensions/HelloWorldExtensionTest.java index 8625ffd955..001e913734 100644 --- a/tests/testbench/com/vaadin/tests/extensions/HelloWorldExtensionTest.java +++ b/tests/testbench/com/vaadin/tests/extensions/HelloWorldExtensionTest.java @@ -19,6 +19,7 @@ public class HelloWorldExtensionTest extends AbstractTestRoot { addExtension(extension); addComponent(new Button("Greet again", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { extension.greetAgain(); } diff --git a/tests/testbench/com/vaadin/tests/extensions/JavascriptManagerTest.java b/tests/testbench/com/vaadin/tests/extensions/JavascriptManagerTest.java index 65f0735ab5..a16f131475 100644 --- a/tests/testbench/com/vaadin/tests/extensions/JavascriptManagerTest.java +++ b/tests/testbench/com/vaadin/tests/extensions/JavascriptManagerTest.java @@ -22,6 +22,7 @@ public class JavascriptManagerTest extends AbstractTestRoot { addComponent(log); final JavaScript js = JavaScript.getCurrent(); js.addCallback("testing.doTest", new JavaScriptCallback() { + @Override public void call(JSONArray arguments) throws JSONException { log.log("Got " + arguments.length() + " arguments"); log.log("Argument 1 as a number: " + arguments.getInt(0)); diff --git a/tests/testbench/com/vaadin/tests/extensions/SimpleJavaScriptExtensionTest.java b/tests/testbench/com/vaadin/tests/extensions/SimpleJavaScriptExtensionTest.java index 72168c08df..7db5c8846e 100644 --- a/tests/testbench/com/vaadin/tests/extensions/SimpleJavaScriptExtensionTest.java +++ b/tests/testbench/com/vaadin/tests/extensions/SimpleJavaScriptExtensionTest.java @@ -51,11 +51,13 @@ public class SimpleJavaScriptExtensionTest extends AbstractTestRoot { public SimpleJavascriptExtension() { registerRpc(new SimpleJavaScriptExtensionServerRpc() { + @Override public void greet(String message) { Notification.show(getState().getPrefix() + message); } }); registerCallback("greetToServer", new JavaScriptCallback() { + @Override public void call(JSONArray arguments) throws JSONException { Notification.show(getState().getPrefix() + arguments.getString(0)); @@ -90,12 +92,14 @@ public class SimpleJavaScriptExtensionTest extends AbstractTestRoot { addExtension(simpleJavascriptExtension); addComponent(new Button("Send rpc greeting", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { simpleJavascriptExtension.greetRpc("Rpc greeting"); } })); addComponent(new Button("Send callback greeting", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { simpleJavascriptExtension .greetCallback("Callback greeting"); diff --git a/tests/testbench/com/vaadin/tests/fieldgroup/AbstractBeanFieldGroupTest.java b/tests/testbench/com/vaadin/tests/fieldgroup/AbstractBeanFieldGroupTest.java index b73a29efea..894944d186 100644 --- a/tests/testbench/com/vaadin/tests/fieldgroup/AbstractBeanFieldGroupTest.java +++ b/tests/testbench/com/vaadin/tests/fieldgroup/AbstractBeanFieldGroupTest.java @@ -27,6 +27,7 @@ public abstract class AbstractBeanFieldGroupTest extends TestBase { if (discardButton == null) { discardButton = new Button("Discard", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getFieldBinder().discard(); log.log("Discarded changes"); @@ -42,6 +43,7 @@ public abstract class AbstractBeanFieldGroupTest extends TestBase { showBeanButton = new Button("Show bean values", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log(getFieldBinder().getItemDataSource() .getBean().toString()); @@ -57,6 +59,7 @@ public abstract class AbstractBeanFieldGroupTest extends TestBase { commitButton = new Button("Commit"); commitButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { String msg = "Commit succesful"; try { diff --git a/tests/testbench/com/vaadin/tests/fieldgroup/BasicPersonForm.java b/tests/testbench/com/vaadin/tests/fieldgroup/BasicPersonForm.java index c86cb6f5e8..b399857b3b 100644 --- a/tests/testbench/com/vaadin/tests/fieldgroup/BasicPersonForm.java +++ b/tests/testbench/com/vaadin/tests/fieldgroup/BasicPersonForm.java @@ -84,6 +84,7 @@ public class BasicPersonForm extends TestBase { final FieldGroup fieldGroup = new BeanFieldGroup<Person>(Person.class); fieldGroup.addCommitHandler(new CommitHandler() { + @Override public void preCommit(CommitEvent commitEvent) throws CommitException { if (configuration.preCommitFails) { @@ -95,6 +96,7 @@ public class BasicPersonForm extends TestBase { } + @Override public void postCommit(CommitEvent commitEvent) throws CommitException { if (configuration.postCommitFails) { @@ -118,6 +120,7 @@ public class BasicPersonForm extends TestBase { Button commitButton = new Button("Commit", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { String msg = "Commit succesful"; try { @@ -133,6 +136,7 @@ public class BasicPersonForm extends TestBase { Button discardButton = new Button("Discard", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { fieldGroup.discard(); log.log("Discarded changes"); @@ -142,6 +146,7 @@ public class BasicPersonForm extends TestBase { Button showBean = new Button("Show bean values", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log(getPerson(fieldGroup).toString()); diff --git a/tests/testbench/com/vaadin/tests/fieldgroup/FieldBinderWithBeanValidation.java b/tests/testbench/com/vaadin/tests/fieldgroup/FieldBinderWithBeanValidation.java index 6c6cd8024b..4f83f5d0fd 100644 --- a/tests/testbench/com/vaadin/tests/fieldgroup/FieldBinderWithBeanValidation.java +++ b/tests/testbench/com/vaadin/tests/fieldgroup/FieldBinderWithBeanValidation.java @@ -45,6 +45,7 @@ public class FieldBinderWithBeanValidation extends TestBase { Button commitButton = new Button("Commit", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { String msg = "Commit succesful"; try { @@ -60,6 +61,7 @@ public class FieldBinderWithBeanValidation extends TestBase { Button discardButton = new Button("Discard", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { fieldGroup.discard(); log.log("Discarded changes"); @@ -69,6 +71,7 @@ public class FieldBinderWithBeanValidation extends TestBase { Button showBean = new Button("Show bean values", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { log.log(getPerson(fieldGroup).toString()); diff --git a/tests/testbench/com/vaadin/tests/integration/EmbedSizeTest.java b/tests/testbench/com/vaadin/tests/integration/EmbedSizeTest.java index 1b6d384e70..f1345bca13 100644 --- a/tests/testbench/com/vaadin/tests/integration/EmbedSizeTest.java +++ b/tests/testbench/com/vaadin/tests/integration/EmbedSizeTest.java @@ -22,6 +22,7 @@ public class EmbedSizeTest extends TestBase { CheckBox lazyCheckBox = new CheckBox("Lazy resize"); lazyCheckBox.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { CheckBox cb = (CheckBox) event.getProperty(); Boolean resizeLazy = cb.getValue(); @@ -35,6 +36,7 @@ public class EmbedSizeTest extends TestBase { addComponent(log); mainWindow.addListener(new Page.BrowserWindowResizeListener() { + @Override public void browserWindowResized(BrowserWindowResizeEvent event) { log.log("Resize event: " + event.getWidth() + " x " + event.getHeight()); diff --git a/tests/testbench/com/vaadin/tests/integration/IntegrationTestApplication.java b/tests/testbench/com/vaadin/tests/integration/IntegrationTestApplication.java index b2001bdd7e..c464409153 100644 --- a/tests/testbench/com/vaadin/tests/integration/IntegrationTestApplication.java +++ b/tests/testbench/com/vaadin/tests/integration/IntegrationTestApplication.java @@ -37,6 +37,7 @@ public class IntegrationTestApplication extends Application.LegacyApplication { final Label selectedLabel = new Label(); table.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { selectedLabel.setValue(table.getValue()); } diff --git a/tests/testbench/com/vaadin/tests/integration/JSR286PortletRoot.java b/tests/testbench/com/vaadin/tests/integration/JSR286PortletRoot.java index b4de4fd3da..db8d18938e 100644 --- a/tests/testbench/com/vaadin/tests/integration/JSR286PortletRoot.java +++ b/tests/testbench/com/vaadin/tests/integration/JSR286PortletRoot.java @@ -75,6 +75,7 @@ public class JSR286PortletRoot extends Root { Upload upload = new Upload("Upload a file", new Receiver() { + @Override public OutputStream receiveUpload(String filename, String mimeType) { return new ByteArrayOutputStream(); } @@ -94,11 +95,13 @@ public class JSR286PortletRoot extends Root { private class DemoPortletListener implements PortletListener { + @Override public void handleActionRequest(ActionRequest request, ActionResponse response, Root window) { getContent().addComponent(new Label("Action received")); } + @Override public void handleRenderRequest(RenderRequest request, RenderResponse response, Root window) { // Portlet up-and-running, enable stuff @@ -173,11 +176,13 @@ public class JSR286PortletRoot extends Root { } } + @Override public void handleEventRequest(EventRequest request, EventResponse response, Root window) { // events not used by this test } + @Override public void handleResourceRequest(ResourceRequest request, ResourceResponse response, Root window) { // nothing special to do here diff --git a/tests/testbench/com/vaadin/tests/integration/LiferayThemeDemo.java b/tests/testbench/com/vaadin/tests/integration/LiferayThemeDemo.java index 78b8f812b9..1bcf455aba 100644 --- a/tests/testbench/com/vaadin/tests/integration/LiferayThemeDemo.java +++ b/tests/testbench/com/vaadin/tests/integration/LiferayThemeDemo.java @@ -71,10 +71,12 @@ public class LiferayThemeDemo extends Application.LegacyApplication { private Action.Handler handler = new Action.Handler() { + @Override public void handleAction(Action action, Object sender, Object target) { // NOP } + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { new Action("Open"), @@ -318,6 +320,7 @@ public class LiferayThemeDemo extends Application.LegacyApplication { closable.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Iterator<Component> it = ts.getComponentIterator(); for (; it.hasNext();) { @@ -415,6 +418,7 @@ public class LiferayThemeDemo extends Application.LegacyApplication { ContentMode.XHTML)); tabs.addListener(new TabSheet.SelectedTabChangeListener() { + @Override public void selectedTabChange(SelectedTabChangeEvent event) { if (event.getTabSheet().getSelectedTab() == l) { getMainWindow().addWindow(w); @@ -472,6 +476,7 @@ public class LiferayThemeDemo extends Application.LegacyApplication { lockCheckBox.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { sp.setLocked((Boolean) event.getProperty().getValue()); sp2.setLocked((Boolean) event.getProperty().getValue()); @@ -595,6 +600,7 @@ public class LiferayThemeDemo extends Application.LegacyApplication { l.addComponent(new Label("Humanized", ContentMode.XHTML)); Button show = new Button("Humanized Notification", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Notification notification = new Notification( title.getValue(), message.getValue()); @@ -606,6 +612,7 @@ public class LiferayThemeDemo extends Application.LegacyApplication { l.addComponent(new Label("Warning", ContentMode.XHTML)); show = new Button("Warning Notification", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { new Notification(title.getValue(), message.getValue(), Notification.TYPE_WARNING_MESSAGE, true).show(Page @@ -617,6 +624,7 @@ public class LiferayThemeDemo extends Application.LegacyApplication { l.addComponent(new Label("Error", ContentMode.XHTML)); show = new Button("Error Notification", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { new Notification(title.getValue(), message.getValue(), Notification.TYPE_ERROR_MESSAGE, true).show(Page @@ -628,6 +636,7 @@ public class LiferayThemeDemo extends Application.LegacyApplication { l.addComponent(new Label("Tray", ContentMode.XHTML)); show = new Button("Tray Notification", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { new Notification(title.getValue(), message.getValue(), Notification.TYPE_TRAY_NOTIFICATION, true).show(Page @@ -694,6 +703,7 @@ public class LiferayThemeDemo extends Application.LegacyApplication { final MenuBar.MenuItem find = edit.addItem("Find/Replace", null); find.addItem("Google Search", new Command() { + @Override public void menuSelected(MenuItem selectedItem) { getMainWindow().open( new ExternalResource("http://www.google.com")); diff --git a/tests/testbench/com/vaadin/tests/layouts/AbsoluteLayoutAddRemove.java b/tests/testbench/com/vaadin/tests/layouts/AbsoluteLayoutAddRemove.java index 6193fd238e..b2cadebd02 100644 --- a/tests/testbench/com/vaadin/tests/layouts/AbsoluteLayoutAddRemove.java +++ b/tests/testbench/com/vaadin/tests/layouts/AbsoluteLayoutAddRemove.java @@ -31,6 +31,7 @@ public class AbsoluteLayoutAddRemove extends TestBase { final Button b = new Button("Add", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (l.getParent() == null) { al.addComponent(l); diff --git a/tests/testbench/com/vaadin/tests/layouts/CaptionsInLayouts.java b/tests/testbench/com/vaadin/tests/layouts/CaptionsInLayouts.java index 4388639893..77b8e249ba 100644 --- a/tests/testbench/com/vaadin/tests/layouts/CaptionsInLayouts.java +++ b/tests/testbench/com/vaadin/tests/layouts/CaptionsInLayouts.java @@ -61,6 +61,7 @@ public class CaptionsInLayouts extends TestBase { Button b = new Button("Add caption text"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { prependCaptions("a"); } @@ -81,6 +82,7 @@ public class CaptionsInLayouts extends TestBase { requiredToggle.setCaption("Required"); requiredToggle.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { setRequired((Boolean) event.getProperty().getValue()); } @@ -94,6 +96,7 @@ public class CaptionsInLayouts extends TestBase { iconToggle.setCaption("Icons"); iconToggle.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { setIcon((Boolean) event.getProperty().getValue()); } @@ -125,6 +128,7 @@ public class CaptionsInLayouts extends TestBase { errorToggle.setCaption("Error"); errorToggle.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { setError((Boolean) event.getProperty().getValue()); } @@ -250,6 +254,7 @@ public class CaptionsInLayouts extends TestBase { layoutSelect.setImmediate(true); layoutSelect.addListener(new ValueChangeListener() { + @Override @SuppressWarnings("unchecked") public void valueChange(ValueChangeEvent event) { Item i = layoutSelect.getItem(event.getProperty().getValue()); diff --git a/tests/testbench/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java b/tests/testbench/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java index f1e05b6fee..51f9e2d88e 100644 --- a/tests/testbench/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java +++ b/tests/testbench/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java @@ -45,6 +45,7 @@ public class ComplexGLColumnExpansionWithColSpan extends AbstractTestCase { b1.setWidth(270, Sizeable.UNITS_PIXELS); b2.setWidth(270, Sizeable.UNITS_PIXELS); b1.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { cols++; gl.setColumns(cols); @@ -70,6 +71,7 @@ public class ComplexGLColumnExpansionWithColSpan extends AbstractTestCase { Button restart = new Button("restart"); mainLayout.addComponent(restart); restart.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { mainLayout.getRoot().getApplication().close(); } diff --git a/tests/testbench/com/vaadin/tests/layouts/CssLayoutCustomCss.java b/tests/testbench/com/vaadin/tests/layouts/CssLayoutCustomCss.java index 0e2d570101..792bcb1aab 100644 --- a/tests/testbench/com/vaadin/tests/layouts/CssLayoutCustomCss.java +++ b/tests/testbench/com/vaadin/tests/layouts/CssLayoutCustomCss.java @@ -46,6 +46,7 @@ public class CssLayoutCustomCss extends TestBase implements ClickListener { cb.setImmediate(true); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { layout.setMargin(cb.getValue()); } @@ -73,6 +74,7 @@ public class CssLayoutCustomCss extends TestBase implements ClickListener { return null; } + @Override public void buttonClick(ClickEvent event) { Button b = event.getButton(); if (b.getCaption().contains("not ")) { diff --git a/tests/testbench/com/vaadin/tests/layouts/CssLayoutRemoveComponent.java b/tests/testbench/com/vaadin/tests/layouts/CssLayoutRemoveComponent.java index ef07b2c5f5..093dc782fb 100644 --- a/tests/testbench/com/vaadin/tests/layouts/CssLayoutRemoveComponent.java +++ b/tests/testbench/com/vaadin/tests/layouts/CssLayoutRemoveComponent.java @@ -16,6 +16,7 @@ public class CssLayoutRemoveComponent extends TestBase { final TextField tf = new TextField("Caption1"); Button b = new Button("Remove field ", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { layout.removeComponent(tf); } diff --git a/tests/testbench/com/vaadin/tests/layouts/CssLayoutRemoveComponentWithCaption.java b/tests/testbench/com/vaadin/tests/layouts/CssLayoutRemoveComponentWithCaption.java index 4f081af347..df4fc8615d 100644 --- a/tests/testbench/com/vaadin/tests/layouts/CssLayoutRemoveComponentWithCaption.java +++ b/tests/testbench/com/vaadin/tests/layouts/CssLayoutRemoveComponentWithCaption.java @@ -15,6 +15,7 @@ public class CssLayoutRemoveComponentWithCaption extends TestBase { final TextField tf = new TextField("Caption"); Button b = new Button("Remove field and add new", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { layout.removeComponent(tf); addComponent(new TextField("new field")); diff --git a/tests/testbench/com/vaadin/tests/layouts/CssLayoutSizeChangePropagation.java b/tests/testbench/com/vaadin/tests/layouts/CssLayoutSizeChangePropagation.java index 0be605c795..ed3c5e66d3 100644 --- a/tests/testbench/com/vaadin/tests/layouts/CssLayoutSizeChangePropagation.java +++ b/tests/testbench/com/vaadin/tests/layouts/CssLayoutSizeChangePropagation.java @@ -35,6 +35,7 @@ public class CssLayoutSizeChangePropagation extends TestBase { button.addListener(new ClickListener() { boolean bool = true; + @Override public void buttonClick(ClickEvent event) { sp.setExpandRatio(cssLayout, bool ? 1 : 0); bool = !bool; diff --git a/tests/testbench/com/vaadin/tests/layouts/DeepComponentTrees.java b/tests/testbench/com/vaadin/tests/layouts/DeepComponentTrees.java index 47cb095efa..e119b91b82 100644 --- a/tests/testbench/com/vaadin/tests/layouts/DeepComponentTrees.java +++ b/tests/testbench/com/vaadin/tests/layouts/DeepComponentTrees.java @@ -44,6 +44,7 @@ public class DeepComponentTrees extends TestBase { final Button b = new Button("Go try your luck with " + i + " layouts!"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { FF2KILLER(i++); b.setCaption("Go try your luck with " + i + " layouts!"); @@ -60,6 +61,7 @@ public class DeepComponentTrees extends TestBase { s.addItem(GridLayout.class); s.addListener(new ComboBox.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Object value = s.getValue(); if (!value.equals("-- Choose value --")) { diff --git a/tests/testbench/com/vaadin/tests/layouts/FormLayoutWithInvisibleComponent.java b/tests/testbench/com/vaadin/tests/layouts/FormLayoutWithInvisibleComponent.java index 7fc33edfc7..f596fdb77e 100644 --- a/tests/testbench/com/vaadin/tests/layouts/FormLayoutWithInvisibleComponent.java +++ b/tests/testbench/com/vaadin/tests/layouts/FormLayoutWithInvisibleComponent.java @@ -27,6 +27,7 @@ public class FormLayoutWithInvisibleComponent extends TestBase { CheckBox control = new CheckBox("Messages On/Off"); control.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { messages.setVisible((Boolean) event.getProperty().getValue()); messages.setRequired(true); diff --git a/tests/testbench/com/vaadin/tests/layouts/GridLayoutCaptions.java b/tests/testbench/com/vaadin/tests/layouts/GridLayoutCaptions.java index 9ad9adb43a..8713208dc6 100644 --- a/tests/testbench/com/vaadin/tests/layouts/GridLayoutCaptions.java +++ b/tests/testbench/com/vaadin/tests/layouts/GridLayoutCaptions.java @@ -29,6 +29,7 @@ public class GridLayoutCaptions extends TestBase { private FormFieldFactory fff = new FormFieldFactory() { + @Override public Field<?> createField(Item item, Object propertyId, Component uiContext) { @@ -195,6 +196,7 @@ public class GridLayoutCaptions extends TestBase { Button b = new Button("Give me an error!", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { aFormWithGl.createErrors(); @@ -205,6 +207,7 @@ public class GridLayoutCaptions extends TestBase { Button b2 = new Button("Get rid of an error!", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { aFormWithGl.clearErrors(); diff --git a/tests/testbench/com/vaadin/tests/layouts/GridLayoutExpandRatioModification.java b/tests/testbench/com/vaadin/tests/layouts/GridLayoutExpandRatioModification.java index 314a8d7b03..84f27e5f03 100644 --- a/tests/testbench/com/vaadin/tests/layouts/GridLayoutExpandRatioModification.java +++ b/tests/testbench/com/vaadin/tests/layouts/GridLayoutExpandRatioModification.java @@ -59,6 +59,7 @@ public class GridLayoutExpandRatioModification extends TestBase implements vl2.setSizeFull(); } + @Override public void buttonClick(ClickEvent event) { if (isVisible) { mainLayout.setRowExpandRatio(2, 0); diff --git a/tests/testbench/com/vaadin/tests/layouts/GridLayoutMoveComponent.java b/tests/testbench/com/vaadin/tests/layouts/GridLayoutMoveComponent.java index 1442dc3421..efd1277653 100644 --- a/tests/testbench/com/vaadin/tests/layouts/GridLayoutMoveComponent.java +++ b/tests/testbench/com/vaadin/tests/layouts/GridLayoutMoveComponent.java @@ -29,6 +29,7 @@ public class GridLayoutMoveComponent extends TestBase { addComponent(new Button("Shift label right", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { // Moving component from 0,0 -> 1,0 grid.removeComponent(l); @@ -38,6 +39,7 @@ public class GridLayoutMoveComponent extends TestBase { addComponent(new Button("Shift button right", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { grid.removeComponent(b); grid.addComponent(b, 1, 1); @@ -46,6 +48,7 @@ public class GridLayoutMoveComponent extends TestBase { addComponent(new Button("Shift text field right", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { grid.removeComponent(tf); grid.addComponent(tf, 1, 2); diff --git a/tests/testbench/com/vaadin/tests/layouts/GridLayoutNPE.java b/tests/testbench/com/vaadin/tests/layouts/GridLayoutNPE.java index 6424177fe1..3531a4e13c 100644 --- a/tests/testbench/com/vaadin/tests/layouts/GridLayoutNPE.java +++ b/tests/testbench/com/vaadin/tests/layouts/GridLayoutNPE.java @@ -31,6 +31,7 @@ public class GridLayoutNPE extends TestBase { b.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { gl.removeComponent(toRemove); @@ -50,6 +51,7 @@ public class GridLayoutNPE extends TestBase { b2.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { toEdit.setValue("Second (edited)"); } diff --git a/tests/testbench/com/vaadin/tests/layouts/GridLayoutRemoveFinalRow.java b/tests/testbench/com/vaadin/tests/layouts/GridLayoutRemoveFinalRow.java index 8689503332..5d45f72142 100644 --- a/tests/testbench/com/vaadin/tests/layouts/GridLayoutRemoveFinalRow.java +++ b/tests/testbench/com/vaadin/tests/layouts/GridLayoutRemoveFinalRow.java @@ -26,6 +26,7 @@ public class GridLayoutRemoveFinalRow extends TestBase { Button removeRowBtn = new Button("Remove row", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { layout.removeRow(0); } diff --git a/tests/testbench/com/vaadin/tests/layouts/GridLayoutWidthChange.java b/tests/testbench/com/vaadin/tests/layouts/GridLayoutWidthChange.java index 78984d33a2..c0e6b27c7d 100644 --- a/tests/testbench/com/vaadin/tests/layouts/GridLayoutWidthChange.java +++ b/tests/testbench/com/vaadin/tests/layouts/GridLayoutWidthChange.java @@ -43,6 +43,7 @@ public class GridLayoutWidthChange extends TestBase { Button testButton = new Button("Reduce GridLayout parent width", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { cc.setWidth((cc.getWidth() - 10) + "px"); } diff --git a/tests/testbench/com/vaadin/tests/layouts/HiddenHorizontalLayout.java b/tests/testbench/com/vaadin/tests/layouts/HiddenHorizontalLayout.java index 8c05df6ca9..52df4553a9 100644 --- a/tests/testbench/com/vaadin/tests/layouts/HiddenHorizontalLayout.java +++ b/tests/testbench/com/vaadin/tests/layouts/HiddenHorizontalLayout.java @@ -47,6 +47,7 @@ public class HiddenHorizontalLayout extends TestBase { Button b = new Button("toggle layout visibility", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { hl.setVisible(!hl.isVisible()); } diff --git a/tests/testbench/com/vaadin/tests/layouts/LayoutPerformanceTests.java b/tests/testbench/com/vaadin/tests/layouts/LayoutPerformanceTests.java index 23cf868085..57c6173895 100644 --- a/tests/testbench/com/vaadin/tests/layouts/LayoutPerformanceTests.java +++ b/tests/testbench/com/vaadin/tests/layouts/LayoutPerformanceTests.java @@ -213,12 +213,14 @@ public class LayoutPerformanceTests extends TestBase { controls.addComponent(childAmount); controls.addComponent(new Button("Clear", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { setTestLayout(new Label("")); } })); controls.addComponent(new Button("Apply", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { SampleType leafType = (SampleType) leafSelector.getValue(); if (leafType == null) { diff --git a/tests/testbench/com/vaadin/tests/layouts/MovingComponentsWhileOldParentInvisible.java b/tests/testbench/com/vaadin/tests/layouts/MovingComponentsWhileOldParentInvisible.java index bf5de2976f..5f91786571 100644 --- a/tests/testbench/com/vaadin/tests/layouts/MovingComponentsWhileOldParentInvisible.java +++ b/tests/testbench/com/vaadin/tests/layouts/MovingComponentsWhileOldParentInvisible.java @@ -53,6 +53,7 @@ public class MovingComponentsWhileOldParentInvisible extends TestBase { } componentContainerSelect.addListener(new ValueChangeListener() { + @Override @SuppressWarnings("unchecked") public void valueChange(ValueChangeEvent event) { ComponentContainer oldCC = cc; @@ -69,6 +70,7 @@ public class MovingComponentsWhileOldParentInvisible extends TestBase { Button but1 = new Button("Move in and out of component container", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { cc.setVisible(!cc.isVisible()); if (!cc.isVisible()) { diff --git a/tests/testbench/com/vaadin/tests/layouts/MovingInvisibleField.java b/tests/testbench/com/vaadin/tests/layouts/MovingInvisibleField.java index 23ae31d786..1285e5b52e 100644 --- a/tests/testbench/com/vaadin/tests/layouts/MovingInvisibleField.java +++ b/tests/testbench/com/vaadin/tests/layouts/MovingInvisibleField.java @@ -23,6 +23,7 @@ public class MovingInvisibleField extends TestBase { Button b = new Button("Move hidden textfield to other layout"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (layout1.getComponentIndex(tfHidden) != -1) { layout2.addComponent(tfVisible); diff --git a/tests/testbench/com/vaadin/tests/layouts/OrderedLayoutBasics.java b/tests/testbench/com/vaadin/tests/layouts/OrderedLayoutBasics.java index 9f18ef7887..2ceb6428ed 100644 --- a/tests/testbench/com/vaadin/tests/layouts/OrderedLayoutBasics.java +++ b/tests/testbench/com/vaadin/tests/layouts/OrderedLayoutBasics.java @@ -1005,6 +1005,7 @@ public class OrderedLayoutBasics extends TestBase { private Button createAddButton(AbstractOrderedLayout ol) { Button b = new Button("Add before", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { addBefore((AbstractOrderedLayout) event.getButton().getData(), event.getButton().getParent(), ""); @@ -1019,6 +1020,7 @@ public class OrderedLayoutBasics extends TestBase { private Button createWideAddButton(AbstractOrderedLayout ol) { Button b = new Button("Add 100% before", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { addBefore((AbstractOrderedLayout) event.getButton().getData(), event.getButton().getParent(), "100%"); @@ -1033,6 +1035,7 @@ public class OrderedLayoutBasics extends TestBase { private Button createRemoveButton(AbstractOrderedLayout ol, String suffix) { Button b = new Button("Remove this " + suffix, new ClickListener() { + @Override public void buttonClick(ClickEvent event) { remove((AbstractOrderedLayout) event.getButton().getData(), event.getButton().getParent()); diff --git a/tests/testbench/com/vaadin/tests/layouts/TestAbsoluteLayout.java b/tests/testbench/com/vaadin/tests/layouts/TestAbsoluteLayout.java index 2f0f16b4a5..d2f14c114e 100644 --- a/tests/testbench/com/vaadin/tests/layouts/TestAbsoluteLayout.java +++ b/tests/testbench/com/vaadin/tests/layouts/TestAbsoluteLayout.java @@ -130,6 +130,7 @@ public class TestAbsoluteLayout extends TestBase { Button componentChooser = new Button("choose component to edit"); componentChooser.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { final Window chooser = new Window("Choose component"); chooser.getContent().setSizeUndefined(); @@ -166,6 +167,7 @@ public class TestAbsoluteLayout extends TestBase { select.setImmediate(true); select.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { editcomponent((Component) event.getProperty() .getValue()); @@ -185,6 +187,7 @@ public class TestAbsoluteLayout extends TestBase { Button addComp = new Button("add component"); addComp.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { final Window chooser = new Window( "Choose component type to add"); @@ -235,6 +238,7 @@ public class TestAbsoluteLayout extends TestBase { select.setImmediate(true); select.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Class<?> c = (Class<?>) event.getProperty() .getValue(); @@ -279,6 +283,7 @@ public class TestAbsoluteLayout extends TestBase { addComponent(positionEditor); Button b = new Button("Commit changes", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { positionEditor.commit(); componentEditor.commit(); diff --git a/tests/testbench/com/vaadin/tests/layouts/TestLayoutClickListeners.java b/tests/testbench/com/vaadin/tests/layouts/TestLayoutClickListeners.java index 619e4581fa..b998abeb02 100644 --- a/tests/testbench/com/vaadin/tests/layouts/TestLayoutClickListeners.java +++ b/tests/testbench/com/vaadin/tests/layouts/TestLayoutClickListeners.java @@ -60,6 +60,7 @@ public class TestLayoutClickListeners extends AbstractTestCase { al.addComponent(new Button("A button with its own click listener", new Button.ClickListener() { + @Override public void buttonClick( com.vaadin.ui.Button.ClickEvent event) { log.log("Button " + event.getButton().getCaption() @@ -69,6 +70,7 @@ public class TestLayoutClickListeners extends AbstractTestCase { })); al.addListener(new LayoutClickListener() { + @Override public void layoutClick(LayoutClickEvent event) { logLayoutClick("AbsoluteLayout", event); } @@ -92,6 +94,7 @@ public class TestLayoutClickListeners extends AbstractTestCase { cl.addComponent(new Button("A button with its own click listener", new Button.ClickListener() { + @Override public void buttonClick( com.vaadin.ui.Button.ClickEvent event) { log.log("Button " + event.getButton().getCaption() @@ -101,6 +104,7 @@ public class TestLayoutClickListeners extends AbstractTestCase { })); cl.addListener(new LayoutClickListener() { + @Override public void layoutClick(LayoutClickEvent event) { logLayoutClick("CSSLayout", event); } @@ -125,6 +129,7 @@ public class TestLayoutClickListeners extends AbstractTestCase { gl.addListener(new LayoutClickListener() { + @Override public void layoutClick(LayoutClickEvent event) { logLayoutClick("GridLayout", event); } @@ -166,6 +171,7 @@ public class TestLayoutClickListeners extends AbstractTestCase { gl.addListener(new LayoutClickListener() { + @Override public void layoutClick(LayoutClickEvent event) { logLayoutClick("VerticalLayout", event); diff --git a/tests/testbench/com/vaadin/tests/layouts/TestLayoutPerformance.java b/tests/testbench/com/vaadin/tests/layouts/TestLayoutPerformance.java index 3d496fa446..d41fbac1c1 100644 --- a/tests/testbench/com/vaadin/tests/layouts/TestLayoutPerformance.java +++ b/tests/testbench/com/vaadin/tests/layouts/TestLayoutPerformance.java @@ -65,6 +65,7 @@ public class TestLayoutPerformance extends TestBase { b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { int components = Integer.parseInt(n.getValue()); Layout layout = getCurrentLayout(); diff --git a/tests/testbench/com/vaadin/tests/layouts/VerticalLayoutExpandRatioModification.java b/tests/testbench/com/vaadin/tests/layouts/VerticalLayoutExpandRatioModification.java index 44a1e27cb8..916a82bb85 100644 --- a/tests/testbench/com/vaadin/tests/layouts/VerticalLayoutExpandRatioModification.java +++ b/tests/testbench/com/vaadin/tests/layouts/VerticalLayoutExpandRatioModification.java @@ -55,6 +55,7 @@ public class VerticalLayoutExpandRatioModification extends TestBase implements vl2.setSizeFull(); } + @Override public void buttonClick(ClickEvent event) { if (isVisible) { mainLayout.setExpandRatio(vl2, 0); diff --git a/tests/testbench/com/vaadin/tests/layouts/VerticalLayoutWithRelativeSizeComponentsInitiallyHidden.java b/tests/testbench/com/vaadin/tests/layouts/VerticalLayoutWithRelativeSizeComponentsInitiallyHidden.java index 98c5425bc6..f3d4029663 100644 --- a/tests/testbench/com/vaadin/tests/layouts/VerticalLayoutWithRelativeSizeComponentsInitiallyHidden.java +++ b/tests/testbench/com/vaadin/tests/layouts/VerticalLayoutWithRelativeSizeComponentsInitiallyHidden.java @@ -43,6 +43,7 @@ public class VerticalLayoutWithRelativeSizeComponentsInitiallyHidden extends "Click to set bar visible. Button should stay visible."); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { bar.setVisible(true); foobar.setVisible(true); diff --git a/tests/testbench/com/vaadin/tests/layouts/layouttester/GridLayoutTests.java b/tests/testbench/com/vaadin/tests/layouts/layouttester/GridLayoutTests.java index 467705a103..d53fda1748 100644 --- a/tests/testbench/com/vaadin/tests/layouts/layouttester/GridLayoutTests.java +++ b/tests/testbench/com/vaadin/tests/layouts/layouttester/GridLayoutTests.java @@ -150,6 +150,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.addComponent(cc1); button1.setEnabled(false); @@ -159,6 +160,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.replaceComponent(x22, cc2); button2.setEnabled(false); @@ -168,6 +170,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.moveComponentsFrom(source); button3.setEnabled(false); @@ -177,6 +180,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button4.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.removeComponent(1, 1); button4.setEnabled(false); @@ -187,6 +191,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button5.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.removeRow(0); button5.setEnabled(false); @@ -196,6 +201,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button6.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.removeComponent(row3); button6.setEnabled(false); @@ -230,6 +236,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { x3.setSizeFull(); button1.setEnabled(false); @@ -239,6 +246,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { x3.setWidth("200px"); button2.setEnabled(false); @@ -248,6 +256,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { x22.setWidth("200px"); button3.setEnabled(false); @@ -257,6 +266,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button4.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { x22.setSizeUndefined(); ((Table) x22).addItem(new Object[] { "NEW ROW1" }, 3); @@ -292,6 +302,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setColumnExpandRatio(3, 1); button1.setEnabled(false); @@ -301,6 +312,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setColumnExpandRatio(0, 0.25f); glo.setColumnExpandRatio(1, 0.25f); @@ -313,6 +325,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setRowExpandRatio(0, 0.5f); button3.setEnabled(false); @@ -322,6 +335,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button4.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setRowExpandRatio(3, 0.3f); button4.setEnabled(false); @@ -394,6 +408,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setHeight("350px"); button1.setEnabled(false); @@ -403,6 +418,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setSizeUndefined(); glo.addComponent(new Label("--- NEW LABEL ---")); @@ -413,6 +429,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setWidth("75%"); glo.setHeight("75%"); @@ -423,6 +440,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button4.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setSizeFull(); button4.setEnabled(false); @@ -457,6 +475,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setMargin(true); button1.setEnabled(false); @@ -466,6 +485,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setSpacing(true); button2.setEnabled(false); @@ -475,6 +495,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setMargin(false); button3.setEnabled(false); @@ -484,6 +505,7 @@ public class GridLayoutTests extends AbstractLayoutTests { button4.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { glo.setSpacing(false); button4.setEnabled(false); diff --git a/tests/testbench/com/vaadin/tests/layouts/layouttester/HorizontalLayoutTests.java b/tests/testbench/com/vaadin/tests/layouts/layouttester/HorizontalLayoutTests.java index bd60e9ff21..182d4fd1d5 100644 --- a/tests/testbench/com/vaadin/tests/layouts/layouttester/HorizontalLayoutTests.java +++ b/tests/testbench/com/vaadin/tests/layouts/layouttester/HorizontalLayoutTests.java @@ -132,6 +132,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { addButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.addComponent(new TextField()); addButton.setEnabled(false); @@ -141,6 +142,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { replaceButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.replaceComponent(c1, c3); replaceButton.setEnabled(false); @@ -150,6 +152,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { moveButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.moveComponentsFrom(source); moveButton.setEnabled(false); @@ -159,6 +162,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { removeButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.removeComponent(c1); vlo.removeComponent(c2); @@ -203,6 +207,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { biggerButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { c.setSizeFull(); biggerButton.setEnabled(false); @@ -212,6 +217,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { smallerButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { c.setWidth("200px"); smallerButton.setEnabled(false); @@ -221,6 +227,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { originalButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { originalButton.setEnabled(false); c.setSizeUndefined(); @@ -270,6 +277,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setHeight("350px"); button1.setEnabled(false); @@ -279,6 +287,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setSizeUndefined(); vlo.addComponent(new Label("--- NEW LABEL ---")); @@ -289,6 +298,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setWidth("75%"); vlo.setHeight("75%"); @@ -299,6 +309,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button4.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setSizeFull(); button4.setEnabled(false); @@ -335,6 +346,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setExpandRatio(c1, 1.0f); button1.setEnabled(false); @@ -344,6 +356,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setExpandRatio(c1, 0.5f); vlo.setExpandRatio(c2, 0.5f); @@ -354,6 +367,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setExpandRatio(c1, 0.75f); vlo.setExpandRatio(c2, 0.25f); @@ -442,6 +456,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setMargin(true); button1.setEnabled(false); @@ -451,6 +466,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setSpacing(true); button2.setEnabled(false); @@ -460,6 +476,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setMargin(false); button3.setEnabled(false); @@ -469,6 +486,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { button4.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo.setSpacing(false); button4.setEnabled(false); diff --git a/tests/testbench/com/vaadin/tests/layouts/layouttester/LayoutTesterApplication.java b/tests/testbench/com/vaadin/tests/layouts/layouttester/LayoutTesterApplication.java index 6a524cd024..90193be7cc 100644 --- a/tests/testbench/com/vaadin/tests/layouts/layouttester/LayoutTesterApplication.java +++ b/tests/testbench/com/vaadin/tests/layouts/layouttester/LayoutTesterApplication.java @@ -35,6 +35,7 @@ public class LayoutTesterApplication extends AbstractTestCase { nextButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = -1577298910202253538L; + @Override public void buttonClick(ClickEvent event) { nextLaytout(); } @@ -106,6 +107,7 @@ public class LayoutTesterApplication extends AbstractTestCase { layoutSelector.addListener(new Property.ValueChangeListener() { private static final long serialVersionUID = -605319614765838359L; + @Override public void valueChange(ValueChangeEvent event) { layoutIndex = -1; nextLaytout(); diff --git a/tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java b/tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java index 2861acabdd..dcf0d56dcb 100644 --- a/tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java +++ b/tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java @@ -133,6 +133,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { addButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.addComponent(new TextField()); addButton.setEnabled(false); @@ -142,6 +143,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { replaceButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.replaceComponent(c1, c3); replaceButton.setEnabled(false); @@ -151,6 +153,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { moveButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.moveComponentsFrom(source); moveButton.setEnabled(false); @@ -160,6 +163,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { removeButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.removeComponent(c1); vlo2.removeComponent(c2); @@ -206,6 +210,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { biggerButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { c.setSizeFull(); biggerButton.setEnabled(false); @@ -215,6 +220,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { smallerButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { c.setWidth("200px"); smallerButton.setEnabled(false); @@ -224,6 +230,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { originalButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { originalButton.setEnabled(false); c.setSizeUndefined(); @@ -280,6 +287,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setHeight("350px"); button1.setEnabled(false); @@ -289,6 +297,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setSizeUndefined(); Label newLabel = new Label("--- NEW LABEL ---"); @@ -301,6 +310,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setWidth("75%"); vlo2.setHeight("75%"); @@ -311,6 +321,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button4.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setSizeFull(); button4.setEnabled(false); @@ -351,6 +362,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setExpandRatio(c1, 1.0f); button1.setEnabled(false); @@ -360,6 +372,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setExpandRatio(c1, 0.5f); vlo2.setExpandRatio(c2, 0.5f); @@ -370,6 +383,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setExpandRatio(c1, 0.75f); vlo2.setExpandRatio(c2, 0.25f); @@ -470,6 +484,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button1.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setMargin(true); button1.setEnabled(false); @@ -479,6 +494,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button2.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setSpacing(true); button2.setEnabled(false); @@ -488,6 +504,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button3.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setMargin(false); button3.setEnabled(false); @@ -497,6 +514,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { button4.addListener(new Button.ClickListener() { private static final long serialVersionUID = 7716267156088629379L; + @Override public void buttonClick(ClickEvent event) { vlo2.setSpacing(false); button4.setEnabled(false); diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/DynamicImageRoot.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/DynamicImageRoot.java index 9ed2bd2c75..81f225bc63 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/DynamicImageRoot.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/DynamicImageRoot.java @@ -55,6 +55,7 @@ class DynamicImageRequestHandler implements RequestHandler { public static final String IMAGE_URL = "myimage.png"; + @Override public boolean handleRequest(Application application, WrappedRequest request, WrappedResponse response) throws IOException { diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/FindCurrentRootAndApplication.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/FindCurrentRootAndApplication.java index 6bd3a166e5..ed0a5ba955 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/FindCurrentRootAndApplication.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/FindCurrentRootAndApplication.java @@ -27,6 +27,7 @@ public class FindCurrentRootAndApplication extends Root { protected void init(WrappedRequest request) { Button helloButton = new Button("Say Hello"); helloButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { String msg = "Running in "; msg += Application.getCurrent().isProductionMode() ? "production" @@ -36,6 +37,7 @@ public class FindCurrentRootAndApplication extends Root { }); helloButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Notification.show("This Root is " + Root.getCurrent().getClass().getSimpleName()); diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java index 66185ef6a6..af60b0e9e3 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java @@ -35,6 +35,7 @@ public class IntegerTextFieldDataSource extends AbstractTestRoot { final TextField textField = new TextField("Text field", integerProperty); Button submitButton = new Button("Submit value", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { String uiValue = textField.getValue(); Integer propertyValue = integerProperty.getValue(); diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldStandalone.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldStandalone.java index 9c720e45a5..f733b5df40 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldStandalone.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldStandalone.java @@ -19,6 +19,7 @@ public class IntegerTextFieldStandalone extends AbstractTestRoot { textField.setConverter(new StringToIntegerConverter()); Button submitButton = new Button("Submit value", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { String uiValue = textField.getValue(); try { diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/StringMyTypeConverter.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/StringMyTypeConverter.java index 4ccd73b2b3..c2393300f2 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/StringMyTypeConverter.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/StringMyTypeConverter.java @@ -24,6 +24,7 @@ public class StringMyTypeConverter extends AbstractTestRoot { addComponent(textField); addComponent(new Button("Submit value", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { Name name = (Name) textField.getConvertedValue(); @@ -50,6 +51,7 @@ public class StringMyTypeConverter extends AbstractTestRoot { } class StringToNameConverter implements Converter<String, Name> { + @Override public Name convertToModel(String text, Locale locale) throws ConversionException { if (text == null) { @@ -63,6 +65,7 @@ class StringToNameConverter implements Converter<String, Name> { return new Name(parts[0], parts[1]); } + @Override public String convertToPresentation(Name name, Locale locale) throws ConversionException { if (name == null) { @@ -72,10 +75,12 @@ class StringToNameConverter implements Converter<String, Name> { } } + @Override public Class<Name> getModelType() { return Name.class; } + @Override public Class<String> getPresentationType() { return String.class; } diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java index e98b698c07..bf497a7b86 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java @@ -30,6 +30,7 @@ public class UsingUriFragments extends Root { // React to fragment changes getPage().addListener(new FragmentChangedListener() { + @Override public void fragmentChanged(FragmentChangedEvent source) { handleFragment(source.getFragment()); } @@ -40,6 +41,7 @@ public class UsingUriFragments extends Root { addComponent(new Button("Show and set fragment", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { handleFragment(getPage().getFragment()); getPage().setFragment("customFragment"); diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyComponent.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyComponent.java index 5c4fa9d10b..e67a7903c8 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyComponent.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyComponent.java @@ -14,6 +14,7 @@ public class MyComponent extends AbstractComponent { private int clickCount = 0; private MyComponentServerRpc rpc = new MyComponentServerRpc() { + @Override public void clicked(MouseEventDetails mouseDetails) { clickCount++; diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyPickerConnector.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyPickerConnector.java index ea278da218..98ff0386b3 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyPickerConnector.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyPickerConnector.java @@ -29,6 +29,7 @@ public class MyPickerConnector extends AbstractComponentConnector implements } private final ElementResizeListener listener = new ElementResizeListener() { + @Override public void onElementResize(ElementResizeEvent e) { int buttonWidth = getLayoutManager().getOuterWidth(e.getElement()); buttonWidth -= getLayoutManager().getMarginRight(e.getElement()); @@ -52,6 +53,7 @@ public class MyPickerConnector extends AbstractComponentConnector implements getLayoutManager().unregisterDependency(this, button); } + @Override public void layout() { Element button = getWidget().getWidget(1).getElement(); int buttonWidth = getLayoutManager().getOuterWidth(button); diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyPickerWidget.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyPickerWidget.java index 213a1b9e6b..7818ac4f99 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyPickerWidget.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a2/MyPickerWidget.java @@ -27,6 +27,7 @@ public class MyPickerWidget extends ComplexPanel { add(button, getElement()); button.addClickHandler(new ClickHandler() { + @Override public void onClick(ClickEvent event) { Window.alert("Calendar picker not yet supported!"); } diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a2/WidgetContainer.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a2/WidgetContainer.java index 3c2f9a68b4..40bb7b68b8 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a2/WidgetContainer.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a2/WidgetContainer.java @@ -25,6 +25,7 @@ public class WidgetContainer extends AbstractComponentContainer { requestRepaint(); } + @Override public void replaceComponent(Component oldComponent, Component newComponent) { int index = children.indexOf(oldComponent); if (index != -1) { @@ -36,10 +37,12 @@ public class WidgetContainer extends AbstractComponentContainer { } } + @Override public int getComponentCount() { return children.size(); } + @Override public Iterator<Component> getComponentIterator() { return children.iterator(); } diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerRoot.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerRoot.java index 3b24ec400e..fae4265750 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerRoot.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerRoot.java @@ -24,6 +24,7 @@ public class WidgetcontainerRoot extends Root { "Click the button to add components to the WidgetContainer.")); Button button = new Button("Add more components", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Random randomGenerator = new Random(); int random = randomGenerator.nextInt(3); diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a3/AnalyticsRoot.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a3/AnalyticsRoot.java index 85f9bb2d2e..6f59aa765e 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a3/AnalyticsRoot.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a3/AnalyticsRoot.java @@ -17,6 +17,7 @@ public class AnalyticsRoot extends Root { analytics.extend(this); addComponent(new Button("Track pageview", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { analytics.trackPageview("/fake/url"); } diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a3/Flot.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a3/Flot.java index a6b5cedc47..946a67d7fd 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a3/Flot.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a3/Flot.java @@ -21,12 +21,14 @@ import com.vaadin.ui.Notification; public class Flot extends AbstractJavaScriptComponent { public Flot() { registerRpc(new FlotClickRpc() { + @Override public void onPlotClick(int seriesIndex, int dataIndex) { Notification.show("Clicked on [" + seriesIndex + ", " + dataIndex + "]"); } }); registerCallback("onPlotClick", new JavaScriptCallback() { + @Override public void call(JSONArray arguments) throws JSONException { int seriesIndex = arguments.getInt(0); int dataIndex = arguments.getInt(1); diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a3/FlotJavaScriptRoot.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a3/FlotJavaScriptRoot.java index 00104df9dd..2b5e7337c8 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a3/FlotJavaScriptRoot.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a3/FlotJavaScriptRoot.java @@ -21,6 +21,7 @@ public class FlotJavaScriptRoot extends Root { addComponent(flot); addComponent(new Button("Highlight point", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { flot.highlight(0, 3); } diff --git a/tests/testbench/com/vaadin/tests/requesthandlers/AppResource404.java b/tests/testbench/com/vaadin/tests/requesthandlers/AppResource404.java index 1d98e35dd5..2f5c1177fa 100644 --- a/tests/testbench/com/vaadin/tests/requesthandlers/AppResource404.java +++ b/tests/testbench/com/vaadin/tests/requesthandlers/AppResource404.java @@ -22,6 +22,7 @@ public class AppResource404 extends TestBase { addComponent(new Button("Remove existing resrouce", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { removeResource(resource); } diff --git a/tests/testbench/com/vaadin/tests/resources/DownloadLargeFileResource.java b/tests/testbench/com/vaadin/tests/resources/DownloadLargeFileResource.java index 3d7379aafe..cb8963c3d4 100644 --- a/tests/testbench/com/vaadin/tests/resources/DownloadLargeFileResource.java +++ b/tests/testbench/com/vaadin/tests/resources/DownloadLargeFileResource.java @@ -22,6 +22,7 @@ public class DownloadLargeFileResource extends TestBase { + String.format("%.1f", fileSize / 1024.0 / 1024.0) + "MB file", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { download(); } diff --git a/tests/testbench/com/vaadin/tests/resources/NonExistingFileResource.java b/tests/testbench/com/vaadin/tests/resources/NonExistingFileResource.java index d3bbeef99a..b6dbcfca97 100644 --- a/tests/testbench/com/vaadin/tests/resources/NonExistingFileResource.java +++ b/tests/testbench/com/vaadin/tests/resources/NonExistingFileResource.java @@ -22,6 +22,7 @@ public class NonExistingFileResource extends TestBase { Button b = new Button("Download " + filename); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { FileResource res = new FileResource(new File(getContext() .getBaseDirectory() + "/" + filename), diff --git a/tests/testbench/com/vaadin/tests/resources/ResourceDownload.java b/tests/testbench/com/vaadin/tests/resources/ResourceDownload.java index 69fd0b2b81..8ab6ce153d 100644 --- a/tests/testbench/com/vaadin/tests/resources/ResourceDownload.java +++ b/tests/testbench/com/vaadin/tests/resources/ResourceDownload.java @@ -17,6 +17,7 @@ public class ResourceDownload extends TestBase { public void setup() { Button b = new Button("Download (_new)", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { download("_new"); } @@ -24,6 +25,7 @@ public class ResourceDownload extends TestBase { addComponent(b); b = new Button("Download (_blank)", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { download("_blank"); } @@ -31,6 +33,7 @@ public class ResourceDownload extends TestBase { addComponent(b); b = new Button("Download ()", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { download(""); } @@ -38,6 +41,7 @@ public class ResourceDownload extends TestBase { addComponent(b); b = new Button("Download (_top)", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { download("_top"); } @@ -45,6 +49,7 @@ public class ResourceDownload extends TestBase { addComponent(b); b = new Button("Test", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { ResourceDownload.this.getMainWindow().showNotification( "Still working"); @@ -59,6 +64,7 @@ public class ResourceDownload extends TestBase { String filename = "filename"; StreamResource streamResource = new StreamResource(new StreamSource() { + @Override public InputStream getStream() { try { return new FileInputStream("FIXME C:/temp/file.xls"); diff --git a/tests/testbench/com/vaadin/tests/serialization/SerializerTest.java b/tests/testbench/com/vaadin/tests/serialization/SerializerTest.java index 881a3c3be1..dbd2029bb4 100644 --- a/tests/testbench/com/vaadin/tests/serialization/SerializerTest.java +++ b/tests/testbench/com/vaadin/tests/serialization/SerializerTest.java @@ -111,61 +111,73 @@ public class SerializerTest extends AbstractTestRoot { }); testExtension.registerRpc(new SerializerTestRpc() { + @Override public void sendBoolean(boolean value, Boolean boxedValue, boolean[] array) { log.log("sendBoolean: " + value + ", " + boxedValue + ", " + Arrays.toString(array)); } + @Override public void sendByte(byte value, Byte boxedValue, byte[] array) { log.log("sendByte: " + value + ", " + boxedValue + ", " + Arrays.toString(array)); } + @Override public void sendChar(char value, Character boxedValue, char[] array) { log.log("sendChar: " + value + ", " + boxedValue + ", " + Arrays.toString(array)); } + @Override public void sendInt(int value, Integer boxedValue, int[] array) { log.log("sendInt: " + value + ", " + boxedValue + ", " + Arrays.toString(array)); } + @Override public void sendLong(long value, Long boxedValue, long[] array) { log.log("sendLong: " + value + ", " + boxedValue + ", " + Arrays.toString(array)); } + @Override public void sendFloat(float value, Float boxedValue, float[] array) { log.log("sendFloat: " + value + ", " + boxedValue + ", " + Arrays.toString(array)); } + @Override public void sendDouble(double value, Double boxedValue, double[] array) { log.log("sendDouble: " + value + ", " + boxedValue + ", " + Arrays.toString(array)); } + @Override public void sendString(String value) { log.log("sendString: " + value); } + @Override public void sendConnector(Connector connector) { log.log("sendConnector: " + connector.getClass().getName()); } + @Override public void sendBean(ComplexTestBean complexBean, SimpleTestBean simpleBean, SimpleTestBean[] array) { log.log("sendBean: " + complexBean + ", " + simpleBean + ", " + Arrays.toString(array)); } + @Override public void sendNull(String value1, String value2) { log.log("sendNull: " + value1 + ", " + value2); } + @Override public void sendNestedArray(int[][] nestedIntArray, SimpleTestBean[][] nestedBeanArray) { log.log("sendNestedArray: " @@ -173,6 +185,7 @@ public class SerializerTest extends AbstractTestRoot { + Arrays.deepToString(nestedBeanArray)); } + @Override public void sendList(List<Integer> intList, List<Connector> connectorList, List<SimpleTestBean> beanList) { log.log("sendList: " + intList + ", " @@ -195,6 +208,7 @@ public class SerializerTest extends AbstractTestRoot { return string; } + @Override public void sendArrayList(List<int[]> primitiveArrayList, List<Integer[]> objectArrayList, List<SimpleTestBean[]> beanArrayList) { @@ -204,12 +218,14 @@ public class SerializerTest extends AbstractTestRoot { + ", " + Arrays.deepToString(beanArrayList.toArray())); } + @Override public void sendListArray(List<Integer>[] objectListArray, List<SimpleTestBean>[] beanListArray) { log.log("sendArrayList: " + Arrays.toString(objectListArray) + ", " + Arrays.toString(beanListArray)); } + @Override public void sendSet(Set<Integer> intSet, Set<Connector> connectorSet, Set<SimpleTestBean> beanSet) { log.log("sendSet: " + intSet + ", " @@ -217,6 +233,7 @@ public class SerializerTest extends AbstractTestRoot { + beanSet); } + @Override public void sendMap(Map<String, SimpleTestBean> stringMap, Map<Connector, Boolean> connectorMap, Map<Integer, Connector> intMap, @@ -253,6 +270,7 @@ public class SerializerTest extends AbstractTestRoot { + ", " + intMapString + ", " + beanMap); } + @Override public void sendWrappedGenerics( Map<Set<SimpleTestBean>, Map<Integer, List<SimpleTestBean>>> generics) { log.log("sendWrappedGenerics: " + generics.toString()); diff --git a/tests/testbench/com/vaadin/tests/themes/ButtonsTest.java b/tests/testbench/com/vaadin/tests/themes/ButtonsTest.java index cc275c18f4..a2d482dfbf 100644 --- a/tests/testbench/com/vaadin/tests/themes/ButtonsTest.java +++ b/tests/testbench/com/vaadin/tests/themes/ButtonsTest.java @@ -35,6 +35,7 @@ public class ButtonsTest extends com.vaadin.Application.LegacyApplication { themeToggle = new CheckBox("Runo theme"); themeToggle.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (getTheme() == "reindeer") { setTheme("runo"); @@ -49,6 +50,7 @@ public class ButtonsTest extends com.vaadin.Application.LegacyApplication { styleToggle = new CheckBox("Black style"); styleToggle.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (!main.getContent().getStyleName().contains("black")) { main.getContent().setStyleName("black"); @@ -63,6 +65,7 @@ public class ButtonsTest extends com.vaadin.Application.LegacyApplication { iconToggle = new CheckBox("64x icons"); iconToggle.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { largeIcons = !largeIcons; recreateAll(); @@ -74,6 +77,7 @@ public class ButtonsTest extends com.vaadin.Application.LegacyApplication { nativeToggle = new CheckBox("Native buttons"); nativeToggle.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { nativeButtons = !nativeButtons; recreateAll(); @@ -120,6 +124,7 @@ public class ButtonsTest extends com.vaadin.Application.LegacyApplication { main.addComponent(b); Button c = new Button("toggle enabled", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { b.setEnabled(!b.isEnabled()); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1230.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1230.java index 872084d436..b1841b69ba 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1230.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1230.java @@ -32,6 +32,7 @@ public class Ticket1230 extends Application.LegacyApplication { layout.addComponent(selectWithoutNullItem); Button b = new Button("Select NULL_PROPERTY", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { selectWithoutNullItem.select(NULL_ITEM_ID); printState(); @@ -41,6 +42,7 @@ public class Ticket1230 extends Application.LegacyApplication { layout.addComponent(b); b = new Button("Select 1", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { selectWithoutNullItem.select("1"); printState(); @@ -50,6 +52,7 @@ public class Ticket1230 extends Application.LegacyApplication { layout.addComponent(b); b = new Button("Select 2", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { selectWithoutNullItem.select("2"); printState(); @@ -60,6 +63,7 @@ public class Ticket1230 extends Application.LegacyApplication { b = new Button("Select null", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { selectWithoutNullItem.select(null); printState(); @@ -79,6 +83,7 @@ public class Ticket1230 extends Application.LegacyApplication { selectWithNullItem.setCaption("Select with null item id"); Button b = new Button("Select NULL_PROPERTY", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { selectWithNullItem.select(NULL_ITEM_ID); printState(); @@ -89,6 +94,7 @@ public class Ticket1230 extends Application.LegacyApplication { b = new Button("Select 1", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { selectWithNullItem.select("1"); printState(); @@ -98,6 +104,7 @@ public class Ticket1230 extends Application.LegacyApplication { layout.addComponent(b); b = new Button("Select 2", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { selectWithNullItem.select("2"); printState(); @@ -107,6 +114,7 @@ public class Ticket1230 extends Application.LegacyApplication { b = new Button("Select null", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { selectWithNullItem.select(null); printState(); @@ -118,6 +126,7 @@ public class Ticket1230 extends Application.LegacyApplication { w.addComponent(new Button("print select values", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { printState(); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket124.java b/tests/testbench/com/vaadin/tests/tickets/Ticket124.java index 81a164d22e..4c0c210f06 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket124.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket124.java @@ -27,6 +27,7 @@ public class Ticket124 extends Application.LegacyApplication { tf = new TextField("Row nr"); Button insert = new Button("Insert row", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { insertRow(); @@ -34,6 +35,7 @@ public class Ticket124 extends Application.LegacyApplication { }); Button delete = new Button("Delete row", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { deleteRow(); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1365.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1365.java index b35d185811..7e9f5dab2c 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1365.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1365.java @@ -33,10 +33,12 @@ public class Ticket1365 extends com.vaadin.Application.LegacyApplication new ShortcutAction("CTRL-S", ShortcutAction.KeyCode.S, new int[] { ShortcutAction.ModifierKey.CTRL }), }; + @Override public Action[] getActions(Object target, Object sender) { return actions; } + @Override public void handleAction(Action action, Object sender, Object target) { status.setValue("Pressed " + action.getCaption() + " to fire shortcut. Texfield value: " + f.getValue()); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1368.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1368.java index a1a5b449d1..92d3598382 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1368.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1368.java @@ -26,6 +26,7 @@ public class Ticket1368 extends Application.LegacyApplication { addColumn.setImmediate(true); addColumn.setNewItemsAllowed(true); addColumn.setNewItemHandler(new ComboBox.NewItemHandler() { + @Override public void addNewItem(String newItemCaption) { t.addContainerProperty(newItemCaption, String.class, "-"); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1397.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1397.java index dfccf31956..3ba7ae2bfa 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1397.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1397.java @@ -30,10 +30,12 @@ public class Ticket1397 extends Application.LegacyApplication { "fooTextField"); PopupView.Content content = new PopupView.Content() { + @Override public String getMinimizedValueAsHTML() { return String.valueOf(prop.getValue()); } + @Override public Component getPopupComponent() { return new TextField("Edit foo", prop); } @@ -56,6 +58,7 @@ public class Ticket1397 extends Application.LegacyApplication { public myButton() { super("Reverse the property"); this.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { StringBuffer getContents = prop2.getValue(); getContents.reverse(); @@ -68,10 +71,12 @@ public class Ticket1397 extends Application.LegacyApplication { final Panel panel2 = new Panel("Editor with a button"); panel2.addComponent(new myButton()); PopupView.Content content2 = new PopupView.Content() { + @Override public String getMinimizedValueAsHTML() { return String.valueOf(prop2.getValue()); } + @Override public Component getPopupComponent() { return panel2; } @@ -89,10 +94,12 @@ public class Ticket1397 extends Application.LegacyApplication { panel3.addComponent(tf2); PopupView.Content content3 = new PopupView.Content() { + @Override public String getMinimizedValueAsHTML() { return String.valueOf(op.getValue()); } + @Override public Component getPopupComponent() { return panel3; } @@ -113,10 +120,12 @@ public class Ticket1397 extends Application.LegacyApplication { final InlineDateField df = new InlineDateField("", new Date()); PopupView pp = new PopupView(new PopupView.Content() { + @Override public String getMinimizedValueAsHTML() { return String.valueOf(df.getValue()); } + @Override public Component getPopupComponent() { return df; } @@ -130,11 +139,13 @@ public class Ticket1397 extends Application.LegacyApplication { + lineNum + " and see how the overview-version changes."); + @Override public String getMinimizedValueAsHTML() { return "" + String.valueOf(tf.getValue()).length() + " characters of info"; } + @Override public Component getPopupComponent() { return tf; } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1435.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1435.java index c280be4e4a..438f7e2d5f 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1435.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1435.java @@ -118,6 +118,7 @@ public class Ticket1435 extends Application.LegacyApplication { collapse.setStyleName("collapse"); collapse.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { if (useWorkaround) { container.setVisible(false); @@ -144,6 +145,7 @@ public class Ticket1435 extends Application.LegacyApplication { if (useWorkaround) { expand.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { container.setVisible(true); root.setHeight(lastHeight, lastHeightUnit); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1465ModalNotification.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1465ModalNotification.java index 9a777d655c..4b7d4201e0 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1465ModalNotification.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1465ModalNotification.java @@ -23,6 +23,7 @@ public class Ticket1465ModalNotification extends Application.LegacyApplication { Button b = new Button("click to show notification", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Notification.show( "Try clicking the button in main window!", @@ -35,6 +36,7 @@ public class Ticket1465ModalNotification extends Application.LegacyApplication { b = new Button("click to warning notification", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Notification.show( "Try clicking the button in main window!", @@ -46,6 +48,7 @@ public class Ticket1465ModalNotification extends Application.LegacyApplication { b = new Button("click to Humanized notification", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Notification.show( "Try clicking the button in main window!", @@ -56,6 +59,7 @@ public class Ticket1465ModalNotification extends Application.LegacyApplication { b = new Button("click to test modality!", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { mainWin.addComponent(new Label("clicked")); @@ -68,6 +72,7 @@ public class Ticket1465ModalNotification extends Application.LegacyApplication { b = new Button("click to test modality!", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { mainWin.addComponent(new Label("clicked")); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1506_Panel.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1506_Panel.java index 0c06a24df5..9835e046dc 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1506_Panel.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1506_Panel.java @@ -26,6 +26,7 @@ public class Ticket1506_Panel extends Panel { private Component initButton(final ObjectProperty<?> property) { Button button = new Button("Clear select"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { property.setValue(null); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1506_TestContainer.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1506_TestContainer.java index 616e40d917..d6b53db7c7 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1506_TestContainer.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1506_TestContainer.java @@ -38,6 +38,7 @@ public class Ticket1506_TestContainer implements Container { items.put(ITEM_2_ID, item2); } + @Override public Item getItem(Object itemId) { if (items.isEmpty()) { loadItems(); @@ -45,6 +46,7 @@ public class Ticket1506_TestContainer implements Container { return items.get(itemId); } + @Override public Collection<String> getContainerPropertyIds() { if (items.isEmpty()) { loadItems(); @@ -55,6 +57,7 @@ public class Ticket1506_TestContainer implements Container { return a; } + @Override public Collection<String> getItemIds() { if (items.isEmpty()) { loadItems(); @@ -65,6 +68,7 @@ public class Ticket1506_TestContainer implements Container { return a; } + @Override public Property<?> getContainerProperty(Object itemId, Object propertyId) { if (items.isEmpty()) { loadItems(); @@ -76,6 +80,7 @@ public class Ticket1506_TestContainer implements Container { return null; } + @Override public Class<String> getType(Object propertyId) { if (items.isEmpty()) { loadItems(); @@ -83,6 +88,7 @@ public class Ticket1506_TestContainer implements Container { return String.class; } + @Override public int size() { if (items.isEmpty()) { loadItems(); @@ -90,6 +96,7 @@ public class Ticket1506_TestContainer implements Container { return items.size(); } + @Override public boolean containsId(Object itemId) { if (items.isEmpty()) { loadItems(); @@ -97,29 +104,35 @@ public class Ticket1506_TestContainer implements Container { return items.containsKey(itemId); } + @Override public Item addItem(Object itemId) throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } + @Override public Object addItem() throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } + @Override public boolean removeItem(Object itemId) throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } + @Override public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } + @Override public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } + @Override public boolean removeAllItems() throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1506_TestContainer2.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1506_TestContainer2.java index 863ce907da..7ac34dcd2e 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1506_TestContainer2.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1506_TestContainer2.java @@ -33,6 +33,7 @@ public class Ticket1506_TestContainer2 implements Container { } } + @Override public Item getItem(Object itemId) { if (items.isEmpty()) { loadItems(); @@ -40,6 +41,7 @@ public class Ticket1506_TestContainer2 implements Container { return items.get(itemId); } + @Override public Collection<String> getContainerPropertyIds() { if (items.isEmpty()) { loadItems(); @@ -50,6 +52,7 @@ public class Ticket1506_TestContainer2 implements Container { return a; } + @Override public Collection<String> getItemIds() { if (items.isEmpty()) { loadItems(); @@ -57,6 +60,7 @@ public class Ticket1506_TestContainer2 implements Container { return items.keySet(); } + @Override public Property<?> getContainerProperty(Object itemId, Object propertyId) { if (items.isEmpty()) { loadItems(); @@ -68,6 +72,7 @@ public class Ticket1506_TestContainer2 implements Container { return null; } + @Override public Class<String> getType(Object propertyId) { if (items.isEmpty()) { loadItems(); @@ -75,6 +80,7 @@ public class Ticket1506_TestContainer2 implements Container { return String.class; } + @Override public int size() { if (items.isEmpty()) { loadItems(); @@ -82,6 +88,7 @@ public class Ticket1506_TestContainer2 implements Container { return items.size(); } + @Override public boolean containsId(Object itemId) { if (items.isEmpty()) { loadItems(); @@ -89,29 +96,35 @@ public class Ticket1506_TestContainer2 implements Container { return items.containsKey(itemId); } + @Override public Item addItem(Object itemId) throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } + @Override public Object addItem() throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } + @Override public boolean removeItem(Object itemId) throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } + @Override public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } + @Override public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } + @Override public boolean removeAllItems() throws UnsupportedOperationException { throw new UnsupportedOperationException("Not implemented"); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1572.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1572.java index 614c471d3e..b9fd2debd5 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1572.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1572.java @@ -35,6 +35,7 @@ public class Ticket1572 extends com.vaadin.Application.LegacyApplication { Button b = new Button("next margin state"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { nextMarginState(); } @@ -48,6 +49,7 @@ public class Ticket1572 extends com.vaadin.Application.LegacyApplication { Button b2 = new Button("next spacing state"); b2.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { nextSpacingState(); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1581.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1581.java index 1efea99a0e..6831d4c52d 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1581.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1581.java @@ -52,6 +52,7 @@ public class Ticket1581 extends com.vaadin.Application.LegacyApplication { final Button stop = new Button("Stop updating", new ClickListener() { boolean active = true; + @Override public void buttonClick(ClickEvent event) { if (active) { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1589.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1589.java index 7aba886133..95cc918b6e 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1589.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1589.java @@ -50,6 +50,7 @@ class MyDynamicResource implements RequestHandler { * Returns null if the URI does not match. Otherwise returns a download * stream that contains the response from the server. */ + @Override public boolean handleRequest(Application application, WrappedRequest request, WrappedResponse response) throws IOException { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1598.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1598.java index 0faf9b8afb..5cb03e77af 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1598.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1598.java @@ -32,6 +32,7 @@ public class Ticket1598 extends Application.LegacyApplication { for (int i = 0; i < 5; i++) { first.addItem(new String("Submenu item" + i), null, new Command() { + @Override public void menuSelected(MenuItem selected) { main.showNotification("Action " + selected.getText()); } @@ -44,6 +45,7 @@ public class Ticket1598 extends Application.LegacyApplication { firstSubItem1.addItem(new String("Subsubmenu item" + i), null, new Command() { + @Override public void menuSelected(MenuItem selected) { main.showNotification("Action " + selected.getText()); @@ -56,6 +58,7 @@ public class Ticket1598 extends Application.LegacyApplication { firstSubItem2.addItem(new String("Subsubmenu item" + i), null, new Command() { + @Override public void menuSelected(MenuItem selected) { main.showNotification("Action " + selected.getText()); @@ -69,6 +72,7 @@ public class Ticket1598 extends Application.LegacyApplication { second.addItem(new String("Second submenu item" + i), null, new Command() { + @Override public void menuSelected(MenuItem selected) { main.showNotification("Action " + selected.getText()); @@ -82,6 +86,7 @@ public class Ticket1598 extends Application.LegacyApplication { for (int i = 2; i <= 3; i++) { (menuBar.getItems().get(i)).setCommand(new Command() { + @Override public void menuSelected(MenuItem selectedItem) { main.showNotification("Action " + selectedItem.getText()); } @@ -92,6 +97,7 @@ public class Ticket1598 extends Application.LegacyApplication { fourth.setText("Add new item"); fourth.setCommand(new Command() { + @Override public void menuSelected(MenuItem selected) { menuBar.addItem("Newborn", null, null); } @@ -108,6 +114,7 @@ public class Ticket1598 extends Application.LegacyApplication { // A command for removing the selected menuitem Command removeCommand = new Command() { + @Override public void menuSelected(MenuItem selected) { MenuItem parent = selected.getParent(); if (parent != null) { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket161.java b/tests/testbench/com/vaadin/tests/tickets/Ticket161.java index 1819076b32..b8bf8deb20 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket161.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket161.java @@ -27,6 +27,7 @@ public class Ticket161 extends Application.LegacyApplication { Button b = new Button("Truncate to 20 rows"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Container containerDataSource = t.getContainerDataSource(); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1632.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1632.java index 1774000355..43feab5ab7 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1632.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1632.java @@ -45,6 +45,7 @@ public class Ticket1632 extends Application.LegacyApplication { b.addListener(new Button.ClickListener() { boolean visible = false; + @Override public void buttonClick(ClickEvent event) { visible = !visible; if (visible) { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1659.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1659.java index d78a1d78af..3c64a49316 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1659.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1659.java @@ -16,6 +16,7 @@ public class Ticket1659 extends Application.LegacyApplication { "Change URI using Application.getURL()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { mainWin.open(new ExternalResource(getURL() + "#" + System.currentTimeMillis())); @@ -24,6 +25,7 @@ public class Ticket1659 extends Application.LegacyApplication { mainWin.addComponent(new Button("Change URI uring Window.getURL()", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { mainWin.open(new ExternalResource(mainWin.getURL() + "#" + System.currentTimeMillis())); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1673.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1673.java index 891cdf9f21..277096598e 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1673.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1673.java @@ -14,6 +14,7 @@ public class Ticket1673 extends com.vaadin.Application.LegacyApplication { setMainWindow(main); main.addComponent(new Button("close", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { close(); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1710.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1710.java index 827879d3c6..01792aeb89 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1710.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1710.java @@ -279,6 +279,7 @@ public class Ticket1710 extends com.vaadin.Application.LegacyApplication { } Property.ValueChangeListener marginSpacingListener = new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { updateMarginsAndSpacing(); } @@ -343,6 +344,7 @@ public class Ticket1710 extends com.vaadin.Application.LegacyApplication { Layout.AlignmentHandler.ALIGNMENT_RIGHT), "right"); Property.ValueChangeListener alignmentChangeListener = new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { updateAlignments(((Integer) hAlign.getValue()).intValue(), ((Integer) vAlign.getValue()).intValue()); @@ -372,6 +374,7 @@ public class Ticket1710 extends com.vaadin.Application.LegacyApplication { Layout.AlignmentHandler.ALIGNMENT_RIGHT), "right"); lAlign.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { testPanelLayout.setComponentAlignment(testedLayout, ((Integer) lAlign.getValue()).intValue(), diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1772.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1772.java index 7ca90904f8..2cbb648227 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1772.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1772.java @@ -24,6 +24,7 @@ public class Ticket1772 extends com.vaadin.Application.LegacyApplication { b.addListener(new Button.ClickListener() { int counter = 0; + @Override public void buttonClick(ClickEvent event) { gridLayout diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1775.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1775.java index aed69056aa..63af96b1a2 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1775.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1775.java @@ -27,6 +27,7 @@ public class Ticket1775 extends com.vaadin.Application.LegacyApplication { button2.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { Label mainComponent = new Label("Main"); Label header = new Label("Header"); @@ -34,6 +35,7 @@ public class Ticket1775 extends com.vaadin.Application.LegacyApplication { layout.addComponent(mainComponent, "body"); layout.addComponent(header, "loginUser"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { layout.addComponent(anotherComponent, "body"); layout.removeComponent("loginUser"); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1804.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1804.java index d627d11e18..1c9e24ffd4 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1804.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1804.java @@ -91,6 +91,7 @@ public class Ticket1804 extends com.vaadin.Application.LegacyApplication { main.addComponent(checkValidity); checkValidity.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { StringBuffer msg = new StringBuffer(); for (Iterator<Select> i = listOfAllFields.iterator(); i @@ -136,6 +137,7 @@ public class Ticket1804 extends com.vaadin.Application.LegacyApplication { this.msg = msg; } + @Override public void validate(Object value) throws InvalidValueException { if (value == null || value.toString().length() == 0) { throw new InvalidValueException(msg); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1805.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1805.java index d7eac667f0..a40f5b25b9 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1805.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1805.java @@ -30,6 +30,7 @@ public class Ticket1805 extends com.vaadin.Application.LegacyApplication { final TextField size = new TextField("Grid width in css unit"); size.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { String width = size.getValue().toString(); if (width == null || width.equals("")) { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1806.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1806.java index c47ea49697..2c979f4600 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1806.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1806.java @@ -25,18 +25,21 @@ public class Ticket1806 extends com.vaadin.Application.LegacyApplication { "This button does nothing (but flushes queued variable changes)")); main.addComponent(new Button("Commit the field to property", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { tf1.commit(); } })); main.addComponent(new Button("Show property value", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { main.showNotification("'" + prop.getValue() + "'"); } })); main.addComponent(new Button("Show field value", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { main.showNotification("'" + tf1.getValue() + "'"); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1811.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1811.java index d530c949e8..93d3d05686 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1811.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1811.java @@ -56,6 +56,7 @@ public class Ticket1811 extends com.vaadin.Application.LegacyApplication { main.addComponent(checkValidity); checkValidity.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { StringBuffer msg = new StringBuffer(); for (Iterator<TextField> i = listOfAllFields.iterator(); i diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1819.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1819.java index 8e5f107b17..ce0dbc3ca5 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1819.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1819.java @@ -47,6 +47,7 @@ public class Ticket1819 extends com.vaadin.Application.LegacyApplication { main.addComponent(checkValidity); checkValidity.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { StringBuffer msg = new StringBuffer(); for (Iterator<Select> i = listOfAllFields.iterator(); i diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java index 912f5ba02d..de91b04c1c 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1834PanelScrolling.java @@ -29,6 +29,7 @@ public class Ticket1834PanelScrolling extends Button b = new Button("update"); currentState.addComponent(b); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { state.setValue("ScrollTop: " + p.getScrollTop() + " ScrollLeft: " + p.getScrollLeft()); @@ -38,6 +39,7 @@ public class Ticket1834PanelScrolling extends b = new Button("ScrollBy 50px"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { p.setScrollLeft(p.getScrollLeft() + 50); p.setScrollTop(p.getScrollTop() + 50); @@ -52,6 +54,7 @@ public class Ticket1834PanelScrolling extends b.addListener(new ClickListener() { int i = 0; + @Override public void buttonClick(ClickEvent event) { p.addComponent(new Label("new Row" + ++i)); } @@ -61,6 +64,7 @@ public class Ticket1834PanelScrolling extends b = new Button("Repaint Panel"); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { p.requestRepaint(); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1857.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1857.java index 2af5bf9c85..4b546de0f6 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1857.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1857.java @@ -41,6 +41,7 @@ public class Ticket1857 extends Application.LegacyApplication implements footer.addComponent(actionHandlerEnabler); actionHandlerEnabler.setImmediate(true); actionHandlerEnabler.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (actionHandlerEnabler.getValue().booleanValue()) { t.addActionHandler(Ticket1857.this); @@ -54,9 +55,11 @@ public class Ticket1857 extends Application.LegacyApplication implements footer.addComponent(cellStylesEnabler); cellStylesEnabler.setImmediate(true); cellStylesEnabler.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (cellStylesEnabler.getValue().booleanValue()) { t.setCellStyleGenerator(new Table.CellStyleGenerator() { + @Override public String getStyle(Object itemId, Object propertyId) { Object cell = t.getContainerProperty(itemId, propertyId).getValue(); @@ -99,10 +102,12 @@ public class Ticket1857 extends Application.LegacyApplication implements private final Action removeAction = new Action("Remove"); + @Override public Action[] getActions(Object target, Object sender) { return new Action[] { removeAction }; } + @Override public void handleAction(Action action, Object sender, Object target) { getMainWindow().showNotification("Removing row number:" + target); ((Table) sender).removeItem(target); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1878.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1878.java index 6072782dc3..0a8992c17f 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1878.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1878.java @@ -52,6 +52,7 @@ public class Ticket1878 extends Application.LegacyApplication { switchToGridButton = new Button("Switch to GridLayout", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { changeLayout(switchToGridButton, gridLayout); } @@ -60,6 +61,7 @@ public class Ticket1878 extends Application.LegacyApplication { switchToOrderedButton = new Button("Switch to OrderedLayout", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { changeLayout(switchToOrderedButton, orderedLayout); } @@ -69,6 +71,7 @@ public class Ticket1878 extends Application.LegacyApplication { switchToFormsButton = new Button("Switch to Form", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { changeLayout(switchToFormsButton, formLayout); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1900.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1900.java index fdbecf8eae..9fe8ccd801 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1900.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1900.java @@ -24,6 +24,7 @@ public class Ticket1900 extends Application.LegacyApplication { f[i].setRequired(true); main.addComponent(f[i]); f[i].addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { main.showNotification("Validity test", "Testcase " + j + " is " + (f[j].isValid() ? "valid" : "invalid")); @@ -60,6 +61,7 @@ public class Ticket1900 extends Application.LegacyApplication { this.c = c; } + @Override public void validate(Object value) throws InvalidValueException { if (value == null || !value.toString().contains(c)) { throw new InvalidValueException("Value does not contain " + c); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1919.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1919.java index 68a2eaa2bc..75a2aafb96 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1919.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1919.java @@ -48,6 +48,7 @@ public class Ticket1919 extends com.vaadin.Application.LegacyApplication { p.setSizeFull(); Button b = new Button("toggle Values", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { toggleStyleName(); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1921.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1921.java index c0a1c7d2c9..416bb80875 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1921.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1921.java @@ -30,6 +30,7 @@ public class Ticket1921 extends Application.LegacyApplication implements inner = new VerticalLayout(); outer.addComponent(inner); button = new Button("foo", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { newState(); } @@ -92,6 +93,7 @@ public class Ticket1921 extends Application.LegacyApplication implements } } + @Override public boolean handleRequest(Application application, WrappedRequest request, WrappedResponse response) throws IOException { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1939.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1939.java index d24cace2c9..48d8ff458c 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1939.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1939.java @@ -26,6 +26,7 @@ public class Ticket1939 extends Application.LegacyApplication { w.addComponent(new Button("show me the bug", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { l.setWidth(null); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1969.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1969.java index aed322ca4d..2a29113829 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1969.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1969.java @@ -46,6 +46,7 @@ public class Ticket1969 extends com.vaadin.Application.LegacyApplication { b = new Button( "change introduction caption (should add * to tab name)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { testContent.setCaption(testContent.getCaption() + "*"); } @@ -54,6 +55,7 @@ public class Ticket1969 extends com.vaadin.Application.LegacyApplication { b = new Button("change tab caption (should add * to tab name)", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { actions.setCaption(actions.getCaption() + "*"); } @@ -64,6 +66,7 @@ public class Ticket1969 extends com.vaadin.Application.LegacyApplication { final UserError e = new UserError("Test error"); b = new Button("Toggle error", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (testContent.getComponentError() == null) { testContent.setComponentError(e); @@ -75,6 +78,7 @@ public class Ticket1969 extends com.vaadin.Application.LegacyApplication { actions.addComponent(b); b = new Button("Change table caption", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { t.setCaption(t.getCaption() + "*"); } @@ -82,6 +86,7 @@ public class Ticket1969 extends com.vaadin.Application.LegacyApplication { actions.addComponent(b); b = new Button("Toggle Table error", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (t.getComponentError() == null) { t.setComponentError(e); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1970.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1970.java index 3c5822fbda..b35baa5300 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1970.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1970.java @@ -38,6 +38,7 @@ public class Ticket1970 extends Application.LegacyApplication { w.addComponent(new Button("Show open windows", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { String openWindows = ""; for (Iterator<LegacyWindow> i = getWindows().iterator(); i @@ -57,6 +58,7 @@ public class Ticket1970 extends Application.LegacyApplication { final LegacyWindow w = new LegacyWindow(); w.addComponent(new Button("Show the name of the application", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { w.showNotification("Name of this window = " + w.getName()); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1973.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1973.java index d4b1345eb1..24d11e6569 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1973.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1973.java @@ -30,6 +30,7 @@ public class Ticket1973 extends com.vaadin.Application.LegacyApplication { Button refreshTable = new Button("Change table container"); refreshTable.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent e) { table.setContainerDataSource(container2); table.setContainerDataSource(container1); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1973_2.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1973_2.java index d43aac9da0..68307f7f99 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1973_2.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1973_2.java @@ -31,6 +31,7 @@ public class Ticket1973_2 extends Application.LegacyApplication { Button refreshTable = new Button("Change table container"); refreshTable.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent e) { table.setContainerDataSource(container2); table.setContainerDataSource(container1); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1975.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1975.java index d908cc567c..e959098765 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1975.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1975.java @@ -38,6 +38,7 @@ public class Ticket1975 extends Application.LegacyApplication { layout.addComponent(new Button("Disable/Enable", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { boolean e = cl1.isEnabled(); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1982.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1982.java index 431c3a6b99..fe0b636c56 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1982.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1982.java @@ -62,6 +62,7 @@ public class Ticket1982 extends Application.LegacyApplication { min.setVisible(false); max.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { min.setVisible(true); max.setVisible(false); @@ -71,6 +72,7 @@ public class Ticket1982 extends Application.LegacyApplication { } }); min.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { min.setVisible(false); max.setVisible(true); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1983.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1983.java index 5bd0cd2ae6..4deb5020ab 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1983.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1983.java @@ -83,6 +83,7 @@ public class Ticket1983 extends Application.LegacyApplication { Button button = new Button("Change col value to short"); button.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { // Change the column value to a short one --> Should remove // the scrollbar @@ -117,6 +118,7 @@ public class Ticket1983 extends Application.LegacyApplication { CheckBox checkBox = new CheckBox("Two col"); checkBox.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if ((Boolean) event.getProperty().getValue()) { table.setVisibleColumns(new Object[] { propId, propId2 }); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1995.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1995.java index 23f377e89e..2aaacef448 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1995.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1995.java @@ -40,6 +40,7 @@ public class Ticket1995 extends Application.LegacyApplication { mainWin.addComponent(new Button("Add item", new com.vaadin.ui.Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { addItem(); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket20.java b/tests/testbench/com/vaadin/tests/tickets/Ticket20.java index 5c4779e69e..061fc0cf16 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket20.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket20.java @@ -38,6 +38,7 @@ public class Ticket20 extends Application.LegacyApplication { } } + @Override public void validate(Object value) throws InvalidValueException { if (!isValid(value)) { throw new InvalidValueException(value @@ -49,6 +50,7 @@ public class Ticket20 extends Application.LegacyApplication { v2.addValidator(v); v2.addValidator(new Validator() { + @Override public void validate(Object value) throws InvalidValueException { if (!"".equals("" + value)) { throw new InvalidValueException("Value is not empty string"); @@ -69,6 +71,7 @@ public class Ticket20 extends Application.LegacyApplication { mainWin.addComponent(new Button("Validate integer", new Button.ClickListener() { + @Override public void buttonClick( com.vaadin.ui.Button.ClickEvent event) { mainWin.showNotification("The field is " diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2001.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2001.java index a14c881b85..8c7a7ba659 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2001.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2001.java @@ -22,6 +22,7 @@ public class Ticket2001 extends Application.LegacyApplication { final CheckBox b = new CheckBox("fixed width: 30px", false); b.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if ((Boolean) b.getValue()) { l.setWidth("30px"); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2007.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2007.java index 6700267a25..e0b8635f32 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2007.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2007.java @@ -17,6 +17,7 @@ public class Ticket2007 extends Application.LegacyApplication { setMainWindow(main); main.addComponent(new Button("Open another (non-main) window", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { LegacyWindow c = new LegacyWindow( "Non-main browser window " + (++childs)); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2009.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2009.java index 7667d6190b..68cf5ef6d4 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2009.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2009.java @@ -40,6 +40,7 @@ public class Ticket2009 extends com.vaadin.Application.LegacyApplication { final VerticalLayout events = new VerticalLayout(); t.addListener(new ItemClickEvent.ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { events.addComponent(new Label(new Label("Click:" + (event.isDoubleClick() ? "double" : "single") @@ -62,6 +63,7 @@ public class Ticket2009 extends com.vaadin.Application.LegacyApplication { .getTestTable(5, 100); table.setRowHeaderMode(Table.ROW_HEADER_MODE_ID); table.addListener(new ItemClickEvent.ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { events2.addComponent(new Label("Click:" + (event.isDoubleClick() ? "double" : "single") @@ -115,6 +117,7 @@ public class Ticket2009 extends com.vaadin.Application.LegacyApplication { getMainWindow().addWindow(this); done.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().removeWindow(PropertyEditor.this); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2014.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2014.java index 538ebc4ccd..8d9a5e67d4 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2014.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2014.java @@ -33,6 +33,7 @@ public class Ticket2014 extends Application.LegacyApplication { layout.addComponent(new Button("Change class name", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { b1.setStyleName(UUID.randomUUID().toString()); } @@ -51,6 +52,7 @@ public class Ticket2014 extends Application.LegacyApplication { b1 = new Button("Button inside orderedLayout", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { System.out.println("Clicked " + event.getButton().getCaption()); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2021.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2021.java index cab8fc261c..c36bb5c25e 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2021.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2021.java @@ -111,6 +111,7 @@ public class Ticket2021 extends Application.LegacyApplication { Button b = new Button("Enable/disable caption and watch button move", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { System.out.println("Enable/disable caption"); for (AbstractComponent l : new AbstractComponent[] { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2023.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2023.java index 238561ef47..427a55391b 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2023.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2023.java @@ -31,6 +31,7 @@ public class Ticket2023 extends com.vaadin.Application.LegacyApplication gl.addComponent(new Button("null", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { c.setWidth(null); c.setHeight(null); @@ -43,6 +44,7 @@ public class Ticket2023 extends com.vaadin.Application.LegacyApplication } + @Override public void buttonClick(ClickEvent event) { c.setWidth(event.getButton().getCaption()); c.setHeight(event.getButton().getCaption()); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2029.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2029.java index 1eadd3d7bd..8acf4f1d16 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2029.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2029.java @@ -81,6 +81,7 @@ public class Ticket2029 extends Application.LegacyApplication { tf.setImmediate(true); tf.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { Component c = ((Component) event.getProperty()); c.setCaption("askfdj"); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2037.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2037.java index 86d9cf6d40..c979898299 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2037.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2037.java @@ -25,6 +25,7 @@ public class Ticket2037 extends com.vaadin.Application.LegacyApplication { main.addComponent(lo); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { repopupate(lo); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2038.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2038.java index a5c102b988..fa4cd76f47 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2038.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2038.java @@ -21,6 +21,7 @@ public class Ticket2038 extends Application.LegacyApplication { tf.setImmediate(true); tf.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { w.showNotification("TextField is " + (tf.isValid() ? "" : "in") + "valid, with error: " + tf.getErrorMessage(), @@ -35,6 +36,7 @@ public class Ticket2038 extends Application.LegacyApplication { w.addComponent(b); b.setImmediate(true); b.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { tf.setRequiredError((Boolean) b.getValue() ? "Field must not be empty" : null); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2042.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2042.java index c4eded63d7..d79f4a1bd6 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2042.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2042.java @@ -26,6 +26,7 @@ public class Ticket2042 extends Application.LegacyApplication { layout.addComponent(new Label("abc")); layout.addComponent(new Button("B", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Notification n = new Notification("Test"); getMainWindow().showNotification(n); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2048.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2048.java index 84978a42e1..0b5a537b4d 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2048.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2048.java @@ -71,6 +71,7 @@ public class Ticket2048 extends Application.LegacyApplication { "Replace image with new embedded component (flashes)", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Embedded newEmbedded = new Embedded(null, new ThemeResource("icons/64/folder-add.png")); @@ -85,6 +86,7 @@ public class Ticket2048 extends Application.LegacyApplication { b = new Button("Change image source (is fine)", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { String img = "folder-add"; if (((ThemeResource) embedded.getSource()).getResourceId() diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2053.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2053.java index 751dbbae01..fd64d6e35a 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2053.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2053.java @@ -25,6 +25,7 @@ public class Ticket2053 extends Application.LegacyApplication { + "draw changes not originating from this window. Such changes include changes " + "made by other browser-windows."); Button add = new Button("Add a window", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { final String name = "Child " + (++childs); LegacyWindow c = new LegacyWindow(name); @@ -35,6 +36,7 @@ public class Ticket2053 extends Application.LegacyApplication { final TextField tf = new TextField("Non immediate textfield"); c.addComponent(tf); tf.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { main.addComponent(new Label(name + " send text:" + tf.getValue())); @@ -44,6 +46,7 @@ public class Ticket2053 extends Application.LegacyApplication { final String caption = "Slow button " + i; c.addComponent(new Button(caption, new Button.ClickListener() { + @Override public synchronized void buttonClick( ClickEvent event) { try { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2060.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2060.java index b47fbc8818..1d7d8bb006 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2060.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2060.java @@ -31,6 +31,7 @@ public class Ticket2060 extends Application.LegacyApplication { button2 = new Button("Button without width"); button3 = new Button("Click to repaint buttons", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { button1.requestRepaint(); button2.requestRepaint(); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2061.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2061.java index 0881d141cb..1f633d7337 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2061.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2061.java @@ -95,6 +95,7 @@ public class Ticket2061 extends Application.LegacyApplication { return columns; } + @Override public void valueChange(ValueChangeEvent event) { } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2061b.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2061b.java index 98badf36e8..e3cd09926e 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2061b.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2061b.java @@ -148,6 +148,7 @@ public class Ticket2061b extends Application.LegacyApplication implements return columns; } + @Override public void valueChange(ValueChangeEvent event) { } @@ -192,6 +193,7 @@ public class Ticket2061b extends Application.LegacyApplication implements } } + @Override public void selectedTabChange(SelectedTabChangeEvent event) { p.setScrollTop(10); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2061c.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2061c.java index a8188a4913..082b956fe0 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2061c.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2061c.java @@ -111,6 +111,7 @@ public class Ticket2061c extends Application.LegacyApplication implements return columns; } + @Override public void valueChange(ValueChangeEvent event) { } @@ -140,6 +141,7 @@ public class Ticket2061c extends Application.LegacyApplication implements } } + @Override public void selectedTabChange(SelectedTabChangeEvent event) { p.setScrollTop(10); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2090.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2090.java index b4171b9bac..2042cf7cad 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2090.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2090.java @@ -27,6 +27,7 @@ public class Ticket2090 extends Application.LegacyApplication { w.addComponent(label); w.addComponent(target); height.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { try { target.setHeight(height.getValue()); @@ -38,6 +39,7 @@ public class Ticket2090 extends Application.LegacyApplication { } }); width.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { try { target.setWidth(width.getValue()); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2099.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2099.java index 6278f7d4df..0f0c00b05c 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2099.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2099.java @@ -30,6 +30,7 @@ public class Ticket2099 extends Application.LegacyApplication { private void createUI(GridLayout layout) { Button b = new Button("Show popup", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().addWindow(popup); // popup.setVisible(true); @@ -42,6 +43,7 @@ public class Ticket2099 extends Application.LegacyApplication { layout.addComponent(b); layout.addComponent(new Button("Hide label '222'", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { l2.setVisible(!l2.isVisible()); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2104.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2104.java index b40035a189..11f5ceb0b8 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2104.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2104.java @@ -52,6 +52,7 @@ public class Ticket2104 extends Application.LegacyApplication { cb = new CheckBox("icon"); cb.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if (tree.getItemIconPropertyId() == null) { tree.setItemIconPropertyId("icon"); @@ -82,6 +83,7 @@ public class Ticket2104 extends Application.LegacyApplication { "http://www.itmill.com/res/images/itmill_logo.gif")); tree.addListener(new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { getMainWindow().addComponent( new Label(event.toString() + " // " + event.getItemId() @@ -117,6 +119,7 @@ public class Ticket2104 extends Application.LegacyApplication { table.addItem("Item " + i); } table.addListener(new ItemClickListener() { + @Override public void itemClick(ItemClickEvent event) { getMainWindow().addComponent( new Label(event.toString() + " // " + event.getItemId() diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2106.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2106.java index 0776f6c4a6..6edc625b39 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2106.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2106.java @@ -27,6 +27,7 @@ public class Ticket2106 extends Application.LegacyApplication { setMainWindow(new LegacyWindow("#2106")); getMainWindow().addComponent( new Button("Do nothing", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { getMainWindow().addComponent( new Label("Last time did nothing: " diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2107.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2107.java index 57926143eb..09ba9fac0b 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2107.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2107.java @@ -23,6 +23,7 @@ public class Ticket2107 extends Application.LegacyApplication { tf.setImmediate(true); tf.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { w.showNotification("TextField is " + (tf.isValid() ? "" : "in") + "valid, with error: " + tf.getErrorMessage(), @@ -31,6 +32,7 @@ public class Ticket2107 extends Application.LegacyApplication { }); tf.addValidator(new Validator() { + @Override public void validate(Object value) throws InvalidValueException { if (value == null || value.toString().length() <= 3) { throw new InvalidValueException( @@ -46,6 +48,7 @@ public class Ticket2107 extends Application.LegacyApplication { w.addComponent(b); b.setImmediate(true); b.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { tf.setRequiredError(b.getValue() ? "Field must not be empty" : null); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2117.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2117.java index 933494f78a..6a299d8599 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2117.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2117.java @@ -39,6 +39,7 @@ public class Ticket2117 extends Application.LegacyApplication { w.addComponent(new Label("It has also been redirected to " + w.getURL() + " to support reloading")); w.addComponent(new Button("button", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { w.showNotification("Button clicked"); w.addComponent(new Label("clicked")); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2119.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2119.java index 34054e09d1..3820550f02 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2119.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2119.java @@ -74,6 +74,7 @@ public class Ticket2119 extends Application.LegacyApplication { layout.addComponent(select); globalValue.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(Property.ValueChangeEvent event) { Object value = event.getProperty().getValue(); valueProperty.setValue((null != value) ? value.toString() @@ -83,6 +84,7 @@ public class Ticket2119 extends Application.LegacyApplication { final Button changeValueButton = new Button("Change Value to 2"); changeValueButton.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { globalValue.setValue("2"); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2125.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2125.java index cc81c787b2..b12a865e80 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2125.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2125.java @@ -34,12 +34,14 @@ public class Ticket2125 extends Application.LegacyApplication { table.addContainerProperty("String", String.class, "a string"); table.addContainerProperty("Boolean", Boolean.class, Boolean.TRUE); table.addGeneratedColumn("Generated", new ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { return new Label("Item " + itemId); } }); table.setCellStyleGenerator(new CellStyleGenerator() { + @Override public String getStyle(Object itemId, Object propertyId) { if (new Integer(4).equals(itemId)) { if (propertyId == null) { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2126.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2126.java index abcca6d59c..c9e070bef4 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2126.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2126.java @@ -46,6 +46,7 @@ public class Ticket2126 extends com.vaadin.Application.LegacyApplication { refreshTable.addListener(new Button.ClickListener() { boolean full = true; + @Override public void buttonClick(Button.ClickEvent e) { if (full) { table.setContainerDataSource(container2); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2179.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2179.java index ba4dd2ee46..31e1a9a0d6 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2179.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2179.java @@ -25,6 +25,7 @@ public class Ticket2179 extends Application.LegacyApplication { f.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { main.showNotification("Test field is " + (f.isValid() ? "valid" : "invalid")); @@ -40,6 +41,7 @@ public class Ticket2179 extends Application.LegacyApplication { this.c = c; } + @Override public void validate(Object value) throws InvalidValueException { if (value == null || !value.toString().contains(c)) { throw new InvalidValueException("Value does not contain " + c); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2181.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2181.java index c3219102f6..44893eb531 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2181.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2181.java @@ -70,6 +70,7 @@ public class Ticket2181 extends Application.LegacyApplication implements return options; } + @Override public void buttonClick(ClickEvent event) { if (event.getButton() == setButton) { set(); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2204.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2204.java index eef13ca06c..4caba62df2 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2204.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2204.java @@ -71,6 +71,7 @@ public class Ticket2204 extends Application.LegacyApplication { Button b = new Button("Show area", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { showHide(); } @@ -80,6 +81,7 @@ public class Ticket2204 extends Application.LegacyApplication { b = new Button("Show tab", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { showTab(); } @@ -128,6 +130,7 @@ public class Ticket2204 extends Application.LegacyApplication { Form f = (Form) cc; f.setFormFieldFactory(new FormFieldFactory() { + @Override public Field<?> createField(Item item, Object propertyId, Component uiContext) { formTextArea = new RichTextArea(); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2208.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2208.java index ada9471f18..3f0f35bb84 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2208.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2208.java @@ -25,6 +25,7 @@ public class Ticket2208 extends Application.LegacyApplication { t.setHeight("150px"); t.addGeneratedColumn("col 3 (green)", new ColumnGenerator() { + @Override public Component generateCell(Table source, Object itemId, Object columnId) { Item item = source.getItem(itemId); @@ -38,6 +39,7 @@ public class Ticket2208 extends Application.LegacyApplication { t.addContainerProperty("col 4", String.class, ""); t.setCellStyleGenerator(new CellStyleGenerator() { + @Override public String getStyle(Object itemId, Object propertyId) { if ("col 1 (red)".equals(propertyId)) { return "red"; diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2209.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2209.java index 5ba69895b6..a387781ae3 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2209.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2209.java @@ -31,6 +31,7 @@ public class Ticket2209 extends Application.LegacyApplication { Button b = new Button("Add label text", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { labelLong.setValue(labelLong.getValue() + "-12345"); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2209OL.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2209OL.java index 4a45709ef6..226df8b5e7 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2209OL.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2209OL.java @@ -38,6 +38,7 @@ public class Ticket2209OL extends Application.LegacyApplication { Button b = new Button("Add label text", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { labelLong.setValue(labelLong.getValue() + "-12345"); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2209OL2.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2209OL2.java index e2e51d8101..921f3b190b 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2209OL2.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2209OL2.java @@ -44,6 +44,7 @@ public class Ticket2209OL2 extends Application.LegacyApplication { Button b = new Button("Add label text", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { labelLong.setValue(labelLong.getValue() + "-12345"); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2221.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2221.java index 2b7d5ef6d1..886aa376c3 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2221.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2221.java @@ -46,6 +46,7 @@ public class Ticket2221 extends Application.LegacyApplication { Button b = new Button("Switch textfield/panel", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Component visible = tf; diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2242.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2242.java index 15b2b630a5..4b44ed1a87 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2242.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2242.java @@ -33,6 +33,7 @@ public class Ticket2242 extends Application.LegacyApplication implements Button b = new Button("Change container datasource", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { for (int i = 0; i < 5; i++) { t.setContainerDataSource(createContainer()); @@ -71,6 +72,7 @@ public class Ticket2242 extends Application.LegacyApplication implements return ic; } + @Override public void valueChange(ValueChangeEvent event) { System.out.println("Value change from " + tableValue + " to " + t.getValue()); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2244.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2244.java index 8540960b30..a360760039 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2244.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2244.java @@ -33,6 +33,7 @@ public class Ticket2244 extends Application.LegacyApplication { w.addComponent(new Button("new item", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.setItemDataSource(new BeanItem<MyBean>(new MyBean())); @@ -42,6 +43,7 @@ public class Ticket2244 extends Application.LegacyApplication { w.addComponent(new Button("new bigger item", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.setItemDataSource(new BeanItem<MyBean>( new MyBiggerBean())); @@ -52,6 +54,7 @@ public class Ticket2244 extends Application.LegacyApplication { w.addComponent(new Button("new grid layout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.setLayout(new GridLayout()); @@ -61,6 +64,7 @@ public class Ticket2244 extends Application.LegacyApplication { w.addComponent(new Button("new form layout", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.setLayout(new FormLayout()); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2267.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2267.java index cf1d2f64d2..b5d6772e7f 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2267.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2267.java @@ -21,6 +21,7 @@ public class Ticket2267 extends Application.LegacyApplication { Button button = new Button("1", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { Button b = event.getButton(); l.setValue(l.getValue() + b.getCaption()); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2282.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2282.java index 67fe3f9846..c72b4e15ff 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2282.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2282.java @@ -38,6 +38,7 @@ public class Ticket2282 extends Application.LegacyApplication { Button b = new Button("Swap", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (layout1.getWidth() < 0.0) { layout1.setWidth("500px"); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2289.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2289.java index 4cd421e30d..0ad023450c 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2289.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2289.java @@ -25,6 +25,7 @@ public class Ticket2289 extends Application.LegacyApplication { w.setContent(ol); Button b = new Button("close current tab"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { closeCurrentTab(); @@ -34,6 +35,7 @@ public class Ticket2289 extends Application.LegacyApplication { b = new Button("close first tab"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { closeFirstTab(); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2292.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2292.java index a413e87110..35e9b8f2c5 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2292.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2292.java @@ -47,6 +47,7 @@ public class Ticket2292 extends com.vaadin.Application.LegacyApplication addRequestHandler(this); } + @Override public boolean handleRequest(Application application, WrappedRequest request, WrappedResponse response) throws IOException { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2310.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2310.java index 36bda7095c..1cad5bde4f 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2310.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2310.java @@ -34,6 +34,7 @@ public class Ticket2310 extends Application.LegacyApplication { b.addListener(new Button.ClickListener() { int i = 0; + @Override public void buttonClick(ClickEvent event) { l.setValue("foobar " + i++); @@ -43,6 +44,7 @@ public class Ticket2310 extends Application.LegacyApplication { Button b2 = new Button("toggle panel visibility"); b2.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { p.setVisible(!p.isVisible()); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2329.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2329.java index f1906d1492..f583a4af4b 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2329.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2329.java @@ -34,6 +34,7 @@ public class Ticket2329 extends Application.LegacyApplication { } class TestColumnGenerator implements ColumnGenerator { + @Override public Component generateCell(Table source, Object rowId, Object columnId) { return new Button("1"); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2337.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2337.java index f71492a96b..f0cae1a59f 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2337.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2337.java @@ -17,6 +17,7 @@ public class Ticket2337 extends Application.LegacyApplication { setMainWindow(w); Button b = new Button("add", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { gl.addComponent(new Label("asd"), 0, gl.getCursorY(), 2, gl.getCursorY()); @@ -28,6 +29,7 @@ public class Ticket2337 extends Application.LegacyApplication { b = new Button("empty", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { gl.removeAllComponents(); ; diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2347.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2347.java index 207d6ee413..5528dfebd6 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2347.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2347.java @@ -25,6 +25,7 @@ public class Ticket2347 extends Application.LegacyApplication { b1 = new Button("200px button"); b1.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (b1.getWidth() == 200.0) { b1.setWidth("300px"); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2365.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2365.java index 19d473f970..252406cc2d 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2365.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2365.java @@ -25,6 +25,7 @@ public class Ticket2365 extends Application.LegacyApplication { Button b = new Button("Toggle parent level size"); lo.addComponent(b); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { if (p.getWidth() > 0) { p.setSizeUndefined(); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2406.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2406.java index a121d93099..0036bdc7b2 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2406.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2406.java @@ -33,6 +33,7 @@ public class Ticket2406 extends Application.LegacyApplication { b.setSizeFull(); b.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { w.setHeight("200px"); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2415.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2415.java index 0514e9bb39..509f4cf437 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2415.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2415.java @@ -19,6 +19,7 @@ public class Ticket2415 extends Application.LegacyApplication { tf.setImmediate(true); tf.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { main.showNotification("New value = " + tf); } @@ -30,6 +31,7 @@ public class Ticket2415 extends Application.LegacyApplication { tf2.setImmediate(true); tf2.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { main.showNotification("New value = " + tf2); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2431.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2431.java index b751488bae..f6e6c1e7b5 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2431.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2431.java @@ -30,10 +30,12 @@ public class Ticket2431 extends Application.LegacyApplication { Action[] actions = new Action[] { a1, a2 }; + @Override public Action[] getActions(Object target, Object sender) { return actions; } + @Override public void handleAction(Action action, Object sender, Object target) { if (action == a1) { getMainWindow().addComponent(new Label("CTRL X hit")); diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2436.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2436.java index fc6445d62f..f48cf7a79a 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2436.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2436.java @@ -15,16 +15,19 @@ public class Ticket2436 extends Application.LegacyApplication { final Button remover = new Button("Remove PopupView"); final PopupView pv = new PopupView(new PopupView.Content() { + @Override public String getMinimizedValueAsHTML() { return "PopupView"; } + @Override public Component getPopupComponent() { return remover; } }); remover.addListener(new Button.ClickListener() { + @Override public void buttonClick(Button.ClickEvent event) { main.removeComponent(pv); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2526.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2526.java index 8123fe1182..97d096405e 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2526.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2526.java @@ -14,6 +14,7 @@ public class Ticket2526 extends Application.LegacyApplication { setMainWindow(main); Button b = new Button("Add windows"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { main.addWindow(new Window()); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2998.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2998.java index a3ff6808dc..ee60c0ce7e 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2998.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2998.java @@ -174,6 +174,7 @@ public class Ticket2998 extends Application.LegacyApplication { if (propertyId.equals("kilometers")) { f.setWidth("4em"); f.addValidator(new Validator() { + @Override public void validate(Object value) throws InvalidValueException { // FIXME this does not follow the standard pattern diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket3146.java b/tests/testbench/com/vaadin/tests/tickets/Ticket3146.java index 924b1318ab..b6e01d912f 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket3146.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket3146.java @@ -36,6 +36,7 @@ public class Ticket3146 extends Application.LegacyApplication { Button clearButton = new Button("Clear selection", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { clearSelection(); } @@ -43,6 +44,7 @@ public class Ticket3146 extends Application.LegacyApplication { mainWindow.addComponent(clearButton); Button clearButton2 = new Button("Clear selection 2", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { clearSelection2(); } @@ -50,6 +52,7 @@ public class Ticket3146 extends Application.LegacyApplication { mainWindow.addComponent(clearButton2); Button clearButton3 = new Button("Clear selection 3", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { clearSelection3(); } @@ -57,6 +60,7 @@ public class Ticket3146 extends Application.LegacyApplication { mainWindow.addComponent(clearButton3); Button printButton = new Button("Print selection", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { printSelection(); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket34.java b/tests/testbench/com/vaadin/tests/tickets/Ticket34.java index f6fbe05e38..e3b90c94b0 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket34.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket34.java @@ -34,6 +34,7 @@ public class Ticket34 extends Application.LegacyApplication { mainWin.getPage().addListener(new Page.FragmentChangedListener() { + @Override public void fragmentChanged(FragmentChangedEvent event) { getMainWindow().showNotification( "Fragment now: " + event.getFragment()); @@ -90,6 +91,7 @@ public class Ticket34 extends Application.LegacyApplication { p.addComponent(b); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { String viewName = tf.getValue().toString(); // fragmentChangedListener will change the view if possible diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket6002.java b/tests/testbench/com/vaadin/tests/tickets/Ticket6002.java index c68dc9d534..fef7061516 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket6002.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket6002.java @@ -32,6 +32,7 @@ public class Ticket6002 extends TestBase { "Changing this field modifies only the textfield", property1); tf1.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { // This value change event is called twice if the new // input value is an integer. The second time is during @@ -57,6 +58,7 @@ public class Ticket6002 extends TestBase { property2); tf2.addListener(new Property.ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { // This value change event is called twice if the new // input value is an integer. The second time is during diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket677.java b/tests/testbench/com/vaadin/tests/tickets/Ticket677.java index 473ec79342..8d6df0142e 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket677.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket677.java @@ -51,28 +51,33 @@ public class Ticket677 extends Application.LegacyApplication { l.addComponent(new Button("Toggle root panel", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { toggle(root); } })); l.addComponent(new Button("Toggle panel one", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { toggle(one); } })); l.addComponent(new Button("Toggle panel two", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { toggle(two); } })); l.addComponent(new Button("Toggle form", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { toggle(form); } })); l.addComponent(new Button("Toggle table", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { toggle(table); } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket695.java b/tests/testbench/com/vaadin/tests/tickets/Ticket695.java index 11d643cd52..c62cee038c 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket695.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket695.java @@ -20,6 +20,7 @@ public class Ticket695 extends Application.LegacyApplication { w.addComponent(b); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); try { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket736.java b/tests/testbench/com/vaadin/tests/tickets/Ticket736.java index 091e0c97af..d871c8adc4 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket736.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket736.java @@ -42,12 +42,14 @@ public class Ticket736 extends Application.LegacyApplication { f.setBuffered(true); Button commit = new Button("Commit", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { f.commit(); } }); Button discard = new Button("Discard", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { f.discard(); } @@ -90,6 +92,7 @@ public class Ticket736 extends Application.LegacyApplication { mainWin.addComponent(new Button("Show state of the address object", new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { mainWin.showNotification(address.toString()); } @@ -164,6 +167,7 @@ public class Ticket736 extends Application.LegacyApplication { /** Simple state validator */ static class IsValidState implements Validator { + @Override public void validate(Object value) throws InvalidValueException { // Empty and null are accepted values if (value == null || "".equals("" + value)) { diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket846.java b/tests/testbench/com/vaadin/tests/tickets/Ticket846.java index 714b3c21ca..413d823d2d 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket846.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket846.java @@ -35,6 +35,7 @@ public class Ticket846 extends Application.LegacyApplication { mainWin.addComponent(new Button("Validate integer", new Button.ClickListener() { + @Override public void buttonClick( com.vaadin.ui.Button.ClickEvent event) { mainWin.showNotification("The field is " diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket932.java b/tests/testbench/com/vaadin/tests/tickets/Ticket932.java index bf6f6d1879..f72ff8beec 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket932.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket932.java @@ -27,6 +27,7 @@ public class Ticket932 extends Application.LegacyApplication { Button b = new Button("Check value"); b.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { l.setValue("Length: " + tx.getValue().toString().length() + " Content: " + tx.getValue()); @@ -46,6 +47,7 @@ public class Ticket932 extends Application.LegacyApplication { Button b2 = new Button("Check value"); b2.addListener(new Button.ClickListener() { + @Override public void buttonClick(ClickEvent event) { l.setValue("Length: " + tx2.getValue().toString().length() + " Content: " + tx2.getValue()); diff --git a/tests/testbench/com/vaadin/tests/util/TestClickListener.java b/tests/testbench/com/vaadin/tests/util/TestClickListener.java index 95b9cf2d40..b9f6d66b3e 100644 --- a/tests/testbench/com/vaadin/tests/util/TestClickListener.java +++ b/tests/testbench/com/vaadin/tests/util/TestClickListener.java @@ -29,6 +29,7 @@ public class TestClickListener implements Button.ClickListener { System.out.println("Created listener " + name + ", id=" + count); } + @Override public void buttonClick(ClickEvent event) { System.out .println("ClickEvent from listener " + name + ", id=" + count); diff --git a/tests/testbench/com/vaadin/tests/validation/EmptyFieldErrorIndicators.java b/tests/testbench/com/vaadin/tests/validation/EmptyFieldErrorIndicators.java index 8fb0c3585d..d6627a7d94 100644 --- a/tests/testbench/com/vaadin/tests/validation/EmptyFieldErrorIndicators.java +++ b/tests/testbench/com/vaadin/tests/validation/EmptyFieldErrorIndicators.java @@ -58,6 +58,7 @@ public class EmptyFieldErrorIndicators extends TestBase { Button validate = new Button("Validate fields"); validate.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { form.validate(); @@ -96,6 +97,7 @@ public class EmptyFieldErrorIndicators extends TestBase { form.getLayout().addComponent(setDateButton); // form.addField("Set Date", setDateButton); setDateButton.addListener(new ClickListener() { + @Override public void buttonClick(ClickEvent event) { form.getField("Date").setValue(new Date(0)); } diff --git a/tests/testbench/com/vaadin/tests/validation/TestValidators.java b/tests/testbench/com/vaadin/tests/validation/TestValidators.java index a530dee852..746a460da8 100644 --- a/tests/testbench/com/vaadin/tests/validation/TestValidators.java +++ b/tests/testbench/com/vaadin/tests/validation/TestValidators.java @@ -137,6 +137,7 @@ public class TestValidators extends TestBase { Button b = new Button("Commit", new ClickListener() { + @Override public void buttonClick(ClickEvent event) { try { form.commit(); diff --git a/tests/testbench/com/vaadin/tests/validation/ValidationOfRequiredEmptyFields.java b/tests/testbench/com/vaadin/tests/validation/ValidationOfRequiredEmptyFields.java index 51c4f5ecc8..dd1732023b 100644 --- a/tests/testbench/com/vaadin/tests/validation/ValidationOfRequiredEmptyFields.java +++ b/tests/testbench/com/vaadin/tests/validation/ValidationOfRequiredEmptyFields.java @@ -27,6 +27,7 @@ public class ValidationOfRequiredEmptyFields extends TestBase { requiredInput = new CheckBox("Field required"); requiredInput.setImmediate(true); requiredInput.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { tf.setRequired((Boolean) requiredInput.getValue()); } @@ -35,6 +36,7 @@ public class ValidationOfRequiredEmptyFields extends TestBase { requiredErrorInput = new TextField("Required error message"); requiredErrorInput.setImmediate(true); requiredErrorInput.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { tf.setRequiredError((String) requiredErrorInput.getValue()); } @@ -44,6 +46,7 @@ public class ValidationOfRequiredEmptyFields extends TestBase { integerValidatorInput.setImmediate(true); integerValidatorInput.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if ((Boolean) integerValidatorInput.getValue()) { tf.addValidator(integerValidator); @@ -57,6 +60,7 @@ public class ValidationOfRequiredEmptyFields extends TestBase { stringLengthValidatorInput.setImmediate(true); stringLengthValidatorInput.addListener(new ValueChangeListener() { + @Override public void valueChange(ValueChangeEvent event) { if ((Boolean) stringLengthValidatorInput.getValue()) { tf.addValidator(stringLengthValidator); diff --git a/tests/testbench/com/vaadin/tests/widgetset/client/SerializerTestConnector.java b/tests/testbench/com/vaadin/tests/widgetset/client/SerializerTestConnector.java index 72bfbe285a..79125e46c5 100644 --- a/tests/testbench/com/vaadin/tests/widgetset/client/SerializerTestConnector.java +++ b/tests/testbench/com/vaadin/tests/widgetset/client/SerializerTestConnector.java @@ -29,6 +29,7 @@ public class SerializerTestConnector extends AbstractExtensionConnector { public SerializerTestConnector() { registerRpc(SerializerTestRpc.class, new SerializerTestRpc() { + @Override public void sendWrappedGenerics( Map<Set<SimpleTestBean>, Map<Integer, List<SimpleTestBean>>> generics) { Map<Set<SimpleTestBean>, Map<Integer, List<SimpleTestBean>>> updated = new HashMap<Set<SimpleTestBean>, Map<Integer, List<SimpleTestBean>>>(); @@ -49,12 +50,14 @@ public class SerializerTestConnector extends AbstractExtensionConnector { rpc.sendWrappedGenerics(updated); } + @Override public void sendString(String value) { char[] chars = value.toCharArray(); Arrays.sort(chars); rpc.sendString(new String(chars)); } + @Override public void sendSet(Set<Integer> intSet, Set<Connector> connectorSet, Set<SimpleTestBean> beanSet) { @@ -68,6 +71,7 @@ public class SerializerTestConnector extends AbstractExtensionConnector { Collections.singleton(getRootConnector()), beanSet); } + @Override public void sendNestedArray(int[][] nestedIntArray, SimpleTestBean[][] nestedBeanArray) { rpc.sendNestedArray(new int[][] { { nestedIntArray[1][0], @@ -75,6 +79,7 @@ public class SerializerTestConnector extends AbstractExtensionConnector { { nestedBeanArray[0][1] }, { nestedBeanArray[0][0] } }); } + @Override public void sendMap(Map<String, SimpleTestBean> stringMap, Map<Connector, Boolean> connectorMap, Map<Integer, Connector> intMap, @@ -93,11 +98,13 @@ public class SerializerTestConnector extends AbstractExtensionConnector { getThisConnector()), updatedBeanMap); } + @Override public void sendLong(long value, Long boxedValue, long[] array) { rpc.sendLong(array[0], Long.valueOf(value), new long[] { array[1], boxedValue.longValue() }); } + @Override public void sendList(List<Integer> intList, List<Connector> connectorList, List<SimpleTestBean> beanList) { Collections.sort(intList); @@ -107,17 +114,20 @@ public class SerializerTestConnector extends AbstractExtensionConnector { beanList); } + @Override public void sendInt(int value, Integer boxedValue, int[] array) { rpc.sendInt(array.length, Integer.valueOf(array[0]), new int[] { value, boxedValue.intValue() }); } + @Override public void sendFloat(float value, Float boxedValue, float[] array) { Arrays.sort(array); rpc.sendFloat(boxedValue.floatValue(), Float.valueOf(value), array); } + @Override public void sendDouble(double value, Double boxedValue, double[] array) { rpc.sendDouble(value + boxedValue.doubleValue(), @@ -125,16 +135,19 @@ public class SerializerTestConnector extends AbstractExtensionConnector { new double[] { array.length, array[0], array[1] }); } + @Override public void sendConnector(Connector connector) { rpc.sendConnector(getThisConnector()); } + @Override public void sendChar(char value, Character boxedValue, char[] array) { rpc.sendChar(Character.toUpperCase(boxedValue.charValue()), Character.valueOf(value), new String(array) .toLowerCase().toCharArray()); } + @Override public void sendByte(byte value, Byte boxedValue, byte[] array) { // There will most certainly be a bug that is not discovered // because this particular method doesn't do anything with it's @@ -142,6 +155,7 @@ public class SerializerTestConnector extends AbstractExtensionConnector { rpc.sendByte(value, boxedValue, array); } + @Override public void sendBoolean(boolean value, Boolean boxedValue, boolean[] array) { boolean[] inverseArray = new boolean[array.length]; @@ -152,6 +166,7 @@ public class SerializerTestConnector extends AbstractExtensionConnector { Boolean.valueOf(!value), inverseArray); } + @Override public void sendBean(ComplexTestBean complexBean, SimpleTestBean simpleBean, SimpleTestBean[] array) { SimpleTestBean updatedSimpleBean = new SimpleTestBean(); @@ -174,6 +189,7 @@ public class SerializerTestConnector extends AbstractExtensionConnector { arrayList.toArray(new SimpleTestBean[array.length])); } + @Override public void sendArrayList(List<int[]> primitiveArrayList, List<Integer[]> objectArrayList, List<SimpleTestBean[]> beanArrayList) { @@ -191,10 +207,12 @@ public class SerializerTestConnector extends AbstractExtensionConnector { updatedObjectArrayList, beanArrayList); } + @Override public void sendNull(String value1, String value2) { rpc.sendNull(value2, value1); } + @Override public void sendListArray(List<Integer>[] objectListArray, List<SimpleTestBean>[] beanListArray) { rpc.sendListArray(new List[] { objectListArray[1], diff --git a/tests/testbench/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java b/tests/testbench/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java index d2066c53c8..d199122447 100644 --- a/tests/testbench/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java +++ b/tests/testbench/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java @@ -24,6 +24,7 @@ public class HelloWorldExtensionConnector extends AbstractExtensionConnector { @Override protected void init() { registerRpc(GreetAgainRpc.class, new GreetAgainRpc() { + @Override public void greetAgain() { greet(); } diff --git a/tests/testbench/com/vaadin/tests/widgetset/client/minitutorials/v7a2/MyComponentConnector.java b/tests/testbench/com/vaadin/tests/widgetset/client/minitutorials/v7a2/MyComponentConnector.java index 2a131c07c8..f140dad172 100644 --- a/tests/testbench/com/vaadin/tests/widgetset/client/minitutorials/v7a2/MyComponentConnector.java +++ b/tests/testbench/com/vaadin/tests/widgetset/client/minitutorials/v7a2/MyComponentConnector.java @@ -19,6 +19,7 @@ public class MyComponentConnector extends AbstractComponentConnector { public MyComponentConnector() { getWidget().addClickHandler(new ClickHandler() { + @Override public void onClick(ClickEvent event) { final MouseEventDetails mouseDetails = MouseEventDetailsBuilder @@ -29,6 +30,7 @@ public class MyComponentConnector extends AbstractComponentConnector { } }); registerRpc(MyComponentClientRpc.class, new MyComponentClientRpc() { + @Override public void alert(String message) { Window.alert(message); } diff --git a/tests/testbench/com/vaadin/tests/widgetset/client/minitutorials/v7a2/WidgetContainerConnector.java b/tests/testbench/com/vaadin/tests/widgetset/client/minitutorials/v7a2/WidgetContainerConnector.java index 012060f437..00b6a98896 100644 --- a/tests/testbench/com/vaadin/tests/widgetset/client/minitutorials/v7a2/WidgetContainerConnector.java +++ b/tests/testbench/com/vaadin/tests/widgetset/client/minitutorials/v7a2/WidgetContainerConnector.java @@ -30,6 +30,7 @@ public class WidgetContainerConnector extends return GWT.create(VWidgetContainer.class); } + @Override public void updateCaption(ComponentConnector connector) { } }
\ No newline at end of file |