]> source.dussan.org Git - vaadin-framework.git/commitdiff
Cleaned up the whole project
authorArtur Signell <artur.signell@itmill.com>
Fri, 2 Jan 2009 14:40:19 +0000 (14:40 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 2 Jan 2009 14:40:19 +0000 (14:40 +0000)
svn changeset:6398/svn branch:trunk

354 files changed:
src/com/itmill/toolkit/automatedtests/SimplestApplication.java
src/com/itmill/toolkit/automatedtests/robustness/Robustness.java
src/com/itmill/toolkit/automatedtests/robustness/RobustnessComplex.java
src/com/itmill/toolkit/automatedtests/util/Log.java
src/com/itmill/toolkit/automatedtests/util/StatusServlet.java
src/com/itmill/toolkit/data/Buffered.java
src/com/itmill/toolkit/data/util/ContainerHierarchicalWrapper.java
src/com/itmill/toolkit/data/util/ContainerOrderedWrapper.java
src/com/itmill/toolkit/data/util/FilesystemContainer.java
src/com/itmill/toolkit/data/util/HierarchicalContainer.java
src/com/itmill/toolkit/data/util/IndexedContainer.java
src/com/itmill/toolkit/data/util/MethodProperty.java
src/com/itmill/toolkit/data/util/ObjectProperty.java
src/com/itmill/toolkit/data/util/PropertyFormatter.java
src/com/itmill/toolkit/data/util/PropertysetItem.java
src/com/itmill/toolkit/data/util/QueryContainer.java
src/com/itmill/toolkit/demo/BrowserDemo.java
src/com/itmill/toolkit/demo/BufferedComponents.java
src/com/itmill/toolkit/demo/CachingDemo.java
src/com/itmill/toolkit/demo/Calc.java
src/com/itmill/toolkit/demo/FilterSelect.java
src/com/itmill/toolkit/demo/HelloWorld.java
src/com/itmill/toolkit/demo/KeyboardShortcut.java
src/com/itmill/toolkit/demo/NotificationDemo.java
src/com/itmill/toolkit/demo/PortletDemo.java
src/com/itmill/toolkit/demo/SelectDemo.java
src/com/itmill/toolkit/demo/TableDemo.java
src/com/itmill/toolkit/demo/WindowedDemos.java
src/com/itmill/toolkit/demo/colorpicker/ColorPicker.java
src/com/itmill/toolkit/demo/colorpicker/ColorPickerApplication.java
src/com/itmill/toolkit/demo/colorpicker/gwt/client/ColorPickerWidgetSet.java
src/com/itmill/toolkit/demo/colorpicker/gwt/client/ui/GwtColorPicker.java
src/com/itmill/toolkit/demo/colorpicker/gwt/client/ui/IColorPicker.java
src/com/itmill/toolkit/demo/reservation/CalendarDemo.java
src/com/itmill/toolkit/demo/reservation/CalendarField.java
src/com/itmill/toolkit/demo/reservation/GoogleMap.java
src/com/itmill/toolkit/demo/reservation/ReservationApplication.java
src/com/itmill/toolkit/demo/reservation/gwt/client/ReservationWidgetSet.java
src/com/itmill/toolkit/demo/reservation/gwt/client/ui/ICalendarField.java
src/com/itmill/toolkit/demo/reservation/simple/SimpleReserver.java
src/com/itmill/toolkit/demo/sampler/ActiveLink.java
src/com/itmill/toolkit/demo/sampler/CodeLabel.java
src/com/itmill/toolkit/demo/sampler/Feature.java
src/com/itmill/toolkit/demo/sampler/FeatureSet.java
src/com/itmill/toolkit/demo/sampler/GoogleAnalytics.java
src/com/itmill/toolkit/demo/sampler/SamplerApplication.java
src/com/itmill/toolkit/demo/sampler/features/blueprints/ProminentPrimaryAction.java
src/com/itmill/toolkit/demo/sampler/features/buttons/ButtonLink.java
src/com/itmill/toolkit/demo/sampler/features/buttons/ButtonPush.java
src/com/itmill/toolkit/demo/sampler/features/buttons/ButtonSwitch.java
src/com/itmill/toolkit/demo/sampler/features/commons/Icons.java
src/com/itmill/toolkit/demo/sampler/features/commons/Tooltips.java
src/com/itmill/toolkit/demo/sampler/features/link/LinkCurrentWindow.java
src/com/itmill/toolkit/demo/sampler/features/link/LinkNoDecorations.java
src/com/itmill/toolkit/demo/sampler/features/link/LinkSizedWindow.java
src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationCustom.java
src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationError.java
src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationHumanized.java
src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationTray.java
src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationWarning.java
src/com/itmill/toolkit/demo/sampler/gwt/client/SamplerWidgetSet.java
src/com/itmill/toolkit/demo/sampler/gwt/client/ui/IActiveLink.java
src/com/itmill/toolkit/demo/sampler/gwt/client/ui/ICodeLabel.java
src/com/itmill/toolkit/event/ListenerMethod.java
src/com/itmill/toolkit/launcher/ITMillToolkitDesktopMode.java
src/com/itmill/toolkit/terminal/CompositeErrorMessage.java
src/com/itmill/toolkit/terminal/Sizeable.java
src/com/itmill/toolkit/terminal/SystemError.java
src/com/itmill/toolkit/terminal/ThemeResource.java
src/com/itmill/toolkit/terminal/UserError.java
src/com/itmill/toolkit/terminal/gwt/client/DefaultWidgetSet.java
src/com/itmill/toolkit/terminal/gwt/client/IDebugConsole.java
src/com/itmill/toolkit/terminal/gwt/client/MouseEventDetails.java
src/com/itmill/toolkit/terminal/gwt/client/RenderSpace.java
src/com/itmill/toolkit/terminal/gwt/client/UIDL.java
src/com/itmill/toolkit/terminal/gwt/client/Util.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IAccordion.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IContextMenu.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IDateField.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IDateFieldCalendar.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IEmbedded.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IFilterSelect.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IFormLayout.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ILabel.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IListSelect.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IMarginInfo.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IMenuBar.java
src/com/itmill/toolkit/terminal/gwt/client/ui/INativeSelect.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IOptionGroup.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IPopupView.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IProgressIndicator.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITablePaging.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITextualDate.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITwinColSelect.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IUpload.java
src/com/itmill/toolkit/terminal/gwt/client/ui/MenuBar.java
src/com/itmill/toolkit/terminal/gwt/client/ui/MenuItem.java
src/com/itmill/toolkit/terminal/gwt/client/ui/TreeAction.java
src/com/itmill/toolkit/terminal/gwt/server/PortletApplicationContext.java
src/com/itmill/toolkit/terminal/gwt/server/SystemMessageException.java
src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java
src/com/itmill/toolkit/tests/BasicRandomTest.java
src/com/itmill/toolkit/tests/CustomLayoutDemo.java
src/com/itmill/toolkit/tests/LayoutDemo.java
src/com/itmill/toolkit/tests/ListenerOrder.java
src/com/itmill/toolkit/tests/ModalWindow.java
src/com/itmill/toolkit/tests/NativeWindowing.java
src/com/itmill/toolkit/tests/Parameters.java
src/com/itmill/toolkit/tests/PerformanceTestBasicComponentRendering.java
src/com/itmill/toolkit/tests/QueryContainerDemo.java
src/com/itmill/toolkit/tests/RandomLayoutStress.java
src/com/itmill/toolkit/tests/TestBench.java
src/com/itmill/toolkit/tests/TestCaptionWrapper.java
src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java
src/com/itmill/toolkit/tests/TestDateField.java
src/com/itmill/toolkit/tests/TestForApplicationLayoutThatUsesWholeBrosersSpace.java
src/com/itmill/toolkit/tests/TestForNativeWindowing.java
src/com/itmill/toolkit/tests/TestSetVisibleAndCaching.java
src/com/itmill/toolkit/tests/TestSizeableIncomponents.java
src/com/itmill/toolkit/tests/TestSplitPanel.java
src/com/itmill/toolkit/tests/TreeFilesystem.java
src/com/itmill/toolkit/tests/TreeFilesystemContainer.java
src/com/itmill/toolkit/tests/UpgradingSample.java
src/com/itmill/toolkit/tests/UsingObjectsInSelect.java
src/com/itmill/toolkit/tests/book/BookTestApplication.java
src/com/itmill/toolkit/tests/book/ChatApplication.java
src/com/itmill/toolkit/tests/book/DefaultButtonExample.java
src/com/itmill/toolkit/tests/book/FormExample.java
src/com/itmill/toolkit/tests/book/FormExample2.java
src/com/itmill/toolkit/tests/book/MyDynamicResource.java
src/com/itmill/toolkit/tests/book/MyUploader.java
src/com/itmill/toolkit/tests/book/SSNField.java
src/com/itmill/toolkit/tests/book/SelectExample.java
src/com/itmill/toolkit/tests/book/TableCellStyle.java
src/com/itmill/toolkit/tests/book/TableEditable.java
src/com/itmill/toolkit/tests/book/TableEditableBean.java
src/com/itmill/toolkit/tests/book/TableExample.java
src/com/itmill/toolkit/tests/book/TableExample1.java
src/com/itmill/toolkit/tests/book/TableExample2.java
src/com/itmill/toolkit/tests/book/TableExample3.java
src/com/itmill/toolkit/tests/book/TableHuge.java
src/com/itmill/toolkit/tests/book/WindowOpener.java
src/com/itmill/toolkit/tests/book/WindowTestApplication.java
src/com/itmill/toolkit/tests/featurebrowser/Feature.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureBrowser.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureBuffering.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureButton.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureContainers.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureCustomLayout.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureDateField.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureEmbedded.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureForm.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureGridLayout.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureItems.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureLabel.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureLink.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureOrderedLayout.java
src/com/itmill/toolkit/tests/featurebrowser/FeaturePanel.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureParameters.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureProperties.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureSelect.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureTabSheet.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureTextField.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureTree.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureUpload.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureValidators.java
src/com/itmill/toolkit/tests/featurebrowser/FeatureWindow.java
src/com/itmill/toolkit/tests/featurebrowser/FeaturesApplication.java
src/com/itmill/toolkit/tests/featurebrowser/IntroBasic.java
src/com/itmill/toolkit/tests/featurebrowser/IntroComponents.java
src/com/itmill/toolkit/tests/featurebrowser/IntroDataHandling.java
src/com/itmill/toolkit/tests/featurebrowser/IntroDataModel.java
src/com/itmill/toolkit/tests/featurebrowser/IntroItemContainers.java
src/com/itmill/toolkit/tests/featurebrowser/IntroLayouts.java
src/com/itmill/toolkit/tests/featurebrowser/IntroTerminal.java
src/com/itmill/toolkit/tests/featurebrowser/IntroWelcome.java
src/com/itmill/toolkit/tests/robustness/Robustness.java
src/com/itmill/toolkit/tests/robustness/RobustnessSimple.java
src/com/itmill/toolkit/tests/tickets/Ticket1225.java
src/com/itmill/toolkit/tests/tickets/Ticket1230.java
src/com/itmill/toolkit/tests/tickets/Ticket124.java
src/com/itmill/toolkit/tests/tickets/Ticket1245.java
src/com/itmill/toolkit/tests/tickets/Ticket1362Login.java
src/com/itmill/toolkit/tests/tickets/Ticket1365.java
src/com/itmill/toolkit/tests/tickets/Ticket1368.java
src/com/itmill/toolkit/tests/tickets/Ticket1397.java
src/com/itmill/toolkit/tests/tickets/Ticket1435.java
src/com/itmill/toolkit/tests/tickets/Ticket1444.java
src/com/itmill/toolkit/tests/tickets/Ticket1465ModalNotification.java
src/com/itmill/toolkit/tests/tickets/Ticket1506_TestContainer.java
src/com/itmill/toolkit/tests/tickets/Ticket1506_TestContainer2.java
src/com/itmill/toolkit/tests/tickets/Ticket1519.java
src/com/itmill/toolkit/tests/tickets/Ticket1572.java
src/com/itmill/toolkit/tests/tickets/Ticket1581.java
src/com/itmill/toolkit/tests/tickets/Ticket1589.java
src/com/itmill/toolkit/tests/tickets/Ticket1598.java
src/com/itmill/toolkit/tests/tickets/Ticket161.java
src/com/itmill/toolkit/tests/tickets/Ticket1632.java
src/com/itmill/toolkit/tests/tickets/Ticket1659.java
src/com/itmill/toolkit/tests/tickets/Ticket1663.java
src/com/itmill/toolkit/tests/tickets/Ticket1673.java
src/com/itmill/toolkit/tests/tickets/Ticket1737.java
src/com/itmill/toolkit/tests/tickets/Ticket1767.java
src/com/itmill/toolkit/tests/tickets/Ticket1772.java
src/com/itmill/toolkit/tests/tickets/Ticket1775.java
src/com/itmill/toolkit/tests/tickets/Ticket1804.java
src/com/itmill/toolkit/tests/tickets/Ticket1805.java
src/com/itmill/toolkit/tests/tickets/Ticket1806.java
src/com/itmill/toolkit/tests/tickets/Ticket1811.java
src/com/itmill/toolkit/tests/tickets/Ticket1819.java
src/com/itmill/toolkit/tests/tickets/Ticket1834PanelScrolling.java
src/com/itmill/toolkit/tests/tickets/Ticket1857.java
src/com/itmill/toolkit/tests/tickets/Ticket1868.java
src/com/itmill/toolkit/tests/tickets/Ticket1869.java
src/com/itmill/toolkit/tests/tickets/Ticket1878.java
src/com/itmill/toolkit/tests/tickets/Ticket1902.java
src/com/itmill/toolkit/tests/tickets/Ticket1904.java
src/com/itmill/toolkit/tests/tickets/Ticket1916.java
src/com/itmill/toolkit/tests/tickets/Ticket1919.java
src/com/itmill/toolkit/tests/tickets/Ticket1921.java
src/com/itmill/toolkit/tests/tickets/Ticket1923.java
src/com/itmill/toolkit/tests/tickets/Ticket1924ThemeChanging.java
src/com/itmill/toolkit/tests/tickets/Ticket1925.java
src/com/itmill/toolkit/tests/tickets/Ticket1934.java
src/com/itmill/toolkit/tests/tickets/Ticket1939.java
src/com/itmill/toolkit/tests/tickets/Ticket1940.java
src/com/itmill/toolkit/tests/tickets/Ticket1953.java
src/com/itmill/toolkit/tests/tickets/Ticket1966.java
src/com/itmill/toolkit/tests/tickets/Ticket1966_2.java
src/com/itmill/toolkit/tests/tickets/Ticket1966_3.java
src/com/itmill/toolkit/tests/tickets/Ticket1969.java
src/com/itmill/toolkit/tests/tickets/Ticket1970.java
src/com/itmill/toolkit/tests/tickets/Ticket1972.java
src/com/itmill/toolkit/tests/tickets/Ticket1973.java
src/com/itmill/toolkit/tests/tickets/Ticket1973_2.java
src/com/itmill/toolkit/tests/tickets/Ticket1975.java
src/com/itmill/toolkit/tests/tickets/Ticket1982.java
src/com/itmill/toolkit/tests/tickets/Ticket1983.java
src/com/itmill/toolkit/tests/tickets/Ticket1986.java
src/com/itmill/toolkit/tests/tickets/Ticket1991.java
src/com/itmill/toolkit/tests/tickets/Ticket1995.java
src/com/itmill/toolkit/tests/tickets/Ticket20.java
src/com/itmill/toolkit/tests/tickets/Ticket2001.java
src/com/itmill/toolkit/tests/tickets/Ticket2002.java
src/com/itmill/toolkit/tests/tickets/Ticket2009.java
src/com/itmill/toolkit/tests/tickets/Ticket2011.java
src/com/itmill/toolkit/tests/tickets/Ticket2014.java
src/com/itmill/toolkit/tests/tickets/Ticket2021.java
src/com/itmill/toolkit/tests/tickets/Ticket2022.java
src/com/itmill/toolkit/tests/tickets/Ticket2023.java
src/com/itmill/toolkit/tests/tickets/Ticket2024.java
src/com/itmill/toolkit/tests/tickets/Ticket2026.java
src/com/itmill/toolkit/tests/tickets/Ticket2029.java
src/com/itmill/toolkit/tests/tickets/Ticket2032.java
src/com/itmill/toolkit/tests/tickets/Ticket2033.java
src/com/itmill/toolkit/tests/tickets/Ticket2037.java
src/com/itmill/toolkit/tests/tickets/Ticket2038.java
src/com/itmill/toolkit/tests/tickets/Ticket2040.java
src/com/itmill/toolkit/tests/tickets/Ticket2042.java
src/com/itmill/toolkit/tests/tickets/Ticket2043.java
src/com/itmill/toolkit/tests/tickets/Ticket2048.java
src/com/itmill/toolkit/tests/tickets/Ticket2051.java
src/com/itmill/toolkit/tests/tickets/Ticket2060.java
src/com/itmill/toolkit/tests/tickets/Ticket2062.java
src/com/itmill/toolkit/tests/tickets/Ticket2083.java
src/com/itmill/toolkit/tests/tickets/Ticket2095.java
src/com/itmill/toolkit/tests/tickets/Ticket2098.java
src/com/itmill/toolkit/tests/tickets/Ticket2099.java
src/com/itmill/toolkit/tests/tickets/Ticket2101.java
src/com/itmill/toolkit/tests/tickets/Ticket2103.java
src/com/itmill/toolkit/tests/tickets/Ticket2104.java
src/com/itmill/toolkit/tests/tickets/Ticket2106.java
src/com/itmill/toolkit/tests/tickets/Ticket2107.java
src/com/itmill/toolkit/tests/tickets/Ticket2117.java
src/com/itmill/toolkit/tests/tickets/Ticket2119.java
src/com/itmill/toolkit/tests/tickets/Ticket2125.java
src/com/itmill/toolkit/tests/tickets/Ticket2126.java
src/com/itmill/toolkit/tests/tickets/Ticket2151.java
src/com/itmill/toolkit/tests/tickets/Ticket2157.java
src/com/itmill/toolkit/tests/tickets/Ticket2178.java
src/com/itmill/toolkit/tests/tickets/Ticket2181.java
src/com/itmill/toolkit/tests/tickets/Ticket2186.java
src/com/itmill/toolkit/tests/tickets/Ticket2204.java
src/com/itmill/toolkit/tests/tickets/Ticket2221.java
src/com/itmill/toolkit/tests/tickets/Ticket2222.java
src/com/itmill/toolkit/tests/tickets/Ticket2231.java
src/com/itmill/toolkit/tests/tickets/Ticket2234.java
src/com/itmill/toolkit/tests/tickets/Ticket2235.java
src/com/itmill/toolkit/tests/tickets/Ticket2240.java
src/com/itmill/toolkit/tests/tickets/Ticket2242.java
src/com/itmill/toolkit/tests/tickets/Ticket2244.java
src/com/itmill/toolkit/tests/tickets/Ticket2267.java
src/com/itmill/toolkit/tests/tickets/Ticket2271.java
src/com/itmill/toolkit/tests/tickets/Ticket2279.java
src/com/itmill/toolkit/tests/tickets/Ticket2282.java
src/com/itmill/toolkit/tests/tickets/Ticket2287.java
src/com/itmill/toolkit/tests/tickets/Ticket2289.java
src/com/itmill/toolkit/tests/tickets/Ticket2294.java
src/com/itmill/toolkit/tests/tickets/Ticket2296.java
src/com/itmill/toolkit/tests/tickets/Ticket2297.java
src/com/itmill/toolkit/tests/tickets/Ticket2304.java
src/com/itmill/toolkit/tests/tickets/Ticket2310.java
src/com/itmill/toolkit/tests/tickets/Ticket2323.java
src/com/itmill/toolkit/tests/tickets/Ticket2325.java
src/com/itmill/toolkit/tests/tickets/Ticket2329.java
src/com/itmill/toolkit/tests/tickets/Ticket2337.java
src/com/itmill/toolkit/tests/tickets/Ticket2339.java
src/com/itmill/toolkit/tests/tickets/Ticket2341.java
src/com/itmill/toolkit/tests/tickets/Ticket2344.java
src/com/itmill/toolkit/tests/tickets/Ticket2347.java
src/com/itmill/toolkit/tests/tickets/Ticket2364.java
src/com/itmill/toolkit/tests/tickets/Ticket2365.java
src/com/itmill/toolkit/tests/tickets/Ticket2406.java
src/com/itmill/toolkit/tests/tickets/Ticket2407.java
src/com/itmill/toolkit/tests/tickets/Ticket2411.java
src/com/itmill/toolkit/tests/tickets/Ticket677.java
src/com/itmill/toolkit/tests/tickets/Ticket736.java
src/com/itmill/toolkit/tests/tickets/Ticket846.java
src/com/itmill/toolkit/tests/util/LogPrintWriter.java
src/com/itmill/toolkit/tests/util/RandomComponents.java
src/com/itmill/toolkit/ui/AbstractComponentContainer.java
src/com/itmill/toolkit/ui/AbstractField.java
src/com/itmill/toolkit/ui/AbstractLayout.java
src/com/itmill/toolkit/ui/AbstractOrderedLayout.java
src/com/itmill/toolkit/ui/AbstractSelect.java
src/com/itmill/toolkit/ui/Accordion.java
src/com/itmill/toolkit/ui/BaseFieldFactory.java
src/com/itmill/toolkit/ui/Button.java
src/com/itmill/toolkit/ui/CheckBox.java
src/com/itmill/toolkit/ui/ComboBox.java
src/com/itmill/toolkit/ui/CustomComponent.java
src/com/itmill/toolkit/ui/CustomLayout.java
src/com/itmill/toolkit/ui/DateField.java
src/com/itmill/toolkit/ui/Embedded.java
src/com/itmill/toolkit/ui/Form.java
src/com/itmill/toolkit/ui/FormLayout.java
src/com/itmill/toolkit/ui/GridLayout.java
src/com/itmill/toolkit/ui/Label.java
src/com/itmill/toolkit/ui/Link.java
src/com/itmill/toolkit/ui/ListSelect.java
src/com/itmill/toolkit/ui/LoginForm.java
src/com/itmill/toolkit/ui/MenuBar.java
src/com/itmill/toolkit/ui/NativeSelect.java
src/com/itmill/toolkit/ui/OptionGroup.java
src/com/itmill/toolkit/ui/PopupView.java
src/com/itmill/toolkit/ui/ProgressIndicator.java
src/com/itmill/toolkit/ui/Select.java
src/com/itmill/toolkit/ui/Slider.java
src/com/itmill/toolkit/ui/TabSheet.java
src/com/itmill/toolkit/ui/Tree.java
src/com/itmill/toolkit/ui/TwinColSelect.java
src/com/itmill/toolkit/ui/Upload.java
src/com/itmill/toolkit/ui/Window.java

index a81e1daa1a96d0b32c97b26c6d8940472a76a455..01f3990bd202c63228bafc274a03bf7512788a13 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class SimplestApplication extends com.itmill.toolkit.Application {
 
+    @Override
     public void init() {
         final Window main = new Window("Simplest Application window");
         setMainWindow(main);
index c8034e26774bf8aa7f14270adb4bd411d661eb64..14026aecd12d8dd62c87f29287a8d6d1b620d59f 100644 (file)
@@ -33,6 +33,7 @@ public abstract class Robustness extends com.itmill.toolkit.Application
 
     RandomComponents randomComponents = new RandomComponents();
 
+    @Override
     public void init() {
         createNewView();
     }
@@ -61,9 +62,9 @@ public abstract class Robustness extends com.itmill.toolkit.Application
     }
 
     public void buttonClick(ClickEvent event) {
-        if (event.getButton() == create)
+        if (event.getButton() == create) {
             create();
-        else if (event.getButton() == remove) {
+        else if (event.getButton() == remove) {
             main.removeAllComponents();
             close.removeListener(this);
             remove.removeListener(this);
index 4f9325693da33da2de58f6cb7010067cf21165f6..1770cdd1411d5f9340d005f35eb9e4ae92ed5b62 100644 (file)
@@ -14,13 +14,15 @@ public class RobustnessComplex extends Robustness implements
     /**
      * Create complex layouts with components and listeners.
      */
+    @Override
     public void create() {
         count++;
 
         // remove old stressLayout, all dependant components should be now
         // allowed for garbage collection.
-        if (stressLayout != null)
+        if (stressLayout != null) {
             main.removeComponent(stressLayout);
+        }
 
         // create new stress layout
         stressLayout = randomComponents
index 43c0efe9df1a74decab48eca08ff7f1fea369350..8d113e0fe5989c76a8ae440f0569497461d2ea7d 100644 (file)
@@ -68,10 +68,11 @@ public class Log {
             String clazz = st[3].getClassName() + ".java";
             key = "(" + clazz + ":" + line + ")" + " " + methodName;
             Integer value = (Integer) classMethodCallCounter.get(key);
-            if (value == null)
+            if (value == null) {
                 value = new Integer(1);
-            else
+            } else {
                 value = new Integer(value.intValue() + 1);
+            }
             classMethodCallCounter.put(key, value);
             return value.intValue() + ": " + key;
         } catch (Exception e) {
@@ -93,10 +94,11 @@ public class Log {
     public void add(int type, String message) {
         String source = getSource();
         if (type >= debug) {
-            if (showClassInformation)
+            if (showClassInformation) {
                 System.out.println(source + ": " + message);
-            else
+            } else {
                 System.out.println(message);
+            }
         }
     }
 
index e13102ea7325f15ac6fbc47f633f60b02dbe2862..9912b23d1bfb2e0380359840b57796adbeeb5f2e 100644 (file)
@@ -55,11 +55,13 @@ public class StatusServlet extends HttpServlet {
         VERSION_BUILD = digits[2];
     }
 
+    @Override
     public void init(javax.servlet.ServletConfig servletConfig)
             throws javax.servlet.ServletException {
         super.init(servletConfig);
     }
 
+    @Override
     protected void service(HttpServletRequest request,
             HttpServletResponse response) throws ServletException, IOException {
         Writer w = response.getWriter();
@@ -72,8 +74,9 @@ public class StatusServlet extends HttpServlet {
 
         String p = "";
         p += "<p>StatusServlet " + dfHuman.format(new Date()) + "</p>";
-        for (int i = 0; i < 30; i++)
+        for (int i = 0; i < 30; i++) {
             System.gc();
+        }
         long inUse = (Runtime.getRuntime().totalMemory() - Runtime.getRuntime()
                 .freeMemory());
         p += "<p>Memory:<br />\n<memused>" + inUse
index fde5ca03d308d3126fe25e3ff8b2f8eb0b368bf7..8fd9b1c5bed0f7835e24fa7cedb362a48de9e29e 100644 (file)
@@ -198,6 +198,7 @@ public interface Buffered {
          *             is possible if the commit operation triggers more than
          *             one error at the same time.
          */
+        @Override
         public final Throwable getCause() {
             if (causes.length == 0) {
                 return null;
index a07d4041f7983a238f5a6ff9349958dcc0639f9e..91dd00fc463d9283bd07707b0e86a31b86d134bf 100644 (file)
@@ -440,8 +440,9 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
     public Item addItem(Object itemId) throws UnsupportedOperationException {
 
         // Null ids are not accepted
-        if (itemId == null)
+        if (itemId == null) {
             throw new NullPointerException("Container item id can not be null");
+        }
 
         final Item item = container.addItem(itemId);
         if (!hierarchical && item != null) {
@@ -672,10 +673,12 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
 
         }
 
+        @Override
         public boolean equals(Object obj) {
             return obj == listener || (obj != null && obj.equals(listener));
         }
 
+        @Override
         public int hashCode() {
             return listener.hashCode();
         }
index 1753a051c9fb7933ab125845256cc37f61697a63..c9e5736b9a2fff0a32cf788e0a59b80ec948cfbb 100644 (file)
@@ -588,10 +588,12 @@ public class ContainerOrderedWrapper implements Container.Ordered,
 
         }
 
+        @Override
         public boolean equals(Object obj) {
             return obj == listener || (obj != null && obj.equals(listener));
         }
 
+        @Override
         public int hashCode() {
             return listener.hashCode();
         }
index 5ede26cc4f666c8eb2594d3c6d9eee282638467d..f1d5273003f63766b9f5ddeed070641d7731239e 100644 (file)
@@ -628,6 +628,7 @@ public class FilesystemContainer implements Container.Hierarchical {
          * 
          * @return A locally unique hash-code as integer
          */
+        @Override
         public int hashCode() {
             return file.hashCode() ^ FilesystemContainer.this.hashCode();
         }
@@ -641,6 +642,7 @@ public class FilesystemContainer implements Container.Hierarchical {
          * @return <code>true</code> if the given object is the same as this
          *         object, <code>false</code> if not
          */
+        @Override
         public boolean equals(Object obj) {
             if (obj == null || !(obj instanceof FileItem)) {
                 return false;
@@ -698,6 +700,7 @@ public class FilesystemContainer implements Container.Hierarchical {
         /**
          * @see java.lang.Object#toString()
          */
+        @Override
         public String toString() {
             if ("".equals(file.getName())) {
                 return file.getAbsolutePath();
index 4af097e5bb7096533515f28ef83e6b51def2eafd..c702c14795db546bafbab505421ab020088630df 100644 (file)
@@ -237,6 +237,7 @@ public class HierarchicalContainer extends IndexedContainer implements
      * 
      * @see com.itmill.toolkit.data.util.IndexedContainer#addItem()
      */
+    @Override
     public Object addItem() {
         final Object id = super.addItem();
         if (id != null && !roots.contains(id)) {
@@ -252,6 +253,7 @@ public class HierarchicalContainer extends IndexedContainer implements
      * @see
      * com.itmill.toolkit.data.util.IndexedContainer#addItem(java.lang.Object)
      */
+    @Override
     public Item addItem(Object itemId) {
         final Item item = super.addItem(itemId);
         if (item != null) {
@@ -265,6 +267,7 @@ public class HierarchicalContainer extends IndexedContainer implements
      * 
      * @see com.itmill.toolkit.data.util.IndexedContainer#removeAllItems()
      */
+    @Override
     public boolean removeAllItems() {
         final boolean success = super.removeAllItems();
 
@@ -284,6 +287,7 @@ public class HierarchicalContainer extends IndexedContainer implements
      * com.itmill.toolkit.data.util.IndexedContainer#removeItem(java.lang.Object
      * )
      */
+    @Override
     public boolean removeItem(Object itemId) {
         final boolean success = super.removeItem(itemId);
 
index bf08158ee0ea145187f204d968fff100b8cea5fb..eca382d91cf0328d1072dd12309e559f942e019b 100644 (file)
@@ -1116,6 +1116,7 @@ public class IndexedContainer implements Container, Container.Indexed,
          * 
          * @return <code>String</code> representation of the Item contents
          */
+        @Override
         public String toString() {
             String retValue = "";
 
@@ -1138,6 +1139,7 @@ public class IndexedContainer implements Container, Container.Indexed,
          * 
          * @return A locally unique hash-code as integer
          */
+        @Override
         public int hashCode() {
             return itemId.hashCode();
         }
@@ -1151,6 +1153,7 @@ public class IndexedContainer implements Container, Container.Indexed,
          * @return <code>true</code> if the given object is the same as this
          *         object, <code>false</code> if not
          */
+        @Override
         public boolean equals(Object obj) {
             if (obj == null
                     || !obj.getClass().equals(IndexedContainerItem.class)) {
@@ -1347,6 +1350,7 @@ public class IndexedContainer implements Container, Container.Indexed,
          * @return <code>String</code> representation of the value stored in the
          *         Property
          */
+        @Override
         public String toString() {
             final Object value = getValue();
             if (value == null) {
@@ -1364,6 +1368,7 @@ public class IndexedContainer implements Container, Container.Indexed,
          * 
          * @return A locally unique hash-code as integer
          */
+        @Override
         public int hashCode() {
             return itemId.hashCode() ^ propertyId.hashCode();
         }
@@ -1377,6 +1382,7 @@ public class IndexedContainer implements Container, Container.Indexed,
          * @return <code>true</code> if the given object is the same as this
          *         object, <code>false</code> if not
          */
+        @Override
         public boolean equals(Object obj) {
             if (obj == null
                     || !obj.getClass().equals(IndexedContainerProperty.class)) {
@@ -1533,6 +1539,7 @@ public class IndexedContainer implements Container, Container.Indexed,
      * @throws CloneNotSupportedException
      *             if an object cannot be cloned. .
      */
+    @Override
     public Object clone() throws CloneNotSupportedException {
 
         // Creates the clone
@@ -1589,6 +1596,7 @@ public class IndexedContainer implements Container, Container.Indexed,
      * 
      * @see java.lang.Object#equals(java.lang.Object)
      */
+    @Override
     public boolean equals(Object obj) {
         return super.equals(obj);
     }
@@ -1608,6 +1616,7 @@ public class IndexedContainer implements Container, Container.Indexed,
             this.onlyMatchPrefix = onlyMatchPrefix;
         }
 
+        @Override
         public boolean equals(Object obj) {
 
             // Only ones of the objects of the same class can be equal
@@ -1635,6 +1644,7 @@ public class IndexedContainer implements Container, Container.Indexed,
             return true;
         }
 
+        @Override
         public int hashCode() {
             return (propertyId != null ? propertyId.hashCode() : 0)
                     ^ (filterString != null ? filterString.hashCode() : 0);
index 45a3e53a4eb5f604765b9925eb98db27e437a5a9..165d54c90230a7925465722564f03585765c724c 100644 (file)
@@ -559,6 +559,7 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
      * 
      * @return String representation of the value stored in the Property
      */
+    @Override
     public String toString() {
         final Object value = getValue();
         if (value == null) {
@@ -734,6 +735,7 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
         /**
          * @see java.lang.Throwable#getCause()
          */
+        @Override
         public Throwable getCause() {
             return cause;
         }
index c89d1f5cc98faa3d8dcc09dd98d68cee19f8bf52..1821a815ed405d45d9b7349e80bb757378250067 100644 (file)
@@ -122,6 +122,7 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
      * @return <code>String</code> representation of the value stored in the
      *         ObjectProperty
      */
+    @Override
     public String toString() {
         final Object value = getValue();
         if (value != null) {
index 62f793213f2d924909565646ca10636b69034c0b..c6454a7f470d80ff2c266b76a9b37d394388deeb 100644 (file)
@@ -143,6 +143,7 @@ public abstract class PropertyFormatter implements Property,
      * @return If the datasource returns null, this is null. Otherwise this is
      *         String given by format().
      */
+    @Override
     public String toString() {
         Object value = dataSource == null ? false : dataSource.getValue();
         if (value == null) {
index fd60121ebc2f97d46e3b669437c12bdb343f036a..dfc819ca7eeab5a6456635fd094296a7aab87826 100644 (file)
@@ -109,8 +109,9 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
     public boolean addItemProperty(Object id, Property property) {
 
         // Null ids are not accepted
-        if (id == null)
+        if (id == null) {
             throw new NullPointerException("Item property id can not be null");
+        }
 
         // Cant add a property twice
         if (map.containsKey(id)) {
@@ -135,6 +136,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      * 
      * @return <code>String</code> representation of the Item contents
      */
+    @Override
     public String toString() {
         String retValue = "";
 
@@ -243,6 +245,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      * 
      * @see java.lang.Object#clone()
      */
+    @Override
     public Object clone() throws CloneNotSupportedException {
 
         final PropertysetItem npsi = new PropertysetItem();
@@ -267,6 +270,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      *         otherwise <code>false</code>.
      * @see java.lang.Object#equals(java.lang.Object)
      */
+    @Override
     public boolean equals(Object obj) {
 
         if (obj == null || !(obj instanceof PropertysetItem)) {
@@ -310,6 +314,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      * @return the hash code value.
      * @see java.lang.Object#hashCode()
      */
+    @Override
     public int hashCode() {
 
         return (list == null ? 0 : list.hashCode())
index b22064dbdb2717484afc22bde2b8be292a0e6010..2c76e587025f59c7c06a31e3a694889bc4a058a7 100644 (file)
@@ -562,6 +562,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * 
      * @see #close()
      */
+    @Override
     public void finalize() {
         try {
             close();
index e6b6bc3a61ac01dd58ca2917411873d9db6b1f77..91756b09fd20c8cdc3b728658154c9894d872cdf 100644 (file)
@@ -27,6 +27,7 @@ public class BrowserDemo extends com.itmill.toolkit.Application implements
     // The embedded page
     Embedded emb = new Embedded();
 
+    @Override
     public void init() {
         // Create and set main window
         final Window browser = new Window("IT Mill Browser");
index 38846cfc4bd3e78e5178a25a415ec47768af707d..e66ba6481a9f1de626b588ad2b6564cd6aed5939 100644 (file)
@@ -20,6 +20,7 @@ public class BufferedComponents extends Application {
 
     private TextField text;
 
+    @Override
     public void init() {
 
         final Window w = new Window("Buffered UI components demo");
index 8b44aa01195a9ad3026e950cf59bf910c6c58fe4..820ccca7e259f727aa66a6943900aad1437d7a62 100644 (file)
@@ -23,6 +23,7 @@ import com.itmill.toolkit.ui.Window;
  */\r
 public class CachingDemo extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
 \r
         final Window main = new Window("Client-side caching example");\r
@@ -47,6 +48,7 @@ public class CachingDemo extends com.itmill.toolkit.Application {
         layout.setMargin(true);\r
         l = new Label(\r
                 "The first time you change to this tab, this label is very slow to produce (server-side).<br/> However, it will seem fast the second time you change to this tab, because it has not changed and is cached client-side.") {\r
+            @Override\r
             public void paintContent(PaintTarget target) throws PaintException {\r
                 try {\r
                     Thread.sleep(3000);\r
index 4348826a67b233ecb97782e59b6a88916270ed69..bc9e898a5215b75d3ffec2492002c8d0ce077782 100644 (file)
@@ -24,6 +24,7 @@ public class Calc extends com.itmill.toolkit.Application {
     private final GridLayout layout = new GridLayout(4, 5);
 
     // Application initialization creates UI and connects it to business logic
+    @Override
     public void init() {
 
         // Place the layout to a floating dialog inside the browser main window
index 25a12b38b1207b560211b6d028002876a4305e51..f4a9472fcd9ec8620d23f00192c3c96b3728e957 100644 (file)
@@ -37,6 +37,7 @@ public class FilterSelect extends com.itmill.toolkit.Application {
      * com.itmill.toolkit.service.Application class. It will be automatically
      * called by the framework when a user accesses the application.
      */
+    @Override
     public void init() {
 
         /*
index 35ac5fcf311c1f19ee93b9d3b57506f1c3f1daad..bcbf447d09dc217117a29789ce6beae53596ae8c 100644 (file)
@@ -24,6 +24,7 @@ public class HelloWorld extends com.itmill.toolkit.Application {
      * com.itmill.toolkit.service.Application class. It will be automatically
      * called by the framework when a user accesses the application.
      */
+    @Override
     public void init() {
 
         /*
index 5ce9c9ba2c1b90fb8dabb2be216194a2eabec2b9..7d3a3a1977fa0792d5e5a0ac59051d034cf0cde3 100644 (file)
@@ -65,6 +65,7 @@ public class KeyboardShortcut extends Application implements Handler {
 
     private TextField f;
 
+    @Override
     public void init() {
 
         final Window w = new Window("Keyboard shortcuts demo");
@@ -98,7 +99,7 @@ public class KeyboardShortcut extends Application implements Handler {
 
         loki = new VerticalLayout();
         main.addComponent(loki);
-        main.setExpandRatio(loki,1.0f);
+        main.setExpandRatio(loki, 1.0f);
 
         w.addActionHandler(this);
 
index 860b54f243e6b0e1916b19f37afdfd3d712dfa21..8abe65ace865d5c47d7b84d5ab0b04653fe6cb90 100644 (file)
@@ -34,6 +34,7 @@ public class NotificationDemo extends com.itmill.toolkit.Application {
      * com.itmill.toolkit.service.Application class. It will be automatically
      * called by the framework when a user accesses the application.
      */
+    @Override
     public void init() {
 
         // Create new window for the application and give the window a visible.
index e4089612f3c24aed872e05969fa978576258991a..57d8027795b0a36d3fad9185edaf95f811319190 100644 (file)
@@ -38,6 +38,7 @@ public class PortletDemo extends Application {
     Link portletMax = new Link();\r
     Link someAction = null;\r
 \r
+    @Override\r
     public void init() {\r
         main = new Window();\r
         setMainWindow(main);\r
index c3569012959eba86d207c5282980b6fc842a6cd8..ec0ddcb647cfae624e586734089ba6102ec4c190 100644 (file)
@@ -35,6 +35,7 @@ public class SelectDemo extends com.itmill.toolkit.Application {
     /**
      * Initialize Application. Demo components are added to main window.
      */
+    @Override
     public void init() {
         final Window main = new Window("Select demo");
         setMainWindow(main);
index 68176a6e28943cf9befaf0d7713ffe98253c3ec9..c5eee7595992cf71a8fdee09c05055815e28b8f0 100644 (file)
@@ -69,6 +69,7 @@ public class TableDemo extends com.itmill.toolkit.Application implements
     /**
      * Initialize Application. Demo components are added to main window.
      */
+    @Override
     public void init() {
         final Window main = new Window("Table demo");
         setMainWindow(main);
index 36a7cfc119c5671ab957729ae02ce9f612306434..26e745bb8e7a86c47384e3e4e3f49185c88d31fd 100644 (file)
@@ -37,6 +37,7 @@ public class WindowedDemos extends com.itmill.toolkit.Application {
         servlets.put("Notification demo", "NotificationDemo/");
     }
 
+    @Override
     public void init() {
 
         // Create new window for the application and give the window a visible.
index a6a6ff249e70487e8a6770c3b506bb663eecb81a..ad90a74abc98c1467ee70500e006db10e60fcb82 100644 (file)
@@ -18,11 +18,13 @@ public class ColorPicker extends AbstractField {
     }
 
     /** The property value of the field is an Integer. */
+    @Override
     public Class getType() {
         return String.class;
     }
 
     /** Tag is the UIDL element name for client-server communications. */
+    @Override
     public String getTag() {
         return "colorpicker";
     }
@@ -41,6 +43,7 @@ public class ColorPicker extends AbstractField {
     }
 
     /** Paint (serialize) the component for the client. */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         // Superclass writes any common attributes in the paint target.
         super.paintContent(target);
@@ -51,6 +54,7 @@ public class ColorPicker extends AbstractField {
     }
 
     /** Deserialize changes received from client. */
+    @Override
     public void changeVariables(Object source, Map variables) {
         // Sets the currently selected color
         if (variables.containsKey("colorname") && !isReadOnly()) {
index e1fd2a1a8ccf4232c0cbff1aa769c9e6ee8a7191..a69a552516bcb79ce19fe2094902d98f4430a8e0 100644 (file)
@@ -24,6 +24,7 @@ public class ColorPickerApplication extends com.itmill.toolkit.Application {
     /* Another component. */
     Label colorname;
 
+    @Override
     public void init() {
         setMainWindow(main);
 
index 5661c28e9ab5b396b26b836b64d80e5d91a7d87a..51131534c918f0f5338d0c174e81f1ca8d5a7a76 100644 (file)
@@ -11,20 +11,24 @@ import com.itmill.toolkit.terminal.gwt.client.UIDL;
 \r
 public class ColorPickerWidgetSet extends DefaultWidgetSet {\r
     /** Resolves UIDL tag name to widget class. */\r
+    @Override\r
     protected Class resolveWidgetType(UIDL uidl) {\r
         final String tag = uidl.getTag();\r
-        if ("colorpicker".equals(tag))\r
+        if ("colorpicker".equals(tag)) {\r
             return IColorPicker.class;\r
+        }\r
 \r
         // Let the DefaultWidgetSet handle resolution of default widgets\r
         return super.resolveWidgetType(uidl);\r
     }\r
 \r
     /** Creates a widget instance according to its class object. */\r
+    @Override\r
     public Paintable createWidget(UIDL uidl) {\r
         final Class type = resolveWidgetType(uidl);\r
-        if (IColorPicker.class == type)\r
+        if (IColorPicker.class == type) {\r
             return new IColorPicker();\r
+        }\r
 \r
         // Let the DefaultWidgetSet handle creation of default widgets\r
         return super.createWidget(uidl);\r
index e2612352275d516f67089d9af0c6b77b33c08eeb..b4d060d52845ede1802873831ed03ec579e12c06 100644 (file)
@@ -40,11 +40,14 @@ public class GwtColorPicker extends Composite implements ClickListener {
 
                 // Set the button background colors.
                 DOM.setStyleAttribute(button.getElement(), "background",
-                                      colors[colornum]);
+                        colors[colornum]);
 
                 // For dark colors, the button label must be in white.
-                if ("black navy maroon blue purple".indexOf(colors[colornum]) != -1)
-                    DOM.setStyleAttribute(button.getElement(), "color", "white");
+                if ("black navy maroon blue purple".indexOf(colors[colornum]) != -1) {
+                    DOM
+                            .setStyleAttribute(button.getElement(), "color",
+                                    "white");
+                }
             }
         }
 
@@ -63,7 +66,7 @@ public class GwtColorPicker extends Composite implements ClickListener {
         // before the widget has been added to the horizontal panel.
         final Element panelcell = DOM.getParent(currentcolor.getElement());
         DOM.setElementProperty(panelcell, "className",
-                               "colorpicker-currentcolorbox");
+                "colorpicker-currentcolorbox");
 
         // Set initial color. This will be overridden with the value read from
         // server.
@@ -87,14 +90,15 @@ public class GwtColorPicker extends Composite implements ClickListener {
         // Obtain the DOM elements. This assumes that the <td> element
         // of the HorizontalPanel is the parent of the label element.
         final Element nameelement = currentcolor.getElement();
-        final Element cell        = DOM.getParent(nameelement);
+        final Element cell = DOM.getParent(nameelement);
 
         // Give feedback by changing the background color
-        DOM.setStyleAttribute(cell,        "background", newcolor);
+        DOM.setStyleAttribute(cell, "background", newcolor);
         DOM.setStyleAttribute(nameelement, "background", newcolor);
-        if ("black navy maroon blue purple".indexOf(newcolor) != -1)
+        if ("black navy maroon blue purple".indexOf(newcolor) != -1) {
             DOM.setStyleAttribute(nameelement, "color", "white");
-        else
+        } else {
             DOM.setStyleAttribute(nameelement, "color", "black");
+        }
     }
 }
index 44e3fbe1f97c85be38181500c49075bc95946321..8e893fb117e66ed6116551273ada80e9a99ada0d 100644 (file)
@@ -42,8 +42,9 @@ public class IColorPicker extends GwtColorPicker implements Paintable {
     public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
         // This call should be made first. Ensure correct implementation,
         // and let the containing layout manage caption, etc.
-        if (client.updateComponent(this, uidl, true))
+        if (client.updateComponent(this, uidl, true)) {
             return;
+        }
 
         // Save reference to server connection object to be able to send
         // user interaction later
@@ -57,10 +58,12 @@ public class IColorPicker extends GwtColorPicker implements Paintable {
     }
 
     /** Override the method to communicate the new value to server. */
+    @Override
     public void setColor(String newcolor) {
         // Ignore if no change
-        if (newcolor.equals(currentcolor.getText()))
+        if (newcolor.equals(currentcolor.getText())) {
             return;
+        }
 
         // Let the original implementation to do whatever it needs to do
         super.setColor(newcolor);
@@ -68,8 +71,9 @@ public class IColorPicker extends GwtColorPicker implements Paintable {
         // Updating the state to the server can not be done before
         // the server connection is known, i.e., before updateFromUIDL()
         // has been called.
-        if (uidlId == null || client == null)
+        if (uidlId == null || client == null) {
             return;
+        }
 
         // Communicate the user interaction parameters to server. This call will
         // initiate an AJAX request to the server.
index e983c963c47b360e8bfab2e46d8c4503566db33c..664fc6d5d945034492a83949c234ccbe1f9aecf7 100644 (file)
@@ -38,6 +38,7 @@ public class CalendarDemo extends com.itmill.toolkit.Application {
     /**
      * Initialize Application. Demo components are added to main window.
      */
+    @Override
     public void init() {
         final Window main = new Window("Calendar demo");
         setMainWindow(main);
index 2895182c3fd5370d8ab29add79485acd7b67f77c..03da8221c6c41b52edd04865e8e4f50c87dcc6d6 100644 (file)
@@ -63,6 +63,7 @@ public class CalendarField extends DateField implements Container.Viewer {
      * Gets the components UIDL tag string. Don't add a JavaDoc comment here, we\r
      * use the default documentation from implemented interface.\r
      */\r
+    @Override\r
     public String getTag() {\r
         return TAGNAME;\r
     }\r
@@ -80,6 +81,7 @@ public class CalendarField extends DateField implements Container.Viewer {
      *            the resolution to set.\r
      * @see com.itmill.toolkit.ui.DateField#setResolution(int)\r
      */\r
+    @Override\r
     public void setResolution(int resolution) {\r
         if (resolution != RESOLUTION_DAY && resolution != RESOLUTION_HOUR) {\r
             throw new IllegalArgumentException();\r
@@ -232,6 +234,7 @@ public class CalendarField extends DateField implements Container.Viewer {
      * @throws PaintException\r
      *             if the paint operation failed.\r
      */\r
+    @Override\r
     public void paintContent(PaintTarget target) throws PaintException {\r
         super.paintContent(target);\r
 \r
index 7079823be68894da4f3246e1700a75a6aa509f00..2dac57be631cdf1bfd4a55bc8dfcf8c2021301cc 100644 (file)
@@ -29,10 +29,12 @@ public class GoogleMap extends AbstractComponent implements Sizeable,
     private Object itemMarkerXPropertyId = new Object();\r
     private Object itemMarkerYPropertyId = new Object();\r
 \r
+    @Override\r
     public String getTag() {\r
         return "googlemap";\r
     }\r
 \r
+    @Override\r
     public void paintContent(PaintTarget target) throws PaintException {\r
         super.paintContent(target);\r
         // Add size info as variables\r
index ad661a3a6c1deab2f267b81beed9c65210304bc4..6c7ce5b9a0e41f3323133c6402395a94d0890b52 100644 (file)
@@ -53,6 +53,7 @@ public class ReservationApplication extends Application {
 \r
     private GoogleMap map;\r
 \r
+    @Override\r
     public void init() {\r
         //\r
         db = new SampleDB();\r
index 4534449b709ea656fb52385bdf9ddeb06a576ec5..71582ba0c5f2b53d222eea2e69a9a84096f1b432 100644 (file)
@@ -11,6 +11,7 @@ import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;\r
 \r
 public class ReservationWidgetSet extends DefaultWidgetSet {\r
+    @Override\r
     public Paintable createWidget(UIDL uidl) {\r
         final Class type = resolveWidgetType(uidl);\r
         if (IGoogleMap.class == type) {\r
@@ -22,6 +23,7 @@ public class ReservationWidgetSet extends DefaultWidgetSet {
         return super.createWidget(uidl);\r
     }\r
 \r
+    @Override\r
     protected Class resolveWidgetType(UIDL uidl) {\r
         final String tag = uidl.getTag();\r
         if ("googlemap".equals(tag)) {\r
index 57ec7e675640f2226446c1758c3c83cdb3dbaa32..8b82260418561f73635c46f4b8f583457cf9dbf2 100644 (file)
@@ -56,6 +56,7 @@ public class ICalendarField extends IDateField {
         });\r
     }\r
 \r
+    @Override\r
     public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {\r
         super.updateFromUIDL(uidl, client);\r
         // We want to draw our own hour list\r
index c5e9f284289ec2f230ad4e2fc4f19eba74946a76..b123bc5105370410414c6384e848a926868a2aac 100644 (file)
@@ -42,6 +42,7 @@ public class SimpleReserver extends Application {
 
     protected User user;
 
+    @Override
     public void init() {
         final Window w = new Window("Simple Reserver");
         w.addStyleName("simplereserver");
@@ -110,6 +111,7 @@ public class SimpleReserver extends Application {
         return db;
     }
 
+    @Override
     public Object getUser() {
         if (getContext() instanceof PortletApplicationContext) {
             try {
index 0c557727808fa5a69ddbad2c4341e75484cdb353..5432e96fc1725d4cd66922b244b4252d4e76b2f0 100644 (file)
@@ -33,6 +33,7 @@ public class ActiveLink extends Link {
         super(caption, resource);
     }
 
+    @Override
     public String getTag() {
         return TAG;
     }
@@ -84,6 +85,7 @@ public class ActiveLink extends Link {
         fireEvent(new LinkActivatedEvent(this, linkOpened));
     }
 
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         super.paintContent(target);
 
@@ -93,6 +95,7 @@ public class ActiveLink extends Link {
         }
     }
 
+    @Override
     public void changeVariables(Object source, Map variables) {
         super.changeVariables(source, variables);
         if (!isReadOnly() && variables.containsKey("activated")) {
index 57288f090e1b3dfc3da9398cc3afcf19c1fe4f29..67f8875567e5b8acbfd7e828ea35aec755d1b2ad 100644 (file)
@@ -14,10 +14,12 @@ public class CodeLabel extends Label {
         super(content, CONTENT_PREFORMATTED);
     }
 
+    @Override
     public String getTag() {
         return TAG;
     }
 
+    @Override
     public void setContentMode(int contentMode) {
         if (contentMode != Label.CONTENT_PREFORMATTED) {
             throw new UnsupportedOperationException(
index ea8b7a90c7e6ee8b2473d2ab232d4fe06d845299..b62b10c6c143d47fa0859bbfbc5c89cb9b31a0bb 100644 (file)
@@ -57,8 +57,8 @@ abstract public class Feature {
      * May return null, if the example has no related resources.
      * </p>
      * <p>
-     * The name of the NamedExternalResource will be shown in the UI. <br/> Note
-     * that Javadoc should be referenced via {@link #getRelatedAPI()}.
+     * The name of the NamedExternalResource will be shown in the UI. <br/>
+     * Note that Javadoc should be referenced via {@link #getRelatedAPI()}.
      * </p>
      * 
      * @see #getThemeBase()
@@ -176,6 +176,7 @@ abstract public class Feature {
         return SamplerApplication.getThemeBase();
     }
 
+    @Override
     public String toString() {
         return getName();
     }
index 4f99741a4ad85f2034cb24db1ded1892cbf4eae3..3e92e9ec79985a2f7fdb1381512ae944366c7148 100644 (file)
@@ -210,30 +210,37 @@ public class FeatureSet extends Feature {
         }
     }
 
+    @Override
     public String getDescription() {
         return desc;
     }
 
+    @Override
     public String getPathName() {
         return pathname;
     }
 
+    @Override
     public String getName() {
         return name;
     }
 
+    @Override
     public String getIconName() {
         return icon;
     }
 
+    @Override
     public APIResource[] getRelatedAPI() {
         return null;
     }
 
+    @Override
     public Class[] getRelatedFeatures() {
         return null;
     }
 
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         return null;
     }
index 3897dee4a23eee48d3856edb609d11c094218260..ac9760592e9d15aa765fa3b35ee8937c29eb6b7f 100644 (file)
@@ -21,6 +21,7 @@ public class GoogleAnalytics extends AbstractComponent {
         this.domainName = domainName;
     }
 
+    @Override
     public String getTag() {
         return TAG;
     }
@@ -38,6 +39,7 @@ public class GoogleAnalytics extends AbstractComponent {
         requestRepaint();
     }
 
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         super.paintContent(target);
         target.addAttribute("trackerid", trackerId);
index 22403efd4378511f92f6d95c427bec051fc587c1..6db2c44318d794a8bf56a818501fa1bf4353f514 100644 (file)
@@ -50,6 +50,7 @@ public class SamplerApplication extends Application {
     // used when trying to guess theme location
     private static String APP_URL = null;
 
+    @Override
     public void init() {
         setTheme("sampler");
         setMainWindow(new SamplerWindow());
@@ -72,6 +73,7 @@ public class SamplerApplication extends Application {
     }
 
     // Supports multiple browser windows
+    @Override
     public Window getWindow(String name) {
         /*- REST code, using fragments
         if (features.getFeatureByPath(name) != null) {
index 1f1ed06bbb0025c0b9211d9c24999a49779efe50..aaebc9aa49f01f4680d995d2f537d6f060c88244 100644 (file)
@@ -10,6 +10,7 @@ import com.itmill.toolkit.ui.Link;
 
 public class ProminentPrimaryAction extends Feature {
 
+    @Override
     public String getDescription() {
         return "A primary action is an action that is clearly the"
                 + " default, and it should be visually more prominent"
@@ -21,15 +22,18 @@ public class ProminentPrimaryAction extends Feature {
                 + " - don't force it if it's not obvious.";
     }
 
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Button.class),
                 new APIResource(Link.class) };
     }
 
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { ButtonPush.class, ButtonLink.class };
     }
 
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         return new NamedExternalResource[] {
 
index 7b62c08637ca2ac2a36fac4671df9e8f41fc5d69..94fb0933aee5bce6f2523ec095819a699f545c9f 100644 (file)
@@ -12,16 +12,17 @@ import com.itmill.toolkit.ui.Button;
 
 public class ButtonLink extends Feature {
 
+    @Override
     public String getDescription() {
         return "A link-styled button.";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Button.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { ButtonPush.class, ButtonSwitch.class,
                 LinkCurrentWindow.class, LinkNoDecorations.class,
@@ -29,7 +30,7 @@ public class ButtonLink extends Feature {
                 FeatureSet.Links.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         // TODO Auto-generated method stub
         return null;
index f438f7c1da4b518a20d4e74758b44511cb57ba3c..6988bee270937741e58c7f3e686ea21303694c9e 100644 (file)
@@ -8,22 +8,23 @@ import com.itmill.toolkit.ui.Button;
 
 public class ButtonPush extends Feature {
 
+    @Override
     public String getDescription() {
         return "A basic push-button.";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Button.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { ButtonLink.class, ButtonSwitch.class,
                 ProminentPrimaryAction.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         // TODO Auto-generated method stub
         return null;
index aa9163bafb8088f3c9a009cab20588ec831a92a2..f3bf7d52fc81384a113cc580332e837244dc9ef7 100644 (file)
@@ -8,22 +8,23 @@ import com.itmill.toolkit.ui.Button;
 
 public class ButtonSwitch extends Feature {
 
+    @Override
     public String getDescription() {
         return "A switch button.";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Button.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { ButtonPush.class, ButtonLink.class,
                 ProminentPrimaryAction.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         // TODO Auto-generated method stub
         return null;
index 58cb75643684740510469f32ab51666f74b97066..c30fd22c576ec7acb3e845ce0f776412ac763a56 100644 (file)
@@ -7,7 +7,7 @@ import com.itmill.toolkit.ui.Component;
 
 public class Icons extends Feature {
 
-    
+    @Override
     public String getDescription() {
         return "Most components can have an <i>icon</i>,"
                 + " which is usually displayed next to the caption.<br/>"
@@ -16,18 +16,18 @@ public class Icons extends Feature {
                 + " Beware of overuse, which will have the opposite effect.";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Component.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         // TODO Auto-generated method stub
         return null;
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         // TODO Auto-generated method stub
         return null;
index 0e701e6899439927611495f38c63e7fce5faee23..3644424ebc5db9a281541a232036489b3cfa1583 100644 (file)
@@ -7,7 +7,7 @@ import com.itmill.toolkit.ui.AbstractComponent;
 
 public class Tooltips extends Feature {
 
-    
+    @Override
     public String getDescription() {
         return "Most components can have a <i>description</i>,"
                 + " which is shown as a <i>\"tooltip\"</i>.<br/>"
@@ -18,18 +18,18 @@ public class Tooltips extends Feature {
                 + " for that compoenent.)";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(AbstractComponent.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         // TODO Auto-generated method stub
         return null;
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         // TODO Auto-generated method stub
         return null;
index cdc9ec602359df7d6dd94b2ae1514d797e4bbc66..0e183780a6dce50ee6c2afebddad6a4473e65372 100644 (file)
@@ -8,22 +8,23 @@ import com.itmill.toolkit.ui.Link;
 
 public class LinkCurrentWindow extends Feature {
 
+    @Override
     public String getDescription() {
         return "An external link.";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Link.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { LinkNoDecorations.class, LinkSizedWindow.class,
                 ButtonLink.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         // TODO Auto-generated method stub
         return null;
index 12a7d3217cbf7fc43eaa741a5a54c282e298b46c..ce1917615ddc110bb8fefd4e6f9f812b25620725 100644 (file)
@@ -8,22 +8,23 @@ import com.itmill.toolkit.ui.Link;
 
 public class LinkNoDecorations extends Feature {
 
+    @Override
     public String getDescription() {
         return "A link that opens a new window w/o decorations";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Link.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { LinkCurrentWindow.class, LinkSizedWindow.class,
                 ButtonLink.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         // TODO Auto-generated method stub
         return null;
index 961b4fb0e8c5ee3af99fb63fad4af56cef821cd2..5f044ac6607d3a1ec869ae1dc642b3daa23f099c 100644 (file)
@@ -8,22 +8,23 @@ import com.itmill.toolkit.ui.Link;
 
 public class LinkSizedWindow extends Feature {
 
+    @Override
     public String getDescription() {
         return "A link that opens a small new window w/o decorations";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Link.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { LinkCurrentWindow.class, LinkNoDecorations.class,
                 ButtonLink.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         // TODO Auto-generated method stub
         return null;
index e69c6c41d91a2c643a5dceb9d7dbac9bf8bd8750..f4d2afe3beb0589d5c93b6ee2f52aec391ccbe78 100644 (file)
@@ -7,7 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class NotificationCustom extends Feature {
 
-    
+    @Override
     public String getDescription() {
         return "Notifications are lightweight informational messages,"
                 + " used to inform the user of various events.<br/>"
@@ -18,20 +18,20 @@ public class NotificationCustom extends Feature {
                 + " and to the point.";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Window.class),
                 new APIResource(Window.Notification.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { NotificationHumanized.class,
                 NotificationWarning.class, NotificationError.class,
                 NotificationTray.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         return new NamedExternalResource[] { new NamedExternalResource(
                 "Monolog Boxes and Transparent Messages",
index f914e9af4ee232cd60e02f72228ad88616421983..2ca8e6a08a49421e26fbffe4d335ba1d13cdf84c 100644 (file)
@@ -7,7 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class NotificationError extends Feature {
 
-    
+    @Override
     public String getDescription() {
         return "Notifications are lightweight informational messages,"
                 + " used to inform the user of various events. The"
@@ -22,20 +22,20 @@ public class NotificationError extends Feature {
                 + " can proceed to correct the situation.";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Window.class),
                 new APIResource(Window.Notification.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { NotificationHumanized.class,
                 NotificationTray.class, NotificationWarning.class,
                 NotificationCustom.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         return null;
     }
index 395fcce38590e102560976959484cfba58e13d4b..406cb101b615679f239c2c60c9a164844c712509 100644 (file)
@@ -7,7 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class NotificationHumanized extends Feature {
 
-    
+    @Override
     public String getDescription() {
         return "Notifications are lightweight informational messages,"
                 + " used to inform the user of various events. The"
@@ -23,19 +23,19 @@ public class NotificationHumanized extends Feature {
                 + " safely ignore, once the application is familliar.";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Window.class),
                 new APIResource(Window.Notification.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { NotificationTray.class, NotificationWarning.class,
                 NotificationError.class, NotificationCustom.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         return new NamedExternalResource[] { new NamedExternalResource(
                 "Monolog Boxes and Transparent Messages",
index ea99f53bd81f7fac8a1f006a57071c73b7b82187..f55223fe9cb218254007346b1dd0f4494a5a33c1 100644 (file)
@@ -7,7 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class NotificationTray extends Feature {
 
-    
+    @Override
     public String getDescription() {
         return "Notifications are lightweight informational messages,"
                 + " used to inform the user of various events. The"
@@ -23,20 +23,20 @@ public class NotificationTray extends Feature {
                 + " (as opposed to being a direct result of the users last action.)";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Window.class),
                 new APIResource(Window.Notification.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { NotificationHumanized.class,
                 NotificationWarning.class, NotificationError.class,
                 NotificationCustom.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         return new NamedExternalResource[] { new NamedExternalResource(
                 "Monolog Boxes and Transparent Messages",
index 72aa5aee3a2c99813c2ec5784b58640d12ef1a31..da0f477d0d908f6c9710623bfec500fb7c7fc33b 100644 (file)
@@ -7,7 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class NotificationWarning extends Feature {
 
-    
+    @Override
     public String getDescription() {
         return "Notifications are lightweight informational messages,"
                 + " used to inform the user of various events. The"
@@ -23,20 +23,20 @@ public class NotificationWarning extends Feature {
                 + " be made aware of, but are probably intentional.";
     }
 
-    
+    @Override
     public APIResource[] getRelatedAPI() {
         return new APIResource[] { new APIResource(Window.class),
                 new APIResource(Window.Notification.class) };
     }
 
-    
+    @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { NotificationHumanized.class,
                 NotificationTray.class, NotificationError.class,
                 NotificationCustom.class };
     }
 
-    
+    @Override
     public NamedExternalResource[] getRelatedResources() {
         return new NamedExternalResource[] { new NamedExternalResource(
                 "Monolog Boxes and Transparent Messages",
index 254e4632797df266c3a135b504ba8ef20143f716..96bcc35ebddb5ec0fa8c7e8610565f82a781bbb7 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.terminal.gwt.client.UIDL;
 
 public class SamplerWidgetSet extends DefaultWidgetSet {
 
+    @Override
     public Paintable createWidget(UIDL uidl) {
         final Class classType = resolveWidgetType(uidl);
         if (IGoogleAnalytics.class == classType) {
@@ -22,6 +23,7 @@ public class SamplerWidgetSet extends DefaultWidgetSet {
         }
     }
 
+    @Override
     protected Class resolveWidgetType(UIDL uidl) {
         final String tag = uidl.getTag();
         if ("googleanalytics".equals(tag)) {
index 782270c0d06e68734c9a7ad576d17c35f04ee956..b292c38bcedc8ab1a45c5bafa1f07835c2b91435 100644 (file)
@@ -61,6 +61,7 @@ public class IActiveLink extends ILink {
         return !listening || opened;
     }
 
+    @Override
     public void onClick(Widget sender) {
 
         if (sendVariables()) {
@@ -69,6 +70,7 @@ public class IActiveLink extends ILink {
         }
     }
 
+    @Override
     public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
         // Ensure correct implementation,
         // but don't let container manage caption etc.
index 6e7ec6fa58496f2583dd9b98a8c8e85c6d8a4fac..ace6e3558b3e06033110c36d48f56702a271e034 100644 (file)
@@ -11,6 +11,7 @@ public class ICodeLabel extends ILabel {
         super();
     }
 
+    @Override
     public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
         super.updateFromUIDL(uidl, client);
         Element pre = getElement().getFirstChildElement();
index 03d54ad38aca61e92c8e5dd45f2a42c13ba90607..1984dd83801b4956c5561cc4c037c27aa096d2cf 100644 (file)
@@ -475,6 +475,7 @@ public class ListenerMethod implements EventListener {
                         .equals(this.method));
     }
 
+    @Override
     public int hashCode() {
         int hash = 7;
 
@@ -486,6 +487,7 @@ public class ListenerMethod implements EventListener {
         return hash;
     }
 
+    @Override
     public boolean equals(Object obj) {
 
         if (this == obj) {
@@ -546,6 +548,7 @@ public class ListenerMethod implements EventListener {
          *         is nonexistent or unknown.
          * @see java.lang.Throwable#getCause()
          */
+        @Override
         public Throwable getCause() {
             return cause;
         }
@@ -556,6 +559,7 @@ public class ListenerMethod implements EventListener {
          * @return the error message.
          * @see java.lang.Throwable#getMessage()
          */
+        @Override
         public String getMessage() {
             return message;
         }
@@ -563,6 +567,7 @@ public class ListenerMethod implements EventListener {
         /**
          * @see java.lang.Throwable#toString()
          */
+        @Override
         public String toString() {
             String msg = super.toString();
             if (cause != null) {
index 80ccf42449408a557ee52cd89607867541eefed4..70623429447ad6b93a0913e9d476369efe72c42a 100644 (file)
@@ -99,6 +99,7 @@ public class ITMillToolkitDesktopMode {
                 + "</a><br>Close this window to shutdown the server.</center>"
                 + "</html>");
         link.addMouseListener(new MouseAdapter() {
+            @Override
             public void mouseClicked(MouseEvent e) {
                 BrowserLauncher.openBrowser(applicationUrl);
             }
@@ -136,6 +137,7 @@ public class ITMillToolkitDesktopMode {
         cancelButton.addActionListener(buttonListener);
 
         frame.addWindowListener(new WindowAdapter() {
+            @Override
             public void windowClosing(WindowEvent e) {
                 final Rectangle bounds = frame.getBounds();
                 frame.setTitle("Confirm close");
index 4ae769e90bbd27d99cda795e91bf8fbd2b71b4e3..47a50b1e262e9132c72521ca3e5607a29fe48b25 100644 (file)
@@ -159,6 +159,7 @@ public class CompositeErrorMessage implements ErrorMessage {
      * 
      * @return String, comma separated list of error messages.
      */
+    @Override
     public String toString() {
         String retval = "[";
         int pos = 0;
index e0ec15684f6b67f1f0212ea362bb2305bc637297..df0c5305a9289a0a60b0e3710b0dd542c1f6e031 100644 (file)
@@ -110,6 +110,7 @@ public interface Sizeable {
      *             separately (and components might have different default
      *             unit).
      */
+    @Deprecated
     public void setWidth(float width);
 
     /**
@@ -132,6 +133,7 @@ public interface Sizeable {
      *             but is error-prone since the unit must be set separately (and
      *             components might have different default unit).
      */
+    @Deprecated
     public void setHeight(float height);
 
     /**
@@ -150,6 +152,7 @@ public interface Sizeable {
      *             {@link #setWidth(String)} or {@link #setWidth(float, int)},
      *             which is less error-prone.
      */
+    @Deprecated
     public void setWidthUnits(int units);
 
     /**
@@ -168,6 +171,7 @@ public interface Sizeable {
      *             {@link #setHeight(String)} or {@link #setHeight(float, int)},
      *             which is less error-prone.
      */
+    @Deprecated
     public void setHeightUnits(int units);
 
     /**
index 019f8c252110fa235a26e01b69a6f39dae56743a..b5d2fae5d022b8d514e3da655d3d88191d558fab 100644 (file)
@@ -103,6 +103,7 @@ public class SystemError extends RuntimeException implements ErrorMessage {
      * @return the cause.
      * @see java.lang.Throwable#getCause()
      */
+    @Override
     public Throwable getCause() {
         return cause;
     }
index bdce49a521ae0aa2157d76ac197770e8ccc486ee..809f5a2bc8c68aeaac430f31db2f278ff9ae3522 100644 (file)
@@ -54,6 +54,7 @@ public class ThemeResource implements Resource {
      *         <code>false</code> if not.
      * @see java.lang.Object#equals(Object)
      */
+    @Override
     public boolean equals(Object obj) {
         return obj instanceof ThemeResource
                 && resourceID.equals(((ThemeResource) obj).resourceID);
@@ -62,6 +63,7 @@ public class ThemeResource implements Resource {
     /**
      * @see java.lang.Object#hashCode()
      */
+    @Override
     public int hashCode() {
         return resourceID.hashCode();
     }
@@ -69,6 +71,7 @@ public class ThemeResource implements Resource {
     /**
      * @see java.lang.Object#toString()
      */
+    @Override
     public String toString() {
         return resourceID.toString();
     }
index 1443d812f5effb43f3a4a49f83b09868797198b4..92b33e4f8bc43123a79bf05ce6fe42315ff444ec 100644 (file)
@@ -136,6 +136,7 @@ public class UserError implements ErrorMessage {
     }
 
     /* Documented in superclass */
+    @Override
     public String toString() {
         return msg;
     }
index 729164fea550b24395c36e87364910939433d8e3..e0b39d499712fb5370a9d3697ced00c1e3f948c3 100644 (file)
@@ -249,6 +249,7 @@ public class DefaultWidgetSet implements WidgetSet {
      * 
      * @deprecated use resolveWidgetType instead
      */
+    @Deprecated
     protected String resolveWidgetTypeName(UIDL uidl) {
         Class type = resolveWidgetType(uidl);
         return type.getName();
index 55a4526b3c60f647dd48e3715418e22eab3b558c..b4577d14f76e89c5cec1aaadd921e743594195a1 100755 (executable)
@@ -188,6 +188,7 @@ public final class IDebugConsole extends IToolkitOverlay implements Console {
         }
     };
 
+    @Override
     public void onBrowserEvent(Event event) {
         super.onBrowserEvent(event);
         switch (DOM.eventGetType(event)) {
@@ -280,6 +281,7 @@ public final class IDebugConsole extends IToolkitOverlay implements Console {
                 .getClientHeight() - 160);
     }
 
+    @Override
     public void setPixelSize(int width, int height) {
         panel.setHeight((height - 20) + "px");
         panel.setWidth((width - 2) + "px");
index 8d91863090c0b173958ed65536c532ad7d67422e..68357bb70a138fa2f3cc4dc7bc6bdee779a76809 100644 (file)
@@ -64,6 +64,7 @@ public class MouseEventDetails {
     private MouseEventDetails() {
     }
 
+    @Override
     public String toString() {
         return "" + button + DELIM + clientX + DELIM + clientY + DELIM + altKey
                 + DELIM + ctrlKey + DELIM + metaKey + DELIM + shiftKey + DELIM
index 9e16f16e9e42a681e91c68cbfef0b056186625e0..668f16ad17917e86e86437c95fdde7f1f28c00d1 100644 (file)
@@ -27,6 +27,7 @@ public class RenderSpace extends Size {
      * Returns pixels available vertically for contained widget, including
      * possible scrollbars.
      */
+    @Override
     public int getHeight() {
         return super.getHeight();
     }
@@ -35,6 +36,7 @@ public class RenderSpace extends Size {
      * Returns pixels available horizontally for contained widget, including
      * possible scrollbars.
      */
+    @Override
     public int getWidth() {
         return super.getWidth();
     }
index 73a13c130e01071f707eff959210de5879399b59..fb9c989afd44dd67181db81bcae9d0e864fdc4f9 100644 (file)
@@ -200,6 +200,7 @@ public class UIDL {
         return json.size() - 2;
     }
 
+    @Override
     public String toString() {
         String s = "<" + getTag();
 
@@ -270,6 +271,7 @@ public class UIDL {
 
         }
 
+        @Override
         protected boolean isKeyboardNavigationEnabled(TreeItem currentItem) {
             return false;
         }
index 7c13ce7d7698b8ec66a9e0c2b4f86456fff5c50b..d9ec666655a8860864b4a223d3720e7444d9e260 100644 (file)
@@ -41,6 +41,7 @@ public class Util {
     private static Timer lazySizeChangeTimer = new Timer() {
         private boolean lazySizeChangeTimerScheduled = false;
 
+        @Override
         public void run() {
             componentSizeUpdated(latelyChangedWidgets);
             latelyChangedWidgets.clear();
@@ -167,6 +168,7 @@ public class Util {
      * 
      * @return true if IE
      */
+    @Deprecated
     public static boolean isIE() {
         return BrowserInfo.get().isIE();
     }
@@ -178,6 +180,7 @@ public class Util {
      * 
      * @return true if IE6
      */
+    @Deprecated
     public static boolean isIE6() {
         return BrowserInfo.get().isIE6();
     }
@@ -186,6 +189,7 @@ public class Util {
      * @deprecated use BrowserInfo class instead
      * @return
      */
+    @Deprecated
     public static boolean isIE7() {
         return BrowserInfo.get().isIE7();
     }
@@ -194,6 +198,7 @@ public class Util {
      * @deprecated use BrowserInfo class instead
      * @return
      */
+    @Deprecated
     public static boolean isFF2() {
         return BrowserInfo.get().isFF2();
     }
index 6a7ad121bb62b09cd7bc67354af6fabf78851669..a97787218f184561e3854e0d41f50c1f88bab4c3 100644 (file)
@@ -55,6 +55,7 @@ public class IAccordion extends ITabsheetBase implements
         }
     }
 
+    @Override
     public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
         rendering = true;
         selectedUIDLItemIndex = -1;
@@ -89,6 +90,7 @@ public class IAccordion extends ITabsheetBase implements
         rendering = false;
     }
 
+    @Override
     protected void renderTab(UIDL tabUidl, int index, boolean selected,
             boolean hidden) {
         StackItem item;
@@ -153,6 +155,7 @@ public class IAccordion extends ITabsheetBase implements
 
     }
 
+    @Override
     protected void selectTab(final int index, final UIDL contentUidl) {
         StackItem item = stack.get(index);
         if (index != activeTabIndex) {
@@ -176,6 +179,7 @@ public class IAccordion extends ITabsheetBase implements
         }
     }
 
+    @Override
     public void setWidth(String width) {
         if (this.width.equals(width)) {
             return;
@@ -199,6 +203,7 @@ public class IAccordion extends ITabsheetBase implements
         }
     }
 
+    @Override
     public void setHeight(String height) {
         super.setHeight(height);
         this.height = height;
@@ -303,6 +308,7 @@ public class IAccordion extends ITabsheetBase implements
             }
         }
 
+        @Override
         public void setVisible(boolean visible) {
             super.setVisible(visible);
         }
@@ -377,6 +383,7 @@ public class IAccordion extends ITabsheetBase implements
             updateCaption(tabUidl);
         }
 
+        @Override
         public void onBrowserEvent(Event event) {
             onSelectTab(this);
         }
@@ -471,6 +478,7 @@ public class IAccordion extends ITabsheetBase implements
 
     }
 
+    @Override
     protected void clearPaintables() {
         stack.clear();
         clear();
@@ -484,6 +492,7 @@ public class IAccordion extends ITabsheetBase implements
         return width == null || width.equals("");
     }
 
+    @Override
     protected Iterator getPaintableIterator() {
         return paintables.iterator();
     }
index 5fee01b5ff4fde4f17c418bf44960c29a8b33e32..411e646a0cd0f2974a3a08df79b54116013f9dc6 100644 (file)
@@ -95,6 +95,7 @@ public class IContextMenu extends IToolkitOverlay {
             super(true);
         }
 
+        @Override
         public void onPopupClosed(PopupPanel sender, boolean autoClosed) {
             super.onPopupClosed(sender, autoClosed);
             hide();
index e9f910048ccf3a0ee94c10b4b7d57dbb632377df..e045d3a4024849f50fa6812f21f40f1e6e71e89d 100644 (file)
@@ -54,6 +54,7 @@ public class IDateField extends FlowPanel implements Paintable, Field {
         sinkEvents(ITooltip.TOOLTIP_EVENTS);\r
     }\r
 \r
+    @Override\r
     public void onBrowserEvent(Event event) {\r
         super.onBrowserEvent(event);\r
         if (client != null) {\r
index e9474a97f49ed4d61d033fa2fd68b65fdf05ea5d..50ab226a536e9b64bc174f176d4ff2a30ecedcf5 100644 (file)
@@ -17,6 +17,7 @@ public class IDateFieldCalendar extends IDateField {
         add(date);\r
     }\r
 \r
+    @Override\r
     public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {\r
         super.updateFromUIDL(uidl, client);\r
         date.updateCalendar();\r
index dc8e9c434395d63b1b9abc0344eb5700af952c18..16930255de55f6b0f665c81e11097c72fc2fe7ed 100644 (file)
@@ -111,6 +111,7 @@ public class IEmbedded extends HTML implements Paintable {
         return url;
     }
 
+    @Override
     public void setWidth(String width) {
         this.width = width;
         if (isDynamicHeight()) {
@@ -134,11 +135,13 @@ public class IEmbedded extends HTML implements Paintable {
         return height == null || height.equals("");
     }
 
+    @Override
     public void setHeight(String height) {
         this.height = height;
         super.setHeight(height);
     }
 
+    @Override
     protected void onDetach() {
         // Force browser to fire unload event when component is detached from
         // the view (IE doesn't do this automatically)
@@ -148,6 +151,7 @@ public class IEmbedded extends HTML implements Paintable {
         super.onDetach();
     }
 
+    @Override
     public void onBrowserEvent(Event event) {
         super.onBrowserEvent(event);
         if (DOM.eventGetType(event) == Event.ONLOAD) {
index 69e24e844a0433ebd7e1a74f2c6b1048bfbf38dd..2644077e9f78c7494be66de483e77588c168bd32 100644 (file)
@@ -930,7 +930,8 @@ public class IFilterSelect extends Composite implements Paintable, Field,
 
     public int getTextboxPadding() {
         if (textboxPadding < 0) {
-            textboxPadding = Util.measureHorizontalPaddingAndBorder(tb.getElement(), 4);
+            textboxPadding = Util.measureHorizontalPaddingAndBorder(tb
+                    .getElement(), 4);
         }
         return textboxPadding;
     }
index 0b204515c12ae85f5ba22367d2fc19fd8b8f5912..65f639e0a82eb79be2d86cb5fde8bb398a44cf67 100644 (file)
@@ -347,6 +347,7 @@ public class IFormLayout extends SimplePanel implements Container {
             return owner;
         }
 
+        @Override
         public void onBrowserEvent(Event event) {
             super.onBrowserEvent(event);
             if (client != null) {
@@ -383,6 +384,7 @@ public class IFormLayout extends SimplePanel implements Container {
             }
         }
 
+        @Override
         public void onBrowserEvent(Event event) {
             super.onBrowserEvent(event);
             if (owner != null) {
index 77addf832313dbacbe1d0fbe19e1e3ba79775d1c..20e529dfd3444d1f74bb24a9600f465729c88ffc 100644 (file)
@@ -34,6 +34,7 @@ public class ILabel extends HTML implements Paintable {
         sinkEvents(ITooltip.TOOLTIP_EVENTS);
     }
 
+    @Override
     public void onBrowserEvent(Event event) {
         super.onBrowserEvent(event);
         if (event.getTypeInt() == Event.ONLOAD) {
index 7bc4863dfb6e80fe5dcd3e31a13ec2c87a40c470..8d1214fbdbc7f0ac5c3d465ac53bceab801f4f21 100644 (file)
@@ -35,6 +35,7 @@ public class IListSelect extends IOptionGroupBase {
         select.setVisibleItemCount(VISIBLE_COUNT);
     }
 
+    @Override
     protected void buildOptions(UIDL uidl) {
         select.setClient(client);
         select.setMultipleSelect(isMultiselect());
@@ -58,6 +59,7 @@ public class IListSelect extends IOptionGroupBase {
         }
     }
 
+    @Override
     protected Object[] getSelectedItems() {
         final Vector selectedItemKeys = new Vector();
         for (int i = 0; i < select.getItemCount(); i++) {
@@ -68,6 +70,7 @@ public class IListSelect extends IOptionGroupBase {
         return selectedItemKeys.toArray();
     }
 
+    @Override
     public void onChange(Widget sender) {
         final int si = select.getSelectedIndex();
         if (si == -1 && !isNullSelectionAllowed()) {
@@ -84,16 +87,19 @@ public class IListSelect extends IOptionGroupBase {
         }
     }
 
+    @Override
     public void setHeight(String height) {
         select.setHeight(height);
         super.setHeight(height);
     }
 
+    @Override
     public void setWidth(String width) {
         select.setWidth(width);
         super.setWidth(width);
     }
 
+    @Override
     protected void setTabIndex(int tabIndex) {
         ((TooltipListBox) optionsContainer).setTabIndex(tabIndex);
     }
@@ -125,6 +131,7 @@ class TooltipListBox extends ListBox {
         pntbl = s;
     }
 
+    @Override
     public void onBrowserEvent(Event event) {
         super.onBrowserEvent(event);
         if (client != null) {
index dde94d76a3b14fd63e6cd157868dbc82c23a96a9..725659c9160efe0e92f0a2506f27a76be49a7ac7 100644 (file)
@@ -61,6 +61,7 @@ public class IMarginInfo {
         }
     }
 
+    @Override
     public boolean equals(Object obj) {
         if (!(obj instanceof IMarginInfo)) {
             return false;
index 61e5c2175fb00a9a5dafcfff81f6277ed6043821..2b4e1ea4256b2761c6faeb4eabb171b11846253f 100644 (file)
@@ -67,7 +67,7 @@ public class IMenuBar extends Widget implements Paintable, PopupListener {
 
         Element table = DOM.createTable();
         Element tbody = DOM.createTBody();
-        DOM.appendChild(this.getElement(), table);
+        DOM.appendChild(getElement(), table);
         DOM.appendChild(table, tbody);
 
         if (!subMenu) {
@@ -103,8 +103,8 @@ public class IMenuBar extends Widget implements Paintable, PopupListener {
         uidlId = uidl.getId();
 
         // Empty the menu every time it receives new information
-        if (!this.getItems().isEmpty()) {
-            this.clearItems();
+        if (!getItems().isEmpty()) {
+            clearItems();
         }
 
         UIDL options = uidl.getChildUIDL(0);
@@ -199,7 +199,7 @@ public class IMenuBar extends Widget implements Paintable, PopupListener {
         if (collapseItems) {
             int topLevelWidth = 0;
 
-            int ourWidth = this.getOffsetWidth();
+            int ourWidth = getOffsetWidth();
 
             int i = 0;
             for (; i < getItems().size() && topLevelWidth < ourWidth; i++) {
@@ -207,7 +207,7 @@ public class IMenuBar extends Widget implements Paintable, PopupListener {
                 topLevelWidth += item.getOffsetWidth();
             }
 
-            if (topLevelWidth > this.getOffsetWidth()) {
+            if (topLevelWidth > getOffsetWidth()) {
                 ArrayList toBeCollapsed = new ArrayList();
                 IMenuBar collapsed = new IMenuBar(true);
                 for (int j = i - 2; j < getItems().size(); j++) {
@@ -345,6 +345,7 @@ public class IMenuBar extends Widget implements Paintable, PopupListener {
      * com.google.gwt.user.client.ui.Widget#onBrowserEvent(com.google.gwt.user
      * .client.Event)
      */
+    @Override
     public void onBrowserEvent(Event e) {
         super.onBrowserEvent(e);
 
index 8cb8d6ca610c064300bf02a6fb873d0271e79cd6..536ed15de6d34a6211077bb6af25f76ddff347c1 100644 (file)
@@ -26,6 +26,7 @@ public class INativeSelect extends IOptionGroupBase implements Field {
 
     }
 
+    @Override
     protected void buildOptions(UIDL uidl) {
         select.setClient(client);
         select.setEnabled(!isDisabled() && !isReadonly());
@@ -53,6 +54,7 @@ public class INativeSelect extends IOptionGroupBase implements Field {
 
     }
 
+    @Override
     protected Object[] getSelectedItems() {
         final Vector selectedItemKeys = new Vector();
         for (int i = 0; i < select.getItemCount(); i++) {
@@ -63,6 +65,7 @@ public class INativeSelect extends IOptionGroupBase implements Field {
         return selectedItemKeys.toArray();
     }
 
+    @Override
     public void onChange(Widget sender) {
 
         if (select.isMultipleSelect()) {
@@ -78,16 +81,19 @@ public class INativeSelect extends IOptionGroupBase implements Field {
         }
     }
 
+    @Override
     public void setHeight(String height) {
         select.setHeight(height);
         super.setHeight(height);
     }
 
+    @Override
     public void setWidth(String width) {
         select.setWidth(width);
         super.setWidth(width);
     }
 
+    @Override
     protected void setTabIndex(int tabIndex) {
         ((TooltipListBox) optionsContainer).setTabIndex(tabIndex);
     }
index c737a52e95c51d0e49c21287d0bf3bfe378add0b..88b7b36bdcbffa0225dfd433994a50b04b2fc851 100644 (file)
@@ -32,6 +32,7 @@ public class IOptionGroup extends IOptionGroupBase {
     /*\r
      * Return true if no elements were changed, false otherwise.\r
      */\r
+    @Override\r
     protected void buildOptions(UIDL uidl) {\r
         panel.clear();\r
         for (final Iterator it = uidl.getChildIterator(); it.hasNext();) {\r
@@ -54,10 +55,12 @@ public class IOptionGroup extends IOptionGroupBase {
         }\r
     }\r
 \r
+    @Override\r
     protected Object[] getSelectedItems() {\r
         return selectedKeys.toArray();\r
     }\r
 \r
+    @Override\r
     public void onClick(Widget sender) {\r
         super.onClick(sender);\r
         if (sender instanceof CheckBox) {\r
@@ -76,6 +79,7 @@ public class IOptionGroup extends IOptionGroupBase {
         }\r
     }\r
 \r
+    @Override\r
     protected void setTabIndex(int tabIndex) {\r
         for (Iterator iterator = panel.iterator(); iterator.hasNext();) {\r
             if (isMultiselect()) {\r
index 04e90dfaa25c5dad775a74de0214aa64484e75aa..c47518f6eaba3e8b2e754522dc6638bd6cf9da71 100644 (file)
@@ -207,6 +207,7 @@ public class IPopupView extends HTML implements Paintable {
 
         // For some reason ONMOUSEOUT events are not always recieved, so we have
         // to use ONMOUSEMOVE that doesn't target the popup
+        @Override
         public boolean onEventPreview(Event event) {
 
             Element target = DOM.eventGetTarget(event);
@@ -234,6 +235,7 @@ public class IPopupView extends HTML implements Paintable {
             return super.onEventPreview(event);
         }
 
+        @Override
         public void hide() {
             // Notify children with focus
             if ((popupComponentWidget instanceof HasFocus)) {
@@ -251,6 +253,7 @@ public class IPopupView extends HTML implements Paintable {
             super.hide();
         }
 
+        @Override
         public boolean remove(Widget w) {
 
             unregisterPaintables();
index 77465f330464ba2e413af635ce9dc63022d66886..0567ec4012f2db3dee7486dc8e0c5039cb459c18 100644 (file)
@@ -68,6 +68,7 @@ public class IProgressIndicator extends Widget implements Paintable {
         }
     }
 
+    @Override
     protected void onAttach() {
         super.onAttach();
         if (pollerSuspendedDueDetach) {
@@ -75,12 +76,14 @@ public class IProgressIndicator extends Widget implements Paintable {
         }
     }
 
+    @Override
     protected void onDetach() {
         super.onDetach();
         poller.cancel();
         pollerSuspendedDueDetach = true;
     }
 
+    @Override
     public void setVisible(boolean visible) {
         super.setVisible(visible);
         if (!visible) {
@@ -90,6 +93,7 @@ public class IProgressIndicator extends Widget implements Paintable {
 
     class Poller extends Timer {
 
+        @Override
         public void run() {
             client.sendPendingVariableChanges();
         }
index 90bd763f79a5602ac6bc0f7d5012d96aa4a9a484..4a2b389db22665c6ffecd5e3cb8f3a44b6d93959 100644 (file)
@@ -316,6 +316,7 @@ public class ITablePaging extends Composite implements Table, Paintable,
             setWidget(new Label(textContent));
         }
 
+        @Override
         public void onBrowserEvent(Event event) {
             System.out.println("CEll event: " + event.toString());
             switch (DOM.eventGetType(event)) {
index 9f268b368913e539b197d184b7bbce80f4148d1b..a21d1b7d98c354c2e7e92e3e3eb08dd78691bcc6 100644 (file)
@@ -8,7 +8,6 @@ import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.Element;\r
 import com.google.gwt.user.client.ui.ComplexPanel;\r
 import com.google.gwt.user.client.ui.Widget;\r
-import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;\r
 import com.itmill.toolkit.terminal.gwt.client.Util;\r
 \r
 /**\r
index 7a90f5e1ab4d538321eb7daa2e816ee0f3f80ed4..6c51b33b67242f662726fa2caf56f7ff9b246c9a 100644 (file)
@@ -48,6 +48,7 @@ public class ITextualDate extends IDateField implements Paintable, Field,
         add(text);\r
     }\r
 \r
+    @Override\r
     public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {\r
 \r
         int origRes = currentResolution;\r
@@ -235,6 +236,7 @@ public class ITextualDate extends IDateField implements Paintable, Field,
         return format.trim();\r
     }\r
 \r
+    @Override\r
     public void setWidth(String newWidth) {\r
         if (!"".equals(newWidth) && (width == null || !newWidth.equals(width))) {\r
             if (BrowserInfo.get().isIE6()) {\r
index c5aca05a03e5dbb046254673e6c41167ce873db5..30cf86c9c839c5ab1c0c7439f0fae17ba356c246 100644 (file)
@@ -66,6 +66,7 @@ public class ITwinColSelect extends IOptionGroupBase {
         panel.add(selections);\r
     }\r
 \r
+    @Override\r
     protected void buildOptions(UIDL uidl) {\r
         final boolean enabled = !isDisabled() && !isReadonly();\r
         options.setMultipleSelect(isMultiselect());\r
@@ -108,6 +109,7 @@ public class ITwinColSelect extends IOptionGroupBase {
 \r
     }\r
 \r
+    @Override\r
     protected Object[] getSelectedItems() {\r
         final Vector selectedItemKeys = new Vector();\r
         for (int i = 0; i < selections.getItemCount(); i++) {\r
@@ -140,6 +142,7 @@ public class ITwinColSelect extends IOptionGroupBase {
         return selectedIndexes;\r
     }\r
 \r
+    @Override\r
     public void onClick(Widget sender) {\r
         super.onClick(sender);\r
         if (sender == add) {\r
@@ -195,6 +198,7 @@ public class ITwinColSelect extends IOptionGroupBase {
         }\r
     }\r
 \r
+    @Override\r
     public void setHeight(String height) {\r
         super.setHeight(height);\r
         if ("".equals(height)) {\r
@@ -210,6 +214,7 @@ public class ITwinColSelect extends IOptionGroupBase {
         selections.setHeight("100%");\r
     }\r
 \r
+    @Override\r
     public void setWidth(String width) {\r
         super.setWidth(width);\r
         if (!"".equals(width) && width != null) {\r
@@ -225,6 +230,7 @@ public class ITwinColSelect extends IOptionGroupBase {
         widthSet = true;\r
     }\r
 \r
+    @Override\r
     protected void setTabIndex(int tabIndex) {\r
         options.setTabIndex(tabIndex);\r
         selections.setTabIndex(tabIndex);\r
index 84707dec69052a4504a4155eef45a02a76997056..e70009de67e9d942fd642239ded53bbdb0fa54f7 100644 (file)
@@ -117,6 +117,7 @@ public class IUpload extends FormPanel implements Paintable, ClickListener,
          * changes from UploadStarted event. Will be cleared on complete.
          */
         t = new Timer() {
+            @Override
             public void run() {
                 client.sendPendingVariableChanges();
             }
index dd2f8688165e8253ae0e4d86f5f8212d9bf3cd80..1fb3e3c991576e9e319fbb21f65143285dd4fb95 100644 (file)
@@ -53,6 +53,7 @@ import com.google.gwt.user.client.ui.Widget;
  * 
  * @deprecated
  */
+@Deprecated
 public class MenuBar extends Widget implements PopupListener {
 
     private final Element body;
@@ -210,6 +211,7 @@ public class MenuBar extends Widget implements PopupListener {
         return autoOpen;
     }
 
+    @Override
     public void onBrowserEvent(Event event) {
         super.onBrowserEvent(event);
 
@@ -304,6 +306,7 @@ public class MenuBar extends Widget implements PopupListener {
         return selectedItem;
     }
 
+    @Override
     protected void onDetach() {
         // When the menu is detached, make sure to close all of its children.
         if (popup != null) {
@@ -379,6 +382,7 @@ public class MenuBar extends Widget implements PopupListener {
                 item.getSubMenu().onShow();
             }
 
+            @Override
             public boolean onEventPreview(Event event) {
                 // Hook the popup panel's event preview. We use this to keep it
                 // from
index 35bd20982586b9837e60fc96b4e8c420b35bd395..d12052a80210a3da0c91ccb659e6b737627f6b28 100644 (file)
@@ -34,6 +34,7 @@ import com.google.gwt.user.client.ui.UIObject;
  * 
  * @deprecated
  */
+@Deprecated
 public class MenuItem extends UIObject implements HasHTML {
 
     private static final String DEPENDENT_STYLENAME_SELECTED_ITEM = "selected";
index 4ecc477a3e5446a29e54c6930277ff388bac42d5..5ecf2aced5ce19b41af0684d2917484d2ed99ab1 100644 (file)
@@ -31,6 +31,7 @@ public class TreeAction extends Action {
      * 
      * Actions are always sent immediatedly to server.
      */
+    @Override
     public void execute() {
         owner.getClient().updateVariable(owner.getPaintableId(), "action",
                 targetKey + "," + actionKey, true);
index 4ddbabdb962fef9d855233f8beff33967428b11f..1ec2d9f93bf8a23fe9756f94fabae850e9b31a14 100644 (file)
@@ -82,6 +82,7 @@ public class PortletApplicationContext extends WebApplicationContext {
         return cx;\r
     }\r
 \r
+    @Override\r
     protected void removeApplication(Application application) {\r
         portletListeners.remove(application);\r
         for (Iterator it = portletToApplication.keySet().iterator(); it\r
@@ -94,6 +95,7 @@ public class PortletApplicationContext extends WebApplicationContext {
         super.removeApplication(application);\r
     }\r
 \r
+    @Override\r
     public boolean equals(Object obj) {\r
         if (portletSession == null) {\r
             return super.equals(obj);\r
@@ -101,6 +103,7 @@ public class PortletApplicationContext extends WebApplicationContext {
         return portletSession.equals(obj);\r
     }\r
 \r
+    @Override\r
     public int hashCode() {\r
         if (portletSession == null) {\r
             return super.hashCode();\r
index 4eda3a4d05a4e930fff02d28d4f9e02469fb12f2..9ec3b5a2e1274dbc9c1f9b47dd4dc53afa5acaba 100644 (file)
@@ -50,6 +50,7 @@ public class SystemMessageException extends RuntimeException {
     /**\r
      * @see java.lang.Throwable#getCause()\r
      */\r
+    @Override\r
     public Throwable getCause() {\r
         return cause;\r
     }\r
index 2bb408ffd6a9da43c4e28b12d1983d13b33d02b7..e0cf13d22df015340d406763af3b7ed0127b3fe8 100644 (file)
@@ -102,10 +102,12 @@ public class WebApplicationContext implements ApplicationContext,
         return cx;
     }
 
+    @Override
     public boolean equals(Object obj) {
         return session.equals(obj);
     }
 
+    @Override
     public int hashCode() {
         return session.hashCode();
     }
index 1f2b7e125607ffff84ce3e0f0799addb3bffda6c..94868110269c3f84f9527025f2b5c78c78df16ce 100644 (file)
@@ -89,6 +89,7 @@ public class BasicRandomTest extends com.itmill.toolkit.Application implements
 
     private RandomComponents randomComponents;
 
+    @Override
     public void init() {
         // addWindow(new Window("ATFTest", create()));
         final Window mainWindow = new Window("Testing", create());
@@ -338,6 +339,7 @@ public class BasicRandomTest extends com.itmill.toolkit.Application implements
     /**
      * ErrorEvents are printed to default error stream and not in GUI.
      */
+    @Override
     public void terminalError(
             com.itmill.toolkit.terminal.Terminal.ErrorEvent event) {
         final Throwable e = event.getThrowable();
index 0409a81e66a7db1761e7710cb2c3915e57735c77..32b1176c9ddee5f5f315f08f2d9c2ca519c2595f 100644 (file)
@@ -46,6 +46,7 @@ public class CustomLayoutDemo extends com.itmill.toolkit.Application implements
     /**
      * Initialize Application. Demo components are added to main window.
      */
+    @Override
     public void init() {
         final Window mainWindow = new Window("CustomLayout demo");
         setMainWindow(mainWindow);
index 132c1a8548f4516fb60e94b3af5ad7dd6056d8cc..cc9235c903aa37aab372f75789973c95163163d2 100644 (file)
@@ -28,6 +28,7 @@ public class LayoutDemo extends com.itmill.toolkit.Application {
     /**
      * Initialize Application. Demo components are added to main window.
      */
+    @Override
     public void init() {
         final Window mainWindow = new Window("Layout demo");
         setMainWindow(mainWindow);
index 76c50ae69aa1511fe686ed69e3f3d746504f6922..21b0f381d28cdb9162b6f6926942201e7e48d0a4 100644 (file)
@@ -26,6 +26,7 @@ public class ListenerOrder extends com.itmill.toolkit.Application implements
 
     HashMap buttonListeners = new HashMap();
 
+    @Override
     public void init() {
         createNewView();
     }
index 70edf029f6f3c5b594a5cf60ead677ec185ea344..a91ddd7cc1e573dae99cc4b8593055244f2ab92e 100644 (file)
@@ -27,6 +27,7 @@ public class ModalWindow extends com.itmill.toolkit.Application implements
     private Window test;
     private Button reopen;
 
+    @Override
     public void init() {
 
         // Create main window
index 04f54194b1280a44ad3a6575449b5022c4fdf952..79d8ba1c4617ffa9dca2c0c4b46026800f75efd9 100644 (file)
@@ -17,6 +17,7 @@ public class NativeWindowing extends Application {
 
     Window main = new Window("Windowing test");
 
+    @Override
     public void init() {
 
         setMainWindow(main);
@@ -96,6 +97,7 @@ public class NativeWindowing extends Application {
                 "Commit (saves window state: size, place, scrollpos)"));
     }
 
+    @Override
     public Window getWindow(String name) {
 
         final Window w = super.getWindow(name);
index 358a95ab5760b198b8a99b1997f05f0aa78eb46e..6b95da10aa413ca72988653bc859e19cccd993d3 100644 (file)
@@ -35,6 +35,7 @@ public class Parameters extends com.itmill.toolkit.Application implements
 
     private final Table params = new Table();
 
+    @Override
     @SuppressWarnings("deprecation")
     public void init() {
         final Window main = new Window("Parameters demo");
@@ -96,6 +97,7 @@ public class Parameters extends com.itmill.toolkit.Application implements
      * 
      * @see com.itmill.toolkit.terminal.URIHandler#handleURI(URL, String)
      */
+    @Override
     public DownloadStream handleURI(URL context, String relativeUri) {
         this.context.setValue(context.toString());
         relative.setValue(relativeUri);
index 6cf2804cfb16aac768bb721610145a2d88e7810b..c56822dca3189e520d5dadb79317af3265e979d2 100644 (file)
@@ -47,6 +47,7 @@ public class PerformanceTestBasicComponentRendering extends CustomComponent {
                 .getTestTable(5, 200);
 
         Table t2 = new Table("Test Table with 199 rows rendered initially") {
+            @Override
             public void changeVariables(Object source, Map variables) {
                 super.changeVariables(source, variables);
                 // end timing on cache row request
index 1ace2988f811fd691f5314e612f8986576fd8daf..f75b0e743c9286b24109f65318e734b90fb87e68 100644 (file)
@@ -70,6 +70,7 @@ public class QueryContainerDemo extends com.itmill.toolkit.Application
     /**
      * Initialize Application. Demo components are added to main window.
      */
+    @Override
     public void init() {
         final Window main = new Window("QueryContainer demo");
         setMainWindow(main);
index 5925fb69ec5ecd6d526e9bc05694890534e1ffff..c515a2cf9c473e818363770efea0c7fb51b25103 100644 (file)
@@ -45,6 +45,7 @@ public class RandomLayoutStress extends com.itmill.toolkit.Application {
     /**
      * Initialize Application. Demo components are added to main window.
      */
+    @Override
     public void init() {
         final Window mainWindow = new Window("Layout demo");
         setMainWindow(mainWindow);
index 3f457183240330ac1e2c8020b1cd412774d8b739..99e770f4875a9bb0a81c450b7bc11678b05f75be 100644 (file)
@@ -63,6 +63,7 @@ public class TestBench extends com.itmill.toolkit.Application implements
 
     HashMap itemCaptions = new HashMap();
 
+    @Override
     public void init() {
 
         // Add testable classes to hierarchical container
index ae8c886c59f3e4712b8625b61d624bc2e840c11e..7843cc11d27310a223f651b380a3c3ce7f463b52 100644 (file)
@@ -49,6 +49,7 @@ public class TestCaptionWrapper extends CustomComponent implements Listener {
         setCompositionRoot(main);
     }
 
+    @Override
     public void attach() {
         super.attach();
         createNewView();
index 58784919e654576b5af7cf89dc1f02e6d7f5750c..b1f454834ec0f5c6802038cd65006db65cc5fe84 100644 (file)
@@ -75,6 +75,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
     private final Action ACTION3 = new Action("Show history");
     private final Action[] actions = new Action[] { ACTION1, ACTION2, ACTION3 };
 
+    @Override
     public void init() {
         sampleDatabase = new SampleDatabase();
         createNewView();
@@ -95,7 +96,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
                                 + "All components are in immmediate mode. See source how to tweak this test."));
         main.addComponent(eventListenerFeedback);
 
-        ////////////////////////////////////////////////////////////////////////
+        // //////////////////////////////////////////////////////////////////////
         // ////
         if (false) {
             window = new Window("Components inside Window (TEST: Window)");
@@ -110,7 +111,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             getMainWindow().addWindow(window);
         }
 
-        ////////////////////////////////////////////////////////////////////////
+        // //////////////////////////////////////////////////////////////////////
         // ////
         if (false) {
             target
@@ -123,7 +124,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             target.addComponent(ol);
         }
 
-        ////////////////////////////////////////////////////////////////////////
+        // //////////////////////////////////////////////////////////////////////
         // ////
         if (false) {
             target
@@ -136,7 +137,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             target.addComponent(ol2);
         }
 
-        ////////////////////////////////////////////////////////////////////////
+        // //////////////////////////////////////////////////////////////////////
         // ////
         if (false) {
             target.addComponent(new Label(
@@ -158,7 +159,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             // test(expandLayout);
         }
 
-        ////////////////////////////////////////////////////////////////////////
+        // //////////////////////////////////////////////////////////////////////
         // ////
         if (true) {
             target.addComponent(new Label(
@@ -181,7 +182,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             // test(expandLayout);
         }
 
-        ////////////////////////////////////////////////////////////////////////
+        // //////////////////////////////////////////////////////////////////////
         // ////
         if (false) {
             target.addComponent(new Label(
@@ -193,7 +194,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             // test(gridLayout);
         }
 
-        ////////////////////////////////////////////////////////////////////////
+        // //////////////////////////////////////////////////////////////////////
         // ////
         if (false) {
             target
@@ -207,7 +208,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             target.addComponent(el);
         }
 
-        ////////////////////////////////////////////////////////////////////////
+        // //////////////////////////////////////////////////////////////////////
         // ////
         if (false) {
             target.addComponent(new Label(
@@ -218,7 +219,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             target.addComponent(panel);
         }
 
-        ////////////////////////////////////////////////////////////////////////
+        // //////////////////////////////////////////////////////////////////////
         // ////
         if (false) {
             target
@@ -239,7 +240,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             target.addComponent(sp1l);
         }
 
-        ////////////////////////////////////////////////////////////////////////
+        // //////////////////////////////////////////////////////////////////////
         // ////
         if (false) {
             target
index 6476115ebc5897624101094e12974c690c50413e..d586cdefca2d54620eff534ec88e800fbe118798 100644 (file)
@@ -63,6 +63,7 @@ public class TestDateField extends CustomComponent {
         df4.setLocale(new Locale("fi", "FI"));\r
     }\r
 \r
+    @Override\r
     public void attach() {\r
         final ClassResource res = new ClassResource("m.gif", super\r
                 .getApplication());\r
index e8692f124127e4b7a66fc9852602a895e0ae517b..3d80050b0477e0a1f152dee2787d893cf38694a9 100644 (file)
@@ -20,6 +20,7 @@ public class TestForApplicationLayoutThatUsesWholeBrosersSpace extends
 
     SplitPanel firstLevelSplit;
 
+    @Override
     public void init() {
         setMainWindow(main);
 
index 5e7216101b801763401ec7f3a2030dab5952a634..bc43a86c50d8369c586df4bf72df43d91fbd40c7 100644 (file)
@@ -17,6 +17,7 @@ public class TestForNativeWindowing extends Application {
 
     Window main = new Window("Windowing test");
 
+    @Override
     public void init() {
 
         setMainWindow(main);
@@ -96,6 +97,7 @@ public class TestForNativeWindowing extends Application {
                 "Commit (saves window state: size, place, scrollpos)"));
     }
 
+    @Override
     public Window getWindow(String name) {
 
         final Window w = super.getWindow(name);
index 4f4d2dc0996917abc1d32f0316db331354955e73..29a9e3245604a494567fa58f6543dd065d72143d 100644 (file)
@@ -21,6 +21,7 @@ public class TestSetVisibleAndCaching extends com.itmill.toolkit.Application {
 
     int selectedPanel = 0;
 
+    @Override
     public void init() {
         final Window mainWindow = new Window("TestSetVisibleAndCaching");
         setMainWindow(mainWindow);
index 032bb9f037e0359df25df1e6de0a35c26a2a386e..37130d1a8c68a390bdbd8970a0afe2a1132ef178 100644 (file)
@@ -37,6 +37,7 @@ public class TestSizeableIncomponents extends Application {
     private Button next;
     private Panel testPanel;
 
+    @Override
     public void init() {
 
         initComponentList();
@@ -144,6 +145,7 @@ public class TestSizeableIncomponents extends Application {
                         cont.addItem(t);
                         t = new Testable(c);
                         t.addConfiguration(new Configuration("100px*100px") {
+                            @Override
                             void configure(Component c) {
                                 c.setWidth(60);
                                 c.setHeight(60);
@@ -151,6 +153,7 @@ public class TestSizeableIncomponents extends Application {
                         });
                         t = new Testable(c);
                         t.addConfiguration(new Configuration("Width 50em") {
+                            @Override
                             void configure(Component c) {
                                 c.setWidth("50em");
                             }
@@ -158,12 +161,14 @@ public class TestSizeableIncomponents extends Application {
                         cont.addItem(t);
                         t = new Testable(c);
                         t.addConfiguration(new Configuration("Height 7cm") {
+                            @Override
                             void configure(Component c) {
                                 c.setHeight("7cm");
                             }
                         });
                         cont.addItem(t);
                         t = new Testable(c) {
+                            @Override
                             public Component getComponent()
                                     throws InstantiationException,
                                     IllegalAccessException {
@@ -183,6 +188,7 @@ public class TestSizeableIncomponents extends Application {
 
                         };
                         t.addConfiguration(new Configuration("100%*100%") {
+                            @Override
                             void configure(Component c) {
                                 c.setSizeFull();
                             }
@@ -286,6 +292,7 @@ public class TestSizeableIncomponents extends Application {
             return c;
         }
 
+        @Override
         public String toString() {
             return getTestableName();
         }
@@ -305,6 +312,7 @@ public class TestSizeableIncomponents extends Application {
 
         abstract void configure(Component c);
 
+        @Override
         public String toString() {
             return getDescription();
         }
index fffd1ffb5a28ed80782899366f98c89345244437..06d033431b6eed9e88067a6b095dfee2cef660e3 100644 (file)
@@ -14,6 +14,7 @@ public class TestSplitPanel extends com.itmill.toolkit.Application {
     // SplitPanel(SplitPanel.ORIENTATION_HORIZONTAL);
     SplitPanel verticalSplit = new SplitPanel(SplitPanel.ORIENTATION_VERTICAL);
 
+    @Override
     public void init() {
         final Window mainWindow = new Window("Feature Browser");
         setMainWindow(mainWindow);
index e22634ef9147ca4f07c049bee09e94d3fa488a90..8b3fb7e45726d2870fd6075e05efb68f1adfa6d6 100644 (file)
@@ -31,6 +31,7 @@ public class TreeFilesystem extends com.itmill.toolkit.Application implements
 
     private final Tree tree = new Tree();
 
+    @Override
     public void init() {
         final Window main = new Window("Tree filesystem demo");
         setMainWindow(main);
index 8a0e364d5e9ecfcd6bd16f9911b1f880e2ba82d7..d07d621440fd8279ac8e26b182e3fd1764db6a22 100644 (file)
@@ -42,6 +42,7 @@ public class TreeFilesystemContainer extends com.itmill.toolkit.Application
 
     private final Label fileProperties = new Label();
 
+    @Override
     public void init() {
         final Window w = new Window("Tree FilesystemContainer demo");
         setMainWindow(w);
index 50f6e177a936c1440e38893f2f75311cbb220a28..40096c6456dda8792683da4f05ded33ef466217c 100644 (file)
@@ -52,6 +52,7 @@ public class UpgradingSample extends Application implements
     private final GridLayout layout = new GridLayout(2, 1);
 
     /* Initialize the application */
+    @Override
     public void init() {
 
         // Create the main window of the application
@@ -73,6 +74,7 @@ public class UpgradingSample extends Application implements
 
     // Overriding usetUser method is a simple way of updating application
     // privileges when the user is changed
+    @Override
     public void setUser(Object user) {
         super.setUser(user);
         if (user != null) {
index 76c06ad130550fc606146d34b29d37dcbe33eace..69e41e991d877a61b482618d16d8c961890ec3b7 100644 (file)
@@ -25,6 +25,7 @@ public class UsingObjectsInSelect extends com.itmill.toolkit.Application
 
     public static Random random = new Random(1);
 
+    @Override
     public void init() {
         final Window main = new Window("Select demo");
         setMainWindow(main);
@@ -81,6 +82,7 @@ public class UsingObjectsInSelect extends com.itmill.toolkit.Application
             this.estimatedHours = estimatedHours;
         }
 
+        @Override
         public String toString() {
             return type + ", " + assignedTo;
         }
index c1466c6e7045105050c073766cc32c96ea500145..a7d5799d221af71ec559290b8893afb763cf982e 100644 (file)
@@ -611,12 +611,14 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             } else if (param.equals("paging")) {
                 PagingTable table = new PagingTable();
                 table.addContainerProperty("Column 1", String.class, null);
-                for (int i = 0; i < 100; i++)
+                for (int i = 0; i < 100; i++) {
                     table.addItem(new Object[] { "Item " + i }, new Integer(i));
+                }
                 main.addComponent(table);
             }
-        } else
+        } else {
             main.addComponent(new TableExample1());
+        }
     }
 
     void example_Upload(Window main, String param) {
@@ -809,8 +811,9 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             for (int i = 0; i < 9; i++) {
                 HorizontalLayout celllayout = new HorizontalLayout();
                 celllayout.addComponent((Component) cells[i][0]);
-                if (i == 0)
+                if (i == 0) {
                     celllayout.setExpandRatio((Component) cells[i][0], 1);
+                }
 
                 celllayout.setComponentAlignment((Component) cells[i][0],
                         ((Integer) cells[i][1]).intValue(),
@@ -890,8 +893,9 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             form.getFooter().addComponent(okbar);
 
             main.addComponent(form);
-        } else
+        } else {
             main.addComponent(new FormExample());
+        }
     }
 
     void example_ExpandLayout(Window main, String param) {
@@ -1171,10 +1175,11 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
 
                             // Grow the progress value until it reaches 1.0.
                             current += 0.01;
-                            if (current > 1.0)
+                            if (current > 1.0) {
                                 indicator.setValue(new Float(1.0));
-                            else
+                            } else {
                                 indicator.setValue(new Float(current));
+                            }
 
                             // After the progress is full for a while, stop.
                             if (current > 1.2) {
@@ -1221,8 +1226,9 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                 String items[] = new String[] { "-- Select --", "Mercury",
                         "Venus", "Earth", "Mars", "Jupiter", "Saturn",
                         "Uranus", "Neptune" };
-                for (int i = 0; i < items.length; i++)
+                for (int i = 0; i < items.length; i++) {
                     select.addItem(items[i]);
+                }
                 select.setNullSelectionItemId(items[0]);
 
                 // When an item is selected in the second window, add
@@ -1432,8 +1438,9 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                 .getBrowserApplication();
 
         // Add a browser-dependent style name for the main window
-        if (browserApplication.indexOf("Firefox/2") != -1)
+        if (browserApplication.indexOf("Firefox/2") != -1) {
             main.addStyleName("firefox2");
+        }
 
         // Display the client identification string
         main.addComponent(new Label(browserApplication));
index eaea83062cd93acd826300de204ef7bd0dfa304a..5ad52daf2b7ddf879049cda6d61121cd665135a6 100644 (file)
@@ -1,26 +1,37 @@
 package com.itmill.toolkit.tests.book;
 
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
 import com.itmill.toolkit.Application;
-import com.itmill.toolkit.ui.*;
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.ProgressIndicator;
+import com.itmill.toolkit.ui.Table;
+import com.itmill.toolkit.ui.TextField;
+import com.itmill.toolkit.ui.Window;
 import com.itmill.toolkit.ui.Button.ClickEvent;
 
-public class ChatApplication extends Application implements Button.ClickListener {
-    /* ChatApplication instances of different users.
-     * Warning: a hack, not safe, because sessions can expire. */
+public class ChatApplication extends Application implements
+        Button.ClickListener {
+    /*
+     * ChatApplication instances of different users. Warning: a hack, not safe,
+     * because sessions can expire.
+     */
     static List users = new ArrayList();
-    
+
     /* Messages as a shared list. */
-    static List messages  = new ArrayList();
-    int         localSize = 0;
+    static List messages = new ArrayList();
+    int localSize = 0;
 
     /* User interface. */
-    Table       messageTable = new Table();
-    TextField   username     = new TextField("Username:");
-    TextField   message      = new TextField("Message:");
+    Table messageTable = new Table();
+    TextField username = new TextField("Username:");
+    TextField message = new TextField("Message:");
 
+    @Override
     public void init() {
-        final Window main = new Window ("Chat");
+        final Window main = new Window("Chat");
         setMainWindow(main);
         setTheme("tests-magi");
         users.add(this);
@@ -31,9 +42,9 @@ public class ChatApplication extends Application implements Button.ClickListener
         messageTable.addContainerProperty("Sender", String.class, "");
         messageTable.addContainerProperty("Message", String.class, "");
         updateTable();
-        
+
         main.addComponent(message);
-        
+
         Button send = new Button("Send");
         send.addListener(this);
         main.addComponent(send);
@@ -45,24 +56,28 @@ public class ChatApplication extends Application implements Button.ClickListener
     }
 
     public void buttonClick(ClickEvent event) {
-        synchronized(users) {
+        synchronized (users) {
             // Create the new message in the shared list.
-            messages.add(new String[]{new String((String) username.getValue()),
-                                      new String((String) message.getValue())});
+            messages.add(new String[] {
+                    new String((String) username.getValue()),
+                    new String((String) message.getValue()) });
 
             // Update the message tables for all users.
-            for (Iterator i = users.iterator();i.hasNext();) 
-                ((ChatApplication)i.next()).updateTable();
+            for (Iterator i = users.iterator(); i.hasNext();) {
+                ((ChatApplication) i.next()).updateTable();
+            }
         }
     }
 
     void updateTable() {
-        if (localSize == messages.size())
+        if (localSize == messages.size()) {
             return; // No updating needed
+        }
 
         // Add new messages to the table
-        while (localSize < messages.size())
-            messageTable.addItem((Object[])messages.get(localSize++),
-                                 new Integer(localSize-1));
+        while (localSize < messages.size()) {
+            messageTable.addItem((Object[]) messages.get(localSize++),
+                    new Integer(localSize - 1));
+        }
     }
 }
index 2ed44785bd9c430bf9fc006d23bc66140935e1ee..012070d277b71aa23097e69bbcf8d4a129fde8e5 100644 (file)
@@ -7,7 +7,6 @@ package com.itmill.toolkit.tests.book;
 import com.itmill.toolkit.event.Action;
 import com.itmill.toolkit.event.ShortcutAction;
 import com.itmill.toolkit.event.Action.Handler;
-import com.itmill.toolkit.ui.AbstractField;
 import com.itmill.toolkit.ui.Button;
 import com.itmill.toolkit.ui.CustomComponent;
 import com.itmill.toolkit.ui.FormLayout;
@@ -25,7 +24,8 @@ public class DefaultButtonExample extends CustomComponent implements Handler {
     TextField password = new TextField("Password");
     OrderedLayout buttons = new FormLayout();
 
-    // Create buttons and define their listener methods. Here we use parameterless
+    // Create buttons and define their listener methods. Here we use
+    // parameterless
     // methods so that we can use same methods for both click events and
     // keyboard actions.
     Button ok = new Button("OK", this, "okHandler");
@@ -33,13 +33,12 @@ public class DefaultButtonExample extends CustomComponent implements Handler {
 
     // Have the unmodified Enter key cause an event
     Action action_ok = new ShortcutAction("Default key",
-                                          ShortcutAction.KeyCode.ENTER,
-                                          null);
+            ShortcutAction.KeyCode.ENTER, null);
 
     // Have the C key modified with Alt cause an event
     Action action_cancel = new ShortcutAction("Alt+C",
-                                              ShortcutAction.KeyCode.C,
-                                              new int[] { ShortcutAction.ModifierKey.ALT });
+            ShortcutAction.KeyCode.C,
+            new int[] { ShortcutAction.ModifierKey.ALT });
 
     Window window = null;
 
@@ -73,7 +72,7 @@ public class DefaultButtonExample extends CustomComponent implements Handler {
      */
     public Action[] getActions(Object target, Object sender) {
         System.out.println("getActions()");
-        return new Action[] {action_ok, action_cancel};
+        return new Action[] { action_ok, action_cancel };
     }
 
     /**
@@ -81,22 +80,24 @@ public class DefaultButtonExample extends CustomComponent implements Handler {
      * the same listener methods that are called with ButtonClick events.
      */
     public void handleAction(Action action, Object sender, Object target) {
-        if (action == action_ok)
+        if (action == action_ok) {
             okHandler();
-        if (action == action_cancel)
+        }
+        if (action == action_cancel) {
             cancelHandler();
+        }
     }
 
     public void okHandler() {
         // Do something: report the click
-        formlayout.addComponent(new Label("OK clicked. "+
-                                          "User="+username.getValue()+
-                                          ", password="+password.getValue()));
+        formlayout.addComponent(new Label("OK clicked. " + "User="
+                + username.getValue() + ", password=" + password.getValue()));
         //  
     }
 
     public void cancelHandler() {
         // Do something: report the click
-        formlayout.addComponent(new Label("Cancel clicked. User="+username.getValue()+", password="+password.getValue()));
+        formlayout.addComponent(new Label("Cancel clicked. User="
+                + username.getValue() + ", password=" + password.getValue()));
     }
 }
index 21258880045a950953ba0e0a8e97c5fd4585b383..d0c78c0c542dc3740d301d6d9a9dcaf63044dc27 100644 (file)
@@ -30,9 +30,9 @@ import com.itmill.toolkit.ui.TextField;
 public class FormExample extends CustomComponent {
     /** Contact information data model. */
     public class Contact {
-        String name       = "";
-        String address    = "";
-        int    postalCode = 20540;
+        String name = "";
+        String address = "";
+        int postalCode = 20540;
         String city;
     }
 
@@ -59,20 +59,22 @@ public class FormExample extends CustomComponent {
 
         public void setPostalCode(String postalCode) {
             try {
-                if (postalCode != null)
+                if (postalCode != null) {
                     this.postalCode = Integer.parseInt(postalCode);
-                else
+                } else {
                     this.postalCode = 0;
+                }
             } catch (NumberFormatException e) {
                 this.postalCode = 0;
             }
         }
 
         public String getPostalCode() {
-            if (postalCode > 0)
+            if (postalCode > 0) {
                 return String.valueOf(postalCode);
-            else
+            } else {
                 return "";
+            }
         }
 
         public void setCity(String city) {
@@ -102,12 +104,14 @@ public class FormExample extends CustomComponent {
                 Component uiContext) {
             String pid = (String) propertyId;
 
-            if (pid.equals("name"))
+            if (pid.equals("name")) {
                 return new TextField("Name");
-            
-            if (pid.equals("address"))
+            }
+
+            if (pid.equals("address")) {
                 return new TextField("Street Address");
-            
+            }
+
             if (pid.equals("postalCode")) {
                 TextField field = new TextField("Postal Code");
                 field.setColumns(5);
@@ -121,7 +125,8 @@ public class FormExample extends CustomComponent {
                         return ((String) value).matches("[0-9]{5}");
                     }
 
-                    public void validate(Object value) throws InvalidValueException {
+                    public void validate(Object value)
+                            throws InvalidValueException {
                         if (!isValid(value)) {
                             throw new InvalidValueException(
                                     "Postal code must be a number 10000-99999.");
@@ -131,15 +136,16 @@ public class FormExample extends CustomComponent {
                 field.addValidator(postalCodeValidator);
                 return field;
             }
-            
+
             if (pid.equals("city")) {
                 Select select = new Select("City");
                 final String cities[] = new String[] { "Amsterdam", "Berlin",
                         "Helsinki", "Hong Kong", "London", "Luxemburg",
                         "New York", "Oslo", "Paris", "Rome", "Stockholm",
                         "Tokyo", "Turku" };
-                for (int i = 0; i < cities.length; i++)
+                for (int i = 0; i < cities.length; i++) {
                     select.addItem(cities[i]);
+                }
                 return select;
             }
             return null;
@@ -157,7 +163,8 @@ public class FormExample extends CustomComponent {
 
         // Set form caption and description texts.
         form.setCaption("Contact Information");
-        form.setDescription("Please enter valid name and address. Fields marked with * are required.");
+        form
+                .setDescription("Please enter valid name and address. Fields marked with * are required.");
 
         // Use custom field factory to create the fields in the form.
         form.setFieldFactory(new MyFieldFactory());
@@ -191,7 +198,7 @@ public class FormExample extends CustomComponent {
         // necessary for the validation of the fields to occur immediately when
         // the input focus changes and not just on commit.
         form.setImmediate(true);
-        
+
         // Set buffering so that commit() must be called for the form
         // before input is written to the data. (Input is not written
         // immediately through).
@@ -199,7 +206,8 @@ public class FormExample extends CustomComponent {
         form.setReadThrough(false);
 
         // Add Commit and Discard controls to the form.
-        ExpandLayout footer = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+        ExpandLayout footer = new ExpandLayout(
+                OrderedLayout.ORIENTATION_HORIZONTAL);
 
         // The Commit button calls form.commit().
         Button commit = new Button("Commit", form, "commit");
@@ -208,7 +216,7 @@ public class FormExample extends CustomComponent {
         Button discard = new Button("Discard", form, "discard");
         footer.addComponent(commit);
         footer.setComponentAlignment(commit, ExpandLayout.ALIGNMENT_RIGHT,
-                                     ExpandLayout.ALIGNMENT_TOP);
+                ExpandLayout.ALIGNMENT_TOP);
         footer.setHeight("25px");
         footer.addComponent(discard);
         form.setFooter(footer);
index 8d9c0e86e28baf14680924bbd4341d75bac203d3..a1113a1461a2e5ae7da6623cc1a0ff640da9684e 100644 (file)
@@ -29,7 +29,7 @@ public class FormExample2 extends CustomComponent {
     public class PersonBean {
         String name = "";
         String city = "";
-        
+
         public void setName(String name) {
             this.name = name;
         }
@@ -64,9 +64,9 @@ public class FormExample2 extends CustomComponent {
         public Field createField(Item item, Object propertyId,
                 Component uiContext) {
             String pid = (String) propertyId;
-            if (pid.equals("name"))
+            if (pid.equals("name")) {
                 return new TextField("Name");
-            else if (pid.equals("city")) {
+            else if (pid.equals("city")) {
                 Select select = new Select("City");
                 select.addItem("Berlin");
                 select.addItem("Helsinki");
@@ -91,7 +91,8 @@ public class FormExample2 extends CustomComponent {
 
         // Set form caption and description texts
         form.setCaption("Contact Information");
-        form.setDescription("Please specify name of the person and the city where the person lives in.");
+        form
+                .setDescription("Please specify name of the person and the city where the person lives in.");
 
         // Use the custom field factory to create the fields in the form.
         form.setFieldFactory(new MyFieldFactory());
@@ -110,7 +111,7 @@ public class FormExample2 extends CustomComponent {
         order.add("name");
         order.add("city");
         form.setVisibleItemProperties(order);
-        
+
         form.getField("name").setRequired(true);
         form.getField("name").setRequiredError("You must enter a name.");
         form.getField("city").setRequired(true);
@@ -118,6 +119,6 @@ public class FormExample2 extends CustomComponent {
         OrderedLayout root = new OrderedLayout();
         root.setWidth(300, OrderedLayout.UNITS_PIXELS);
         root.addComponent(form);
-        this.setCompositionRoot(root);
+        setCompositionRoot(root);
     }
 }
index 34ca740a8f3c304f4e9e1cd6ba20f74a6d6e98e7..5981a4ffbf9365909f51769b85749f93bf565959 100644 (file)
@@ -1,12 +1,19 @@
 package com.itmill.toolkit.tests.book;
 
-import java.awt.*;
+import java.awt.Color;
+import java.awt.Graphics;
 import java.awt.image.BufferedImage;
-import java.io.*;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
 import java.net.URL;
 import java.util.Map;
+
 import javax.imageio.ImageIO;
-import com.itmill.toolkit.terminal.*;
+
+import com.itmill.toolkit.terminal.DownloadStream;
+import com.itmill.toolkit.terminal.ParameterHandler;
+import com.itmill.toolkit.terminal.URIHandler;
 
 /**
  * Demonstrates handling URI parameters and the URI itself to create a dynamic
@@ -20,8 +27,9 @@ public class MyDynamicResource implements URIHandler, ParameterHandler {
      */
     public void handleParameters(Map parameters) {
         // Get and store the passed HTTP parameter.
-        if (parameters.containsKey("text"))
-            textToDisplay = ((String[])parameters.get("text"))[0]; 
+        if (parameters.containsKey("text")) {
+            textToDisplay = ((String[]) parameters.get("text"))[0];
+        }
     }
 
     /**
@@ -34,22 +42,24 @@ public class MyDynamicResource implements URIHandler, ParameterHandler {
     public DownloadStream handleURI(URL context, String relativeUri) {
         // Catch the given URI that identifies the resource, otherwise let other
         // URI handlers or the Application to handle the response.
-        if (!relativeUri.startsWith("myresource"))
+        if (!relativeUri.startsWith("myresource")) {
             return null;
-        
+        }
+
         // Create an image and draw some background on it.
-        BufferedImage image = new BufferedImage (200, 200, BufferedImage.TYPE_INT_RGB);
+        BufferedImage image = new BufferedImage(200, 200,
+                BufferedImage.TYPE_INT_RGB);
         Graphics drawable = image.getGraphics();
         drawable.setColor(Color.lightGray);
-        drawable.fillRect(0,0,200,200);
+        drawable.fillRect(0, 0, 200, 200);
         drawable.setColor(Color.yellow);
-        drawable.fillOval(25,25,150,150);
+        drawable.fillOval(25, 25, 150, 150);
         drawable.setColor(Color.blue);
-        drawable.drawRect(0,0,199,199);
-        
+        drawable.drawRect(0, 0, 199, 199);
+
         // Use the parameter to create dynamic content.
         drawable.setColor(Color.black);
-        drawable.drawString("Text: "+textToDisplay, 75, 100);
+        drawable.drawString("Text: " + textToDisplay, 75, 100);
 
         try {
             // Write the image to a buffer.
@@ -57,8 +67,9 @@ public class MyDynamicResource implements URIHandler, ParameterHandler {
             ImageIO.write(image, "png", imagebuffer);
 
             // Return a stream from the buffer.
-            ByteArrayInputStream istream = new ByteArrayInputStream(imagebuffer.toByteArray());
-            return new DownloadStream (istream,null,null);
+            ByteArrayInputStream istream = new ByteArrayInputStream(imagebuffer
+                    .toByteArray());
+            return new DownloadStream(istream, null, null);
         } catch (IOException e) {
             return null;
         }
index a9215f09b5b25653463f47cba57631a727da9d24..2702bbf087397a94ace6dfa9224b9a97c299f8a2 100644 (file)
@@ -9,13 +9,17 @@ import java.io.FileOutputStream;
 import java.io.OutputStream;
 
 import com.itmill.toolkit.terminal.FileResource;
-import com.itmill.toolkit.ui.*;
+import com.itmill.toolkit.ui.CustomComponent;
+import com.itmill.toolkit.ui.Embedded;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.Panel;
+import com.itmill.toolkit.ui.Upload;
 
-public class MyUploader extends CustomComponent
-implements Upload.SucceededListener, Upload.FailedListener, Upload.Receiver {
-    Panel root;         // Root element for contained components.
-    Panel imagePanel;   // Panel that contains the uploaded image.
-    File  file;         // File to write to.
+public class MyUploader extends CustomComponent implements
+        Upload.SucceededListener, Upload.FailedListener, Upload.Receiver {
+    Panel root; // Root element for contained components.
+    Panel imagePanel; // Panel that contains the uploaded image.
+    File file; // File to write to.
 
     MyUploader() {
         root = new Panel("My Upload Component");
@@ -30,7 +34,8 @@ implements Upload.SucceededListener, Upload.FailedListener, Upload.Receiver {
         upload.addListener((Upload.FailedListener) this);
 
         root.addComponent(upload);
-        root.addComponent(new Label("Click 'Browse' to select a file and then click 'Upload'."));
+        root.addComponent(new Label(
+                "Click 'Browse' to select a file and then click 'Upload'."));
 
         // Create a panel for displaying the uploaded file (image).
         imagePanel = new Panel("Uploaded image");
@@ -59,9 +64,10 @@ implements Upload.SucceededListener, Upload.FailedListener, Upload.Receiver {
         // Log the upload on screen.
         root.addComponent(new Label("File " + event.getFilename()
                 + " of type '" + event.getMIMEType() + "' uploaded."));
-        
+
         // Display the uploaded file in the image panel.
-        final FileResource imageResource = new FileResource(file, getApplication());
+        final FileResource imageResource = new FileResource(file,
+                getApplication());
         imagePanel.removeAllComponents();
         imagePanel.addComponent(new Embedded("", imageResource));
     }
index 0659ebb91045a8bed04b4cecf39e5885ec10cdac..2dcb2d5c68babdd98fc6aa40987cbc06f7fe292e 100644 (file)
@@ -4,8 +4,6 @@
 
 package com.itmill.toolkit.tests.book;
 
-import java.text.MessageFormat;
-
 import com.itmill.toolkit.data.Property;
 import com.itmill.toolkit.data.Validator;
 import com.itmill.toolkit.data.Property.ValueChangeEvent;
@@ -19,7 +17,8 @@ import com.itmill.toolkit.ui.TextField;
 public class SSNField extends CustomComponent implements
         Property.ValueChangeListener {
     OrderedLayout layout = new FormLayout();
-    // new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL); //;new FormLayout();
+    // new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL); //;new
+    // FormLayout();
     TextField myfield;
     Label myerror;
 
@@ -39,11 +38,13 @@ public class SSNField extends CustomComponent implements
         /** Validate the given SSN. */
         public void validate(Object value) throws InvalidValueException {
             final String ssn = (String) value;
-            if (ssn.length() == 0)
-               return;
+            if (ssn.length() == 0) {
+                return;
+            }
 
-            if (ssn.length() != 11)
+            if (ssn.length() != 11) {
                 throw new InvalidValueException("Invalid SSN length");
+            }
 
             final String numbers = ssn.substring(0, 6) + ssn.substring(7, 10);
             final int checksum = new Integer(numbers).intValue() % 31;
@@ -66,8 +67,10 @@ public class SSNField extends CustomComponent implements
         /* Create and set the validator object for the field. */
         myfield.addValidator(new SSNValidator());
 
-        /* ValueChageEvent will be generated immediately when the component
-           loses focus. */
+        /*
+         * ValueChageEvent will be generated immediately when the component
+         * loses focus.
+         */
         myfield.setImmediate(true);
 
         /* Listen for ValueChangeEvent events. */
index 9ba5d61ae9ba22886912dc537cb644021e05ac36..7b9cec14ccce86e5c64e9ee89c68d54db0581b86 100644 (file)
@@ -26,6 +26,7 @@ public class SelectExample extends CustomComponent implements
             planetName = name;
         }
 
+        @Override
         public String toString() {
             return "The Planet " + planetName;
         }
index ddb8872a130968382d95fa6f880dbf06c0e7438a..ac66c45f812c31876a0cfb689e1415bb2f556030 100644 (file)
@@ -11,42 +11,52 @@ public class TableCellStyle extends CustomComponent {
     public TableCellStyle() {
         Table table = new Table("Table with Cell Styles");
         table.addStyleName("checkerboard");
-        
+
         // Add some columns in the table. In this example, the property IDs
         // of the container are integers so we can determine the column number
         // easily.
-        table.addContainerProperty("0", String.class, null, "", null, null); // Row header
-        for (int i=0; i<8; i++)
-            table.addContainerProperty(""+(i+1), String.class, null,
-                                       String.valueOf((char) (65+i)), null, null);
-        
+        table.addContainerProperty("0", String.class, null, "", null, null); // Row
+                                                                             // header
+        for (int i = 0; i < 8; i++) {
+            table.addContainerProperty("" + (i + 1), String.class, null, String
+                    .valueOf((char) (65 + i)), null, null);
+        }
+
         // Add some items in the table.
-        table.addItem(new Object[]{"1", "R", "N", "B", "Q", "K", "B", "N", "R"}, new Integer(0));
-        table.addItem(new Object[]{"2", "P", "P", "P", "P", "P", "P", "P", "P"}, new Integer(1));
-        for (int i=2; i<6; i++)
-            table.addItem(new Object[]{String.valueOf(i+1), "", "", "", "", "", "", "", ""}, new Integer(i));
-        table.addItem(new Object[]{"7", "P", "P", "P", "P", "P", "P", "P", "P"}, new Integer(6));
-        table.addItem(new Object[]{"8", "R", "N", "B", "Q", "K", "B", "N", "R"}, new Integer(7));
+        table.addItem(new Object[] { "1", "R", "N", "B", "Q", "K", "B", "N",
+                "R" }, new Integer(0));
+        table.addItem(new Object[] { "2", "P", "P", "P", "P", "P", "P", "P",
+                "P" }, new Integer(1));
+        for (int i = 2; i < 6; i++) {
+            table.addItem(new Object[] { String.valueOf(i + 1), "", "", "", "",
+                    "", "", "", "" }, new Integer(i));
+        }
+        table.addItem(new Object[] { "7", "P", "P", "P", "P", "P", "P", "P",
+                "P" }, new Integer(6));
+        table.addItem(new Object[] { "8", "R", "N", "B", "Q", "K", "B", "N",
+                "R" }, new Integer(7));
         table.setPageLength(8);
-        
+
         // Set cell style generator
         table.setCellStyleGenerator(new Table.CellStyleGenerator() {
             public String getStyle(Object itemId, Object propertyId) {
-                int row = ((Integer)itemId).intValue();
-                int col = Integer.parseInt((String)propertyId);
-                
+                int row = ((Integer) itemId).intValue();
+                int col = Integer.parseInt((String) propertyId);
+
                 // The first column.
-                if (col == 0)
+                if (col == 0) {
                     return "rowheader";
-                
+                }
+
                 // Other cells.
-                if ((row+col)%2 == 1)
+                if ((row + col) % 2 == 1) {
                     return "black";
-                else
+                } else {
                     return "white";
+                }
             }
         });
-        
+
         setCompositionRoot(table);
     }
 }
index 76c4f4e100d283ba628e7ce8077dcff2b2af00b8..5941d474ba3b190c257682faf33bd299f886f0b1 100644 (file)
@@ -10,50 +10,45 @@ import java.util.GregorianCalendar;
 
 import com.itmill.toolkit.data.Property;
 import com.itmill.toolkit.data.Property.ValueChangeEvent;
-import com.itmill.toolkit.ui.Button;
 import com.itmill.toolkit.ui.CheckBox;
 import com.itmill.toolkit.ui.CustomComponent;
-import com.itmill.toolkit.ui.Label;
 import com.itmill.toolkit.ui.OrderedLayout;
-import com.itmill.toolkit.ui.RichTextArea;
 import com.itmill.toolkit.ui.Table;
-import com.itmill.toolkit.ui.TextField;
-import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class TableEditable extends CustomComponent {
     /* A layout needed for the example. */
     OrderedLayout layout = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
-    
+
     TableEditable() {
         setCompositionRoot(layout);
 
         // Create a table. It is by default not editable.
         final Table table = new Table();
-        
+
         // Define the names and data types of columns.
-        table.addContainerProperty("Date",     Date.class,  null);
-        table.addContainerProperty("Work",     Boolean.class, null);
-        table.addContainerProperty("Comments", String.class,  null);
-        
+        table.addContainerProperty("Date", Date.class, null);
+        table.addContainerProperty("Work", Boolean.class, null);
+        table.addContainerProperty("Comments", String.class, null);
+
         // Add a few items in the table.
-        for (int i=0; i<100; i++) {
-            Calendar calendar = new GregorianCalendar(2008,0,1);
+        for (int i = 0; i < 100; i++) {
+            Calendar calendar = new GregorianCalendar(2008, 0, 1);
             calendar.add(Calendar.DAY_OF_YEAR, i);
-            
+
             // Create the table row.
-            table.addItem(new Object[] {calendar.getTime(),
-                                        new Boolean(false),
-                                        ""},
-                          new Integer(i)); // Item identifier
+            table.addItem(new Object[] { calendar.getTime(),
+                    new Boolean(false), "" }, new Integer(i)); // Item
+                                                               // identifier
         }
-        
+
         table.setPageLength(8);
         layout.addComponent(table);
-        
+
         final CheckBox switchEditable = new CheckBox("Editable");
         switchEditable.addListener(new Property.ValueChangeListener() {
             public void valueChange(ValueChangeEvent event) {
-                table.setEditable(((Boolean)event.getProperty().getValue()).booleanValue());
+                table.setEditable(((Boolean) event.getProperty().getValue())
+                        .booleanValue());
             }
         });
         switchEditable.setImmediate(true);
index 1029eabee299b1445dda2fb8610ae4ce20403dab..fdb052197bc1eb03dc8e7272a7b82b56f30df927 100644 (file)
@@ -22,29 +22,29 @@ import com.itmill.toolkit.ui.OrderedLayout;
 import com.itmill.toolkit.ui.Table;
 
 /**
- *  Shows how to bind a bean to a table and make it editable. 
+ * Shows how to bind a bean to a table and make it editable.
  */
 public class TableEditableBean extends CustomComponent {
     /**
      * Let's have a simple example bean.
      */
-       public class MyBean {
-               boolean selected;
-               String  text;
-               
-               public MyBean() {
-                       this.selected = false;
-                       this.text     = "";
-               }
-
-               public boolean isSelected() {
-                   System.out.println("isSelected() called: " + selected);
+    public class MyBean {
+        boolean selected;
+        String text;
+
+        public MyBean() {
+            selected = false;
+            text = "";
+        }
+
+        public boolean isSelected() {
+            System.out.println("isSelected() called: " + selected);
             return selected;
         }
 
         public void setSelected(boolean selected) {
             this.selected = selected;
-            System.out.println("setSelected1("+selected+") called.");
+            System.out.println("setSelected1(" + selected + ") called.");
         }
 
         public String getText() {
@@ -54,26 +54,27 @@ public class TableEditableBean extends CustomComponent {
 
         public void setText(String text) {
             this.text = text;
-            System.out.println("setText("+text+") called.");
+            System.out.println("setText(" + text + ") called.");
         }
-       };
+    };
 
     /**
      * Custom field factory that sets the fields as immediate for debugging
      * purposes. This is not normally necessary, unless you want to have some
      * interaction that requires it.
      */
-       public class MyFieldFactory extends BaseFieldFactory {
-           public Field createField(Class type, Component uiContext) {
-               // Let the BaseFieldFactory create the fields
-               Field field = super.createField(type, uiContext);
-               
-               // ...and just set them as immediate
-               ((AbstractField)field).setImmediate(true);
-               
+    public class MyFieldFactory extends BaseFieldFactory {
+        @Override
+        public Field createField(Class type, Component uiContext) {
+            // Let the BaseFieldFactory create the fields
+            Field field = super.createField(type, uiContext);
+
+            // ...and just set them as immediate
+            ((AbstractField) field).setImmediate(true);
+
             return field;
-           }
-       }
+        }
+    }
 
     /**
      * This is a custom container that allows adding BeanItems inside it. The
@@ -83,13 +84,13 @@ public class TableEditableBean extends CustomComponent {
      * Most of the interface methods are implemented with just dummy
      * implementations, as they are not needed in this example.
      */
-       public class MyContainer implements Container {
+    public class MyContainer implements Container {
         Item[] items;
-        int    current = 0;
-           
-           public MyContainer() {
-               items = new Item[100]; // Yeah this is just a test
-           }
+        int current = 0;
+
+        public MyContainer() {
+            items = new Item[100]; // Yeah this is just a test
+        }
 
         public boolean addContainerProperty(Object propertyId, Class type,
                 Object defaultValue) throws UnsupportedOperationException {
@@ -105,8 +106,8 @@ public class TableEditableBean extends CustomComponent {
         }
 
         /**
-         *  This addItem method is specific for this container and allows adding
-         *  BeanItem objects. The BeanItems must be bound to MyBean objects.   
+         * This addItem method is specific for this container and allows adding
+         * BeanItem objects. The BeanItems must be bound to MyBean objects.
          */
         public void addItem(BeanItem item) throws UnsupportedOperationException {
             items[current++] = item;
@@ -114,9 +115,10 @@ public class TableEditableBean extends CustomComponent {
 
         public boolean containsId(Object itemId) {
             if (itemId instanceof Integer) {
-                int pos = ((Integer)itemId).intValue();
-                if (pos >= 0 && pos < 100)
+                int pos = ((Integer) itemId).intValue();
+                if (pos >= 0 && pos < 100) {
                     return items[pos] != null;
+                }
             }
             return false;
         }
@@ -128,10 +130,10 @@ public class TableEditableBean extends CustomComponent {
          */
         public Property getContainerProperty(Object itemId, Object propertyId) {
             if (itemId instanceof Integer) {
-                int pos = ((Integer)itemId).intValue();
+                int pos = ((Integer) itemId).intValue();
                 if (pos >= 0 && pos < 100) {
                     Item item = items[pos];
-                    
+
                     // The BeanItem provides the property objects for the items.
                     return item.getItemProperty(propertyId);
                 }
@@ -143,24 +145,26 @@ public class TableEditableBean extends CustomComponent {
         public Collection getContainerPropertyIds() {
             // This container can contain only BeanItems bound to MyBeans.
             Item item = new BeanItem(new MyBean());
-            
+
             // The BeanItem knows how to get the property names from the bean.
             return item.getItemPropertyIds();
         }
 
         public Item getItem(Object itemId) {
             if (itemId instanceof Integer) {
-                int pos = ((Integer)itemId).intValue();
-                if (pos >= 0 && pos < 100)
+                int pos = ((Integer) itemId).intValue();
+                if (pos >= 0 && pos < 100) {
                     return items[pos];
+                }
             }
             return null;
         }
 
         public Collection getItemIds() {
             Vector ids = new Vector();
-            for (int i=0; i<100; i++)
+            for (int i = 0; i < 100; i++) {
                 ids.add(Integer.valueOf(i));
+            }
             return ids;
         }
 
@@ -185,48 +189,51 @@ public class TableEditableBean extends CustomComponent {
         public int size() {
             return current;
         }
-           
-       }
+
+    }
 
     TableEditableBean() {
         /* A layout needed for the example. */
-        OrderedLayout layout = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
+        OrderedLayout layout = new OrderedLayout(
+                OrderedLayout.ORIENTATION_VERTICAL);
         setCompositionRoot(layout);
 
         // Create a table. It is by default not editable.
         final Table table = new Table();
         layout.addComponent(table);
         table.setPageLength(8);
-        
+
         // Use the custom container as the data source
         MyContainer myContainer = new MyContainer();
         table.setContainerDataSource(myContainer);
-        
+
         // Add a few items in the table.
-        for (int i=0; i<5; i++) {
+        for (int i = 0; i < 5; i++) {
             // Create the bean
-               MyBean item = new MyBean();
-               item.setText("MyBean " + i);
-               
-               // Have an Item that is bound to the bean
-               BeanItem bitem = new BeanItem(item);
-               
-               // Add the item directly to the container using the custom addItem()
+            MyBean item = new MyBean();
+            item.setText("MyBean " + i);
+
+            // Have an Item that is bound to the bean
+            BeanItem bitem = new BeanItem(item);
+
+            // Add the item directly to the container using the custom addItem()
             // method. We could otherwise add it to the Table as well, but
             // the Container interface of Table does not allow adding items
-               // as such, just item IDs.
-               myContainer.addItem(bitem);
+            // as such, just item IDs.
+            myContainer.addItem(bitem);
         }
-        
+
         // Use custom field factory that sets the checkboxes in immediate mode.
         // This is just for debugging purposes and is not normally necessary.
         table.setFieldFactory(new MyFieldFactory());
 
-        // Have a check box to switch the table between normal and editable mode.
+        // Have a check box to switch the table between normal and editable
+        // mode.
         final CheckBox switchEditable = new CheckBox("Editable");
         switchEditable.addListener(new Property.ValueChangeListener() {
             public void valueChange(ValueChangeEvent event) {
-                table.setEditable(((Boolean)event.getProperty().getValue()).booleanValue());
+                table.setEditable(((Boolean) event.getProperty().getValue())
+                        .booleanValue());
             }
         });
         switchEditable.setImmediate(true);
index 80c5dad3b0c3e418cd9456b893eced295c613cef..4d888eaeae72653a9ca4ace39fca74c8d81cfa3b 100644 (file)
@@ -26,22 +26,28 @@ public class TableExample extends CustomComponent {
         layout.addComponent(table);
 
         /* Define the names, data types, and default values of columns. */
-        table.addContainerProperty("First Name", String.class,  "(no first name)");
-        table.addContainerProperty("Last Name",  String.class,  "(no last name)");
-        table.addContainerProperty("Year",       Integer.class, null);
+        table.addContainerProperty("First Name", String.class,
+                "(no first name)");
+        table.addContainerProperty("Last Name", String.class, "(no last name)");
+        table.addContainerProperty("Year", Integer.class, null);
 
         /* We use these entries to generate random items in a table. */
-        final String[] firstnames = new String[] { "Donald", "Patty", "Sally", "Douglas" };
-        final String[] lastnames  = new String[] { "Smith", "Jones", "Adams", "Knuth" };
+        final String[] firstnames = new String[] { "Donald", "Patty", "Sally",
+                "Douglas" };
+        final String[] lastnames = new String[] { "Smith", "Jones", "Adams",
+                "Knuth" };
 
         /* Add some items in the table and assign them an Item ID (IID). */
         for (int i = 0; i < 1000; i++) {
             /* Add a randomly generated item in the Table. */
-            table.addItem(new Object[] {
-                        firstnames[(int) (Math.random() * (firstnames.length - 0.01))],
-                        lastnames[(int) (Math.random() * (lastnames.length - 0.01))],
-                        new Integer((int) (1900 + Math.random() * 100)) },
-                    new Integer(i));
+            table
+                    .addItem(
+                            new Object[] {
+                                    firstnames[(int) (Math.random() * (firstnames.length - 0.01))],
+                                    lastnames[(int) (Math.random() * (lastnames.length - 0.01))],
+                                    new Integer(
+                                            (int) (1900 + Math.random() * 100)) },
+                            new Integer(i));
         }
 
         /* Set the number of items visible in the table. */
@@ -53,17 +59,20 @@ public class TableExample extends CustomComponent {
 
         /* Allow selecting items from the table. */
         table.setSelectable(true);
-        
-        /* When an item is selected, the selection is sent immediately to server. */
+
+        /*
+         * When an item is selected, the selection is sent immediately to
+         * server.
+         */
         table.setImmediate(true);
-        
+
         /* Handle selection change. */
         table.addListener(new Property.ValueChangeListener() {
             public void valueChange(ValueChangeEvent event) {
                 current.setValue("Selected: " + table.getValue().toString());
             }
         });
-        
+
         layout.addComponent(current);
     }
 }
index 52d1513394942a7216e2a4715e3b2b6121063605..cf9ad1d438d248519390c9b5d04708c96734f1cf 100644 (file)
@@ -17,21 +17,29 @@ public class TableExample1 extends CustomComponent {
 
         /* Create the table with a caption. */
         Table table = new Table("This is my Table");
-        
-        /* Define the names and data types of columns.
-         * The "default value" parameter is meaningless here. */
-        table.addContainerProperty("First Name", String.class,  null);
-        table.addContainerProperty("Last Name",  String.class,  null);
-        table.addContainerProperty("Year",       Integer.class, null);
+
+        /*
+         * Define the names and data types of columns. The "default value"
+         * parameter is meaningless here.
+         */
+        table.addContainerProperty("First Name", String.class, null);
+        table.addContainerProperty("Last Name", String.class, null);
+        table.addContainerProperty("Year", Integer.class, null);
 
         /* Add a few items in the table. */
-        table.addItem(new Object[] {"Nicolaus","Copernicus",new Integer(1473)}, new Integer(1));
-        table.addItem(new Object[] {"Tycho",   "Brahe",     new Integer(1546)}, new Integer(2));
-        table.addItem(new Object[] {"Giordano","Bruno",     new Integer(1548)}, new Integer(3));
-        table.addItem(new Object[] {"Galileo", "Galilei",   new Integer(1564)}, new Integer(4));
-        table.addItem(new Object[] {"Johannes","Kepler",    new Integer(1571)}, new Integer(5));
-        table.addItem(new Object[] {"Isaac",   "Newton",    new Integer(1643)}, new Integer(6));
-        
+        table.addItem(new Object[] { "Nicolaus", "Copernicus",
+                new Integer(1473) }, new Integer(1));
+        table.addItem(new Object[] { "Tycho", "Brahe", new Integer(1546) },
+                new Integer(2));
+        table.addItem(new Object[] { "Giordano", "Bruno", new Integer(1548) },
+                new Integer(3));
+        table.addItem(new Object[] { "Galileo", "Galilei", new Integer(1564) },
+                new Integer(4));
+        table.addItem(new Object[] { "Johannes", "Kepler", new Integer(1571) },
+                new Integer(5));
+        table.addItem(new Object[] { "Isaac", "Newton", new Integer(1643) },
+                new Integer(6));
+
         /* Set number of visible rows. */
         table.setPageLength(5);
 
index f82c96c68d70e7bc32883faf31bb85992ade8aae..3472300123eb0cda28a94d2c50ba80e297fa1be8 100644 (file)
@@ -14,34 +14,45 @@ import com.itmill.toolkit.ui.Table;
 public class TableExample2 extends CustomComponent {
     /* A layout needed for the example. */
     OrderedLayout layout = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
-    
+
     TableExample2() {
         setCompositionRoot(layout);
 
         /* Create the table with a caption. */
         final Table table = new Table();
-        
-        /* Define the names and data types of columns.
-         * The "default value" parameter is meaningless here. */
-        table.addContainerProperty("First Name", String.class,  null);
-        table.addContainerProperty("Last Name",  String.class,  null);
-        table.addContainerProperty("Year",       Integer.class, null);
+
+        /*
+         * Define the names and data types of columns. The "default value"
+         * parameter is meaningless here.
+         */
+        table.addContainerProperty("First Name", String.class, null);
+        table.addContainerProperty("Last Name", String.class, null);
+        table.addContainerProperty("Year", Integer.class, null);
 
         /* Add a few items in the table. */
-        table.addItem(new Object[] {"Nicolaus","Copernicus",new Integer(1473)}, new Integer(1));
-        table.addItem(new Object[] {"Tycho",   "Brahe",     new Integer(1546)}, new Integer(2));
-        table.addItem(new Object[] {"Giordano","Bruno",     new Integer(1548)}, new Integer(3));
-        table.addItem(new Object[] {"Galileo", "Galilei",   new Integer(1564)}, new Integer(4));
-        table.addItem(new Object[] {"Johannes","Kepler",    new Integer(1571)}, new Integer(5));
-        table.addItem(new Object[] {"Isaac",   "Newton",    new Integer(1643)}, new Integer(6));
-        
+        table.addItem(new Object[] { "Nicolaus", "Copernicus",
+                new Integer(1473) }, new Integer(1));
+        table.addItem(new Object[] { "Tycho", "Brahe", new Integer(1546) },
+                new Integer(2));
+        table.addItem(new Object[] { "Giordano", "Bruno", new Integer(1548) },
+                new Integer(3));
+        table.addItem(new Object[] { "Galileo", "Galilei", new Integer(1564) },
+                new Integer(4));
+        table.addItem(new Object[] { "Johannes", "Kepler", new Integer(1571) },
+                new Integer(5));
+        table.addItem(new Object[] { "Isaac", "Newton", new Integer(1643) },
+                new Integer(6));
+
         /* Set number of visible rows. */
         table.setPageLength(5);
 
         /* Allow selecting items from the table. */
         table.setSelectable(true);
-        
-        /* When an item is selected, the selection is sent immediately to server. */
+
+        /*
+         * When an item is selected, the selection is sent immediately to
+         * server.
+         */
         table.setImmediate(true);
 
         /* Feedback from selection. */
index cf20a8bf49e950706d9ce8a4b61d1f8afbc30558..152d0ed4c90a0d2b277d1ff0d620c1ddc3a49535 100644 (file)
@@ -4,14 +4,11 @@
 
 package com.itmill.toolkit.tests.book;
 
-import com.itmill.toolkit.data.Property;
-import com.itmill.toolkit.data.Property.ValueChangeEvent;
 import com.itmill.toolkit.ui.Button;
 import com.itmill.toolkit.ui.CheckBox;
 import com.itmill.toolkit.ui.CustomComponent;
 import com.itmill.toolkit.ui.Label;
 import com.itmill.toolkit.ui.OrderedLayout;
-import com.itmill.toolkit.ui.RichTextArea;
 import com.itmill.toolkit.ui.Table;
 import com.itmill.toolkit.ui.TextField;
 import com.itmill.toolkit.ui.Button.ClickEvent;
@@ -19,37 +16,41 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 public class TableExample3 extends CustomComponent {
     /* A layout needed for the example. */
     OrderedLayout layout = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
-    
+
     TableExample3() {
         setCompositionRoot(layout);
 
-        // Create a table and add a style to allow setting the row height in theme.
+        // Create a table and add a style to allow setting the row height in
+        // theme.
         final Table table = new Table();
         table.addStyleName("components-inside");
-        
-        /* Define the names and data types of columns.
-         * The "default value" parameter is meaningless here. */
-        table.addContainerProperty("Sum",            Label.class,     null);
-        table.addContainerProperty("Is Transferred", CheckBox.class,  null);
-        table.addContainerProperty("Comments",       TextField.class, null);
-        table.addContainerProperty("Details",        Button.class,    null);
-        
+
+        /*
+         * Define the names and data types of columns. The "default value"
+         * parameter is meaningless here.
+         */
+        table.addContainerProperty("Sum", Label.class, null);
+        table.addContainerProperty("Is Transferred", CheckBox.class, null);
+        table.addContainerProperty("Comments", TextField.class, null);
+        table.addContainerProperty("Details", Button.class, null);
+
         /* Add a few items in the table. */
-        for (int i=0; i<100; i++) {
+        for (int i = 0; i < 100; i++) {
             // Create the fields for the current table row
-            Label sumField = new Label(String.format("Sum is <b>$%04.2f</b><br/><i>(VAT incl.)</i>",
-                                  new Object[] {new Double(Math.random()*1000)}),
-                                  Label.CONTENT_XHTML);
+            Label sumField = new Label(String.format(
+                    "Sum is <b>$%04.2f</b><br/><i>(VAT incl.)</i>",
+                    new Object[] { new Double(Math.random() * 1000) }),
+                    Label.CONTENT_XHTML);
             CheckBox transferredField = new CheckBox("is transferred");
-            
+
             // Multiline text field. This required modifying the height of the
             // table row.
             TextField commentsField = new TextField();
             commentsField.setRows(3);
-            
+
             // The Table item identifier for the row.
             Integer itemId = new Integer(i);
-            
+
             // Create a button and handle its click. A Button does not know
             // the item it is contained in, so we have to store the item
             // ID as user-defined data.
@@ -58,16 +59,16 @@ public class TableExample3 extends CustomComponent {
             detailsField.addListener(new Button.ClickListener() {
                 public void buttonClick(ClickEvent event) {
                     // Get the item identifier from the user-defined data.
-                    Integer itemId = (Integer)event.getButton().getData();
-                    getWindow().showNotification("Link "+itemId.intValue()+" clicked.");
-                } 
+                    Integer itemId = (Integer) event.getButton().getData();
+                    getWindow().showNotification(
+                            "Link " + itemId.intValue() + " clicked.");
+                }
             });
             detailsField.addStyleName("link");
-            
+
             // Create the table row.
-            table.addItem(new Object[] {sumField, transferredField,
-                                        commentsField, detailsField},
-                          itemId);
+            table.addItem(new Object[] { sumField, transferredField,
+                    commentsField, detailsField }, itemId);
         }
 
         // Show just three rows because they are so high.
@@ -75,8 +76,8 @@ public class TableExample3 extends CustomComponent {
 
         // Initially show the 50th item in the top of the table.
         table.setCurrentPageFirstItemIndex(50);
-        //table.setCurrentPageFirstItemId(initial);
-        
+        // table.setCurrentPageFirstItemId(initial);
+
         layout.addComponent(table);
     }
 }
index 411153dc18132fcce732062466a879f107758341..9553e7cb9ec4a493584ab968daae6626544a8618 100644 (file)
@@ -23,9 +23,9 @@ public class TableHuge extends CustomComponent {
      * This is a virtual container that generates the items on the fly when
      * requested.
      */
-    public class HugeContainer implements Container,Indexed {
+    public class HugeContainer implements Container, Indexed {
         int numberofitems;
-        
+
         public HugeContainer(int numberofitems) {
             this.numberofitems = numberofitems;
         }
@@ -53,8 +53,9 @@ public class TableHuge extends CustomComponent {
         public boolean containsId(Object itemId) {
             if (itemId instanceof Integer) {
                 int pos = ((Integer) itemId).intValue();
-                if (pos >= 0 && pos < numberofitems)
+                if (pos >= 0 && pos < numberofitems) {
                     return true;
+                }
             }
             return false;
         }
@@ -68,7 +69,8 @@ public class TableHuge extends CustomComponent {
             if (itemId instanceof Integer) {
                 int pos = ((Integer) itemId).intValue();
                 if (pos >= 0 && pos < numberofitems) {
-                    return new ObjectProperty("This is the item "+pos+" in the huge table");
+                    return new ObjectProperty("This is the item " + pos
+                            + " in the huge table");
                 }
             }
             return null;
@@ -83,10 +85,11 @@ public class TableHuge extends CustomComponent {
 
         public Item getItem(Object itemId) {
             if (itemId instanceof Integer) {
-                int pos = ((Integer)itemId).intValue();
+                int pos = ((Integer) itemId).intValue();
                 if (pos >= 0 && pos < numberofitems) {
                     Item item = new PropertysetItem();
-                    item.addItemProperty("id", new ObjectProperty("This is the item "+pos+" in the huge table"));
+                    item.addItemProperty("id", new ObjectProperty(
+                            "This is the item " + pos + " in the huge table"));
                     return item;
                 }
             }
@@ -160,25 +163,27 @@ public class TableHuge extends CustomComponent {
         }
 
         public boolean isLastId(Object itemId) {
-            return ((Integer) itemId).intValue() == (numberofitems-1);
+            return ((Integer) itemId).intValue() == (numberofitems - 1);
         }
 
         public Object lastItemId() {
-            return new Integer(numberofitems-1);
+            return new Integer(numberofitems - 1);
         }
 
         public Object nextItemId(Object itemId) {
             int pos = indexOfId(itemId);
-            if (pos >= numberofitems-1)
+            if (pos >= numberofitems - 1) {
                 return null;
-            return getIdByIndex(pos+1);
+            }
+            return getIdByIndex(pos + 1);
         }
 
         public Object prevItemId(Object itemId) {
             int pos = indexOfId(itemId);
-            if (pos <= 0)
+            if (pos <= 0) {
                 return null;
-            return getIdByIndex(pos-1);
+            }
+            return getIdByIndex(pos - 1);
         }
     }
 
@@ -186,7 +191,7 @@ public class TableHuge extends CustomComponent {
         Table table = new Table("HUGE table, REALLY HUGE");
         table.setContainerDataSource(new HugeContainer(500000));
         table.setPageLength(20);
-        
+
         setCompositionRoot(table);
     }
 }
index 331da8f9533fe6280813e1fbc2cc616d3855bdb7..e33a53cfbfbb1937cf494f744181806db0bd6441 100644 (file)
@@ -12,25 +12,25 @@ import com.itmill.toolkit.ui.Window;
 import com.itmill.toolkit.ui.Window.CloseEvent;
 
 /** Component contains a button that allows opening a window. */
-public class WindowOpener extends CustomComponent
-                          implements Window.CloseListener {
-    Window mainwindow;  // Reference to main window
-    Window mywindow;    // The window to be opened
-    Button openbutton;  // Button for opening the window
+public class WindowOpener extends CustomComponent implements
+        Window.CloseListener {
+    Window mainwindow; // Reference to main window
+    Window mywindow; // The window to be opened
+    Button openbutton; // Button for opening the window
     Button closebutton; // A button in the window
-    Label  explanation; // A descriptive text
+    Label explanation; // A descriptive text
 
     public WindowOpener(String label, Window main) {
         mainwindow = main;
 
         /* The component consists of a button that opens the window. */
         final VerticalLayout layout = new VerticalLayout();
-        
+
         openbutton = new Button("Open Window", this, "openButtonClick");
         explanation = new Label("Explanation");
         layout.addComponent(openbutton);
         layout.addComponent(explanation);
-        
+
         setCompositionRoot(layout);
     }
 
index 0affc7a4f66b12766a445073c822fa723091384d..49bceb89fce9397614404a591d17d36b1527bd71 100644 (file)
@@ -11,9 +11,10 @@ import com.itmill.toolkit.ui.Window;
 import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class WindowTestApplication extends Application {
-    Window  anotherpage = null;
-    HashMap windows     = new HashMap();
+    Window anotherpage = null;
+    HashMap windows = new HashMap();
 
+    @Override
     public void init() {
         final Window main = new Window("Window Test Application");
         setMainWindow(main);
@@ -36,48 +37,53 @@ public class WindowTestApplication extends Application {
                 new Button.ClickListener() {
                     public void buttonClick(ClickEvent event) {
                         // Open the window.
-                        main.open(new ExternalResource(mywindow.getURL()), "_new");
+                        main.open(new ExternalResource(mywindow.getURL()),
+                                "_new");
                     }
                 }));
 
         /* Add a link to the second window. */
         Link link = new Link("Click to open second window",
-                             new ExternalResource(mywindow.getURL()));
+                new ExternalResource(mywindow.getURL()));
         link.setTargetName("_new");
         main.addComponent(link);
 
         // Add the link manually inside a Label.
-        main.addComponent(new Label("Second window: <a href='" + mywindow.getURL()
-                                    + "' target='_new'>click to open</a>",
-                                    Label.CONTENT_XHTML));
-        main.addComponent(new Label("The second window can be accessed through URL: "
-                                    + mywindow.getURL()));
+        main.addComponent(new Label("Second window: <a href='"
+                + mywindow.getURL() + "' target='_new'>click to open</a>",
+                Label.CONTENT_XHTML));
+        main.addComponent(new Label(
+                "The second window can be accessed through URL: "
+                        + mywindow.getURL()));
 
         // Add links to windows that do not yet exist, but are created
         // dynamically when the URL is called.
         main.addComponent(new Label("URLs to open item windows:"));
         final String[] items = new String[] { "mercury", "venus", "earth",
                 "mars", "jupiter", "saturn", "uranus", "neptune" };
-        
+
         for (int inx = 0; inx < items.length; inx++) {
             String item = items[inx];
 
-            // We do not create window objects here, but just links to the windows
+            // We do not create window objects here, but just links to the
+            // windows
             String windowUrl = getURL() + "planet-" + item;
-            main.addComponent(new Label("A window about '" + item + "': <a href='" + 
-                                        windowUrl + "' target='_new'>" + windowUrl + 
-                                        "</a>", Label.CONTENT_XHTML));
+            main.addComponent(new Label("A window about '" + item
+                    + "': <a href='" + windowUrl + "' target='_new'>"
+                    + windowUrl + "</a>", Label.CONTENT_XHTML));
         }
     }
 
+    @Override
     public Window getWindow(String name) {
         if (name.startsWith("planet-")) {
             String planetName = name.substring("planet-".length());
             if (!windows.containsKey(planetName)) {
                 // Create the window object on the fly.
                 Window newWindow = new Window("Yet Another Page");
-                newWindow.addComponent(new Label("This window contains details about " +
-                                                 planetName + "."));
+                newWindow.addComponent(new Label(
+                        "This window contains details about " + planetName
+                                + "."));
                 windows.put(planetName, newWindow);
 
                 // We must add the window to the application, it is not done
index 2f16f3fe025805fa64d4b4006f393eee311aed9f..a2aa848fb0e82fcdc79627d8f56b6b1a7e6d0c56 100644 (file)
@@ -57,6 +57,7 @@ public abstract class Feature extends CustomComponent {
      * Feature component initialization is lazily done when the feature is
      * attached to application
      */
+    @Override
     public void attach() {
         super.attach();
 
@@ -186,6 +187,7 @@ public abstract class Feature extends CustomComponent {
     }
 
     // Fix for #512
+    @Override
     public String getDescription() {
         if (description != null && description.getValue() != null) {
             return description.getValue().toString();
index 6121b3f98bc1bb022416e1e2ee1b373a9010dc09..2481336b8f51d50c2a2e899f263b7e0287fcc760 100644 (file)
@@ -35,6 +35,7 @@ public class FeatureBrowser extends CustomComponent implements
 
     private final Select themeSelector = new Select();
 
+    @Override
     public void attach() {
 
         if (initialized) {
@@ -219,51 +220,61 @@ public class FeatureBrowser extends CustomComponent implements
 
     }
 
+    @Override
     public void addComponent(Component c) {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void addListener(ComponentAttachListener listener) {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void addListener(ComponentDetachListener listener) {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public Iterator getComponentIterator() {
         // TODO Auto-generated method stub
         return null;
     }
 
+    @Override
     public void moveComponentsFrom(ComponentContainer source) {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void removeAllComponents() {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void removeComponent(Component c) {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void removeListener(ComponentAttachListener listener) {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void removeListener(ComponentDetachListener listener) {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void replaceComponent(Component oldComponent, Component newComponent) {
         // TODO Auto-generated method stub
 
@@ -280,51 +291,61 @@ public class FeatureBrowser extends CustomComponent implements
 
     }
 
+    @Override
     public float getHeight() {
         // TODO Auto-generated method stub
         return 0;
     }
 
+    @Override
     public int getHeightUnits() {
         // TODO Auto-generated method stub
         return 0;
     }
 
+    @Override
     public float getWidth() {
         // TODO Auto-generated method stub
         return 0;
     }
 
+    @Override
     public int getWidthUnits() {
         // TODO Auto-generated method stub
         return 0;
     }
 
+    @Override
     public void setHeight(float height) {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void setHeightUnits(int units) {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void setSizeFull() {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void setSizeUndefined() {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void setWidth(float width) {
         // TODO Auto-generated method stub
 
     }
 
+    @Override
     public void setWidthUnits(int units) {
         // TODO Auto-generated method stub
 
index be2aac0d30dd86f8206d94e3f8e45f60c93984e8..5c20b9122cf945af6b367be0bd0ee08d18d8b3e2 100644 (file)
@@ -35,6 +35,7 @@ public class FeatureBuffering extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -64,6 +65,7 @@ public class FeatureBuffering extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
@@ -71,14 +73,17 @@ public class FeatureBuffering extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return null;
     }
index 05f35cd7d59e21785710efdf04bd5d42974ff2ca..0f9624737e485e1c31fb8c0d84fefa1c27936fbe 100644 (file)
@@ -16,6 +16,7 @@ public class FeatureButton extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -37,6 +38,7 @@ public class FeatureButton extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "Button b = new Button(\"Caption\");\n";
 
@@ -45,6 +47,7 @@ public class FeatureButton extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return "In IT Mill Toolkit, boolean input values are represented by buttons. "
                 + "Buttons may function either as a push buttons or switches. (checkboxes)<br/><br/>"
@@ -56,10 +59,12 @@ public class FeatureButton extends Feature {
                 + "the presentation of the component.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Button";
     }
index 37c94d7a4c2ed818aaf2a244e762d226182de11d..8fae3b40dbb50237d298e49705f20ecd770c3e7e 100644 (file)
@@ -40,6 +40,7 @@ public class FeatureContainers extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -70,18 +71,22 @@ public class FeatureContainers extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return null;
     }
index 395328dbb1238facedf905381494fed0e23925eb..158a58d1670f2ec48f6e660b9be0d0895ae3f95b 100644 (file)
@@ -27,6 +27,7 @@ public class FeatureCustomLayout extends Feature {
             + "<br /><br />The default theme handles the styles that are not defined by just drawing "
             + "the subcomponents with flowlayout.";
 
+    @Override
     protected Component getDemoComponent() {
         final OrderedLayout l = new OrderedLayout();
 
@@ -56,20 +57,24 @@ public class FeatureCustomLayout extends Feature {
         return l;
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "CustomLayout c = new CustomLayout(\"mystyle\");\n"
                 + "c.addComponent(new Label(\"Example description\"),\"label1-location\");\n"
                 + "c.addComponent(new Button(\"Example action\"),\"example-action-location\");\n";
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return "Custom Layout";
     }
index 562d47d40324d86c341ea40c932719315c27c269..efd324e95bb56d086d09c9a3a1f081f1b16d9386 100644 (file)
@@ -28,6 +28,7 @@ public class FeatureDateField extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -70,11 +71,13 @@ public class FeatureDateField extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "DateField df = new DateField(\"Caption\");\n"
                 + "df.setValue(new java.util.Date());\n";
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return "Representing Dates and times and providing a way to select "
                 + "or enter some specific date and/or time is an typical need in "
@@ -89,10 +92,12 @@ public class FeatureDateField extends Feature {
                 + "presentation of the component.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "DateField";
     }
index 380131a653900c6c319fff49343895ac41eb1ca8..da2c13c060b454d98931440ed5690435684b9df1 100644 (file)
@@ -16,6 +16,7 @@ public class FeatureEmbedded extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -66,12 +67,14 @@ public class FeatureEmbedded extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "// Load image from jpg-file, that is in the same package with the application\n"
                 + "Embedded e = new Embedded(\"Image title\",\n"
                 + "   new ClassResource(\"image.jpg\", getApplication()));";
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return "The embedding feature allows for adding images, multimedia and other non-specified "
                 + "content to your application. "
@@ -79,10 +82,12 @@ public class FeatureEmbedded extends Feature {
                 + "Actual support for embedded media types is left to the terminal.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Embedded";
     }
index 94da491433f67d5f609145069f438e1ce6282a1e..72fd2d81e1ee9a859c599351c3d08d475f27af44 100644 (file)
@@ -29,6 +29,7 @@ public class FeatureForm extends Feature implements
 
     Select resetLayout = new Select("Restart");
 
+    @Override
     protected Component getDemoComponent() {
 
         if (demo == null) {
@@ -146,6 +147,7 @@ public class FeatureForm extends Feature implements
         }
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return "Form is a flexible, yet simple container for fields. "
                 + " It provides support for any layouts and provides buffering interface for"
@@ -167,10 +169,12 @@ public class FeatureForm extends Feature implements
                 + " all the Property-panels in demos are composed of Form-components.";
     }
 
+    @Override
     protected String getTitle() {
         return "Form";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
index d0cd83001fd68ab64c9f199c22ca4bdf93b8a3ca..5856395fa253849a0ef1b55d99a2cdd504d9f614 100644 (file)
@@ -20,6 +20,7 @@ public class FeatureGridLayout extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -46,6 +47,7 @@ public class FeatureGridLayout extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "GridLayout gl = new GridLayout(2,2);\n"
                 + "gl.addComponent(new Label(\"Label 1 in GridLayout\"));\n"
@@ -57,6 +59,7 @@ public class FeatureGridLayout extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return "This feature provides a container that lays out components "
                 + "into a grid of given width and height."
@@ -64,10 +67,12 @@ public class FeatureGridLayout extends Feature {
                 + "properties affect the presentation of the component.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "GridLayout";
     }
index bd880969d97c06b70d5b7ee2820448ca355fcc3f..b6ac096614372cfeab6ba0b9de4d9e88fdbbf029 100644 (file)
@@ -30,6 +30,7 @@ public class FeatureItems extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -60,6 +61,7 @@ public class FeatureItems extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
@@ -67,14 +69,17 @@ public class FeatureItems extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Introduction of Data Model Item";
     }
index fc059452ed5b8d2b34626bef4dcb0514897bf5ab..5e759fc67b8e9732c734f97bb9e11b886c6259a1 100644 (file)
@@ -15,6 +15,7 @@ public class FeatureLabel extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -42,6 +43,7 @@ public class FeatureLabel extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "Label l = new Label(\"Caption\");\n";
     }
@@ -49,6 +51,7 @@ public class FeatureLabel extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return "Labels components are for captions and plain text. "
                 + "By default, it is a light-weight component for presenting "
@@ -63,10 +66,12 @@ public class FeatureLabel extends Feature {
                 + "the presentation of the component.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Label";
     }
index 2b91a4262b6328f633d5c82e730baaf75f009246..5a135e03d32b5fa34e6549c0726f9c3c3e34055e 100644 (file)
@@ -16,6 +16,7 @@ public class FeatureLink extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -40,10 +41,12 @@ public class FeatureLink extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "Link link = new Link(\"Link caption\",new ExternalResource(\"http://www.itmill.com\"));\n";
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return "The link feature allows for making refences to both internal and external resources. "
                 + "The link can open the new resource in a new window, allowing for control of the newly "
@@ -53,10 +56,12 @@ public class FeatureLink extends Feature {
 
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Link";
     }
index 295eedc21b653d5c7dc7f1feb1b19498c39eae03..cc0ca982d7e3387ffb36c34994fa94f7d5f85403 100644 (file)
@@ -16,6 +16,7 @@ public class FeatureOrderedLayout extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -44,6 +45,7 @@ public class FeatureOrderedLayout extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "OrderedLayout ol = new OrderedLayout(OrderedLayout.ORIENTATION_FLOW);\n"
                 + "ol.addComponent(new TextField(\"Textfield caption\"));\n"
@@ -54,6 +56,7 @@ public class FeatureOrderedLayout extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return "This feature provides a container for laying out components either "
                 + "vertically, horizontally or flowingly. The orientation may be changed "
@@ -65,10 +68,12 @@ public class FeatureOrderedLayout extends Feature {
                 + "affect the presentation of the component.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "OrderedLayout";
     }
index 1aa4510d875a42a0193b718df6f0ce76af3570a5..21006c7ecfc909db211b8f599a80161e0efcffb8 100644 (file)
@@ -17,6 +17,7 @@ public class FeaturePanel extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -44,12 +45,14 @@ public class FeaturePanel extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "Panel show = new Panel(\"Panel caption\");\n"
                 + "show.addComponent(new Label(\"This is an example Label component that is added into Panel.\"));";
 
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return "Panel is a container for other components, by default it draws a frame around it's "
                 + "extremities and may have a caption to clarify the nature of the contained components' purpose."
@@ -57,10 +60,12 @@ public class FeaturePanel extends Feature {
                 + "this layout may be switched on the fly.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Panel";
     }
index 1107bb5148d409655be63f4db28b502a0dd1c71e..2727a1dee76c214d6b0b7bd08283ce377d883ff8 100644 (file)
@@ -35,6 +35,7 @@ public class FeatureParameters extends Feature implements URIHandler,
         params.addContainerProperty("Values", String.class, "");
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -91,16 +92,19 @@ public class FeatureParameters extends Feature implements URIHandler,
         return l;
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return "This is a demonstration of how URL parameters can be recieved and handled."
                 + "Parameters and URL:s can be received trough the windows by registering "
                 + "URIHandler and ParameterHandler classes window.";
     }
 
+    @Override
     protected String getImage() {
         return "parameters.jpg";
     }
 
+    @Override
     protected String getTitle() {
         return "Parameters";
     }
@@ -110,6 +114,7 @@ public class FeatureParameters extends Feature implements URIHandler,
      * 
      * @see com.itmill.toolkit.ui.Component#attach()
      */
+    @Override
     public void attach() {
         super.attach();
         getWindow().addURIHandler(this);
@@ -121,6 +126,7 @@ public class FeatureParameters extends Feature implements URIHandler,
      * 
      * @see com.itmill.toolkit.ui.Component#detach()
      */
+    @Override
     public void detach() {
         super.detach();
         getWindow().removeURIHandler(this);
index 34d8c3efa8633a6c96d25b8a2fc3a2c248be7852..f6e64e4feeba82a6983e847603708ae5050e17ed 100644 (file)
@@ -38,6 +38,7 @@ public class FeatureProperties extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -68,18 +69,22 @@ public class FeatureProperties extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return null;
     }
index 80f6d9cc9d7ad327d31972aa60eae497df53a6aa..9b118c3fd7f106cca7b88f6d81fa1399d1974617 100644 (file)
@@ -24,6 +24,7 @@ public class FeatureSelect extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -50,6 +51,7 @@ public class FeatureSelect extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "Select s = new Select(\"Select Car\");\n"
                 + "s.addItem(\"Audi\");\n" + "s.addItem(\"BMW\");\n"
@@ -60,6 +62,7 @@ public class FeatureSelect extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return "The select component combines two different modes of item selection.  "
                 + "Firstly it presents the single selection mode, which is usually represented as "
@@ -74,10 +77,12 @@ public class FeatureSelect extends Feature {
                 + " presentation of the component.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Select";
     }
index 056d5d5d5e477573308dc6745b0425702aadf4c4..ad9d6a9e5964cb0a7cfacd77a25e83b284bdefef 100644 (file)
@@ -15,6 +15,7 @@ public class FeatureTabSheet extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -45,6 +46,7 @@ public class FeatureTabSheet extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "TabSheet ts = new TabSheet();\n"
                 + "ts.addTab(new Label(\"This is an example Label component that is added into Tab 1.\"),\"Tab 1 caption\",null);\n"
@@ -52,6 +54,7 @@ public class FeatureTabSheet extends Feature {
                 + "ts.addTab(new Label(\"This is an example Label component that is added into Tab 3.\"),\"Tab 3 caption\",null);";
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return "A multicomponent container with tabs for switching between them.<br/>"
                 + "In the normal case, one would place a layout component on each tab.<br/><br />"
@@ -59,10 +62,12 @@ public class FeatureTabSheet extends Feature {
                 + "the presentation of the component.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "TabSheet";
     }
index e937a12577093950f43194cb3c33844b4cbd904f..c3d2c75a8755ec25a7765f64f53e719bfa14a11a 100644 (file)
@@ -15,6 +15,7 @@ public class FeatureTextField extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout(
@@ -36,6 +37,7 @@ public class FeatureTextField extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "TextField tf = new TextField(\"Caption\");\n"
                 + "tf.setValue(\"Contents\");";
@@ -44,6 +46,7 @@ public class FeatureTextField extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return "TextField combines the logic of both the single line text-entry field and the multi-line "
                 + "text-area into one component. "
@@ -57,10 +60,12 @@ public class FeatureTextField extends Feature {
                 + "presentation of the component.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "TextField";
     }
index a403b680040fe4844a379feef350ff123b3a8f7d..51c58e49a9dcbfc1d33d01a2ccda01b37b6b94be 100644 (file)
@@ -58,6 +58,7 @@ public class FeatureTree extends Feature implements Action.Handler {
         }
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -109,6 +110,7 @@ public class FeatureTree extends Feature implements Action.Handler {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "// Create tree\n"
                 + "t = new Tree(\"Organization Structure\");\n"
@@ -124,6 +126,7 @@ public class FeatureTree extends Feature implements Action.Handler {
                 + "            t.setChildrenAllowed(names[i], false);\n";
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return "A tree is a natural way to represent datasets that have"
                 + " hierarchical relationships, such as filesystems, message "
@@ -142,10 +145,12 @@ public class FeatureTree extends Feature implements Action.Handler {
                 + "affect the presentation of the tree component.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Tree";
     }
index 2b400f138e255bf896762ac58f1eb51b99033c97..e08a810056e1d69a8255517d126cdc002c88a968 100644 (file)
@@ -27,6 +27,7 @@ public class FeatureUpload extends Feature implements Upload.FinishedListener {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -48,6 +49,7 @@ public class FeatureUpload extends Feature implements Upload.FinishedListener {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "Upload u = new Upload(\"Upload a file:\", uploadReceiver);\n\n"
                 + "public class uploadReceiver \n"
@@ -58,16 +60,19 @@ public class FeatureUpload extends Feature implements Upload.FinishedListener {
 
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return "This demonstrates the use of the Upload component together with the Link component. "
                 + "This implementation does not actually store the file to disk, it only keeps it in a buffer. "
                 + "The example given on the <em>Code Sample</em>-tab on the other hand stores the file to disk and binds the link to that file.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Upload";
     }
index 0f33ec5ad91f854ce179a08ef66aebdd7abfff43..6ade71272bb6e6f6e685d617a2cf8ec22051be6e 100644 (file)
@@ -30,6 +30,7 @@ public class FeatureValidators extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -60,6 +61,7 @@ public class FeatureValidators extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
@@ -67,14 +69,17 @@ public class FeatureValidators extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return null;
     }
index 867ba8162a0222601383b899b30f1f6346455c70..ea22642705c09f5043df1c71517f4c9c16e68caf 100644 (file)
@@ -27,6 +27,7 @@ public class FeatureWindow extends Feature implements Window.CloseListener {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout layoutRoot = new OrderedLayout();
@@ -70,12 +71,14 @@ public class FeatureWindow extends Feature implements Window.CloseListener {
         return layoutRoot;
     }
 
+    @Override
     protected String getExampleSrc() {
         return "Window win = new Window();\n"
                 + "getApplication().addWindow(win);\n";
 
     }
 
+    @Override
     protected String getDescriptionXHTML() {
         return "The window support in IT Mill Toolkit allows for opening and closing windows, "
                 + "refreshing one window from another (for asynchronous terminals), "
@@ -84,10 +87,12 @@ public class FeatureWindow extends Feature implements Window.CloseListener {
                 + "this feature.";
     }
 
+    @Override
     protected String getImage() {
         return "icon_demo.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Window";
     }
index 912cd2b92ed17ec66c4bdb6c30e95387fa5a2bac..2f76a00f9f2d7aded5daab097d9f429d59712dbd 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class FeaturesApplication extends com.itmill.toolkit.Application {
 
+    @Override
     public void init() {
         if (getProperty("statistics") != null) {
             FeatureUtil.setStatistics(true);
@@ -22,6 +23,7 @@ public class FeaturesApplication extends com.itmill.toolkit.Application {
     /**
      * ErrorEvents are printed to default error stream and not in GUI.
      */
+    @Override
     public void terminalError(
             com.itmill.toolkit.terminal.Terminal.ErrorEvent event) {
         final Throwable e = event.getThrowable();
index f2a42f63e3f5624b895bf01dacdab6b998f91329..a1073840f02e8d5f9c359ec37d0a9106eabafa88 100644 (file)
@@ -22,6 +22,7 @@ public class IntroBasic extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -52,6 +53,7 @@ public class IntroBasic extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
@@ -59,14 +61,17 @@ public class IntroBasic extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return "Introduction of basic UI components";
     }
index 6a316cabc725809fa1f249db845de02c8f3645b0..04869e4d5e90b0233ec677994bb41c557d1bdc6e 100644 (file)
@@ -23,6 +23,7 @@ public class IntroComponents extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -56,6 +57,7 @@ public class IntroComponents extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
@@ -63,14 +65,17 @@ public class IntroComponents extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return null;
     }
index 18b7d90731c1491d6b880d1ec8958a212fa171ad..be1a730de1b0ca83869288613a6e008fc37a9df6 100644 (file)
@@ -22,6 +22,7 @@ public class IntroDataHandling extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -50,6 +51,7 @@ public class IntroDataHandling extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
@@ -57,15 +59,18 @@ public class IntroDataHandling extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return "Please select <em>Embedded Objects</em> or <em>Upload</em>"
                 + " from the menu for more information.";
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return null;
     }
index 346e23dab2afae84a78614298a8f7f2532e0a03c..d245a7e888603e613fe3be0b7cc70022a1541ca8 100644 (file)
@@ -23,6 +23,7 @@ public class IntroDataModel extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -53,6 +54,7 @@ public class IntroDataModel extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
@@ -60,14 +62,17 @@ public class IntroDataModel extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return null;
     }
index 368d743d9baafda062dcdc8c5e726a3d3eface6b..8eac95c2691c8d0dccbe62acbb0d1876b6a0aeb4 100644 (file)
@@ -22,6 +22,7 @@ public class IntroItemContainers extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -52,6 +53,7 @@ public class IntroItemContainers extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
@@ -59,14 +61,17 @@ public class IntroItemContainers extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return null;
     }
index 2921a3c75a4e6727772e795ee667aa6ff1b4e6f7..4b1990961a74b240f67905950e4004af68331846 100644 (file)
@@ -24,6 +24,7 @@ public class IntroLayouts extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -54,6 +55,7 @@ public class IntroLayouts extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
@@ -61,14 +63,17 @@ public class IntroLayouts extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return null;
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return null;
     }
index 9e3a256c14ece17ce7803cbc1005fad8b90815eb..8a197af19709d51902a180743369b0eb996a3877 100644 (file)
@@ -14,6 +14,7 @@ public class IntroTerminal extends Feature {
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -28,6 +29,7 @@ public class IntroTerminal extends Feature {
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return null;
     }
@@ -35,14 +37,17 @@ public class IntroTerminal extends Feature {
     /**
      * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
      */
+    @Override
     protected String getDescriptionXHTML() {
         return "";
     }
 
+    @Override
     protected String getImage() {
         return null;
     }
 
+    @Override
     protected String getTitle() {
         return "Introduction for terminals (TODO)";
     }
index 81b9289c7de4ae984e97f7c083c34d5e958815ca..1670ed0dd85f2ef7f04788560da1b816b53bd126 100644 (file)
@@ -60,6 +60,7 @@ public class IntroWelcome extends Feature implements URIHandler,
         super();
     }
 
+    @Override
     protected Component getDemoComponent() {
 
         final OrderedLayout l = new OrderedLayout();
@@ -90,6 +91,7 @@ public class IntroWelcome extends Feature implements URIHandler,
         return l;
     }
 
+    @Override
     protected String getExampleSrc() {
         return ""
                 + "package com.itmill.toolkit.demo;\n"
@@ -103,14 +105,17 @@ public class IntroWelcome extends Feature implements URIHandler,
     }
 
     // not ready yet to give description, see paint instead
+    @Override
     protected String getDescriptionXHTML() {
         return description;
     }
 
+    @Override
     protected String getImage() {
         return "icon_intro.png";
     }
 
+    @Override
     protected String getTitle() {
         return "Welcome";
     }
@@ -120,6 +125,7 @@ public class IntroWelcome extends Feature implements URIHandler,
      * 
      * @see com.itmill.toolkit.ui.Component#attach()
      */
+    @Override
     public void attach() {
         super.attach();
         getWindow().addURIHandler(this);
@@ -131,6 +137,7 @@ public class IntroWelcome extends Feature implements URIHandler,
      * 
      * @see com.itmill.toolkit.ui.Component#detach()
      */
+    @Override
     public void detach() {
         super.detach();
         getWindow().removeURIHandler(this);
index 03c1b57aeb8f212e1a3c2356b7b959b1b29b1561..76a45a363915838ddacb8ab3703f53b0b083b4a2 100644 (file)
@@ -29,6 +29,7 @@ public abstract class Robustness extends com.itmill.toolkit.Application
 
     RandomComponents randomComponents = new RandomComponents();
 
+    @Override
     public void init() {
         createNewView();
     }
@@ -56,9 +57,9 @@ public abstract class Robustness extends com.itmill.toolkit.Application
     }
 
     public void buttonClick(ClickEvent event) {
-        if (event.getButton() == create)
+        if (event.getButton() == create) {
             create();
-        else if (event.getButton() == remove) {
+        else if (event.getButton() == remove) {
             main.removeAllComponents();
             close.removeListener(this);
             remove.removeListener(this);
index 04d64bb972c7549ab35a0a988d2e83932d2bff4e..dc4626aad7deaaca5e4f4b6907c997f79eb59b37 100644 (file)
@@ -8,13 +8,15 @@ import com.itmill.toolkit.ui.OrderedLayout;
 public class RobustnessSimple extends Robustness implements
         Button.ClickListener {
 
+    @Override
     public void create() {
         count++;
 
         // remove old stressLayout, all dependant components should be now
         // allowed for garbage collection.
-        if (stressLayout != null)
+        if (stressLayout != null) {
             main.removeComponent(stressLayout);
+        }
 
         // create new stress layout
         stressLayout = new OrderedLayout();
index 4cbf1267f0235c0e9f6f550cc4b37a4b3d797308..c119478c4369bab7323d454ad8c043da2f6f69c6 100644 (file)
@@ -16,6 +16,7 @@ import com.itmill.toolkit.ui.Window;
  */
 public class Ticket1225 extends Application {
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window(
index 1e51951c6284e2855026a3cea80538568f03f884..76102bb2ba9b33a44e687fbeba5c543d64b002a3 100644 (file)
@@ -16,6 +16,7 @@ public class Ticket1230 extends Application {
     private Select selectWithoutNullItem;\r
     private Select selectWithNullItem;\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getName());\r
         setMainWindow(w);\r
index 1c839e2029978e740f7b661a3124baac1d80e7e9..4d3293769b31f38c0be97170db71c6d85de2aeb4 100644 (file)
@@ -14,6 +14,7 @@ public class Ticket124 extends Application {
     private TextField tf;\r
     private GridLayout gl;\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window("#124: Insert & remove row for GridLayout");\r
         setMainWindow(w);\r
index b7c0e07179132bf7f9e2a7b7140c5ba0b02243bc..61800af0a1c06175cf210978cf00b12e57eb3963 100644 (file)
@@ -15,6 +15,7 @@ public class Ticket1245 extends com.itmill.toolkit.Application {
 \r
     TextField f = new TextField();\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index 9b99019773154a9276b94548efc91401d556ac0b..3ced64947b1c3d6c485fd7e1277ec25e5f222909 100644 (file)
@@ -134,6 +134,7 @@ public class Ticket1362Login extends Application {
             setCompositionRoot(iframe);
         }
 
+        @Override
         public void attach() {
             super.attach();
             getApplication().addResource(loginPage);
@@ -141,6 +142,7 @@ public class Ticket1362Login extends Application {
             iframe.setSource(loginPage);
         }
 
+        @Override
         public void detach() {
             getApplication().removeResource(loginPage);
             getWindow().removeParameterHandler(paramHandler);
@@ -220,6 +222,7 @@ public class Ticket1362Login extends Application {
 
     private ExpandLayout el;
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window(
index eb3504dc56b3643ccfaa3d19751668854c42c105..becd0781b01a8685dbee1ec8407da04fe2a0f08b 100644 (file)
@@ -14,6 +14,7 @@ public class Ticket1365 extends com.itmill.toolkit.Application implements
 \r
     Label status = new Label("ENTER and CTRL-S fires shortcut action.");\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index 70b5f383bae4a348c70582bc6ba31597678f5a3d..b2f137ec8c11c61ad7f5e179d945875da0644198 100644 (file)
@@ -12,6 +12,7 @@ public class Ticket1368 extends Application {
 
     private Table t;
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window("Test app to #1368");
index 9f34d93d2e6f693be8bc15bedf935851b9f90c31..08305830eb9ab0a6d3f81c4e27af441337cbfb8e 100644 (file)
@@ -18,6 +18,7 @@ public class Ticket1397 extends Application {
 
     Window main;
 
+    @Override
     public void init() {
         setTheme("default");
         main = new Window("PopupView test");
@@ -101,8 +102,9 @@ public class Ticket1397 extends Application {
 
         // Fifth test component
         Table table = new Table("Table for testing purposes");
-        for (int i = 0; i < 5; i++)
+        for (int i = 0; i < 5; i++) {
             table.addContainerProperty("" + (i + 1), String.class, "");
+        }
         table.addContainerProperty("" + 6, PopupView.class, null);
         table.addContainerProperty("" + 7, PopupView.class, null);
         table.setPageLength(20);
index 65d06db678a7fe8d68674ee351cf48d5a0d1330f..d235ac9cefcc17d4be0d8a6f3fdf83047fef5850 100644 (file)
@@ -18,6 +18,7 @@ public class Ticket1435 extends Application {
 
     private static final boolean useWorkaround = true;
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window("ButtonPanel containing a table test");
@@ -169,6 +170,7 @@ public class Ticket1435 extends Application {
             container.setHeight("100%");
         }
 
+        @Override
         public void setHeight(String height) {
             root.setHeight(height);
             lastHeight = root.getHeight();
@@ -176,6 +178,7 @@ public class Ticket1435 extends Application {
             container.setHeight("100%");
         }
 
+        @Override
         public void setWidth(String width) {
             root.setWidth(width);
         }
@@ -184,6 +187,7 @@ public class Ticket1435 extends Application {
             root.setWidth(width, unit);
         }
 
+        @Override
         public void setSizeFull() {
             setWidth("100%");
             setHeight("100%");
index 8436378b30c6e7427b085f42313269e3cc5371eb..9ee7d4772ecefb68daff9a35184c7d855b3eef8c 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket1444 extends Application {
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window(
index 3e941643f3e3e1a940af7608f3dc663f5709ac6a..62bebb7319f440db1942f283c0af1419cc97d4e0 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class Ticket1465ModalNotification extends Application {
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window("ButtonPanel containing a table test");
index c45c1ceb5c773858a04fdb9e93a6d6c4b5a2c7cf..648aecf2fc36297440e05f0de164a605c9cafdcd 100644 (file)
@@ -28,14 +28,14 @@ public class Ticket1506_TestContainer implements Container {
                 String.class));\r
         item1.addItemProperty(PROPERTY_2_ID, new ObjectProperty("name 1",\r
                 String.class));\r
-        this.items.put(ITEM_1_ID, item1);\r
+        items.put(ITEM_1_ID, item1);\r
 \r
         final PropertysetItem item2 = new PropertysetItem();\r
         item2.addItemProperty(PROPERTY_1_ID, new ObjectProperty("value 2",\r
                 String.class));\r
         item2.addItemProperty(PROPERTY_2_ID, new ObjectProperty("name 2",\r
                 String.class));\r
-        this.items.put(ITEM_2_ID, item2);\r
+        items.put(ITEM_2_ID, item2);\r
     }\r
 \r
     public Item getItem(Object itemId) {\r
index 73a3f6c319690f38d9e6b0c8ff760831f2218ffb..7654eef668dd012d590103e255e02afff80332be 100644 (file)
@@ -29,7 +29,7 @@ public class Ticket1506_TestContainer2 implements Container {
                     "value " + i, String.class));\r
             item.addItemProperty(PROPERTY_2_ID, new ObjectProperty("name " + i,\r
                     String.class));\r
-            this.items.put(String.valueOf(i), item);\r
+            items.put(String.valueOf(i), item);\r
         }\r
     }\r
 \r
index 4f0decf1ef39f517d84d61e4d8989673325b238f..72ebc5e0bb6b8a005ce5287eabf2f639c1672e26 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket1519 extends Application {
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window("Test app to #1368");
index 6de0fd56d3dd3dccb4a6e02249f3b63394cce0ab..11457b02f6ad7b43d027fd5af706dc4e3b3b3acd 100644 (file)
@@ -14,6 +14,7 @@ public class Ticket1572 extends com.itmill.toolkit.Application {
     private GridLayout gl;\r
     private Label spacingstate;\r
 \r
+    @Override\r
     public void init() {\r
 \r
         final Window main = new Window(getClass().getName().substring(\r
index cd880ced9db19afd5dc5b753056a74b03caed9d0..a8f65314e57a6f770d13231a867e5871aa1cd31d 100644 (file)
@@ -15,6 +15,7 @@ public class Ticket1581 extends com.itmill.toolkit.Application {
     private ProgressIndicator poller;\r
     private Thread thread;\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
@@ -30,6 +31,7 @@ public class Ticket1581 extends com.itmill.toolkit.Application {
 \r
         thread = new Thread() {\r
 \r
+            @Override\r
             public void run() {\r
                 super.run();\r
                 while (true) {\r
index d97208fad146cbb6c2ff32685c2d886a0e9e5b49..9a4767dc2ba2e3265ff220fed1ee426c20eefea7 100644 (file)
@@ -20,6 +20,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1589 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index 3c21d25a4d44f62bb1579cb4218b31412abd76d8..8b1b819206c4f4a1179054794cd43750acc06d37 100644 (file)
@@ -16,6 +16,7 @@ public class Ticket1598 extends Application {
 
     final MenuBar menuBar = new MenuBar();
 
+    @Override
     public void init() {
         setMainWindow(main);
         setTheme("default");
@@ -66,13 +67,14 @@ public class Ticket1598 extends Application {
         MenuItem third = (MenuItem) menuBar.getItems().get(2);
         third.setIcon(new ThemeResource("icons/16/document.png"));
 
-        for (int i = 2; i <= 3; i++)
+        for (int i = 2; i <= 3; i++) {
             ((MenuItem) menuBar.getItems().get(i)).setCommand(new Command() {
 
                 public void menuSelected(MenuItem selectedItem) {
                     main.showNotification("Action " + selectedItem.getText());
                 }
             });
+        }
 
         final MenuItem fourth = (MenuItem) menuBar.getItems().get(3);
         fourth.setText("Toggle animation");
index a3a13bf93cf8e6714be653e3dbb190f72028b761..5369c2397c784243dcc815cd172610e9758bbd77 100644 (file)
@@ -14,6 +14,7 @@ public class Ticket161 extends Application {
 
     private Table t;
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window("Test app to #1368");
index 62b7d21bd2edb246c624e162a45b43d4f0d37f3b..e126c1193ece62475c0de79a2ab9a36e3577db7f 100644 (file)
@@ -13,6 +13,7 @@ public class Ticket1632 extends Application {
 
     private Table t;
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window("Test app");
index 659fbc3f4db65e0ded62da1255e20e906efa5169..94b222a2bf2745070968dc181453f6bb5f5bb3ed 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class Ticket1659 extends Application {
 
+    @Override
     public void init() {
         final Window mainWin = new Window();
         setMainWindow(mainWin);
index edbd96f69ed9aefc5fa8bb1143a0d684c943d468..a25741ee5fe175e3e57cd39bafb4236018f26bff 100644 (file)
@@ -6,6 +6,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1663 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
 \r
         Window main = new Window("#1663");\r
index 320412d69ad736469f74f8bd4c94eff39f198371..2bfd55179968cc1d3905f29e6d7301c73ba2f814 100644 (file)
@@ -6,6 +6,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1673 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
 \r
         final Window main = new Window("#1673");\r
index e36ea3f5ce2de390f6714069b124a47abd96027b..ac1ab350f17285720e54707fbdd19094e492939f 100644 (file)
@@ -14,6 +14,7 @@ import com.itmill.toolkit.ui.Window;
 public class Ticket1737 extends Application {
 
     Resource slowRes = new ClassResource(Calc.class, "m-bullet-blue.gif", this) {
+        @Override
         public DownloadStream getStream() {
             try {
                 Thread.sleep(4000);
@@ -24,6 +25,7 @@ public class Ticket1737 extends Application {
         }
     };
 
+    @Override
     public void init() {
 
         final Window main = new Window(getClass().getName().substring(
index 4b3134a64fae8d001b46e42b9b6db0de838ec32e..550d3a6d0f7d95f62bb2a752acfd07b0a0bd2aa4 100644 (file)
@@ -5,6 +5,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1767 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
 \r
         final Window main = new Window(getClass().getName().substring(\r
index e0e3f1e8cefa7639d5adea588a6f4e8f596168fb..4e9221d0c1dbca75ce5f3922d4f80543c6a9809a 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 \r
 public class Ticket1772 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
 \r
         final Window main = new Window(getClass().getName().substring(\r
index ca3093855d70892e9efe1ed0554e3040856dfdd3..403efac2e473e01a316078c5b39a16eedc46c121 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 \r
 public class Ticket1775 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
 \r
         final Window main = new Window("#1775");\r
index 38f9305d926c5be3370a9bc2f4b6873eaa03a8fe..102f9c25fae3c37c96925c3fd4b1f41b78377d5b 100644 (file)
@@ -18,6 +18,7 @@ public class Ticket1804 extends com.itmill.toolkit.Application {
 \r
     LinkedList listOfAllFields = new LinkedList();\r
 \r
+    @Override\r
     public void init() {\r
 \r
         final Window main = new Window("#1804");\r
index e9a84531d4b77dd0959037330a0c3522a48c2ba7..b72d3e7e6db34de9a162436ade8ece87d01fda65 100644 (file)
@@ -10,6 +10,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1805 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index a7694952c68b757527321077041f4b8e9444bfdf..61ef29f39632a0e8183beb2c229be73a0e86a69d 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 \r
 public class Ticket1806 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index 338b85524beb8300343e838571a32434080e5ba3..0075cac4ce57ceab86366ceb3a1aacf7b2fd5309 100644 (file)
@@ -15,6 +15,7 @@ public class Ticket1811 extends com.itmill.toolkit.Application {
 \r
     LinkedList listOfAllFields = new LinkedList();\r
 \r
+    @Override\r
     public void init() {\r
 \r
         final Window main = new Window("#1811");\r
index 03701ba698541c884cccd5a18b19d0917a029172..1f03390976dae0e7e301dd4e70e280e43c015957 100644 (file)
@@ -14,6 +14,7 @@ public class Ticket1819 extends com.itmill.toolkit.Application {
 \r
     LinkedList listOfAllFields = new LinkedList();\r
 \r
+    @Override\r
     public void init() {\r
 \r
         final Window main = new Window("#1819");\r
index 312c8ca5cbce8e018bcb22811cea66878bda1913..050f520aa5036ad3062e43790ce1418a21a73710 100644 (file)
@@ -16,6 +16,7 @@ public class Ticket1834PanelScrolling extends com.itmill.toolkit.Application {
 \r
     private Panel p;\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index 9fe891e770852da23fe8e0e1498b70945aa191fa..5a014de09b16fa4c93f2c27e53129b56758dd863 100644 (file)
@@ -13,6 +13,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket1857 extends Application implements Handler {
 
+    @Override
     public void init() {
 
         setTheme("tests-tickets");
index e0b0ae3bf0880af6715e347aabeff54ddb992401..897ac4aac3411a5a9a49235a8337c716aa84f436 100644 (file)
@@ -5,6 +5,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1868 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
 \r
         setMainWindow(new Window("#1868"));\r
index 9794015e906070c30773e9906e36bc684d982945..25f97201e6c7746af151cbe60cb207ffbc00d46a 100644 (file)
@@ -12,6 +12,7 @@ public class Ticket1869 extends com.itmill.toolkit.Application {
 \r
     LinkedList listOfAllFields = new LinkedList();\r
 \r
+    @Override\r
     public void init() {\r
 \r
         GridLayout lo = new GridLayout(2, 1);\r
index a5f394d68b1de1c8d5cb4f70b5b0b9b9c4a14c9a..e5b4578693513b82db483aec61bcf5708be9968f 100644 (file)
@@ -35,6 +35,7 @@ public class Ticket1878 extends Application {
     private Button switchToOrderedButton;\r
     private Button switchToFormsButton;\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index 9779fc9700882d3767463132520e22f6200814e3..89f3148817e9ef22163c831431126d4f7c418ee4 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class Ticket1902 extends Application {
 
+    @Override
     public void init() {
 
         // Main layout and main window
index 2c6a86677cc9d742190ba8e0d20bfa95e8ab6f2c..41d10630abbde172c74298f1cffa007811d1dec2 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket1904 extends Application {
 
+    @Override
     public void init() {
         setMainWindow(new Window("#1904"));
         setTheme("tests-tickets");
index 9cc8eaa20dc15871512a9d371b8d47b67246007a..1548949ff9a0319829a8a430bac9266910703a04 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket1916 extends Application {
 
+    @Override
     public void init() {
 
         OrderedLayout test = new OrderedLayout(
index 9662615e4b22aec7348dc22f87541be087037e9f..83581bee5ed35c73d31a369ce13a0a7184c9e17e 100644 (file)
@@ -11,6 +11,7 @@ public class Ticket1919 extends com.itmill.toolkit.Application {
     private GridLayout lo;\r
     private boolean on = true;\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index 5adde6eb2722da0a04a27ba797f18feba77658e7..2e78422277c43a63e9186e637282bc683ca105b8 100644 (file)
@@ -16,6 +16,7 @@ public class Ticket1921 extends Application implements ParameterHandler {
     Button button;
     OrderedLayout outer, inner;
 
+    @Override
     public void init() {
 
         outer = new OrderedLayout();
index 9182a795dacd1d94044f55e42298537f952ba449..b75b08dbacdaa8f372bc8d5b29a92010352950f4 100644 (file)
@@ -11,6 +11,7 @@ public class Ticket1923 extends com.itmill.toolkit.Application {
 \r
     private Panel p;\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index 9bb7b72b56df4f1b10bc5ce8bb35fda67c4071d9..ac4d9562d3af4f61dcf8c290fc1a3a0eb7dcda65 100644 (file)
@@ -14,6 +14,7 @@ public class Ticket1924ThemeChanging extends com.itmill.toolkit.Application {
     @SuppressWarnings("unused")\r
     private Panel p;\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index 0f6ee95f38d63805e140ac1c9c227efabe68c16d..92c92eeba112b5f5af2acaf4eb2ba0709fb9a47b 100644 (file)
@@ -5,6 +5,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1925 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window mainWindow = new Window("Test Ã¥Ã¤Ã¶");\r
         setMainWindow(mainWindow);\r
index 8d2b8cbd9de636799e204e38434a40b35ae5a513..c086f51867babd94f3b2756ad194bccf62862172 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket1934 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(
                 "#1934 : Horizontal ExpandLayout completely broken");
index 50aaf03c1d27d5091686f50d2ea8a1d3aa67404b..97f6437d9f447b147ea486340033bd4dcc2b233c 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class Ticket1939 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getName());
         setMainWindow(w);
index f485f3f3871152e8c6aa70b69dd71b29a3edb30d..347b17878b54e6fbff5ae8d55dc1de41bdc7c7a7 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket1940 extends Application {
 
+    @Override
     public void init() {
         final Window w = new Window(getClass().getName());
         setMainWindow(w);
index 4357a9bac340b4b7082e126a1ad66717522c9e80..e37a393a158f1817374141230f6feb3a421a6e18 100644 (file)
@@ -13,6 +13,7 @@ public class Ticket1953 extends Application {
     public static final String spacerStyle = "test-spacer";
     public static final String pageButtonStyle = "test-page-change";
 
+    @Override
     public void init() {
 
         final Window main = new Window(getClass().getName().substring(
index 496016f4ec89d7c9807d2910b6557375a23b7691..de95399bf8e6d17e4c597d54da8e6d4529e2b0bf 100644 (file)
@@ -31,6 +31,7 @@ public class Ticket1966 extends Application {
         names.put(new Integer(TOP), "Top");\r
     }\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getName());\r
         setMainWindow(w);\r
index 5e8f3b1e91a7b74f6a2c94ea1d60b14b4c8383be..a4e7e24dd145bd3c99ae859c125875babaa635b8 100644 (file)
@@ -32,6 +32,7 @@ public class Ticket1966_2 extends Application {
         names.put(new Integer(TOP), "Top");\r
     }\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getName());\r
         setMainWindow(w);\r
index d9f2df08b14d396e4acb269292b6670f4bb66f40..59fc33d3adaeef558a6cee88af8e10f53c0b98d4 100644 (file)
@@ -11,6 +11,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1966_3 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index cc11d040d5e75503ba7c048d784b2ec49bc006be..606d571d3736e9a24c8c79fbe4d6a12fa539c149 100644 (file)
@@ -12,6 +12,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 \r
 public class Ticket1969 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index ea40703ddd0cf1d07a8aa4d2af41b30e448bef9c..6550f0aa762df545e5ee8c55af20b791a42033fc 100644 (file)
@@ -11,10 +11,12 @@ import com.itmill.toolkit.ui.Window.CloseEvent;
 
 public class Ticket1970 extends Application {
 
+    @Override
     public void init() {
         setMainWindow(createWindow());
     }
 
+    @Override
     public Window getWindow(String name) {
 
         // If we already have the requested window, use it
index 6377b12e1f3b84cbc8e1e1c9e72d7f301f35c698..5b885f18cde4531b8bd1db54445f9d962d3bdd60 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1972 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getName());\r
         setMainWindow(w);\r
index 2c5b2710cd6c85bf7e085f8370ec7c8ad5adc3a7..27a42ffbf8b25f7268dca30a35d7fccedf00b063 100644 (file)
@@ -13,6 +13,7 @@ public class Ticket1973 extends com.itmill.toolkit.Application {
     Window main = new Window();\r
     Table table = new Table();\r
 \r
+    @Override\r
     public void init() {\r
         setMainWindow(main);\r
 \r
index 2769b5e70f2b1cb43654a8dccca003a6f74d3a3e..2879213a8ed2854fd647f35a530668bd6d50d2b6 100644 (file)
@@ -13,6 +13,7 @@ public class Ticket1973_2 extends Application {
     Window main = new Window();
     Table table = new Table();
 
+    @Override
     public void init() {
         setMainWindow(main);
 
index c5d0ec90f1a918a1e3831227d49833a1d0574911..faaf11d9e8599ec33cd7fd80f023dbaee336acb5 100644 (file)
@@ -18,6 +18,7 @@ public class Ticket1975 extends Application {
     private CustomLayout cl1;\r
     private CustomLayout cl2;\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getName());\r
         setMainWindow(w);\r
index 892b8ee538638cd999f582e9e85342326bcd5f43..8f1ef8188548e193789ba27c1682fe276c5f485b 100644 (file)
@@ -16,6 +16,7 @@ public class Ticket1982 extends Application {
 
     private List components = new ArrayList();
 
+    @Override
     public void init() {
         Window main = new Window();
         setMainWindow(main);
index f8fafedbfdebac8d24ed06cadf875a0b20f999c7..977361b6e08ca1834fa7adb5e5bb596bd9556054 100644 (file)
@@ -16,6 +16,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
  */
 public class Ticket1983 extends Application {
 
+    @Override
     public void init() {
         Window main = new Window("Test for ticket 1983");
         main.setLayout(new TestLayout());
index ae413c01d48498eaa27cb8c8b47d6209b0cf674a..1a920da655b91db08edab50d99b970d3e091067a 100644 (file)
@@ -14,6 +14,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1986 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getName());\r
         setMainWindow(w);\r
index 6ec03cac892cd2547d0117b841959e910894c9d7..a2f10a753a17beb4f2eb9f8ef650a9b3787b1daa 100644 (file)
@@ -6,6 +6,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket1991 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index c07983628265cd4843aee27f5428f008ff1a0bab..38f041f8fde4db70a45a44dbbf13d9ec1fe94547 100644 (file)
@@ -14,6 +14,7 @@ public class Ticket1995 extends Application {
     private static final Object PROPERTY_1 = "Test";\r
     private Table table;\r
 \r
+    @Override\r
     public void init() {\r
         final Window mainWin = new Window(getClass().getName());\r
         setMainWindow(mainWin);\r
index d074509f2a4dfdf8e989f1cc20c5b28171c37cd5..193bb0961f8cfaabab23c284ffbb8486670e3012 100644 (file)
@@ -10,6 +10,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket20 extends Application {
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window("Test app for #20");
index a03268cf578c83a6eb9bc3e7ef9b2c4c29a58486..3ce16c20307b37bebadca1183bff6e762830e402 100644 (file)
@@ -10,6 +10,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2001 extends Application {
 
+    @Override
     public void init() {
         final Window w = new Window(getClass().getName());
         setMainWindow(w);
index eec74108a00f11daa3364fe3e55cf058eb2d15c3..596f93157080e7d6138ef5bd2b9c6229fb09dd9c 100644 (file)
@@ -26,6 +26,7 @@ public class Ticket2002 extends Application {
         this.long2 = long2;\r
     }\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getName());\r
         setMainWindow(w);\r
index f9eebb02b7e08e4bde66a75d1cd160b77bd143f0..a5f7782d3035a4305f118e7f8b6353c0adeecc9a 100644 (file)
@@ -17,6 +17,7 @@ public class Ticket2009 extends com.itmill.toolkit.Application {
 \r
     TextField f = new TextField();\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index eeabff0da2bd0c2d6655f3223c77b5b9dde76c81..4fc75fc1e6f60b5c512869d91b21249dde07bb5f 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2011 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getName());\r
         setMainWindow(w);\r
index 4dfd5e7103ec8bfc4248f9d2b168e4e4375f3282..f6c66421d4ae9add1c802cd2d691bcc5b5d0cf3f 100644 (file)
@@ -17,6 +17,7 @@ public class Ticket2014 extends Application {
     private Button b1;\r
     private Panel panel;\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getName());\r
         setMainWindow(w);\r
index aacdfad8aaa1b994c353024a70fb3b4a028cafa0..e8a2bb3f0483f4ae44fae554e07a90d64425bcf7 100644 (file)
@@ -26,6 +26,7 @@ public class Ticket2021 extends Application {
 \r
     private OrderedLayout orderedLayout;\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         w.setLayout(new GridLayout(2, 2));\r
index 1e133f8b4bf3b6f1710b45207dc36cd45a3c0795..3bffd0a28126c86277fc54944fa59cfb0dfa4895 100644 (file)
@@ -6,6 +6,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2022 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index 5f2a7c4a3761a2cda118234aa231a2eb55f02548..ebcfd50448b5b077260642a5a18877b1079ed2db 100644 (file)
@@ -11,6 +11,7 @@ public class Ticket2023 extends com.itmill.toolkit.Application implements
 
     AbstractComponent c = new Button();
 
+    @Override
     public void init() {
         Window main = new Window();
         setMainWindow(main);
index 97aeafc87eb8edd75b15f6f9a3617d775f1e9d2b..cbc19fdbc925e6f75d90131ec61ab4367b7b9ca7 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2024 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index e4fd0f1b74279f964afe7b4d673f7e83e2b0e5de..bc79cddce410aeb108fd8d914100668af8b64b20 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2026 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index bd4f4bb4070dee8eddcdfd544f1021809999b72b..98c80cdd53aec01511c5efdb077e7bc4c549b595 100644 (file)
@@ -19,6 +19,7 @@ public class Ticket2029 extends Application {
     int DIM1, DIM2;\r
     Random r = new Random();\r
 \r
+    @Override\r
     public void init() {\r
         COMPONENTS = 5;\r
         DIM1 = 504;\r
index be0098a8848845011909be80948f7ff42e3b5444..e0bb9e94072e3373bb77f4eb27be1bb23baf1bf3 100644 (file)
@@ -10,6 +10,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2032 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index b1d2aae2a7653587fff1fcee625247f930dcc303..25dc8a6a33e8eb53c3c4be367863d19f22b41c5e 100644 (file)
@@ -11,6 +11,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2033 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index 0392bd99c47f274ab07169d8fc73bcd64ce15da7..fa8c440a1d02a0377e63540d53b50ed2676c326a 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 \r
 public class Ticket2037 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window main = new Window();\r
         setMainWindow(main);\r
index b598405acfeb44d03cbe320124b4263cb3ed2014..34ad22f272c34f76bf68f6d014862780c3e8d5df 100644 (file)
@@ -10,6 +10,7 @@ import com.itmill.toolkit.ui.Window.Notification;
 
 public class Ticket2038 extends Application {
 
+    @Override
     public void init() {
         final Window w = new Window("Testing for #2038");
         setMainWindow(w);
index 0b38ceb734861e5239babc4b29d6fa8a93006881..1a5e96da2b417928f75326a376a10f755cc093b3 100644 (file)
@@ -9,6 +9,7 @@ public class Ticket2040 extends com.itmill.toolkit.Application {
 \r
     TextField f = new TextField();\r
 \r
+    @Override\r
     public void init() {\r
         Window main = new Window();\r
         setMainWindow(main);\r
index 033e313265b6098e31267e2bbdf923778146303b..dc81de761497ef43447ef65983d6eac56387a67f 100644 (file)
@@ -11,6 +11,7 @@ import com.itmill.toolkit.ui.Window.Notification;
 \r
 public class Ticket2042 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index ba2f00fc98290204a23281cb8f692032ad352227..e81fd9aea3460f641ead959dfdea4eafd17bedf9 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2043 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index 85c63b2446e37db65ecdbb44d7badfb0dbfa8d8f..4ca741edd221df309b1d944bdbf2ee30d2bc9085 100644 (file)
@@ -22,6 +22,7 @@ public class Ticket2048 extends Application {
     private GridLayout gridLayout;\r
     private OrderedLayout orderedLayout;\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index 8a3014afa0f5e7196423608276a767fd9d223727..804b666b70dc621429c58434126de5dedbc4fee3 100644 (file)
@@ -16,6 +16,7 @@ public class Ticket2051 extends Application {
     private static final Object P1 = new Object();\r
     private static final Object P2 = new Object();\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index 604edaf5b4a5a5f600ce27eae8d16d9b1af60381..4fc1089225480612a0661cdc9cd7109c82036934 100644 (file)
@@ -14,6 +14,7 @@ public class Ticket2060 extends Application {
     private Button button2;\r
     private Button button3;\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index 6545a5d1dfbc65d2747482957c758016dd3e1dc3..1bb2b285b55b12a3721308ce54c8d5b833c42365 100644 (file)
@@ -10,6 +10,7 @@ import com.itmill.toolkit.ui.Window;
 public class Ticket2062 extends Application {\r
     private static final Object P1 = new Object();\r
 \r
+    @Override\r
     public void init() {\r
         setMainWindow(new Window("Ticket2062"));\r
         getMainWindow().setSizeFull();\r
index 0a415bb498fef279f8e6c564c1654b64450ba80e..735fe41677096d77e749bc103079cee450dff7cd 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2083 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index d0d471b190990128011682b89e73535642205fbf..02cb34b0c259f0daa8397f72dc1e1add7690cfcb 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2095 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index ec19fecd04874a505d66da55196b1fc2a372bbe1..1b3b8c82b7976e61327b6c1d0063a95eabb8042e 100644 (file)
@@ -9,6 +9,7 @@ public class Ticket2098 extends Application {
 \r
     private static final String info = "First tab hidden, second should initially be selected";\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index bf621de6571140f45fe99143fcc5be758d841f52..bf1f654ecaba2cac9be555783e0687170466100c 100644 (file)
@@ -16,6 +16,7 @@ public class Ticket2099 extends Application {
     private OrderedLayout ol1, ol2, ol3;\r
     private Window popup;\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index 431572f5a83f34363b3015a65775d23359e197c1..c6046b5ca0c4d4222019707ee1aad2b20083cdd6 100644 (file)
@@ -6,6 +6,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2101 extends Application {\r
 \r
+    @Override\r
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
index 3ea1757ad69d8b1d7e0b2951c3360f5cede4d880..13d45c7aa2ffaa7bb5dd991c40072f9826c781c9 100644 (file)
@@ -12,6 +12,7 @@ import com.itmill.toolkit.ui.Window;
 public class Ticket2103 extends Application {
     private Window mainWindow;
 
+    @Override
     public void init() {
         mainWindow = new Window(getClass().getSimpleName());
         mainWindow.setLayout(new ExpandLayout());
index 7ed504c891d5c86b652a99af6d1ee5853a067500..b4fe9ce7e93f9fc228435964c721c5f9b72e0024 100644 (file)
@@ -22,6 +22,7 @@ public class Ticket2104 extends Application {
     Tree tree = new Tree();
     Table table = new Table();
 
+    @Override
     public void init() {
         Window main = new Window();
         setMainWindow(main);
index 743aaf096902fcd9dea0ecac1e8538e4a6a00ae7..667454c4c2f7d031dc4169c250440586d7d3bfd3 100644 (file)
@@ -22,6 +22,7 @@ public class Ticket2106 extends Application {
         return msgs;
     }
 
+    @Override
     public void init() {
         setMainWindow(new Window("#2106"));
         getMainWindow().addComponent(
index adba8aed27b08c2eebc529d58db55006f75fc098..765c3c274e70323463f363b00fff1b6d03e1da90 100644 (file)
@@ -11,6 +11,7 @@ import com.itmill.toolkit.ui.Window.Notification;
 
 public class Ticket2107 extends Application {
 
+    @Override
     public void init() {
         final Window w = new Window("Testing for #2107");
         setMainWindow(w);
index 2bde2670801d9371989e015ff668ef2833f29bae..dd069b6ed47af6714b1d7daa778b6151bf56b0d6 100644 (file)
@@ -7,10 +7,12 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2117 extends Application {
 
+    @Override
     public void init() {
         setMainWindow(createWindow());
     }
 
+    @Override
     public Window getWindow(String name) {
 
         // If we already have the requested window, use it
index 144b631ea458cacc2394d6c05fbbc7ce6e079b9e..6e24541b77b03c043e45dcdca3da38b994569ba6 100644 (file)
@@ -18,6 +18,7 @@ public class Ticket2119 extends Application {
 
     private ObjectProperty globalValue;
 
+    @Override
     public void init() {
         globalValue = new ObjectProperty(null, String.class);
         Window main = createWindow();
index 46ad984084056883160e27e3fc777a167d2774e6..e98b34de32154ed66265699f8b233f5a795ce07a 100644 (file)
@@ -12,6 +12,7 @@ import com.itmill.toolkit.ui.Table.ColumnGenerator;
 
 public class Ticket2125 extends Application {
 
+    @Override
     public void init() {
         setMainWindow(new MainWindow("Ticket2125"));
 
index 11dfeddd156bf38b2d9174ce9ace8185769e82ea..47988502f0e4fb4fb17388d778b891903a08d2ca 100644 (file)
@@ -19,6 +19,7 @@ public class Ticket2126 extends com.itmill.toolkit.Application {
     Window main = new Window();\r
     Table table = new Table();\r
 \r
+    @Override\r
     public void init() {\r
         setMainWindow(main);\r
 \r
index 52fbe2a9de3b1a62894919b3392b061286234adf..908ef2a35a099a626d735e3748dc959e26fabea3 100644 (file)
@@ -12,6 +12,7 @@ public class Ticket2151 extends Application {
 
     private Label status;
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 2fd4aef8a23676ec7f71911406f75ff50ccaec86..313a38532cb87109797d3cd68e07dc01a835b143 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2157 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 29bbdad04c2ebef4fb5daa4ecb750c79b83a042f..d64bbea790986812cbdadde0b182ee925015c982 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2178 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index cef4aa2f8d267f35e958d276b5e96b3e6704218d..ec58671105b72c5abe70347a2e3491d145bf7296 100644 (file)
@@ -38,6 +38,7 @@ public class Ticket2181 extends Application implements Button.ClickListener {
         icons.add("icons/64/arrow-up.png");
     }
 
+    @Override
     public void init() {
         setMainWindow(main);
         OrderedLayout ol;
index 463a3563638b0b209db8b28263e6daf7599b93ad..82d0574533f8c2edbed4017a7b67bcd94697a3fb 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2186 extends Application {
 
+    @Override
     public void init() {
         Window main = new Window("Quick test");
         setMainWindow(main);
index 32f0546a564f37a1aef83eef8a1f9afada7f697b..02d53c4704fa80f7f612f4f47b78bf0ecd7c111c 100644 (file)
@@ -38,6 +38,7 @@ public class Ticket2204 extends Application {
     private final List<Class<? extends Component>> classes = new ArrayList<Class<? extends Component>>();
     protected RichTextArea formTextArea;
 
+    @Override
     public void init() {
         classes.add(OrderedLayout.class);
         classes.add(GridLayout.class);
index c830b541fd10d5f39fb53e3ca48851747b3f6104..3f1d60d30dbef208b56fd595f8f4376b263e7994 100644 (file)
@@ -14,6 +14,7 @@ import com.itmill.toolkit.ui.Button.ClickListener;
 
 public class Ticket2221 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 628f793351670997e63c79d0727e8a2d6dde4c53..4cb71e5503b814b4bc7baaffc52565cfbbddd122 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2222 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 5d993b739d439746b2ab430cb6de699b8e9ea284..5958d6f79b69f45781b3a46fc7ad9991fc9b7633 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2231 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 97f51c6af7c6bba18f080619d27566966db9b432..32febb1e407632855f19ac3bdc531f65e5f4df73 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2234 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index bd557d98e09d3db86f31ebae4b1cb08eee60cf9f..2a0b508fae75dabaaffea57ad47978e30e5929ba 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2235 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index a016b2ca1b963760e3510cd73adbf655d71393ee..c5e7dd9f9b2f50d8d5301938e8b12c26c2e19d55 100644 (file)
@@ -23,6 +23,7 @@ public class Ticket2240 extends Application {
             + " (and state) between several browser windows (the latter is most useful"
             + " for read-only views).</p><br/><p>This is the end.</p>";
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index cd5f75dd986a33041ea589b9d950b3b051ce2dfc..398b95a367e23e90edb50c0dd6480c7a30e135dc 100644 (file)
@@ -20,6 +20,7 @@ public class Ticket2242 extends Application implements ValueChangeListener {
     private String valueDataSource = "-";
     private ObjectProperty prop;
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 4b03e9f87cf342bdf2a8c0b90644cff86b2939d6..aa3c38182b499c3ab174fb6f6f90c23cbe168130 100644 (file)
@@ -14,6 +14,7 @@ public class Ticket2244 extends Application {
 
     Form form;
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 54eb73a5603b2f05dd9d37cf69854d619e65e64b..85502a01af7aa03b3028faf59861e65642481e36 100644 (file)
@@ -12,6 +12,7 @@ public class Ticket2267 extends Application {
 
     Label l = new Label("0");
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index d338d9f52aef0da0130a918e4b00f021b58b1a7e..93fec7c053f1061a3fc21680c3989602318b041d 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2271 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index b6c71a6f72826aa200a3afd1e02e5e87d1917f28..530ee035d07ceeffae0f3a705e537bdae24d7971 100644 (file)
@@ -57,6 +57,7 @@ public class Ticket2279 extends Application {
 
     }
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 0b0426aa9b5444d44000059902ac9cba87f0c531..45025bb9479ab16fa2f6c0628faa75b0de49c04c 100644 (file)
@@ -12,6 +12,7 @@ public class Ticket2282 extends Application {
     private FormLayout layout1;
     private FormLayout layout2;
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 7eddbc983eaa5d8ec7091802239f5d11e36604d4..56c542ceaf07e419939e20a779be21e4fc1557c1 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2287 extends Ticket2292 {\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index 10e1fba6792907a8545da6de8ad941e1fe3c8406..abce7f512fd1f85e60880fed3755951775049b97 100644 (file)
@@ -17,6 +17,7 @@ public class Ticket2289 extends Application {
     TabSheet ts = null;
     Accordion acc = null;
 
+    @Override
     public void init() {
 
         Window w = new Window();
index c77ee155b59568312b666b303043e9cecf1a8ba0..8ee96c8827aa70462c852a605c9b3d9e9db634c1 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Layout.AlignmentHandler;
 
 public class Ticket2294 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index cddc2116a28c976a2f00eedccbced0e993f2eca3..99d61acc79e78b7580c5c55d1440f3098495a96b 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2296 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 48584a9a30055cb7f966169d4f256aa68d0d4f94..c8e91d6e2abb30b6416df7903f1483d8d3f6bbf2 100644 (file)
@@ -10,6 +10,7 @@ import com.itmill.toolkit.ui.Window;
 \r
 public class Ticket2297 extends Ticket2292 {\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window(getClass().getName().substring(\r
                 getClass().getName().lastIndexOf(".") + 1));\r
index 8ae9ea6b1ff7288fa74903746e9f4cac25a6e02e..2a5e4a31e10f1cbbcee52f111c4562843b16d243 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2304 extends Application {
 
+    @Override
     public void init() {
         final Window main = new Window(getClass().getName().substring(
                 getClass().getName().lastIndexOf(".") + 1));
index a640b94af4fc90d21cbf201cb8db1349b44f7bfa..d00a63ea3a9f892644656989d8adba1d8fc0e62f 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class Ticket2310 extends Application {
 
+    @Override
     public void init() {
         final Window main = new Window(getClass().getName().substring(
                 getClass().getName().lastIndexOf(".") + 1));
index 2347f418d4764c19f58bd399b67a8861b75e2be3..e1dd789b9ed02ba98dcefbe0dc65cf12a623816d 100644 (file)
@@ -6,6 +6,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2323 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 5fa5eb50b8ec5b2e9f5b3d05fa945b476d166169..e4b57e2cbb1b31713a82e585d17ea868d037a287 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2325 extends Application {
 
+    @Override
     public void init() {
         Window main = new Window("Testing....");
         setMainWindow(main);
index b03ebc271521d72067a8c5dbfea3aad074848a7c..5ca919cc6f72b3ef3f3b800a516704d369beca26 100644 (file)
@@ -12,6 +12,7 @@ public class Ticket2329 extends Application {
     private Table table;
     private VerticalLayout mainLo;
 
+    @Override
     public void init() {
         Window mainw = new Window();
         setMainWindow(mainw);
index 6747968482c04112145ced72719b9f04129cf349..648c88a391b9ca17200ca3da3de27eb92a077187 100644 (file)
@@ -11,6 +11,7 @@ public class Ticket2337 extends Application {
 
     GridLayout gl = new GridLayout(3, 1);
 
+    @Override
     public void init() {
         Window w = new Window();
         setMainWindow(w);
index e6aace8c2c62490d22172d98bf2fbbd0be6bb504..f9b3ee4d5a8268757b14bbb3b47dec3bec0f3529 100644 (file)
@@ -10,6 +10,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2339 extends Application {
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window(getClass().getSimpleName());
index be795549d9dd715887c389aca3586107cd6af0bd..0bc40e51cfc585699dd790873e418acedda2fee9 100644 (file)
@@ -7,6 +7,7 @@ import com.itmill.toolkit.ui.Table;
 import com.itmill.toolkit.ui.Window;
 
 public class Ticket2341 extends com.itmill.toolkit.Application {
+    @Override
     public void init() {
         Window main = new Window();
         setMainWindow(main);
index 892ece1a788854937115d77ee8f0bedd2bef505f..ec4bb14a8651132348aa5dabb5fec66b77033df4 100644 (file)
@@ -13,6 +13,7 @@ public class Ticket2344 extends Application {
 
     private Panel p;
 
+    @Override
     public void init() {
         Window main = new Window("Quick test");
 
index 1b5a6c34bd3f08bfa468f29c9c8e043c12756dac..6a0ccbea7d141a50c6f98cb700e960a0f3f9e0d0 100644 (file)
@@ -12,6 +12,7 @@ public class Ticket2347 extends Application {
 
     private Button b1;
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
index 5be2e34d73f65ba0d235c806225ee00689b8935b..814f424fa4cdbc24aefaf1fbc86fcb8fd6bd3642 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket2364 extends Application {
 
+    @Override
     public void init() {
 
         Window main = new Window("The Main Window!!!");
index c37d5a8495ef7d23446c46c9671f62c47e2b6807..e02a6636f5596d7cd8d08c3e84f768ecb9871603 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class Ticket2365 extends Application {
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window(getClass().getSimpleName());
index 4f33b59a1b760994be65eff6fe027da38f952873..e2239a92e8d10e165f1b26bbd0064a3b92185b1d 100644 (file)
@@ -11,6 +11,7 @@ public class Ticket2406 extends Application {
 
     private Window w;
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
@@ -39,7 +40,7 @@ public class Ticket2406 extends Application {
         l.addComponent(b);
 
         for (int i = 0; i < 5; i++) {
-            b = new Button("Button number "+(i+2));
+            b = new Button("Button number " + (i + 2));
             b.setSizeFull();
             l.addComponent(b);
         }
index b0f194ceb7c02f507f874c0a92fee9d5dfd2cc60..ee8c090f477c8a4a9e699e0303e7816fc25565a6 100644 (file)
@@ -1,13 +1,13 @@
 package com.itmill.toolkit.tests.tickets;\r
 \r
 import com.itmill.toolkit.ui.Form;\r
-import com.itmill.toolkit.ui.Label;\r
 import com.itmill.toolkit.ui.TextField;\r
 import com.itmill.toolkit.ui.VerticalLayout;\r
 import com.itmill.toolkit.ui.Window;\r
 \r
 public class Ticket2407 extends com.itmill.toolkit.Application {\r
 \r
+    @Override\r
     public void init() {\r
         final Window main = new Window("Ticket2407");\r
         setMainWindow(main);\r
index edf4ee07988abc2d122ce96727fa2546f07681f7..b7690c375fb96a269db717f3d521dc10ca7a4d03 100644 (file)
@@ -11,15 +11,16 @@ public class Ticket2411 extends Application {
     public void init() {\r
         Window w = new Window(getClass().getSimpleName());\r
         setMainWindow(w);\r
-        \r
-//        VerticalLayout l = new VerticalLayout();\r
+\r
+        // VerticalLayout l = new VerticalLayout();\r
         GridLayout l = new GridLayout();\r
         w.setLayout(l);\r
-        \r
+\r
         l.setHeight("504px");\r
-        \r
-        for (int i=1; i <= 5; i++) {\r
-            Button b = new Button("Button "+i+" should be 100px or 101px high");\r
+\r
+        for (int i = 1; i <= 5; i++) {\r
+            Button b = new Button("Button " + i\r
+                    + " should be 100px or 101px high");\r
             b.setHeight("100%");\r
             l.addComponent(b);\r
         }\r
index 7f542f395f887a5f36862037b6ee50a7c5945e8c..bba928173a7ff16aaf9f1fc091bbc86a366a0423 100644 (file)
@@ -38,6 +38,7 @@ public class Ticket677 extends Application {
     Form form;\r
     Table table;\r
 \r
+    @Override\r
     public void init() {\r
         Window main = new Window();\r
         setMainWindow(main);\r
@@ -110,6 +111,7 @@ public class Ticket677 extends Application {
         form.setCaption("Enabled");\r
         form.setFieldFactory(new BaseFieldFactory() {\r
 \r
+            @Override\r
             public Field createField(Item item, Object propertyId,\r
                     Component uiContext) {\r
                 Field f = super.createField(item, propertyId, uiContext);\r
@@ -132,6 +134,7 @@ public class Ticket677 extends Application {
 \r
         table.setFieldFactory(new BaseFieldFactory() {\r
 \r
+            @Override\r
             public Field createField(Container container, Object itemId,\r
                     Object propertyId, Component uiContext) {\r
                 Field f = super.createField(container, itemId, propertyId,\r
index ecdd86f61cb57da2a9d38c2ff3a22dfec916ebc1..8c4993f7ae17443eb853cd4573b4c612ac580732 100644 (file)
@@ -18,6 +18,7 @@ public class Ticket736 extends Application {
 
     Address address = new Address();
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window("Test app for #736");
@@ -139,6 +140,7 @@ public class Ticket736 extends Application {
             this.country = country;
         }
 
+        @Override
         public String toString() {
             return name + "; " + street + "; " + city + " " + zip
                     + (state != null ? " " + state : "") + " " + country;
index ea10dcc0207e3c36ef1be3307a4f88941648e1f6..d7c72b8d866c62088f3850eede2f50556b61b401 100644 (file)
@@ -9,6 +9,7 @@ import com.itmill.toolkit.ui.Window;
 
 public class Ticket846 extends Application {
 
+    @Override
     public void init() {
 
         final Window mainWin = new Window("Test app for #846");
index 80427a995b5f698c1ef3a9c5998f6ff410c27b19..3e95060c3f9e79c7eefd011b7b56e8c549399888 100644 (file)
@@ -15,11 +15,13 @@ public class LogPrintWriter extends PrintWriter {
         super(out);
     }
 
+    @Override
     public void print(String s) {
         result.append(s);
         super.print(s);
     }
 
+    @Override
     public void write(String s) {
         result.append(s);
         super.write(s);
index 03555b9ee0d813ef8fd69ed809070ba09818b672..3c61c56f312b8a35578e6c2cac73457896729574 100644 (file)
@@ -47,7 +47,7 @@ public class RandomComponents {
     }
 
     public void setRandom(Random rand) {
-        this.seededRandom = rand;
+        seededRandom = rand;
     }
 
     /**
index 447623068dea90cd6e247c071b936251fb019577..b9e96533e6e6f53c24df34c83684f764ccd41d0b 100644 (file)
@@ -71,6 +71,7 @@ public abstract class AbstractComponentContainer extends AbstractComponent
      * 
      * @see com.itmill.toolkit.ui.Component#attach()
      */
+    @Override
     public void attach() {
         super.attach();
 
@@ -85,6 +86,7 @@ public abstract class AbstractComponentContainer extends AbstractComponent
      * 
      * @see com.itmill.toolkit.ui.Component#detach()
      */
+    @Override
     public void detach() {
         super.detach();
 
@@ -206,6 +208,7 @@ public abstract class AbstractComponentContainer extends AbstractComponent
         }
     }
 
+    @Override
     public void setEnabled(boolean enabled) {
         super.setEnabled(enabled);
         if (getParent() != null && !getParent().isEnabled()) {
index f97eb5e462af060c53b7854dc9019d0788f46d79..c1e266a7b86229873853da91271327d13688a23f 100644 (file)
@@ -127,6 +127,7 @@ public abstract class AbstractField extends AbstractComponent implements Field,
      * Paints the field. Don't add a JavaDoc comment here, we use the default
      * documentation from the implemented interface.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
 
         // The tab ordering number
@@ -161,6 +162,7 @@ public abstract class AbstractField extends AbstractComponent implements Field,
      * The abstract field is read only also if the data source is in read only
      * mode.
      */
+    @Override
     public boolean isReadOnly() {
         return super.isReadOnly()
                 || (dataSource != null && dataSource.isReadOnly());
@@ -171,6 +173,7 @@ public abstract class AbstractField extends AbstractComponent implements Field,
      * 
      * @see com.itmill.toolkit.ui.Component#setReadOnly(boolean)
      */
+    @Override
     public void setReadOnly(boolean readOnly) {
         super.setReadOnly(readOnly);
         fireReadOnlyStatusChange();
@@ -352,6 +355,7 @@ public abstract class AbstractField extends AbstractComponent implements Field,
      * 
      * @see java.lang.Object#toString()
      */
+    @Override
     public String toString() {
         final Object value = getValue();
         if (value == null) {
@@ -756,6 +760,7 @@ public abstract class AbstractField extends AbstractComponent implements Field,
      * 
      * @see com.itmill.toolkit.ui.AbstractComponent#getErrorMessage()
      */
+    @Override
     public ErrorMessage getErrorMessage() {
 
         // Check validation errors only if automatic validation is enabled.
@@ -931,6 +936,7 @@ public abstract class AbstractField extends AbstractComponent implements Field,
         }
     }
 
+    @Override
     public void changeVariables(Object source, Map variables) {
         super.changeVariables(source, variables);
 
@@ -1024,6 +1030,7 @@ public abstract class AbstractField extends AbstractComponent implements Field,
      * 
      * @see com.itmill.toolkit.ui.Component#attach()
      */
+    @Override
     public void attach() {
         super.attach();
         if (delayedFocus) {
index c849c86b398cb9391ccd4b1686e49b90b08ef5f6..d250501b46fe2e5453db95f706881c5e50b9e3e6 100644 (file)
@@ -27,6 +27,7 @@ public abstract class AbstractLayout extends AbstractComponentContainer
      * 
      * @see com.itmill.toolkit.ui.AbstractComponent#getTag()
      */
+    @Override
     public abstract String getTag();
 
     /*
@@ -79,6 +80,7 @@ public abstract class AbstractLayout extends AbstractComponentContainer
      * com.itmill.toolkit.ui.AbstractComponent#paintContent(com.itmill.toolkit
      * .terminal.PaintTarget)
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
 
         // Add margin info. Defaults to false.
index 72d0d42249d3f234b4e333b99d0d6922d01e3b39..5fe3d616d919ba0edb7b48a800e7a69fb4741d58 100644 (file)
@@ -43,6 +43,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "orderedlayout";
     }
@@ -54,6 +55,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
      * @param c
      *            the component to be added.
      */
+    @Override
     public void addComponent(Component c) {
         super.addComponent(c);
         components.add(c);
@@ -94,6 +96,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
      * @param c
      *            the component to be removed.
      */
+    @Override
     public void removeComponent(Component c) {
         super.removeComponent(c);
         components.remove(c);
@@ -120,6 +123,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
      * @throws PaintException
      *             if the paint operation failed.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         super.paintContent(target);
 
index 753113203963ee9b709a4ecc935ad3f69319b633..61e32e190c2ecd38d4c160fd60721c41c77ad387 100644 (file)
@@ -247,6 +247,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * @throws PaintException
      *             if the paint operation failed.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
 
         // Paints field properties
@@ -354,6 +355,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * @see com.itmill.toolkit.ui.AbstractComponent#changeVariables(java.lang.Object,
      *      java.util.Map)
      */
+    @Override
     public void changeVariables(Object source, Map variables) {
         super.changeVariables(source, variables);
 
@@ -510,6 +512,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "select";
     }
@@ -536,6 +539,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * 
      * @return the Type of the property.
      */
+    @Override
     public Class getType() {
         if (isMultiSelect()) {
             return Set.class;
@@ -549,6 +553,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * 
      * @see com.itmill.toolkit.ui.AbstractField#getValue()
      */
+    @Override
     public Object getValue() {
         final Object retValue = super.getValue();
 
@@ -588,6 +593,7 @@ public abstract class AbstractSelect extends AbstractField implements
      *            the New selected item or collection of selected items.
      * @see com.itmill.toolkit.ui.AbstractField#setValue(java.lang.Object)
      */
+    @Override
     public void setValue(Object newValue) throws Property.ReadOnlyException,
             Property.ConversionException {
         if (newValue == null) {
@@ -613,6 +619,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * @see com.itmill.toolkit.ui.AbstractField#setValue(java.lang.Object,
      *      java.lang.Boolean)
      */
+    @Override
     protected void setValue(Object newValue, boolean repaintIsNotNeeded)
             throws Property.ReadOnlyException, Property.ConversionException {
 
@@ -1562,6 +1569,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * 
      * @see com.itmill.toolkit.ui.AbstractField#attach()
      */
+    @Override
     public void attach() {
         super.attach();
     }
@@ -1571,6 +1579,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * 
      * @see com.itmill.toolkit.ui.AbstractComponent#detach()
      */
+    @Override
     public void detach() {
         getCaptionChangeListener().clear();
         super.detach();
index e057bbc6a19b40f3f43a5c3a8cb68ea775990693..78d9c42743214cb5450b6ff8843c3cf221a1171a 100644 (file)
@@ -2,6 +2,7 @@ package com.itmill.toolkit.ui;
 
 public class Accordion extends TabSheet {
 
+    @Override
     public String getTag() {
         return "accordion";
     }
index aa46480261e3b13fbff63e0fb29b46591d019082..00e27fdfcc908bdb88204fc1beab6d9d86a56ad6 100644 (file)
@@ -13,9 +13,10 @@ import com.itmill.toolkit.data.Property;
 /**
  * Default implementation of the the following Field types are used by default:
  * <p>
- * <b>Boolean</b>: Button(switchMode:true).<br/> <b>Date</b>:
- * DateField(resolution: day).<br/> <b>Item</b>: Form. <br/> <b>default field
- * type</b>: TextField.
+ * <b>Boolean</b>: Button(switchMode:true).<br/>
+ * <b>Date</b>: DateField(resolution: day).<br/>
+ * <b>Item</b>: Form. <br/>
+ * <b>default field type</b>: TextField.
  * <p>
  * 
  * @author IT Mill Ltd.
index 2bd0aac48dd48b8d8e64785014ef37b48ca484bf..e90ac2f12abee4696132674b73dc0e386b5aa9de 100644 (file)
@@ -114,6 +114,7 @@ public class Button extends AbstractField {
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "button";
     }
@@ -128,6 +129,7 @@ public class Button extends AbstractField {
      * @throws PaintException
      *             if the paint operation failed.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         super.paintContent(target);
 
@@ -144,6 +146,7 @@ public class Button extends AbstractField {
      * @param source
      * @param variables
      */
+    @Override
     public void changeVariables(Object source, Map variables) {
         super.changeVariables(source, variables);
 
@@ -222,6 +225,7 @@ public class Button extends AbstractField {
      * 
      * @see com.itmill.toolkit.ui.AbstractComponent#setImmediate(boolean)
      */
+    @Override
     public void setImmediate(boolean immediate) {
         // Push buttons are always immediate
         super.setImmediate(!isSwitchMode() || immediate);
@@ -232,6 +236,7 @@ public class Button extends AbstractField {
      * 
      * @see com.itmill.toolkit.data.Property#getType()
      */
+    @Override
     public Class getType() {
         return Boolean.class;
     }
index cd488b403a8bfa6b5d5035296b810611a8e947bc..abb8d7bff66b0272f90caec29ebc2edcf4f0883a 100644 (file)
@@ -89,6 +89,7 @@ public class CheckBox extends Button {
         super(caption, false);
     }
 
+    @Override
     public void setSwitchMode(boolean switchMode)
             throws UnsupportedOperationException {
         if (this.switchMode && !switchMode) {
index 915ad94827b3f088c10067d997031f92ecddf04f..f29b51b7d9a84de1a3d8410c9a2c3c3bf3a30c57 100644 (file)
@@ -43,6 +43,7 @@ public class ComboBox extends Select {
         setNewItemsAllowed(false);\r
     }\r
 \r
+    @Override\r
     public void setMultiSelect(boolean multiSelect) {\r
         if (multiSelect && !isMultiSelect()) {\r
             throw new UnsupportedOperationException("Multiselect not supported");\r
index dd4b1577c23ea91f16b387a68e2792e70e31eb2a..b0bc392f269a72fb0c979491b962daa91dd03642 100644 (file)
@@ -102,6 +102,7 @@ public class CustomComponent extends AbstractComponentContainer {
 
     /* Basic component features ------------------------------------------ */
 
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         if (root == null) {
             throw new IllegalStateException("Composition root must be set to"
@@ -140,6 +141,7 @@ public class CustomComponent extends AbstractComponentContainer {
         this.componentType = componentType;
     }
 
+    @Override
     public String getTag() {
         return "customcomponent";
     }
@@ -180,6 +182,7 @@ public class CustomComponent extends AbstractComponentContainer {
      * 
      * @see com.itmill.toolkit.ui.AbstractComponentContainer#addComponent(com.itmill.toolkit.ui.Component)
      */
+    @Override
     public void addComponent(Component c) {
         throw new UnsupportedOperationException();
     }
@@ -189,6 +192,7 @@ public class CustomComponent extends AbstractComponentContainer {
      * 
      * @see com.itmill.toolkit.ui.AbstractComponentContainer#moveComponentsFrom(com.itmill.toolkit.ui.ComponentContainer)
      */
+    @Override
     public void moveComponentsFrom(ComponentContainer source) {
         throw new UnsupportedOperationException();
     }
@@ -198,6 +202,7 @@ public class CustomComponent extends AbstractComponentContainer {
      * 
      * @see com.itmill.toolkit.ui.AbstractComponentContainer#removeAllComponents()
      */
+    @Override
     public void removeAllComponents() {
         throw new UnsupportedOperationException();
     }
@@ -207,6 +212,7 @@ public class CustomComponent extends AbstractComponentContainer {
      * 
      * @see com.itmill.toolkit.ui.AbstractComponentContainer#removeComponent(com.itmill.toolkit.ui.Component)
      */
+    @Override
     public void removeComponent(Component c) {
         throw new UnsupportedOperationException();
     }
index 8b78699c626682e99c7b0b2b015fff9a71e56716..826ddfb9b2aae5eb1bbb950afcca7f4f5b3ca5cc 100644 (file)
@@ -99,6 +99,7 @@ public class CustomLayout extends AbstractLayout {
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "customlayout";
     }
@@ -132,6 +133,7 @@ public class CustomLayout extends AbstractLayout {
      * @param c
      *            the component to be added.
      */
+    @Override
     public void addComponent(Component c) {
         this.addComponent(c, "");
     }
@@ -142,6 +144,7 @@ public class CustomLayout extends AbstractLayout {
      * @param c
      *            the component to be removed.
      */
+    @Override
     public void removeComponent(Component c) {
         if (c == null) {
             return;
@@ -191,6 +194,7 @@ public class CustomLayout extends AbstractLayout {
      * @throws PaintException
      *             if the paint operation failed.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         super.paintContent(target);
 
@@ -250,6 +254,7 @@ public class CustomLayout extends AbstractLayout {
      * @param name
      *            template name
      */
+    @Override
     public void setStyle(String name) {
         setTemplateName(name);
     }
@@ -281,6 +286,7 @@ public class CustomLayout extends AbstractLayout {
      * 
      * @throws UnsupportedOperationException
      */
+    @Override
     public void setMargin(boolean enabled) {
         throw new UnsupportedOperationException(
                 "CustomLayout does not support margins.");
@@ -293,6 +299,7 @@ public class CustomLayout extends AbstractLayout {
      * 
      * @throws UnsupportedOperationException
      */
+    @Override
     public void setMargin(boolean topEnabled, boolean rightEnabled,
             boolean bottomEnabled, boolean leftEnabled) {
         throw new UnsupportedOperationException(
index 7a3d5a00dc7f911ffca19b91edcd6e2cd7da191b..aaa53e3ee102fdbcc5400783c187554b31ea8d58 100644 (file)
@@ -179,6 +179,7 @@ public class DateField extends AbstractField {
      * Paints this component. Don't add a JavaDoc comment here, we use the
      * default documentation from implemented interface.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         super.paintContent(target);
 
@@ -237,6 +238,7 @@ public class DateField extends AbstractField {
      * Gets the components UIDL tag string. Don't add a JavaDoc comment here, we
      * use the default documentation from implemented interface.
      */
+    @Override
     public String getTag() {
         return "datefield";
     }
@@ -246,6 +248,7 @@ public class DateField extends AbstractField {
      * comment here, we use the default documentation from implemented
      * interface.
      */
+    @Override
     public void changeVariables(Object source, Map variables) {
         super.changeVariables(source, variables);
 
@@ -333,6 +336,7 @@ public class DateField extends AbstractField {
      * Gets the edited property's type. Don't add a JavaDoc comment here, we use
      * the default documentation from implemented interface.
      */
+    @Override
     public Class getType() {
         return Date.class;
     }
@@ -342,6 +346,7 @@ public class DateField extends AbstractField {
      * add a JavaDoc comment here, we use the default documentation from
      * implemented interface.
      */
+    @Override
     public String toString() {
         final Date value = (Date) getValue();
         if (value != null) {
@@ -354,11 +359,13 @@ public class DateField extends AbstractField {
      * Sets the value of the property. Don't add a JavaDoc comment here, we use
      * the default documentation from implemented interface.
      */
+    @Override
     public void setValue(Object newValue) throws Property.ReadOnlyException,
             Property.ConversionException {
         setValue(newValue, false);
     }
 
+    @Override
     public void setValue(Object newValue, boolean repaintIsNotNeeded)
             throws Property.ReadOnlyException, Property.ConversionException {
 
@@ -383,6 +390,7 @@ public class DateField extends AbstractField {
      * 
      * @see com.itmill.toolkit.data.Property.Viewer#setPropertyDataSource(Property)
      */
+    @Override
     public void setPropertyDataSource(Property newDataSource) {
         if (newDataSource == null
                 || Date.class.isAssignableFrom(newDataSource.getType())) {
index 36a32e1355330e2df2f4aeb8c5d9bc804a1998a3..cf06205cc14495700c7bf58a2f537e20a9de4374 100644 (file)
@@ -103,6 +103,7 @@ public class Embedded extends AbstractComponent {
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "embedded";
     }
@@ -110,6 +111,7 @@ public class Embedded extends AbstractComponent {
     /**
      * Invoked when the component state should be painted.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
 
         switch (type) {
index 6e907b435cc0e073f8720e076970cf9a6d30df35..7f431936ed49ccafbf25fea1759e502eff548960 100644 (file)
@@ -168,11 +168,13 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
     }
 
     /* Documented in interface */
+    @Override
     public String getTag() {
         return "form";
     }
 
     /* Documented in interface */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         super.paintContent(target);
         layout.paint(target);
@@ -191,6 +193,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * the calculation of the error message is separate from validation, because
      * validation fails also on empty errors.
      */
+    @Override
     public ErrorMessage getErrorMessage() {
 
         // Reimplement the checking of validation error by using
@@ -273,6 +276,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * Commit changes to the data source Don't add a JavaDoc comment here, we
      * use the default one from the interface.
      */
+    @Override
     public void commit() throws Buffered.SourceException {
 
         LinkedList problems = null;
@@ -327,6 +331,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * Discards local changes and refresh values from the data source Don't add
      * a JavaDoc comment here, we use the default one from the interface.
      */
+    @Override
     public void discard() throws Buffered.SourceException {
 
         LinkedList problems = null;
@@ -369,6 +374,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * Is the object modified but not committed? Don't add a JavaDoc comment
      * here, we use the default one from the interface.
      */
+    @Override
     public boolean isModified() {
         for (final Iterator i = propertyIds.iterator(); i.hasNext();) {
             final Field f = (Field) fields.get(i.next());
@@ -384,6 +390,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * Is the editor in a read-through mode? Don't add a JavaDoc comment here,
      * we use the default one from the interface.
      */
+    @Override
     public boolean isReadThrough() {
         return readThrough;
     }
@@ -392,6 +399,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * Is the editor in a write-through mode? Don't add a JavaDoc comment here,
      * we use the default one from the interface.
      */
+    @Override
     public boolean isWriteThrough() {
         return writeThrough;
     }
@@ -400,6 +408,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * Sets the editor's read-through mode to the specified status. Don't add a
      * JavaDoc comment here, we use the default one from the interface.
      */
+    @Override
     public void setReadThrough(boolean readThrough) {
         if (readThrough != this.readThrough) {
             this.readThrough = readThrough;
@@ -413,6 +422,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * Sets the editor's read-through mode to the specified status. Don't add a
      * JavaDoc comment here, we use the default one from the interface.
      */
+    @Override
     public void setWriteThrough(boolean writeThrough) {
         if (writeThrough != this.writeThrough) {
             this.writeThrough = writeThrough;
@@ -839,6 +849,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.ui.Component#attach()
      */
+    @Override
     public void attach() {
         super.attach();
         layout.attach();
@@ -849,6 +860,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.ui.Component#detach()
      */
+    @Override
     public void detach() {
         super.detach();
         layout.detach();
@@ -859,6 +871,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.data.Validatable#isValid()
      */
+    @Override
     public boolean isValid() {
         boolean valid = true;
         for (final Iterator i = propertyIds.iterator(); i.hasNext();) {
@@ -872,6 +885,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.data.Validatable#validate()
      */
+    @Override
     public void validate() throws InvalidValueException {
         super.validate();
         for (final Iterator i = propertyIds.iterator(); i.hasNext();) {
@@ -884,6 +898,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.data.Validatable#isInvalidAllowed()
      */
+    @Override
     public boolean isInvalidAllowed() {
         return true;
     }
@@ -893,6 +908,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.data.Validatable#setInvalidAllowed(boolean)
      */
+    @Override
     public void setInvalidAllowed(boolean invalidValueAllowed)
             throws UnsupportedOperationException {
         throw new UnsupportedOperationException();
@@ -903,6 +919,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.ui.Component#setReadOnly(boolean)
      */
+    @Override
     public void setReadOnly(boolean readOnly) {
         super.setReadOnly(readOnly);
         for (final Iterator i = propertyIds.iterator(); i.hasNext();) {
@@ -939,6 +956,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.ui.AbstractField#getType()
      */
+    @Override
     public Class getType() {
         if (getPropertyDataSource() != null) {
             return getPropertyDataSource().getType();
@@ -953,6 +971,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.ui.AbstractField#setInternalValue(java.lang.Object)
      */
+    @Override
     protected void setInternalValue(Object newValue) {
         // Stores the old value
         final Object oldValue = propertyValue;
@@ -1054,6 +1073,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.ui.Component.Focusable#focus()
      */
+    @Override
     public void focus() {
         final Field f = getFirstField();
         if (f != null) {
@@ -1066,6 +1086,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * @see com.itmill.toolkit.ui.Component.Focusable#setTabIndex(int)
      */
+    @Override
     public void setTabIndex(int tabIndex) {
         super.setTabIndex(tabIndex);
         for (final Iterator i = getItemPropertyIds().iterator(); i.hasNext();) {
@@ -1077,6 +1098,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * Setting the form to be immediate also sets all the fields of the form to
      * the same state.
      */
+    @Override
     public void setImmediate(boolean immediate) {
         super.setImmediate(immediate);
         for (Iterator i = fields.values().iterator(); i.hasNext();) {
@@ -1088,6 +1110,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
     }
 
     /** Form is empty if all of its fields are empty. */
+    @Override
     protected boolean isEmpty() {
 
         for (Iterator i = fields.values().iterator(); i.hasNext();) {
@@ -1107,6 +1130,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
      * 
      * Add the validators to form fields instead.
      */
+    @Override
     public void addValidator(Validator validator) {
         throw new UnsupportedOperationException();
     }
@@ -1139,6 +1163,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
         formFooter.setParent(this);
     }
 
+    @Override
     public void setEnabled(boolean enabled) {
         super.setEnabled(enabled);
         if (getParent() != null && !getParent().isEnabled()) {
index d822887fa91c542d221f35adbc9294487b8ff4fe..ddff9fa07ff1eeae51c6b98eda057cf1a13451d2 100644 (file)
@@ -27,6 +27,7 @@ public class FormLayout extends OrderedLayout {
         setMargin(true, false, true, false);
     }
 
+    @Override
     public String getTag() {
         return "formlayout";
     }
index 404955aed433df4b232e97a06f7befb58a3779fa..c2c732a0c0a52d9997082bdab3369a42fdf4c8e0 100644 (file)
@@ -211,7 +211,7 @@ public class GridLayout extends AbstractLayout implements
                 // move one row down, or one row under the area
                 cursorY = (column1 == 0 ? row2 : row1) + 1;
             } else {
-               cursorY = row1;
+                cursorY = row1;
             }
         }
 
index 45ec594acdf19b0caf15e9781a5b1837d8c94f0d..a58e7027e4a381d15710ef953f23456a5ede4fc4 100644 (file)
@@ -148,6 +148,7 @@ public class Label extends AbstractComponent implements Property,
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "label";
     }
@@ -158,6 +159,7 @@ public class Label extends AbstractComponent implements Property,
      * @param readOnly
      *            True to enable read-only mode, False to disable it.
      */
+    @Override
     public void setReadOnly(boolean readOnly) {
         if (dataSource == null) {
             throw new IllegalStateException(DATASOURCE_MUST_BE_SET);
@@ -171,6 +173,7 @@ public class Label extends AbstractComponent implements Property,
      * 
      * @return <code>true</code> if the component is in read only mode.
      */
+    @Override
     public boolean isReadOnly() {
         if (dataSource == null) {
             throw new IllegalStateException(DATASOURCE_MUST_BE_SET);
@@ -186,6 +189,7 @@ public class Label extends AbstractComponent implements Property,
      * @throws PaintException
      *             if the Paint Operation fails.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         if (contentMode != CONTENT_TEXT) {
             target.addAttribute("mode", CONTENT_MODE_NAME[contentMode]);
@@ -244,6 +248,7 @@ public class Label extends AbstractComponent implements Property,
     /**
      * @see java.lang.Object#toString()
      */
+    @Override
     public String toString() {
         if (dataSource == null) {
             throw new IllegalStateException(DATASOURCE_MUST_BE_SET);
index d9e90c547fca85082fd53a5e13b7f3b887a8ab59..50c1470acd22027e568fda88e9a0aadd173d43ad 100644 (file)
@@ -88,6 +88,7 @@ public class Link extends AbstractComponent {
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "link";
     }
@@ -100,6 +101,7 @@ public class Link extends AbstractComponent {
      * @throws PaintException
      *             if the paint operation failed.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
 
         if (resource != null) {
index 96c7a35b0c3c00ad8666653de3d59fb3a7578c07..508ac5085830f9691417df61c1bee4c7758fe5be 100644 (file)
@@ -79,6 +79,7 @@ public class ListSelect extends AbstractSelect {
         }
     }
 
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         target.addAttribute("type", "list");
         // Adds the number of columns
index 12c7fdb455783798819ab7877ab2979d77209d2d..5fab2e1389864f6b0bdd60c7de14cf2bc8dc337e 100644 (file)
@@ -146,6 +146,7 @@ public class LoginForm extends CustomComponent {
                 .getBytes();
     }
 
+    @Override
     public void attach() {
         super.attach();
         getApplication().addResource(loginPage);
@@ -153,6 +154,7 @@ public class LoginForm extends CustomComponent {
         iframe.setSource(loginPage);
     }
 
+    @Override
     public void detach() {
         getApplication().removeResource(loginPage);
         getWindow().removeParameterHandler(paramHandler);
index 38162cf6fdf7b4abde8985892032478e3e5b4a08..af8d6d775244bba0596dbe8f39b507a338a6ae52 100644 (file)
@@ -29,11 +29,13 @@ public class MenuBar extends AbstractComponent {
     private MenuItem moreItem;
 
     /** Tag is the UIDL element name for client-server communications. */
+    @Override
     public java.lang.String getTag() {
         return "menubar";
     }
 
     /** Paint (serialize) the component for the client. */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
 
         // Superclass writes any common attributes in the paint target.
@@ -108,6 +110,7 @@ public class MenuBar extends AbstractComponent {
     }
 
     /** Deserialize changes received from client. */
+    @Override
     public void changeVariables(Object source, Map variables) {
         Stack items = new Stack();
         boolean found = false;
index c87deb38f4644b799359f8ce85a1618502087d1c..2cd78ac69924d7ad991f84dca71dd3185069f764 100644 (file)
@@ -59,6 +59,7 @@ public class NativeSelect extends AbstractSelect {
         return columns;
     }
 
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         target.addAttribute("type", "native");
         // Adds the number of columns
@@ -69,6 +70,7 @@ public class NativeSelect extends AbstractSelect {
         super.paintContent(target);
     }
 
+    @Override
     public void setMultiSelect(boolean multiSelect)
             throws UnsupportedOperationException {
         if (multiSelect == true) {
@@ -76,6 +78,7 @@ public class NativeSelect extends AbstractSelect {
         }
     }
 
+    @Override
     public void setNewItemsAllowed(boolean allowNewOptions)
             throws UnsupportedOperationException {
         if (allowNewOptions == true) {
index e7e5b515d9a877da7ab23dc1997252bbae59fe43..2ebaaea3ea1483d17f76d6c28e46ca3b3280e53d 100644 (file)
@@ -31,6 +31,7 @@ public class OptionGroup extends AbstractSelect {
         super(caption);
     }
 
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         target.addAttribute("type", "optiongroup");
         super.paintContent(target);
index 99c29902d400a7f8b5bfb8ed8b24c985c12dbc9b..1847e4eada76dc93b4ca1ed13385a675d937354d 100644 (file)
@@ -146,6 +146,7 @@ public class PopupView extends AbstractComponentContainer {
      * @see com.itmill.toolkit.ui.AbstractComponentContainer#removeAllComponents()
      * @throws UnsupportedOperationException
      */
+    @Override
     public void removeAllComponents() {
         throw new UnsupportedOperationException();
     }
@@ -156,6 +157,7 @@ public class PopupView extends AbstractComponentContainer {
      * @see com.itmill.toolkit.ui.AbstractComponentContainer#moveComponentsFrom(com.itmill.toolkit.ui.ComponentContainer)
      * @throws UnsupportedOperationException
      */
+    @Override
     public void moveComponentsFrom(ComponentContainer source)
             throws UnsupportedOperationException {
 
@@ -168,6 +170,7 @@ public class PopupView extends AbstractComponentContainer {
      * @see com.itmill.toolkit.ui.AbstractComponentContainer#addComponent(com.itmill.toolkit.ui.Component)
      * @throws UnsupportedOperationException
      */
+    @Override
     public void addComponent(Component c) throws UnsupportedOperationException {
         throw new UnsupportedOperationException();
 
@@ -191,6 +194,7 @@ public class PopupView extends AbstractComponentContainer {
      * 
      * @see com.itmill.toolkit.ui.AbstractComponentContainer#removeComponent(com.itmill.toolkit.ui.Component)
      */
+    @Override
     public void removeComponent(Component c)
             throws UnsupportedOperationException {
         throw new UnsupportedOperationException();
@@ -204,6 +208,7 @@ public class PopupView extends AbstractComponentContainer {
     /**
      * @see com.itmill.toolkit.ui.AbstractComponent#getTag()
      */
+    @Override
     public java.lang.String getTag() {
         return "popupview";
     }
@@ -213,6 +218,7 @@ public class PopupView extends AbstractComponentContainer {
      * 
      * @see com.itmill.toolkit.ui.AbstractComponent#paintContent(com.itmill.toolkit.terminal.PaintTarget)
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         // Superclass writes any common attributes in the paint target.
         super.paintContent(target);
@@ -256,6 +262,7 @@ public class PopupView extends AbstractComponentContainer {
      * @see com.itmill.toolkit.ui.AbstractComponent#changeVariables(java.lang.Object,
      *      java.util.Map)
      */
+    @Override
     public void changeVariables(Object source, Map variables) {
         if (variables.containsKey("popupVisibility")) {
 
index 4b7104251c53fdc5636213f4e5e482c2f192e23e..ea788ac0b2db584978f6aaab82e3d02d65afe054 100644 (file)
@@ -74,6 +74,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "progressindicator";
     }
@@ -85,6 +86,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * @param readOnly
      *            True to enable read-only mode, False to disable it.
      */
+    @Override
     public void setReadOnly(boolean readOnly) {
         if (dataSource == null) {
             throw new IllegalStateException("Datasource must be se");
@@ -98,6 +100,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * 
      * @return True if the component is in read only mode.
      */
+    @Override
     public boolean isReadOnly() {
         if (dataSource == null) {
             throw new IllegalStateException("Datasource must be se");
@@ -113,6 +116,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * @throws PaintException
      *             if the Paint Operation fails.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         target.addAttribute("indeterminate", indeterminate);
         target.addAttribute("pollinginterval", pollingInterval);
@@ -126,6 +130,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * @return the Value of the ProgressIndicator.
      * @see com.itmill.toolkit.ui.AbstractField#getValue()
      */
+    @Override
     public Object getValue() {
         if (dataSource == null) {
             throw new IllegalStateException("Datasource must be se");
@@ -141,6 +146,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      *            the New value of the ProgressIndicator.
      * @see com.itmill.toolkit.ui.AbstractField#setValue(java.lang.Object)
      */
+    @Override
     public void setValue(Object newValue) {
         if (dataSource == null) {
             throw new IllegalStateException("Datasource must be se");
@@ -151,6 +157,7 @@ public class ProgressIndicator extends AbstractField implements Property,
     /**
      * @see com.itmill.toolkit.ui.AbstractField#toString()
      */
+    @Override
     public String toString() {
         if (dataSource == null) {
             throw new IllegalStateException("Datasource must be se");
@@ -161,6 +168,7 @@ public class ProgressIndicator extends AbstractField implements Property,
     /**
      * @see com.itmill.toolkit.ui.AbstractField#getType()
      */
+    @Override
     public Class getType() {
         if (dataSource == null) {
             throw new IllegalStateException("Datasource must be se");
@@ -174,6 +182,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * @return the datasource.
      * @see com.itmill.toolkit.ui.AbstractField#getPropertyDataSource()
      */
+    @Override
     public Property getPropertyDataSource() {
         return dataSource;
     }
@@ -185,6 +194,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      *            the new data source.
      * @see com.itmill.toolkit.ui.AbstractField#setPropertyDataSource(com.itmill.toolkit.data.Property)
      */
+    @Override
     public void setPropertyDataSource(Property newDataSource) {
         // Stops listening the old data source changes
         if (dataSource != null
index 48a1217fdd7d3c0894352683cacbd6c793bcd594..a778155b75baa02f6252449f4dd184c9330bd533 100644 (file)
@@ -86,6 +86,7 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering {
      * @throws PaintException
      *             if the paint operation failed.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         if (isMultiSelect()) {
             // background compatibility hack. This object shouldn't be used for
@@ -326,6 +327,7 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering {
      * @see com.itmill.toolkit.ui.AbstractComponent#changeVariables(java.lang.Object,
      *      java.util.Map)
      */
+    @Override
     public void changeVariables(Object source, Map variables) {
 
         // Selection change
@@ -406,6 +408,7 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering {
 
     }
 
+    @Override
     public void requestRepaint() {
         super.requestRepaint();
         optionRequest = false;
@@ -422,6 +425,7 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering {
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "select";
     }
@@ -447,6 +451,7 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering {
      * @param columns
      *            the number of columns to set.
      */
+    @Deprecated
     public void setColumns(int columns) {
         if (columns < 0) {
             columns = 0;
@@ -462,6 +467,7 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering {
      * @deprecated see setter function
      * @return
      */
+    @Deprecated
     public int getColumns() {
         return columns;
     }
index 5123232097679492837a157019b6ffa5a92cb312..aaefc2116357b57f22d3d570a98fc28075780713 100644 (file)
@@ -81,6 +81,7 @@ public class Slider extends AbstractField {
      * \r
      * @deprecated\r
      */\r
+    @Deprecated\r
     private int size = -1;\r
 \r
     /**\r
@@ -326,6 +327,7 @@ public class Slider extends AbstractField {
      * @return size in pixels or -1 for auto sizing.\r
      * @deprecated use standard getWidth/getHeight instead\r
      */\r
+    @Deprecated\r
     public int getSize() {\r
         return size;\r
     }\r
@@ -337,6 +339,7 @@ public class Slider extends AbstractField {
      *            in pixels, or -1 auto sizing.\r
      * @deprecated use standard setWidth/setHeight instead\r
      */\r
+    @Deprecated\r
     public void setSize(int size) {\r
         this.size = size;\r
         switch (orientation) {\r
@@ -395,10 +398,12 @@ public class Slider extends AbstractField {
         * public boolean isArrowsVisible() { return arrows; }\r
         */\r
 \r
+    @Override\r
     public String getTag() {\r
         return "slider";\r
     }\r
 \r
+    @Override\r
     public void paintContent(PaintTarget target) throws PaintException {\r
         super.paintContent(target);\r
 \r
@@ -444,6 +449,7 @@ public class Slider extends AbstractField {
      * @param source\r
      * @param variables\r
      */\r
+    @Override\r
     public void changeVariables(Object source, Map variables) {\r
         super.changeVariables(source, variables);\r
         if (variables.containsKey("value")) {\r
@@ -499,6 +505,7 @@ public class Slider extends AbstractField {
 \r
     }\r
 \r
+    @Override\r
     public Class getType() {\r
         return Double.class;\r
     }\r
index f334761766322bb96102a973cbba88fa6276f9c5..b35e683adf2f8c37fd5b1d3e92fb6ab075c6927a 100644 (file)
@@ -71,6 +71,7 @@ public class TabSheet extends AbstractComponentContainer implements
      * @param c
      *            the component to be removed.
      */
+    @Override
     public void removeComponent(Component c) {
         if (c != null && tabs.contains(c)) {
             super.removeComponent(c);
@@ -95,6 +96,7 @@ public class TabSheet extends AbstractComponentContainer implements
      * @param c
      *            the component to be added.
      */
+    @Override
     public void addComponent(Component c) {
         addTab(c);
     }
@@ -147,6 +149,7 @@ public class TabSheet extends AbstractComponentContainer implements
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "tabsheet";
     }
@@ -158,6 +161,7 @@ public class TabSheet extends AbstractComponentContainer implements
      * @param source
      *            the container components are removed from.
      */
+    @Override
     public void moveComponentsFrom(ComponentContainer source) {
         for (final Iterator i = source.getComponentIterator(); i.hasNext();) {
             final Component c = (Component) i.next();
@@ -181,6 +185,7 @@ public class TabSheet extends AbstractComponentContainer implements
      * @throws PaintException
      *             if the paint operation failed.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
 
         if (areTabsHidden()) {
@@ -343,6 +348,7 @@ public class TabSheet extends AbstractComponentContainer implements
      * @see com.itmill.toolkit.ui.AbstractComponent#changeVariables(java.lang.Object,
      *      java.util.Map)
      */
+    @Override
     public void changeVariables(Object source, Map variables) {
         if (variables.containsKey("selected")) {
             setSelectedTab((Component) keyMapper.get((String) variables
@@ -523,6 +529,7 @@ public class TabSheet extends AbstractComponentContainer implements
         }
     }
 
+    @Override
     public void detach() {
         super.detach();
         paintedTabs.clear();
index 2def948c5aa635b85011ff29869aca598ee03af5..c43033da9c084f9f82f98d07fd7c1fc5eef4ccb1 100644 (file)
@@ -189,6 +189,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
         return true;
     }
 
+    @Override
     public void requestRepaint() {
         super.requestRepaint();
         partialUpdate = false;
@@ -320,6 +321,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
      * 
      * @see com.itmill.toolkit.ui.AbstractComponent#getTag()
      */
+    @Override
     public String getTag() {
         return "tree";
     }
@@ -331,6 +333,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
      * @see com.itmill.toolkit.terminal.VariableOwner#changeVariables(Object
      *      source, Map variables)
      */
+    @Override
     public void changeVariables(Object source, Map variables) {
 
         if (clickListenerCount > 0 && variables.containsKey("clickedKey")) {
@@ -404,6 +407,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
      * 
      * @see com.itmill.toolkit.ui.AbstractComponent#paintContent(PaintTarget)
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         initialPaint = false;
 
@@ -677,6 +681,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
      * 
      * @see com.itmill.toolkit.data.Container.Viewer#setContainerDataSource(Container)
      */
+    @Override
     public void setContainerDataSource(Container newDataSource) {
         if (newDataSource == null) {
             // Note: using wrapped IndexedContainer to match constructor (super
@@ -926,6 +931,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
      * 
      * @see com.itmill.toolkit.ui.Select#getVisibleItemIds()
      */
+    @Override
     public Collection getVisibleItemIds() {
 
         final LinkedList visible = new LinkedList();
@@ -969,6 +975,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
      * 
      * @see com.itmill.toolkit.ui.AbstractSelect#setNullSelectionItemId(java.lang.Object)
      */
+    @Override
     public void setNullSelectionItemId(Object nullSelectionItemId)
             throws UnsupportedOperationException {
         if (nullSelectionItemId != null) {
@@ -984,6 +991,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
      *             if set to true.
      * @see com.itmill.toolkit.ui.Select#setNewItemsAllowed(boolean)
      */
+    @Override
     public void setNewItemsAllowed(boolean allowNewOptions)
             throws UnsupportedOperationException {
         if (allowNewOptions) {
@@ -998,6 +1006,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
      *             if invoked.
      * @see com.itmill.toolkit.ui.AbstractField#focus()
      */
+    @Override
     public void focus() throws UnsupportedOperationException {
         throw new UnsupportedOperationException();
     }
index ec0a1ab7bd019f5e02877e84f1c72f8c939504ec..0876ec81d8fd356483425f5db18b95e8187d7b01 100644 (file)
@@ -97,6 +97,7 @@ public class TwinColSelect extends AbstractSelect {
         setMultiSelect(true);
     }
 
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         target.addAttribute("type", "twincol");
         // Adds the number of columns
index 43b9274ec5a85a6ded0595cf147045af3561e138..a6fe4df8730d10cffab47629e314742bd6d48396 100644 (file)
@@ -103,6 +103,7 @@ public class Upload extends AbstractComponent implements Component.Focusable {
      * 
      * @return Component type as string.
      */
+    @Override
     public String getTag() {
         return "upload";
     }
@@ -190,6 +191,7 @@ public class Upload extends AbstractComponent implements Component.Focusable {
      * @see com.itmill.toolkit.ui.AbstractComponent#changeVariables(java.lang.Object,
      *      java.util.Map)
      */
+    @Override
     public void changeVariables(Object source, Map variables) {
         // NOP
 
@@ -203,6 +205,7 @@ public class Upload extends AbstractComponent implements Component.Focusable {
      * @throws PaintException
      *             if the paint operation failed.
      */
+    @Override
     public void paintContent(PaintTarget target) throws PaintException {
         // The field should be focused
         if (focus) {
@@ -943,6 +946,7 @@ public class Upload extends AbstractComponent implements Component.Focusable {
      * @deprecated Use addListener(ProgressListener) instead.
      * @param progressListener
      */
+    @Deprecated
     public void setProgressListener(ProgressListener progressListener) {
         this.progressListener = progressListener;
     }
@@ -954,6 +958,7 @@ public class Upload extends AbstractComponent implements Component.Focusable {
      * @return listener
      * 
      */
+    @Deprecated
     public ProgressListener getProgressListener() {
         return progressListener;
     }
@@ -996,6 +1001,7 @@ public class Upload extends AbstractComponent implements Component.Focusable {
      * 
      * @see com.itmill.toolkit.ui.Component#attach()
      */
+    @Override
     public void attach() {
         super.attach();
         if (delayedFocus) {
index f255d717d206a9fe7926c09155609304685af7e6..fd8e9ce9026ccd2452d4ecb996407a8a2b6fb7b8 100644 (file)
@@ -201,6 +201,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
      * 
      * @return the parent window of the component.
      */
+    @Override
     public final Window getWindow() {
         return this;
     }
@@ -212,6 +213,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
      * 
      * @return the parent application of the component.
      */
+    @Override
     public final Application getApplication() {
         if (getParent() == null) {
             return application;
@@ -235,6 +237,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
      * 
      * @return the Value of property parent.
      */
+    @Override
     public final Component getParent() {
         return super.getParent();
     }
@@ -250,6 +253,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
      * @param parent
      *            the New value of property parent.
      */
+    @Override
     public void setParent(Component parent) {
         super.setParent(parent);
     }
@@ -259,6 +263,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
      * 
      * @return the Component UIDL tag as string.
      */
+    @Override
     public String getTag() {
         return "window";
     }
@@ -467,6 +472,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
      * @throws PaintException
      *             if the paint operation failed.
      */
+    @Override
     public synchronized void paintContent(PaintTarget target)
             throws PaintException {
 
@@ -846,6 +852,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
      * @see com.itmill.toolkit.terminal.VariableOwner#changeVariables(java.lang.Object,
      *      java.util.Map)
      */
+    @Override
     public void changeVariables(Object source, Map variables) {
         super.changeVariables(source, variables);
 
@@ -1411,6 +1418,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
          * @deprecated Use {@link #getDescription()} instead.
          * @return
          */
+        @Deprecated
         public String getMessage() {
             return description;
         }
@@ -1419,6 +1427,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
          * @deprecated Use {@link #setDescription(String)} instead.
          * @param description
          */
+        @Deprecated
         public void setMessage(String description) {
             this.description = description;
         }