From: Henri Sara Date: Mon, 25 May 2009 09:09:58 +0000 (+0000) Subject: #2643 fix some demo warnings (mostly serialization related) X-Git-Tag: 6.7.0.beta1~2787 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2bc6c9decca4449717d52ddce428dc8f00769028;p=vaadin-framework.git #2643 fix some demo warnings (mostly serialization related) svn changeset:7985/svn branch:6.0 --- diff --git a/src/com/vaadin/demo/Calc.java b/src/com/vaadin/demo/Calc.java index 3691434375..d2a0d3e25a 100644 --- a/src/com/vaadin/demo/Calc.java +++ b/src/com/vaadin/demo/Calc.java @@ -8,6 +8,7 @@ import com.vaadin.ui.Window; // Calculator is created by extending Application-class. Application is // deployed by adding ApplicationServlet to web.xml and this class as // "application" parameter to the servlet. +@SuppressWarnings("serial") public class Calc extends com.vaadin.Application { // Calculation data model is automatically stored in the user session diff --git a/src/com/vaadin/demo/HelloWorld.java b/src/com/vaadin/demo/HelloWorld.java index 36862545ea..4a1042709d 100644 --- a/src/com/vaadin/demo/HelloWorld.java +++ b/src/com/vaadin/demo/HelloWorld.java @@ -3,6 +3,7 @@ package com.vaadin.demo; import com.vaadin.ui.Label; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class HelloWorld extends com.vaadin.Application { /** diff --git a/src/com/vaadin/demo/PortletDemo.java b/src/com/vaadin/demo/PortletDemo.java index 9e75e20a56..78034f8eac 100644 --- a/src/com/vaadin/demo/PortletDemo.java +++ b/src/com/vaadin/demo/PortletDemo.java @@ -29,6 +29,7 @@ import com.vaadin.ui.Window.Notification; * @author marc * */ +@SuppressWarnings("serial") public class PortletDemo extends Application { Window main = new Window(); @@ -38,6 +39,7 @@ public class PortletDemo extends Application { Link portletMax = new Link(); Link someAction = null; + @Override public void init() { main = new Window(); setMainWindow(main); diff --git a/src/com/vaadin/demo/colorpicker/ColorPicker.java b/src/com/vaadin/demo/colorpicker/ColorPicker.java index 60f2807f1f..520a99d04a 100644 --- a/src/com/vaadin/demo/colorpicker/ColorPicker.java +++ b/src/com/vaadin/demo/colorpicker/ColorPicker.java @@ -10,6 +10,7 @@ import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.ui.AbstractField; +@SuppressWarnings("serial") public class ColorPicker extends AbstractField { public ColorPicker() { diff --git a/src/com/vaadin/demo/colorpicker/ColorPickerApplication.java b/src/com/vaadin/demo/colorpicker/ColorPickerApplication.java index a5df17607d..f604702a24 100644 --- a/src/com/vaadin/demo/colorpicker/ColorPickerApplication.java +++ b/src/com/vaadin/demo/colorpicker/ColorPickerApplication.java @@ -15,6 +15,7 @@ import com.vaadin.ui.Button.ClickEvent; * Demonstration application that shows how to use a simple custom client-side * GWT component, the ColorPicker. */ +@SuppressWarnings("serial") public class ColorPickerApplication extends com.vaadin.Application { Window main = new Window("Color Picker Demo"); diff --git a/src/com/vaadin/demo/coverflow/Coverflow.java b/src/com/vaadin/demo/coverflow/Coverflow.java index 5c8e9403c2..dfd2b4fbe6 100644 --- a/src/com/vaadin/demo/coverflow/Coverflow.java +++ b/src/com/vaadin/demo/coverflow/Coverflow.java @@ -8,33 +8,39 @@ import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.ui.AbstractSelect; +@SuppressWarnings("serial") public class Coverflow extends AbstractSelect { - private String backgroundGradientStart = "FFFFFF"; - private String backgroundGradientEnd = "EEEEEE"; - private boolean scrollbarVisibility = true; - + private String backgroundGradientStart = "FFFFFF"; + private String backgroundGradientEnd = "EEEEEE"; + private boolean scrollbarVisibility = true; + + @Override public String getTag() { - return "cover"; + return "cover"; } - + /** * Paints the uidl - * @param PaintTarget target + * + * @param PaintTarget + * target * @throws PaintException */ + @Override public void paintContent(PaintTarget target) throws PaintException { // Superclass writes any common attributes in the paint target. super.paintContent(target); - + target.addAttribute("backgroundGradientStart", backgroundGradientStart); target.addAttribute("backgroundGradientEnd", backgroundGradientEnd); target.addAttribute("scrollbarVisibility", scrollbarVisibility); } - + /** - * The user can specify a background gradient for the coverflow. The input values - * are RGB values for the start and end gradients. + * The user can specify a background gradient for the coverflow. The input + * values are RGB values for the start and end gradients. + * * @param int startR * @param int startG * @param int startB @@ -42,48 +48,63 @@ public class Coverflow extends AbstractSelect { * @param int endG * @param int endB */ - public void setBackgroundColor(int startR, int startG, int startB, int endR, int endG, int endB) { - backgroundGradientStart = ""; - backgroundGradientEnd = ""; - - // Convert all integers to hexadecimal format and make sure they are two characters long (in - // other words, add a zero infront if the value is less than 16 => 0x0F - if(startR < 16) - backgroundGradientStart += "0"; - backgroundGradientStart += Integer.toHexString(Math.max(Math.min(startR,255),0)); - - if(startG < 16) - backgroundGradientStart += "0"; - backgroundGradientStart += Integer.toHexString(Math.max(Math.min(startG,255),0)); - - if(startB < 16) - backgroundGradientStart += "0"; - backgroundGradientStart += Integer.toHexString(Math.max(Math.min(startB,255),0)); - - if(endR < 16) - backgroundGradientEnd += "0"; - backgroundGradientEnd += Integer.toHexString(Math.max(Math.min(endR,255),0)); - - if(endG < 16) - backgroundGradientEnd += "0"; - backgroundGradientEnd += Integer.toHexString(Math.max(Math.min(endG,255),0)); - - if(endB < 16) - backgroundGradientEnd += "0"; - backgroundGradientEnd += Integer.toHexString(Math.max(Math.min(endB,255),0)); - - this.requestRepaint(); + public void setBackgroundColor(int startR, int startG, int startB, + int endR, int endG, int endB) { + backgroundGradientStart = ""; + backgroundGradientEnd = ""; + + // Convert all integers to hexadecimal format and make sure they are two + // characters long (in other words, add a zero in front if the value is + // less than 16 => 0x0F) + if (startR < 16) { + backgroundGradientStart += "0"; + } + backgroundGradientStart += Integer.toHexString(Math.max(Math.min( + startR, 255), 0)); + + if (startG < 16) { + backgroundGradientStart += "0"; + } + backgroundGradientStart += Integer.toHexString(Math.max(Math.min( + startG, 255), 0)); + + if (startB < 16) { + backgroundGradientStart += "0"; + } + backgroundGradientStart += Integer.toHexString(Math.max(Math.min( + startB, 255), 0)); + + if (endR < 16) { + backgroundGradientEnd += "0"; + } + backgroundGradientEnd += Integer.toHexString(Math.max(Math.min(endR, + 255), 0)); + + if (endG < 16) { + backgroundGradientEnd += "0"; + } + backgroundGradientEnd += Integer.toHexString(Math.max(Math.min(endG, + 255), 0)); + + if (endB < 16) { + backgroundGradientEnd += "0"; + } + backgroundGradientEnd += Integer.toHexString(Math.max(Math.min(endB, + 255), 0)); + + requestRepaint(); } - + /** * The user can toggle the visibility of the scrollbar + * * @param boolean visible */ public void setScrollbarVisibility(boolean visible) { - if(scrollbarVisibility != visible) { - scrollbarVisibility = visible; - this.requestRepaint(); - } + if (scrollbarVisibility != visible) { + scrollbarVisibility = visible; + requestRepaint(); + } } - + } diff --git a/src/com/vaadin/demo/coverflow/CoverflowApplication.java b/src/com/vaadin/demo/coverflow/CoverflowApplication.java index 25b5ddaa64..850737f544 100644 --- a/src/com/vaadin/demo/coverflow/CoverflowApplication.java +++ b/src/com/vaadin/demo/coverflow/CoverflowApplication.java @@ -21,10 +21,12 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class CoverflowApplication extends com.vaadin.Application { Coverflow covers = new Coverflow(); + @Override public void init() { setMainWindow(new Window("Coverflow", createMainLayout())); @@ -48,7 +50,7 @@ public class CoverflowApplication extends com.vaadin.Application { final Embedded visibleSlide = new Embedded(); visibleSlide.setHeight("480px"); slidePanel.addComponent(visibleSlide); - ((VerticalLayout) slidePanel.getLayout()).setComponentAlignment( + ((VerticalLayout) slidePanel.getContent()).setComponentAlignment( visibleSlide, "center"); // Listen to coverflow changes as change slides when needed diff --git a/src/com/vaadin/demo/coverflow/gwt/client/CoverflowWidgetSet.java b/src/com/vaadin/demo/coverflow/gwt/client/CoverflowWidgetSet.java index e9fc76dae8..b6f0434f3e 100644 --- a/src/com/vaadin/demo/coverflow/gwt/client/CoverflowWidgetSet.java +++ b/src/com/vaadin/demo/coverflow/gwt/client/CoverflowWidgetSet.java @@ -11,6 +11,7 @@ import com.vaadin.terminal.gwt.client.UIDL; public class CoverflowWidgetSet extends DefaultWidgetSet { /** Creates a widget according to its class name. */ + @Override public Paintable createWidget(UIDL uidl) { final Class classType = resolveWidgetType(uidl); if (VCoverflow.class == classType) { @@ -22,6 +23,7 @@ public class CoverflowWidgetSet extends DefaultWidgetSet { } /** Resolves UIDL tag name to class . */ + @Override protected Class resolveWidgetType(UIDL uidl) { final String tag = uidl.getTag(); if ("cover".equals(tag)) { diff --git a/src/com/vaadin/demo/featurebrowser/AccordionExample.java b/src/com/vaadin/demo/featurebrowser/AccordionExample.java index 8894f011e3..8fb2c95d62 100644 --- a/src/com/vaadin/demo/featurebrowser/AccordionExample.java +++ b/src/com/vaadin/demo/featurebrowser/AccordionExample.java @@ -10,6 +10,7 @@ import com.vaadin.ui.VerticalLayout; * Accordion is a derivative of TabSheet, a vertical tabbed layout that places * the tab contents between the vertical tabs. */ +@SuppressWarnings("serial") public class AccordionExample extends CustomComponent { public AccordionExample() { // Create a new accordion diff --git a/src/com/vaadin/demo/featurebrowser/ButtonExample.java b/src/com/vaadin/demo/featurebrowser/ButtonExample.java index d0e40363bf..f67d6f4c7b 100644 --- a/src/com/vaadin/demo/featurebrowser/ButtonExample.java +++ b/src/com/vaadin/demo/featurebrowser/ButtonExample.java @@ -21,6 +21,7 @@ import com.vaadin.ui.Button.ClickEvent; * * @author IT Mill Ltd. */ +@SuppressWarnings("serial") public class ButtonExample extends CustomComponent implements Button.ClickListener { diff --git a/src/com/vaadin/demo/featurebrowser/ClientCachingExample.java b/src/com/vaadin/demo/featurebrowser/ClientCachingExample.java index 4f8cad2448..ad840c84c3 100644 --- a/src/com/vaadin/demo/featurebrowser/ClientCachingExample.java +++ b/src/com/vaadin/demo/featurebrowser/ClientCachingExample.java @@ -21,6 +21,7 @@ import com.vaadin.ui.VerticalLayout; * * @author IT Mill Ltd. */ +@SuppressWarnings("serial") public class ClientCachingExample extends CustomComponent { private static final String msg = "This example is a (simple) demonstration of client-side caching." diff --git a/src/com/vaadin/demo/featurebrowser/ComboBoxExample.java b/src/com/vaadin/demo/featurebrowser/ComboBoxExample.java index a28d16e597..60ccd23f27 100644 --- a/src/com/vaadin/demo/featurebrowser/ComboBoxExample.java +++ b/src/com/vaadin/demo/featurebrowser/ComboBoxExample.java @@ -14,6 +14,7 @@ import com.vaadin.ui.AbstractSelect.Filtering; /** * */ +@SuppressWarnings("serial") public class ComboBoxExample extends CustomComponent { private static final String[] firstnames = new String[] { "John", "Mary", diff --git a/src/com/vaadin/demo/featurebrowser/EmbeddedBrowserExample.java b/src/com/vaadin/demo/featurebrowser/EmbeddedBrowserExample.java index 5093a12d32..641838dfdd 100644 --- a/src/com/vaadin/demo/featurebrowser/EmbeddedBrowserExample.java +++ b/src/com/vaadin/demo/featurebrowser/EmbeddedBrowserExample.java @@ -21,6 +21,7 @@ import com.vaadin.ui.Window.Notification; * @author IT Mill Ltd. * @see com.vaadin.ui.Window */ +@SuppressWarnings("serial") public class EmbeddedBrowserExample extends VerticalLayout implements Select.ValueChangeListener { diff --git a/src/com/vaadin/demo/featurebrowser/FeatureBrowser.java b/src/com/vaadin/demo/featurebrowser/FeatureBrowser.java index 1b06f43a5d..45da691988 100644 --- a/src/com/vaadin/demo/featurebrowser/FeatureBrowser.java +++ b/src/com/vaadin/demo/featurebrowser/FeatureBrowser.java @@ -36,6 +36,7 @@ import com.vaadin.ui.Button.ClickEvent; * @author IT Mill Ltd. * @see com.vaadin.ui.Window */ +@SuppressWarnings("serial") public class FeatureBrowser extends com.vaadin.Application implements Select.ValueChangeListener { @@ -126,7 +127,7 @@ public class FeatureBrowser extends com.vaadin.Application implements final SplitPanel split = new SplitPanel( SplitPanel.ORIENTATION_HORIZONTAL); split.setSplitPosition(200, SplitPanel.UNITS_PIXELS); - main.setLayout(split); + main.setContent(split); final HashMap sectionIds = new HashMap(); final HierarchicalContainer container = createContainer(); @@ -218,7 +219,7 @@ public class FeatureBrowser extends com.vaadin.Application implements Window w = new Window(caption); w.setWidth("640px"); if (Layout.class.isAssignableFrom(component.getClass())) { - w.setLayout((Layout) component); + w.setContent((Layout) component); } else { // w.getLayout().getSize().setSizeFull(); w.addComponent(component); @@ -244,7 +245,7 @@ public class FeatureBrowser extends com.vaadin.Application implements w = new Window(caption); w.setName(caption); if (Layout.class.isAssignableFrom(component.getClass())) { - w.setLayout((Layout) component); + w.setContent((Layout) component); } else { // w.getLayout().getSize().setSizeFull(); w.addComponent(component); diff --git a/src/com/vaadin/demo/featurebrowser/FormExample.java b/src/com/vaadin/demo/featurebrowser/FormExample.java index e0888975b5..52a2a98d80 100644 --- a/src/com/vaadin/demo/featurebrowser/FormExample.java +++ b/src/com/vaadin/demo/featurebrowser/FormExample.java @@ -25,6 +25,7 @@ import com.vaadin.ui.Button.ClickListener; * more complex than real use, as it tries to demonstrate more features than * needed in general case. */ +@SuppressWarnings("serial") public class FormExample extends CustomComponent { static final String cities[] = { "Amsterdam", "Berlin", "Helsinki", diff --git a/src/com/vaadin/demo/featurebrowser/GeneratedColumnExample.java b/src/com/vaadin/demo/featurebrowser/GeneratedColumnExample.java index e6a1edf088..cbb543722c 100644 --- a/src/com/vaadin/demo/featurebrowser/GeneratedColumnExample.java +++ b/src/com/vaadin/demo/featurebrowser/GeneratedColumnExample.java @@ -36,6 +36,7 @@ import com.vaadin.ui.Button.ClickListener; * * @author magi */ +@SuppressWarnings("serial") public class GeneratedColumnExample extends CustomComponent { /** * The business model: fill-up at a gas station. diff --git a/src/com/vaadin/demo/featurebrowser/JavaScriptAPIExample.java b/src/com/vaadin/demo/featurebrowser/JavaScriptAPIExample.java index 06b3815d9a..70ff20daac 100644 --- a/src/com/vaadin/demo/featurebrowser/JavaScriptAPIExample.java +++ b/src/com/vaadin/demo/featurebrowser/JavaScriptAPIExample.java @@ -20,6 +20,7 @@ import com.vaadin.ui.Button.ClickEvent; * An example using a RichTextArea to edit a Label in XHTML-mode. * */ +@SuppressWarnings("serial") public class JavaScriptAPIExample extends CustomComponent { public static final String txt = "

For advanced client side programmers Vaadin offers a simple method which can be used to force sync client with server. This may be needed for example if another part of a mashup changes things on server.

(more examples will be added here as the APIs are made public)

javascript:vaadin.forceSync();"; diff --git a/src/com/vaadin/demo/featurebrowser/LabelExample.java b/src/com/vaadin/demo/featurebrowser/LabelExample.java index 1d197455c8..0e89cbd77d 100644 --- a/src/com/vaadin/demo/featurebrowser/LabelExample.java +++ b/src/com/vaadin/demo/featurebrowser/LabelExample.java @@ -15,6 +15,7 @@ import com.vaadin.ui.Panel; * * @author IT Mill Ltd. */ +@SuppressWarnings("serial") public class LabelExample extends CustomComponent { private static final String xhtml = "This text has HTML formatting.
" diff --git a/src/com/vaadin/demo/featurebrowser/LayoutExample.java b/src/com/vaadin/demo/featurebrowser/LayoutExample.java index d6f8e82070..34152c9c86 100644 --- a/src/com/vaadin/demo/featurebrowser/LayoutExample.java +++ b/src/com/vaadin/demo/featurebrowser/LayoutExample.java @@ -17,6 +17,7 @@ import com.vaadin.ui.VerticalLayout; * * @author IT Mill Ltd. */ +@SuppressWarnings("serial") public class LayoutExample extends CustomComponent { public LayoutExample() { diff --git a/src/com/vaadin/demo/featurebrowser/NotificationExample.java b/src/com/vaadin/demo/featurebrowser/NotificationExample.java index 4c796d7b48..73b94c5577 100644 --- a/src/com/vaadin/demo/featurebrowser/NotificationExample.java +++ b/src/com/vaadin/demo/featurebrowser/NotificationExample.java @@ -23,6 +23,7 @@ import com.vaadin.ui.Button.ClickListener; * @author IT Mill Ltd. * @see com.vaadin.ui.Window */ +@SuppressWarnings("serial") public class NotificationExample extends CustomComponent { // Dropdown select for notification type, using the native dropdown diff --git a/src/com/vaadin/demo/featurebrowser/RichTextExample.java b/src/com/vaadin/demo/featurebrowser/RichTextExample.java index d3f4315830..eb5b2e4279 100644 --- a/src/com/vaadin/demo/featurebrowser/RichTextExample.java +++ b/src/com/vaadin/demo/featurebrowser/RichTextExample.java @@ -16,6 +16,7 @@ import com.vaadin.ui.Button.ClickEvent; * An example using a RichTextArea to edit a Label in XHTML-mode. * */ +@SuppressWarnings("serial") public class RichTextExample extends CustomComponent { public static final String txt = "

RichText editor example

" diff --git a/src/com/vaadin/demo/featurebrowser/SelectExample.java b/src/com/vaadin/demo/featurebrowser/SelectExample.java index 44a5343784..38183a946b 100644 --- a/src/com/vaadin/demo/featurebrowser/SelectExample.java +++ b/src/com/vaadin/demo/featurebrowser/SelectExample.java @@ -22,6 +22,7 @@ import com.vaadin.ui.VerticalLayout; * * @author IT Mill Ltd. */ +@SuppressWarnings("serial") public class SelectExample extends CustomComponent { // listener that shows a value change notification diff --git a/src/com/vaadin/demo/featurebrowser/TableExample.java b/src/com/vaadin/demo/featurebrowser/TableExample.java index 1c9ac6c2d8..057bf380b5 100644 --- a/src/com/vaadin/demo/featurebrowser/TableExample.java +++ b/src/com/vaadin/demo/featurebrowser/TableExample.java @@ -25,6 +25,7 @@ import com.vaadin.ui.Button.ClickEvent; * * @author IT Mill Ltd. */ +@SuppressWarnings("serial") public class TableExample extends CustomComponent implements Action.Handler, Button.ClickListener { diff --git a/src/com/vaadin/demo/featurebrowser/TreeExample.java b/src/com/vaadin/demo/featurebrowser/TreeExample.java index c4d7a54a38..a440cbb25c 100644 --- a/src/com/vaadin/demo/featurebrowser/TreeExample.java +++ b/src/com/vaadin/demo/featurebrowser/TreeExample.java @@ -21,6 +21,7 @@ import com.vaadin.ui.Tree; * functionality, and a ValueChangeListener reacts to both the Tree and the * TextField. */ +@SuppressWarnings("serial") public class TreeExample extends CustomComponent implements Action.Handler, Tree.ValueChangeListener { diff --git a/src/com/vaadin/demo/featurebrowser/ValueInputExample.java b/src/com/vaadin/demo/featurebrowser/ValueInputExample.java index 455acc3625..81afe67eaf 100644 --- a/src/com/vaadin/demo/featurebrowser/ValueInputExample.java +++ b/src/com/vaadin/demo/featurebrowser/ValueInputExample.java @@ -21,6 +21,7 @@ import com.vaadin.ui.Window.Notification; * * @author IT Mill Ltd. */ +@SuppressWarnings("serial") public class ValueInputExample extends CustomComponent { public ValueInputExample() { diff --git a/src/com/vaadin/demo/featurebrowser/WindowingExample.java b/src/com/vaadin/demo/featurebrowser/WindowingExample.java index 23c579d19b..db91da6b84 100644 --- a/src/com/vaadin/demo/featurebrowser/WindowingExample.java +++ b/src/com/vaadin/demo/featurebrowser/WindowingExample.java @@ -18,6 +18,7 @@ import com.vaadin.ui.Button.ClickEvent; * @author marc * */ +@SuppressWarnings("serial") public class WindowingExample extends CustomComponent { public static final String txt = "

There are two main types of windows: application-level windows, and " diff --git a/src/com/vaadin/demo/reservation/CalendarDemo.java b/src/com/vaadin/demo/reservation/CalendarDemo.java index 5c4571fda6..4fc7dab44a 100644 --- a/src/com/vaadin/demo/reservation/CalendarDemo.java +++ b/src/com/vaadin/demo/reservation/CalendarDemo.java @@ -13,7 +13,7 @@ import com.vaadin.data.Property.ValueChangeListener; import com.vaadin.data.util.QueryContainer; import com.vaadin.demo.util.SampleCalendarDatabase; import com.vaadin.ui.DateField; -import com.vaadin.ui.OrderedLayout; +import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Window; /** @@ -26,6 +26,7 @@ import com.vaadin.ui.Window; * @since 4.0.0 * */ +@SuppressWarnings("serial") public class CalendarDemo extends com.vaadin.Application { // Database provided with sample data @@ -43,7 +44,7 @@ public class CalendarDemo extends com.vaadin.Application { final Window main = new Window("Calendar demo"); setMainWindow(main); - main.setLayout(new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL)); + main.setContent(new HorizontalLayout()); // create the calendar component and add to layout from = new CalendarField(); diff --git a/src/com/vaadin/demo/reservation/CalendarField.java b/src/com/vaadin/demo/reservation/CalendarField.java index 429f04ecbe..f555c83228 100644 --- a/src/com/vaadin/demo/reservation/CalendarField.java +++ b/src/com/vaadin/demo/reservation/CalendarField.java @@ -19,6 +19,7 @@ import com.vaadin.ui.DateField; // TODO send one month at a time, do lazyLoading // TODO check date limit when updating variables // TODO Allow item selection +@SuppressWarnings("serial") public class CalendarField extends DateField implements Container.Viewer { private static final String TAGNAME = "calendarfield"; @@ -234,6 +235,7 @@ public class CalendarField extends DateField implements Container.Viewer { * @throws PaintException * if the paint operation failed. */ + @SuppressWarnings("deprecation") @Override public void paintContent(PaintTarget target) throws PaintException { super.paintContent(target); diff --git a/src/com/vaadin/demo/reservation/GoogleMap.java b/src/com/vaadin/demo/reservation/GoogleMap.java index 9854227bc1..54d7d4bcf7 100644 --- a/src/com/vaadin/demo/reservation/GoogleMap.java +++ b/src/com/vaadin/demo/reservation/GoogleMap.java @@ -17,6 +17,7 @@ import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Sizeable; import com.vaadin.ui.AbstractComponent; +@SuppressWarnings("serial") public class GoogleMap extends AbstractComponent implements Sizeable, Container.Viewer { private final String TAG_MARKERS = "markers"; diff --git a/src/com/vaadin/demo/reservation/ReservationApplication.java b/src/com/vaadin/demo/reservation/ReservationApplication.java index baba6c11a2..6f0a8e9cc2 100644 --- a/src/com/vaadin/demo/reservation/ReservationApplication.java +++ b/src/com/vaadin/demo/reservation/ReservationApplication.java @@ -18,16 +18,18 @@ import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.data.Property.ValueChangeListener; import com.vaadin.ui.Alignment; import com.vaadin.ui.Button; +import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Label; -import com.vaadin.ui.OrderedLayout; import com.vaadin.ui.Panel; import com.vaadin.ui.TabSheet; import com.vaadin.ui.Table; import com.vaadin.ui.TextField; +import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.TabSheet.SelectedTabChangeEvent; import com.vaadin.ui.Window.Notification; +@SuppressWarnings("serial") public class ReservationApplication extends Application { private SampleDB db; @@ -62,7 +64,7 @@ public class ReservationApplication extends Application { final Window mainWindow = new Window("Reservr "); setMainWindow(mainWindow); setTheme("reservr"); - mainWindow.getLayout().setWidth("100%"); + mainWindow.getContent().setWidth("100%"); Label logo = new Label("Reservr"); logo.setStyleName("logo"); @@ -75,7 +77,7 @@ public class ReservationApplication extends Application { final TabSheet mainTabs = new TabSheet(); mainWindow.addComponent(mainTabs); - final OrderedLayout reservationTab = new OrderedLayout(); + final VerticalLayout reservationTab = new VerticalLayout(); reservationTab.setWidth("100%"); mainTabs.addTab(reservationTab, "Make reservation", null); @@ -87,12 +89,12 @@ public class ReservationApplication extends Application { reservationTab.addComponent(resourcePanel); final Panel reservationPanel = new Panel("Reservation", - new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL)); + new HorizontalLayout()); reservationPanel.addStyleName(Panel.STYLE_LIGHT); reservationPanel.getLayout().setMargin(true); reservationTab.addComponent(reservationPanel); - final OrderedLayout infoLayout = new OrderedLayout(); + final VerticalLayout infoLayout = new VerticalLayout(); infoLayout.setSpacing(true); infoLayout.setSizeUndefined(); infoLayout.setMargin(false, true, false, false); @@ -107,7 +109,8 @@ public class ReservationApplication extends Application { reservationButton = new Button("Make reservation", this, "makeReservation"); infoLayout.addComponent(reservationButton); - infoLayout.setComponentAlignment(reservationButton, Alignment.MIDDLE_CENTER); + infoLayout.setComponentAlignment(reservationButton, + Alignment.MIDDLE_CENTER); map = new GoogleMap(); map.setWidth("250px"); diff --git a/src/com/vaadin/demo/reservation/ResourceNotAvailableException.java b/src/com/vaadin/demo/reservation/ResourceNotAvailableException.java index 61e47b9153..edb52f8a56 100644 --- a/src/com/vaadin/demo/reservation/ResourceNotAvailableException.java +++ b/src/com/vaadin/demo/reservation/ResourceNotAvailableException.java @@ -4,6 +4,7 @@ package com.vaadin.demo.reservation; +@SuppressWarnings("serial") public class ResourceNotAvailableException extends Exception { public ResourceNotAvailableException(String message) { super(message); diff --git a/src/com/vaadin/demo/reservation/ResourceSelectorPanel.java b/src/com/vaadin/demo/reservation/ResourceSelectorPanel.java index d52f1ac84a..c73e287ef1 100644 --- a/src/com/vaadin/demo/reservation/ResourceSelectorPanel.java +++ b/src/com/vaadin/demo/reservation/ResourceSelectorPanel.java @@ -11,11 +11,13 @@ import java.util.LinkedList; import com.vaadin.data.Container; import com.vaadin.data.Item; import com.vaadin.ui.Button; +import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Layout; -import com.vaadin.ui.OrderedLayout; import com.vaadin.ui.Panel; +import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class ResourceSelectorPanel extends Panel implements Button.ClickListener { private final HashMap categoryLayouts = new HashMap(); @@ -25,7 +27,7 @@ public class ResourceSelectorPanel extends Panel implements private LinkedList selectedResources = null; public ResourceSelectorPanel(String caption) { - super(caption, new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL)); + super(caption, new HorizontalLayout()); addStyleName(Panel.STYLE_LIGHT); setSizeUndefined(); setWidth("100%"); @@ -55,7 +57,7 @@ public class ResourceSelectorPanel extends Panel implements LinkedList resourceList = (LinkedList) categoryResources .get(category); if (resourceLayout == null) { - resourceLayout = new OrderedLayout(); + resourceLayout = new VerticalLayout(); resourceLayout.setSizeUndefined(); resourceLayout.setMargin(true); addComponent(resourceLayout); diff --git a/src/com/vaadin/demo/reservation/SampleDB.java b/src/com/vaadin/demo/reservation/SampleDB.java index 0111884f09..a9ab81fc1b 100644 --- a/src/com/vaadin/demo/reservation/SampleDB.java +++ b/src/com/vaadin/demo/reservation/SampleDB.java @@ -388,6 +388,7 @@ public class SampleDB { } } + @SuppressWarnings("deprecation") public synchronized void generateReservations() { final int days = 30; final String descriptions[] = { "Picking up guests from airport", diff --git a/src/com/vaadin/demo/reservation/gwt/client/ui/VCalendarField.java b/src/com/vaadin/demo/reservation/gwt/client/ui/VCalendarField.java index b4082f7ed2..ad9b2f8ae3 100644 --- a/src/com/vaadin/demo/reservation/gwt/client/ui/VCalendarField.java +++ b/src/com/vaadin/demo/reservation/gwt/client/ui/VCalendarField.java @@ -87,6 +87,7 @@ public class VCalendarField extends VDateField { buildDayView(date); } + @SuppressWarnings("deprecation") protected void buildDayView(Date date) { if (hourPanel == null) { hourPanel = new SimplePanel(); @@ -218,6 +219,7 @@ public class VCalendarField extends VDateField { private final HashMap dates = new HashMap(); + @SuppressWarnings("deprecation") public void addItem(UIDL item) { final String styleName = item.getStringAttribute("styleName"); // final Integer id = new Integer(item.getIntAttribute("id")); @@ -263,6 +265,7 @@ public class VCalendarField extends VDateField { } } + @SuppressWarnings("deprecation") public List getEntries(Date date, int resolution) { final ArrayList res = new ArrayList(); if (date == null) { diff --git a/src/com/vaadin/demo/reservation/simple/AdminView.java b/src/com/vaadin/demo/reservation/simple/AdminView.java index 63b6f4c28c..59d772b80a 100644 --- a/src/com/vaadin/demo/reservation/simple/AdminView.java +++ b/src/com/vaadin/demo/reservation/simple/AdminView.java @@ -4,18 +4,19 @@ import com.vaadin.data.Item; import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.ui.Button; import com.vaadin.ui.ComboBox; -import com.vaadin.ui.OrderedLayout; import com.vaadin.ui.TextField; +import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.AbstractSelect.NewItemHandler; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Button.ClickListener; -public class AdminView extends OrderedLayout { +@SuppressWarnings("serial") +public class AdminView extends VerticalLayout { private ComboBox resources = new ComboBox( "Select for editing or type new resource"); private SimpleReserver application; - private OrderedLayout form = new OrderedLayout(); + private VerticalLayout form = new VerticalLayout(); private Button save = new Button("Save resource"); private TextField name = new TextField("Name:"); diff --git a/src/com/vaadin/demo/reservation/simple/SampleDB.java b/src/com/vaadin/demo/reservation/simple/SampleDB.java index dd0f5f7428..286f1dd564 100644 --- a/src/com/vaadin/demo/reservation/simple/SampleDB.java +++ b/src/com/vaadin/demo/reservation/simple/SampleDB.java @@ -346,6 +346,7 @@ public class SampleDB { return true; } + @SuppressWarnings("deprecation") public synchronized void generateReservations() { final int days = 30; final String descriptions[] = { "Picking up guests from airport", diff --git a/src/com/vaadin/demo/reservation/simple/SimpleReserver.java b/src/com/vaadin/demo/reservation/simple/SimpleReserver.java index 25c2ec0bd0..9ad8a0e842 100644 --- a/src/com/vaadin/demo/reservation/simple/SimpleReserver.java +++ b/src/com/vaadin/demo/reservation/simple/SimpleReserver.java @@ -14,7 +14,7 @@ import com.vaadin.Application; import com.vaadin.terminal.gwt.server.PortletApplicationContext; import com.vaadin.terminal.gwt.server.PortletApplicationContext.PortletListener; import com.vaadin.ui.Button; -import com.vaadin.ui.OrderedLayout; +import com.vaadin.ui.ComponentContainer; import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Button.ClickListener; @@ -26,6 +26,7 @@ import com.vaadin.ui.Button.ClickListener; * to your classpath. * */ +@SuppressWarnings("serial") public class SimpleReserver extends Application { private SampleDB db = new SampleDB(); @@ -97,7 +98,7 @@ public class SimpleReserver extends Application { } protected void toggleMode() { - OrderedLayout main = (OrderedLayout) getMainWindow().getLayout(); + ComponentContainer main = getMainWindow().getContent(); isAdminView = !isAdminView; if (isAdminView) { main.replaceComponent(stdView, adminView); diff --git a/src/com/vaadin/demo/reservation/simple/StdView.java b/src/com/vaadin/demo/reservation/simple/StdView.java index b9699bbbed..41d24a75f4 100644 --- a/src/com/vaadin/demo/reservation/simple/StdView.java +++ b/src/com/vaadin/demo/reservation/simple/StdView.java @@ -15,13 +15,14 @@ import com.vaadin.ui.Button; import com.vaadin.ui.ComboBox; import com.vaadin.ui.DateField; import com.vaadin.ui.Label; -import com.vaadin.ui.OrderedLayout; import com.vaadin.ui.TextField; +import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Button.ClickListener; -public class StdView extends OrderedLayout { +@SuppressWarnings("serial") +public class StdView extends VerticalLayout { private ComboBox resources = new ComboBox("Select resource"); private CalendarField reservations = new CalendarField(); diff --git a/src/com/vaadin/demo/sampler/APIResource.java b/src/com/vaadin/demo/sampler/APIResource.java index 4d1bb2514a..111b0be60f 100644 --- a/src/com/vaadin/demo/sampler/APIResource.java +++ b/src/com/vaadin/demo/sampler/APIResource.java @@ -6,6 +6,7 @@ package com.vaadin.demo.sampler; * a javadoc baseurl. The name will be set to the class simpleName. * */ +@SuppressWarnings("serial") public class APIResource extends NamedExternalResource { private static final String VAADIN_BASE = "http://www.vaadin.com/api"; diff --git a/src/com/vaadin/demo/sampler/CodeLabel.java b/src/com/vaadin/demo/sampler/CodeLabel.java index fba8a8ac9f..bfc96d30fe 100644 --- a/src/com/vaadin/demo/sampler/CodeLabel.java +++ b/src/com/vaadin/demo/sampler/CodeLabel.java @@ -2,6 +2,7 @@ package com.vaadin.demo.sampler; import com.vaadin.ui.Label; +@SuppressWarnings("serial") public class CodeLabel extends Label { private static final String TAG = "codelabel"; diff --git a/src/com/vaadin/demo/sampler/Feature.java b/src/com/vaadin/demo/sampler/Feature.java index 3a517b8b15..359d22a561 100644 --- a/src/com/vaadin/demo/sampler/Feature.java +++ b/src/com/vaadin/demo/sampler/Feature.java @@ -14,6 +14,7 @@ import com.vaadin.ui.Component; *

* */ +@SuppressWarnings("serial") abstract public class Feature implements Serializable { public static final Object PROPERTY_ICON = "Icon"; diff --git a/src/com/vaadin/demo/sampler/FeatureSet.java b/src/com/vaadin/demo/sampler/FeatureSet.java index 7e60b9a641..9932b2093c 100644 --- a/src/com/vaadin/demo/sampler/FeatureSet.java +++ b/src/com/vaadin/demo/sampler/FeatureSet.java @@ -95,6 +95,7 @@ import com.vaadin.demo.sampler.features.windows.SubwindowSized; *

* */ +@SuppressWarnings("serial") public class FeatureSet extends Feature { /* diff --git a/src/com/vaadin/demo/sampler/FeatureView.java b/src/com/vaadin/demo/sampler/FeatureView.java index 2d326dec51..e36ad46756 100644 --- a/src/com/vaadin/demo/sampler/FeatureView.java +++ b/src/com/vaadin/demo/sampler/FeatureView.java @@ -17,6 +17,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class FeatureView extends HorizontalLayout { private static final String MSG_SHOW_SRC = "Show Java™ source »"; @@ -97,7 +98,7 @@ public class FeatureView extends HorizontalLayout { public void showSource(String source) { if (srcWindow == null) { srcWindow = new Window("Java™ source"); - ((VerticalLayout) srcWindow.getLayout()).setSizeUndefined(); + srcWindow.getContent().setSizeUndefined(); srcWindow.setWidth("70%"); srcWindow.setHeight("60%"); srcWindow.setPositionX(100); diff --git a/src/com/vaadin/demo/sampler/GoogleAnalytics.java b/src/com/vaadin/demo/sampler/GoogleAnalytics.java index 345844cee6..c8009983c3 100644 --- a/src/com/vaadin/demo/sampler/GoogleAnalytics.java +++ b/src/com/vaadin/demo/sampler/GoogleAnalytics.java @@ -4,6 +4,7 @@ import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.ui.AbstractComponent; +@SuppressWarnings("serial") public class GoogleAnalytics extends AbstractComponent { private String trackerId; diff --git a/src/com/vaadin/demo/sampler/NamedExternalResource.java b/src/com/vaadin/demo/sampler/NamedExternalResource.java index 16573f2ebb..9f6f7e76bc 100644 --- a/src/com/vaadin/demo/sampler/NamedExternalResource.java +++ b/src/com/vaadin/demo/sampler/NamedExternalResource.java @@ -2,6 +2,7 @@ package com.vaadin.demo.sampler; import com.vaadin.terminal.ExternalResource; +@SuppressWarnings("serial") public class NamedExternalResource extends ExternalResource { private String name; diff --git a/src/com/vaadin/demo/sampler/features/accordions/AccordionDisabled.java b/src/com/vaadin/demo/sampler/features/accordions/AccordionDisabled.java index b9be6b4add..1d5d53d582 100644 --- a/src/com/vaadin/demo/sampler/features/accordions/AccordionDisabled.java +++ b/src/com/vaadin/demo/sampler/features/accordions/AccordionDisabled.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.FeatureSet; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Accordion; +@SuppressWarnings("serial") public class AccordionDisabled extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/accordions/AccordionDisabledExample.java b/src/com/vaadin/demo/sampler/features/accordions/AccordionDisabledExample.java index ae8e817ade..5be3d68d24 100644 --- a/src/com/vaadin/demo/sampler/features/accordions/AccordionDisabledExample.java +++ b/src/com/vaadin/demo/sampler/features/accordions/AccordionDisabledExample.java @@ -10,6 +10,7 @@ import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.TabSheet.SelectedTabChangeEvent; import com.vaadin.ui.TabSheet.Tab; +@SuppressWarnings("serial") public class AccordionDisabledExample extends VerticalLayout implements Accordion.SelectedTabChangeListener, Button.ClickListener { diff --git a/src/com/vaadin/demo/sampler/features/accordions/AccordionIcons.java b/src/com/vaadin/demo/sampler/features/accordions/AccordionIcons.java index d6f0cf9e48..408ae3c46e 100644 --- a/src/com/vaadin/demo/sampler/features/accordions/AccordionIcons.java +++ b/src/com/vaadin/demo/sampler/features/accordions/AccordionIcons.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.FeatureSet; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Accordion; +@SuppressWarnings("serial") public class AccordionIcons extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/accordions/AccordionIconsExample.java b/src/com/vaadin/demo/sampler/features/accordions/AccordionIconsExample.java index 42047581a0..886fdcd861 100644 --- a/src/com/vaadin/demo/sampler/features/accordions/AccordionIconsExample.java +++ b/src/com/vaadin/demo/sampler/features/accordions/AccordionIconsExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Label; import com.vaadin.ui.TabSheet.SelectedTabChangeEvent; +@SuppressWarnings("serial") public class AccordionIconsExample extends HorizontalLayout implements Accordion.SelectedTabChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/blueprints/ProminentPrimaryAction.java b/src/com/vaadin/demo/sampler/features/blueprints/ProminentPrimaryAction.java index d3eaa06d8b..3101cd19b8 100644 --- a/src/com/vaadin/demo/sampler/features/blueprints/ProminentPrimaryAction.java +++ b/src/com/vaadin/demo/sampler/features/blueprints/ProminentPrimaryAction.java @@ -8,6 +8,7 @@ import com.vaadin.demo.sampler.features.buttons.ButtonPush; import com.vaadin.ui.Button; import com.vaadin.ui.Link; +@SuppressWarnings("serial") public class ProminentPrimaryAction extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/blueprints/ProminentPrimaryActionExample.java b/src/com/vaadin/demo/sampler/features/blueprints/ProminentPrimaryActionExample.java index bbbb3d6b6a..b7a7fba8ad 100644 --- a/src/com/vaadin/demo/sampler/features/blueprints/ProminentPrimaryActionExample.java +++ b/src/com/vaadin/demo/sampler/features/blueprints/ProminentPrimaryActionExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class ProminentPrimaryActionExample extends VerticalLayout implements Button.ClickListener { diff --git a/src/com/vaadin/demo/sampler/features/buttons/ButtonLink.java b/src/com/vaadin/demo/sampler/features/buttons/ButtonLink.java index f9f73852bf..5a378a7fc6 100644 --- a/src/com/vaadin/demo/sampler/features/buttons/ButtonLink.java +++ b/src/com/vaadin/demo/sampler/features/buttons/ButtonLink.java @@ -8,6 +8,7 @@ import com.vaadin.demo.sampler.features.blueprints.ProminentPrimaryAction; import com.vaadin.demo.sampler.features.link.LinkCurrentWindow; import com.vaadin.ui.Button; +@SuppressWarnings("serial") public class ButtonLink extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/buttons/ButtonLinkExample.java b/src/com/vaadin/demo/sampler/features/buttons/ButtonLinkExample.java index 4b2e00ea7a..8723c85749 100644 --- a/src/com/vaadin/demo/sampler/features/buttons/ButtonLinkExample.java +++ b/src/com/vaadin/demo/sampler/features/buttons/ButtonLinkExample.java @@ -5,6 +5,7 @@ import com.vaadin.ui.Button; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class ButtonLinkExample extends VerticalLayout implements Button.ClickListener { diff --git a/src/com/vaadin/demo/sampler/features/buttons/ButtonPush.java b/src/com/vaadin/demo/sampler/features/buttons/ButtonPush.java index 4b9dc23480..a87f400df8 100644 --- a/src/com/vaadin/demo/sampler/features/buttons/ButtonPush.java +++ b/src/com/vaadin/demo/sampler/features/buttons/ButtonPush.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.demo.sampler.features.blueprints.ProminentPrimaryAction; import com.vaadin.ui.Button; +@SuppressWarnings("serial") public class ButtonPush extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/buttons/ButtonPushExample.java b/src/com/vaadin/demo/sampler/features/buttons/ButtonPushExample.java index 67d6e61b60..35f3bf5a86 100644 --- a/src/com/vaadin/demo/sampler/features/buttons/ButtonPushExample.java +++ b/src/com/vaadin/demo/sampler/features/buttons/ButtonPushExample.java @@ -5,6 +5,7 @@ import com.vaadin.ui.Button; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class ButtonPushExample extends VerticalLayout implements Button.ClickListener { diff --git a/src/com/vaadin/demo/sampler/features/buttons/ButtonSwitch.java b/src/com/vaadin/demo/sampler/features/buttons/ButtonSwitch.java index 4a86668f62..53be15fe57 100644 --- a/src/com/vaadin/demo/sampler/features/buttons/ButtonSwitch.java +++ b/src/com/vaadin/demo/sampler/features/buttons/ButtonSwitch.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Button; +@SuppressWarnings("serial") public class ButtonSwitch extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/buttons/ButtonSwitchExample.java b/src/com/vaadin/demo/sampler/features/buttons/ButtonSwitchExample.java index 5bc0442ce4..2df35d1c47 100644 --- a/src/com/vaadin/demo/sampler/features/buttons/ButtonSwitchExample.java +++ b/src/com/vaadin/demo/sampler/features/buttons/ButtonSwitchExample.java @@ -5,6 +5,7 @@ import com.vaadin.ui.Button; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class ButtonSwitchExample extends VerticalLayout implements Button.ClickListener { diff --git a/src/com/vaadin/demo/sampler/features/commons/Errors.java b/src/com/vaadin/demo/sampler/features/commons/Errors.java index 5cac780621..b7350707ca 100644 --- a/src/com/vaadin/demo/sampler/features/commons/Errors.java +++ b/src/com/vaadin/demo/sampler/features/commons/Errors.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.features.form.FormBasic; import com.vaadin.demo.sampler.features.notifications.NotificationError; import com.vaadin.ui.AbstractComponent; +@SuppressWarnings("serial") public class Errors extends Feature { private static final String desc = "A component error can be set to" @@ -30,20 +31,24 @@ public class Errors extends Feature { return "Error indicator"; } + @Override public String getDescription() { return desc; } + @Override public APIResource[] getRelatedAPI() { return new APIResource[] { new APIResource(AbstractComponent.class) }; } + @Override public Class[] getRelatedFeatures() { // TODO link validation sample, form sample return new Class[] { Validation.class, FormBasic.class, NotificationError.class }; } + @Override public NamedExternalResource[] getRelatedResources() { // TODO Auto-generated method stub return null; diff --git a/src/com/vaadin/demo/sampler/features/commons/ErrorsExample.java b/src/com/vaadin/demo/sampler/features/commons/ErrorsExample.java index fc5b1eff24..89e53ee224 100644 --- a/src/com/vaadin/demo/sampler/features/commons/ErrorsExample.java +++ b/src/com/vaadin/demo/sampler/features/commons/ErrorsExample.java @@ -5,6 +5,7 @@ import com.vaadin.ui.Panel; import com.vaadin.ui.TextField; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class ErrorsExample extends VerticalLayout { public ErrorsExample() { diff --git a/src/com/vaadin/demo/sampler/features/commons/Icons.java b/src/com/vaadin/demo/sampler/features/commons/Icons.java index 0baf8fca6e..43ef1eb374 100644 --- a/src/com/vaadin/demo/sampler/features/commons/Icons.java +++ b/src/com/vaadin/demo/sampler/features/commons/Icons.java @@ -12,6 +12,7 @@ import com.vaadin.terminal.StreamResource; import com.vaadin.terminal.ThemeResource; import com.vaadin.ui.Component; +@SuppressWarnings("serial") public class Icons extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/commons/IconsExample.java b/src/com/vaadin/demo/sampler/features/commons/IconsExample.java index 84cb25d8e4..4e27ecf4c2 100644 --- a/src/com/vaadin/demo/sampler/features/commons/IconsExample.java +++ b/src/com/vaadin/demo/sampler/features/commons/IconsExample.java @@ -8,6 +8,7 @@ import com.vaadin.ui.Link; import com.vaadin.ui.Panel; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class IconsExample extends VerticalLayout { public IconsExample() { diff --git a/src/com/vaadin/demo/sampler/features/commons/Tooltips.java b/src/com/vaadin/demo/sampler/features/commons/Tooltips.java index eac86146fe..9f95cf7faa 100644 --- a/src/com/vaadin/demo/sampler/features/commons/Tooltips.java +++ b/src/com/vaadin/demo/sampler/features/commons/Tooltips.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.AbstractComponent; +@SuppressWarnings("serial") public class Tooltips extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/commons/TooltipsExample.java b/src/com/vaadin/demo/sampler/features/commons/TooltipsExample.java index 35c7613707..607e42681b 100644 --- a/src/com/vaadin/demo/sampler/features/commons/TooltipsExample.java +++ b/src/com/vaadin/demo/sampler/features/commons/TooltipsExample.java @@ -5,6 +5,7 @@ import com.vaadin.ui.RichTextArea; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class TooltipsExample extends VerticalLayout { private static final String editTxt = "Edit tooltip"; diff --git a/src/com/vaadin/demo/sampler/features/commons/Validation.java b/src/com/vaadin/demo/sampler/features/commons/Validation.java index 3ff516a5ba..ea008e0d3e 100644 --- a/src/com/vaadin/demo/sampler/features/commons/Validation.java +++ b/src/com/vaadin/demo/sampler/features/commons/Validation.java @@ -10,6 +10,7 @@ import com.vaadin.demo.sampler.features.form.FormPojoExample; import com.vaadin.ui.Component; import com.vaadin.ui.Form; +@SuppressWarnings("serial") public class Validation extends Feature { @Override @@ -26,19 +27,23 @@ public class Validation extends Feature { return new FormPojoExample(); } + @Override public String getDescription() { return desc; } + @Override public APIResource[] getRelatedAPI() { return new APIResource[] { new APIResource(Validatable.class), new APIResource(Validator.class), new APIResource(Form.class) }; } + @Override public Class[] getRelatedFeatures() { return new Class[] { Errors.class, FeatureSet.Forms.class }; } + @Override public NamedExternalResource[] getRelatedResources() { return null; } diff --git a/src/com/vaadin/demo/sampler/features/commons/ValidationExample.java b/src/com/vaadin/demo/sampler/features/commons/ValidationExample.java index 873b641ec7..44339f926a 100644 --- a/src/com/vaadin/demo/sampler/features/commons/ValidationExample.java +++ b/src/com/vaadin/demo/sampler/features/commons/ValidationExample.java @@ -11,6 +11,7 @@ import com.vaadin.ui.Label; import com.vaadin.ui.TextField; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class ValidationExample extends VerticalLayout { HashSet usernames = new HashSet(); diff --git a/src/com/vaadin/demo/sampler/features/dates/DateInline.java b/src/com/vaadin/demo/sampler/features/dates/DateInline.java index 46a298f9d8..a166b71b3a 100644 --- a/src/com/vaadin/demo/sampler/features/dates/DateInline.java +++ b/src/com/vaadin/demo/sampler/features/dates/DateInline.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.DateField; import com.vaadin.ui.InlineDateField; +@SuppressWarnings("serial") public class DateInline extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/dates/DateInlineExample.java b/src/com/vaadin/demo/sampler/features/dates/DateInlineExample.java index 5490b77a61..9666ac49b9 100644 --- a/src/com/vaadin/demo/sampler/features/dates/DateInlineExample.java +++ b/src/com/vaadin/demo/sampler/features/dates/DateInlineExample.java @@ -7,6 +7,7 @@ import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.ui.InlineDateField; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class DateInlineExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/dates/DateLocale.java b/src/com/vaadin/demo/sampler/features/dates/DateLocale.java index f150afcdfd..fc9dcfc25d 100644 --- a/src/com/vaadin/demo/sampler/features/dates/DateLocale.java +++ b/src/com/vaadin/demo/sampler/features/dates/DateLocale.java @@ -8,6 +8,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.DateField; import com.vaadin.ui.InlineDateField; +@SuppressWarnings("serial") public class DateLocale extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/dates/DateLocaleExample.java b/src/com/vaadin/demo/sampler/features/dates/DateLocaleExample.java index 1e2e810b16..86bf451c35 100644 --- a/src/com/vaadin/demo/sampler/features/dates/DateLocaleExample.java +++ b/src/com/vaadin/demo/sampler/features/dates/DateLocaleExample.java @@ -10,6 +10,7 @@ import com.vaadin.ui.ComboBox; import com.vaadin.ui.InlineDateField; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class DateLocaleExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/dates/DatePopup.java b/src/com/vaadin/demo/sampler/features/dates/DatePopup.java index fcc51cc853..19801a0c8e 100644 --- a/src/com/vaadin/demo/sampler/features/dates/DatePopup.java +++ b/src/com/vaadin/demo/sampler/features/dates/DatePopup.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.DateField; import com.vaadin.ui.PopupDateField; +@SuppressWarnings("serial") public class DatePopup extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/dates/DatePopupExample.java b/src/com/vaadin/demo/sampler/features/dates/DatePopupExample.java index 31e77a0e4a..b1deade8d1 100644 --- a/src/com/vaadin/demo/sampler/features/dates/DatePopupExample.java +++ b/src/com/vaadin/demo/sampler/features/dates/DatePopupExample.java @@ -8,6 +8,7 @@ import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.ui.PopupDateField; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class DatePopupExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/dates/DateResolution.java b/src/com/vaadin/demo/sampler/features/dates/DateResolution.java index ba3d7d112f..7ed7ffda09 100644 --- a/src/com/vaadin/demo/sampler/features/dates/DateResolution.java +++ b/src/com/vaadin/demo/sampler/features/dates/DateResolution.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.DateField; import com.vaadin.ui.InlineDateField; +@SuppressWarnings("serial") public class DateResolution extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/dates/DateResolutionExample.java b/src/com/vaadin/demo/sampler/features/dates/DateResolutionExample.java index dbbceeb7ec..154c091151 100644 --- a/src/com/vaadin/demo/sampler/features/dates/DateResolutionExample.java +++ b/src/com/vaadin/demo/sampler/features/dates/DateResolutionExample.java @@ -8,6 +8,7 @@ import com.vaadin.ui.ComboBox; import com.vaadin.ui.InlineDateField; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class DateResolutionExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/form/FormBasic.java b/src/com/vaadin/demo/sampler/features/form/FormBasic.java index 25bd9197d2..0aacbdc8db 100644 --- a/src/com/vaadin/demo/sampler/features/form/FormBasic.java +++ b/src/com/vaadin/demo/sampler/features/form/FormBasic.java @@ -11,6 +11,7 @@ import com.vaadin.demo.sampler.features.commons.Validation; import com.vaadin.ui.Component; import com.vaadin.ui.Form; +@SuppressWarnings("serial") public class FormBasic extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/form/FormPojo.java b/src/com/vaadin/demo/sampler/features/form/FormPojo.java index b2f92faa14..a8d87c16d5 100644 --- a/src/com/vaadin/demo/sampler/features/form/FormPojo.java +++ b/src/com/vaadin/demo/sampler/features/form/FormPojo.java @@ -11,6 +11,7 @@ import com.vaadin.demo.sampler.features.commons.Validation; import com.vaadin.ui.Component; import com.vaadin.ui.Form; +@SuppressWarnings("serial") public class FormPojo extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayout.java b/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayout.java index 38194b4c64..d92aa49596 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayout.java +++ b/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayout.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class ApplicationLayout extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayoutExample.java b/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayoutExample.java index 79b6e1258f..c809d66ca2 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayoutExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayoutExample.java @@ -14,6 +14,7 @@ import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Window.CloseEvent; +@SuppressWarnings("serial") public class ApplicationLayoutExample extends VerticalLayout { Window win = new ApplicationLayoutWindow(); @@ -51,14 +52,14 @@ public class ApplicationLayoutExample extends VerticalLayout { // Our main layout is a horizontal layout HorizontalLayout main = new HorizontalLayout(); main.setSizeFull(); - setLayout(main); + setContent(main); // Tree to the left Panel treePanel = new Panel(); // for scrollbars treePanel.setStyleName(Panel.STYLE_LIGHT); treePanel.setHeight("100%"); treePanel.setWidth(null); - treePanel.getLayout().setSizeUndefined(); + treePanel.getContent().setSizeUndefined(); addComponent(treePanel); Tree tree = new Tree(); diff --git a/src/com/vaadin/demo/sampler/features/layouts/CustomLayouts.java b/src/com/vaadin/demo/sampler/features/layouts/CustomLayouts.java index 8ade132ac2..f7bc077071 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/CustomLayouts.java +++ b/src/com/vaadin/demo/sampler/features/layouts/CustomLayouts.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.CustomLayout; +@SuppressWarnings("serial") public class CustomLayouts extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/CustomLayoutsExample.java b/src/com/vaadin/demo/sampler/features/layouts/CustomLayoutsExample.java index f829009555..c997582fc6 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/CustomLayoutsExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/CustomLayoutsExample.java @@ -5,6 +5,7 @@ import com.vaadin.ui.CustomLayout; import com.vaadin.ui.TextField; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class CustomLayoutsExample extends VerticalLayout { public CustomLayoutsExample() { diff --git a/src/com/vaadin/demo/sampler/features/layouts/ExpandingComponent.java b/src/com/vaadin/demo/sampler/features/layouts/ExpandingComponent.java index 8a58d73eb7..193f33d301 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/ExpandingComponent.java +++ b/src/com/vaadin/demo/sampler/features/layouts/ExpandingComponent.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.HorizontalLayout; +@SuppressWarnings("serial") public class ExpandingComponent extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/ExpandingComponentExample.java b/src/com/vaadin/demo/sampler/features/layouts/ExpandingComponentExample.java index 1638fbe8a2..0c1346b01e 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/ExpandingComponentExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/ExpandingComponentExample.java @@ -4,6 +4,7 @@ import com.vaadin.ui.Button; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class ExpandingComponentExample extends VerticalLayout { public ExpandingComponentExample() { diff --git a/src/com/vaadin/demo/sampler/features/layouts/GridLayoutBasic.java b/src/com/vaadin/demo/sampler/features/layouts/GridLayoutBasic.java index e850e5ab4c..e76654d9be 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/GridLayoutBasic.java +++ b/src/com/vaadin/demo/sampler/features/layouts/GridLayoutBasic.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.GridLayout; +@SuppressWarnings("serial") public class GridLayoutBasic extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/GridLayoutBasicExample.java b/src/com/vaadin/demo/sampler/features/layouts/GridLayoutBasicExample.java index 6b5e430664..c56b5645e1 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/GridLayoutBasicExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/GridLayoutBasicExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.Button; import com.vaadin.ui.GridLayout; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class GridLayoutBasicExample extends VerticalLayout { public GridLayoutBasicExample() { diff --git a/src/com/vaadin/demo/sampler/features/layouts/HorizontalLayoutBasic.java b/src/com/vaadin/demo/sampler/features/layouts/HorizontalLayoutBasic.java index 3c72b2733f..8f192901c7 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/HorizontalLayoutBasic.java +++ b/src/com/vaadin/demo/sampler/features/layouts/HorizontalLayoutBasic.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.HorizontalLayout; +@SuppressWarnings("serial") public class HorizontalLayoutBasic extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/HorizontalLayoutBasicExample.java b/src/com/vaadin/demo/sampler/features/layouts/HorizontalLayoutBasicExample.java index 4b09f218bc..047aba949d 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/HorizontalLayoutBasicExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/HorizontalLayoutBasicExample.java @@ -4,6 +4,7 @@ import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Label; import com.vaadin.ui.TextField; +@SuppressWarnings("serial") public class HorizontalLayoutBasicExample extends HorizontalLayout { public HorizontalLayoutBasicExample() { diff --git a/src/com/vaadin/demo/sampler/features/layouts/LayoutAlignment.java b/src/com/vaadin/demo/sampler/features/layouts/LayoutAlignment.java index 531ae1acdc..f24ca6bc52 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/LayoutAlignment.java +++ b/src/com/vaadin/demo/sampler/features/layouts/LayoutAlignment.java @@ -7,6 +7,7 @@ import com.vaadin.ui.GridLayout; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class LayoutAlignment extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/LayoutAlignmentExample.java b/src/com/vaadin/demo/sampler/features/layouts/LayoutAlignmentExample.java index 853aedd003..9dd14f04cc 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/LayoutAlignmentExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/LayoutAlignmentExample.java @@ -6,9 +6,9 @@ import com.vaadin.ui.Button; import com.vaadin.ui.GridLayout; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class LayoutAlignmentExample extends VerticalLayout { - @SuppressWarnings("deprecation") public LayoutAlignmentExample() { // Create a grid layout final GridLayout grid = new GridLayout(1, 9); diff --git a/src/com/vaadin/demo/sampler/features/layouts/LayoutMargin.java b/src/com/vaadin/demo/sampler/features/layouts/LayoutMargin.java index e2c88434d9..5e864bcdae 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/LayoutMargin.java +++ b/src/com/vaadin/demo/sampler/features/layouts/LayoutMargin.java @@ -7,6 +7,7 @@ import com.vaadin.ui.GridLayout; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class LayoutMargin extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/LayoutMarginExample.java b/src/com/vaadin/demo/sampler/features/layouts/LayoutMarginExample.java index 355486db79..dead8fe5e3 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/LayoutMarginExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/LayoutMarginExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.Label; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class LayoutMarginExample extends GridLayout implements Button.ClickListener { diff --git a/src/com/vaadin/demo/sampler/features/layouts/LayoutSpacing.java b/src/com/vaadin/demo/sampler/features/layouts/LayoutSpacing.java index b6d214289e..6ccd1c2989 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/LayoutSpacing.java +++ b/src/com/vaadin/demo/sampler/features/layouts/LayoutSpacing.java @@ -7,6 +7,7 @@ import com.vaadin.ui.GridLayout; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class LayoutSpacing extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/LayoutSpacingExample.java b/src/com/vaadin/demo/sampler/features/layouts/LayoutSpacingExample.java index 62891ac77d..96f76f43fd 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/LayoutSpacingExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/LayoutSpacingExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.GridLayout; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class LayoutSpacingExample extends VerticalLayout { public LayoutSpacingExample() { diff --git a/src/com/vaadin/demo/sampler/features/layouts/SplitPanelBasic.java b/src/com/vaadin/demo/sampler/features/layouts/SplitPanelBasic.java index 3ac9fe606e..36e19bafb7 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/SplitPanelBasic.java +++ b/src/com/vaadin/demo/sampler/features/layouts/SplitPanelBasic.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.SplitPanel; +@SuppressWarnings("serial") public class SplitPanelBasic extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/SplitPanelBasicExample.java b/src/com/vaadin/demo/sampler/features/layouts/SplitPanelBasicExample.java index b1dd1972ab..e9cbabd6b3 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/SplitPanelBasicExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/SplitPanelBasicExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.SplitPanel; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class SplitPanelBasicExample extends VerticalLayout { public static final String brownFox = "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. "; diff --git a/src/com/vaadin/demo/sampler/features/layouts/VerticalLayoutBasic.java b/src/com/vaadin/demo/sampler/features/layouts/VerticalLayoutBasic.java index 64a085abda..36b43bf380 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/VerticalLayoutBasic.java +++ b/src/com/vaadin/demo/sampler/features/layouts/VerticalLayoutBasic.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class VerticalLayoutBasic extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/VerticalLayoutBasicExample.java b/src/com/vaadin/demo/sampler/features/layouts/VerticalLayoutBasicExample.java index 7881f325c2..f17c67defb 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/VerticalLayoutBasicExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/VerticalLayoutBasicExample.java @@ -3,6 +3,7 @@ package com.vaadin.demo.sampler.features.layouts; import com.vaadin.ui.TextField; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class VerticalLayoutBasicExample extends VerticalLayout { public VerticalLayoutBasicExample() { diff --git a/src/com/vaadin/demo/sampler/features/layouts/WebLayout.java b/src/com/vaadin/demo/sampler/features/layouts/WebLayout.java index 6edad21e4f..8eebd18e0c 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/WebLayout.java +++ b/src/com/vaadin/demo/sampler/features/layouts/WebLayout.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class WebLayout extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/layouts/WebLayoutExample.java b/src/com/vaadin/demo/sampler/features/layouts/WebLayoutExample.java index a0fe32df5d..08bfb4eb97 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/WebLayoutExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/WebLayoutExample.java @@ -13,6 +13,7 @@ import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Window.CloseEvent; +@SuppressWarnings("serial") public class WebLayoutExample extends VerticalLayout { Window win = new WebLayoutWindow(); @@ -52,7 +53,7 @@ public class WebLayoutExample extends VerticalLayout { HorizontalLayout main = new HorizontalLayout(); main.setMargin(true); main.setSpacing(true); - setLayout(main); + setContent(main); // Tree to the left Tree tree = new Tree(); diff --git a/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindow.java b/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindow.java index 4880f42d0b..69b08b1b53 100644 --- a/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindow.java +++ b/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindow.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.demo.sampler.features.buttons.ButtonLink; import com.vaadin.ui.Link; +@SuppressWarnings("serial") public class LinkCurrentWindow extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindowExample.java b/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindowExample.java index 153f572258..0be2bce3a8 100644 --- a/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindowExample.java +++ b/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindowExample.java @@ -5,6 +5,7 @@ import com.vaadin.terminal.ThemeResource; import com.vaadin.ui.Link; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class LinkCurrentWindowExample extends VerticalLayout { private static final String CAPTION = "Open Google"; diff --git a/src/com/vaadin/demo/sampler/features/link/LinkNoDecorations.java b/src/com/vaadin/demo/sampler/features/link/LinkNoDecorations.java index 7f20dc65c8..cb6d1fc45d 100644 --- a/src/com/vaadin/demo/sampler/features/link/LinkNoDecorations.java +++ b/src/com/vaadin/demo/sampler/features/link/LinkNoDecorations.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.demo.sampler.features.buttons.ButtonLink; import com.vaadin.ui.Link; +@SuppressWarnings("serial") public class LinkNoDecorations extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/link/LinkNoDecorationsExample.java b/src/com/vaadin/demo/sampler/features/link/LinkNoDecorationsExample.java index 65ac59f12d..db90bce3f5 100644 --- a/src/com/vaadin/demo/sampler/features/link/LinkNoDecorationsExample.java +++ b/src/com/vaadin/demo/sampler/features/link/LinkNoDecorationsExample.java @@ -5,6 +5,7 @@ import com.vaadin.terminal.ThemeResource; import com.vaadin.ui.Link; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class LinkNoDecorationsExample extends VerticalLayout { private static final String CAPTION = "Open Google in new window"; diff --git a/src/com/vaadin/demo/sampler/features/link/LinkSizedWindow.java b/src/com/vaadin/demo/sampler/features/link/LinkSizedWindow.java index 9b8f8e5488..f752c014ff 100644 --- a/src/com/vaadin/demo/sampler/features/link/LinkSizedWindow.java +++ b/src/com/vaadin/demo/sampler/features/link/LinkSizedWindow.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.demo.sampler.features.buttons.ButtonLink; import com.vaadin.ui.Link; +@SuppressWarnings("serial") public class LinkSizedWindow extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/link/LinkSizedWindowExample.java b/src/com/vaadin/demo/sampler/features/link/LinkSizedWindowExample.java index 8d47deea45..6618b46ce0 100644 --- a/src/com/vaadin/demo/sampler/features/link/LinkSizedWindowExample.java +++ b/src/com/vaadin/demo/sampler/features/link/LinkSizedWindowExample.java @@ -6,6 +6,7 @@ import com.vaadin.terminal.ThemeResource; import com.vaadin.ui.Link; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class LinkSizedWindowExample extends VerticalLayout { private static final String CAPTION = "Open Google in small window"; diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationCustom.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationCustom.java index dc6780d3c6..26da2b5036 100644 --- a/src/com/vaadin/demo/sampler/features/notifications/NotificationCustom.java +++ b/src/com/vaadin/demo/sampler/features/notifications/NotificationCustom.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class NotificationCustom extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationCustomExample.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationCustomExample.java index ce20e77827..b201ae123d 100644 --- a/src/com/vaadin/demo/sampler/features/notifications/NotificationCustomExample.java +++ b/src/com/vaadin/demo/sampler/features/notifications/NotificationCustomExample.java @@ -13,6 +13,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Window.Notification; +@SuppressWarnings("serial") public class NotificationCustomExample extends VerticalLayout { private static final Object CAPTION_PROPERTY = new Object(); diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationError.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationError.java index 406249658a..87d77fd2ff 100644 --- a/src/com/vaadin/demo/sampler/features/notifications/NotificationError.java +++ b/src/com/vaadin/demo/sampler/features/notifications/NotificationError.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class NotificationError extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationErrorExample.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationErrorExample.java index 3860e7fd17..ae10f86ca5 100644 --- a/src/com/vaadin/demo/sampler/features/notifications/NotificationErrorExample.java +++ b/src/com/vaadin/demo/sampler/features/notifications/NotificationErrorExample.java @@ -7,6 +7,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Window.Notification; +@SuppressWarnings("serial") public class NotificationErrorExample extends VerticalLayout { public NotificationErrorExample() { diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanized.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanized.java index dfc14d3466..1c016b3ac7 100644 --- a/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanized.java +++ b/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanized.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class NotificationHumanized extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanizedExample.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanizedExample.java index 8d70a2e2b9..69c1bf59c4 100644 --- a/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanizedExample.java +++ b/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanizedExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.TextField; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class NotificationHumanizedExample extends VerticalLayout { public NotificationHumanizedExample() { diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationTray.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationTray.java index 9401f90d0b..fdcf6ec2f0 100644 --- a/src/com/vaadin/demo/sampler/features/notifications/NotificationTray.java +++ b/src/com/vaadin/demo/sampler/features/notifications/NotificationTray.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class NotificationTray extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationTrayExample.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationTrayExample.java index a7d78ebfca..cd8a63f88e 100644 --- a/src/com/vaadin/demo/sampler/features/notifications/NotificationTrayExample.java +++ b/src/com/vaadin/demo/sampler/features/notifications/NotificationTrayExample.java @@ -7,6 +7,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Window.Notification; +@SuppressWarnings("serial") public class NotificationTrayExample extends VerticalLayout { public NotificationTrayExample() { diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationWarning.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationWarning.java index 303361c6d1..8ba9e1d55c 100644 --- a/src/com/vaadin/demo/sampler/features/notifications/NotificationWarning.java +++ b/src/com/vaadin/demo/sampler/features/notifications/NotificationWarning.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class NotificationWarning extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationWarningExample.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationWarningExample.java index ae98aeb739..06df02379f 100644 --- a/src/com/vaadin/demo/sampler/features/notifications/NotificationWarningExample.java +++ b/src/com/vaadin/demo/sampler/features/notifications/NotificationWarningExample.java @@ -7,6 +7,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Window.Notification; +@SuppressWarnings("serial") public class NotificationWarningExample extends VerticalLayout { public NotificationWarningExample() { diff --git a/src/com/vaadin/demo/sampler/features/panels/PanelBasic.java b/src/com/vaadin/demo/sampler/features/panels/PanelBasic.java index 5d659b04a5..378f9f6f2b 100644 --- a/src/com/vaadin/demo/sampler/features/panels/PanelBasic.java +++ b/src/com/vaadin/demo/sampler/features/panels/PanelBasic.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Layout; import com.vaadin.ui.Panel; +@SuppressWarnings("serial") public class PanelBasic extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/panels/PanelBasicExample.java b/src/com/vaadin/demo/sampler/features/panels/PanelBasicExample.java index 498337ff43..92f58c78ca 100644 --- a/src/com/vaadin/demo/sampler/features/panels/PanelBasicExample.java +++ b/src/com/vaadin/demo/sampler/features/panels/PanelBasicExample.java @@ -7,6 +7,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Button.ClickListener; +@SuppressWarnings("serial") public class PanelBasicExample extends VerticalLayout implements ClickListener { private Panel panel; diff --git a/src/com/vaadin/demo/sampler/features/panels/PanelLight.java b/src/com/vaadin/demo/sampler/features/panels/PanelLight.java index ddb4138913..94eb662930 100644 --- a/src/com/vaadin/demo/sampler/features/panels/PanelLight.java +++ b/src/com/vaadin/demo/sampler/features/panels/PanelLight.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Layout; import com.vaadin.ui.Panel; +@SuppressWarnings("serial") public class PanelLight extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/panels/PanelLightExample.java b/src/com/vaadin/demo/sampler/features/panels/PanelLightExample.java index 38aa53ca5f..464ab42347 100644 --- a/src/com/vaadin/demo/sampler/features/panels/PanelLightExample.java +++ b/src/com/vaadin/demo/sampler/features/panels/PanelLightExample.java @@ -7,6 +7,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Button.ClickListener; +@SuppressWarnings("serial") public class PanelLightExample extends VerticalLayout implements ClickListener { private Panel panel; diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxContains.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxContains.java index 5c6a30a145..6c6aab6389 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxContains.java +++ b/src/com/vaadin/demo/sampler/features/selects/ComboBoxContains.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.ComboBox; +@SuppressWarnings("serial") public class ComboBoxContains extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxContainsExample.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxContainsExample.java index 57818231fd..4abdcae806 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxContainsExample.java +++ b/src/com/vaadin/demo/sampler/features/selects/ComboBoxContainsExample.java @@ -8,6 +8,7 @@ import com.vaadin.ui.ComboBox; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.AbstractSelect.Filtering; +@SuppressWarnings("serial") public class ComboBoxContainsExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPrompt.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPrompt.java index 3021e1761a..375edfb10c 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPrompt.java +++ b/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPrompt.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.demo.sampler.features.text.TextFieldInputPrompt; import com.vaadin.ui.ComboBox; +@SuppressWarnings("serial") public class ComboBoxInputPrompt extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java index b326a636de..28289c7fd6 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java +++ b/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java @@ -5,6 +5,7 @@ import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.ui.ComboBox; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class ComboBoxInputPromptExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxNewItems.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxNewItems.java index 1b4508eb19..774aeecf73 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxNewItems.java +++ b/src/com/vaadin/demo/sampler/features/selects/ComboBoxNewItems.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.ComboBox; +@SuppressWarnings("serial") public class ComboBoxNewItems extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxNewItemsExample.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxNewItemsExample.java index d3c3717195..2f3c36e908 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxNewItemsExample.java +++ b/src/com/vaadin/demo/sampler/features/selects/ComboBoxNewItemsExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.AbstractSelect; import com.vaadin.ui.ComboBox; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class ComboBoxNewItemsExample extends VerticalLayout implements Property.ValueChangeListener, AbstractSelect.NewItemHandler { private static final String[] cities = new String[] { "Berlin", "Brussels", diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxPlain.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxPlain.java index 18f1ea3a5e..92d071a2ac 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxPlain.java +++ b/src/com/vaadin/demo/sampler/features/selects/ComboBoxPlain.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.ComboBox; +@SuppressWarnings("serial") public class ComboBoxPlain extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxPlainExample.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxPlainExample.java index 612cc70f59..8e96d93871 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxPlainExample.java +++ b/src/com/vaadin/demo/sampler/features/selects/ComboBoxPlainExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.ComboBox; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.AbstractSelect.Filtering; +@SuppressWarnings("serial") public class ComboBoxPlainExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxStartsWith.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxStartsWith.java index 1f2ca22256..08e95d9029 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxStartsWith.java +++ b/src/com/vaadin/demo/sampler/features/selects/ComboBoxStartsWith.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.ComboBox; +@SuppressWarnings("serial") public class ComboBoxStartsWith extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxStartsWithExample.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxStartsWithExample.java index d29a429890..66610a656a 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxStartsWithExample.java +++ b/src/com/vaadin/demo/sampler/features/selects/ComboBoxStartsWithExample.java @@ -8,6 +8,7 @@ import com.vaadin.ui.ComboBox; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.AbstractSelect.Filtering; +@SuppressWarnings("serial") public class ComboBoxStartsWithExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/selects/ListSelectMultiple.java b/src/com/vaadin/demo/sampler/features/selects/ListSelectMultiple.java index 5e3f13fff2..2d532cc0d5 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ListSelectMultiple.java +++ b/src/com/vaadin/demo/sampler/features/selects/ListSelectMultiple.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.ListSelect; +@SuppressWarnings("serial") public class ListSelectMultiple extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/selects/ListSelectMultipleExample.java b/src/com/vaadin/demo/sampler/features/selects/ListSelectMultipleExample.java index 629b1b7326..6bb02bc2aa 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ListSelectMultipleExample.java +++ b/src/com/vaadin/demo/sampler/features/selects/ListSelectMultipleExample.java @@ -5,6 +5,7 @@ import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.ui.ListSelect; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class ListSelectMultipleExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/selects/ListSelectSingle.java b/src/com/vaadin/demo/sampler/features/selects/ListSelectSingle.java index 352261a047..ef9ee3275c 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ListSelectSingle.java +++ b/src/com/vaadin/demo/sampler/features/selects/ListSelectSingle.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.ListSelect; +@SuppressWarnings("serial") public class ListSelectSingle extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/selects/ListSelectSingleExample.java b/src/com/vaadin/demo/sampler/features/selects/ListSelectSingleExample.java index 90c4ac2a63..da4ee3707f 100644 --- a/src/com/vaadin/demo/sampler/features/selects/ListSelectSingleExample.java +++ b/src/com/vaadin/demo/sampler/features/selects/ListSelectSingleExample.java @@ -8,6 +8,7 @@ import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.ui.ListSelect; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class ListSelectSingleExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/selects/NativeSelection.java b/src/com/vaadin/demo/sampler/features/selects/NativeSelection.java index 95523cddf1..c654406b40 100644 --- a/src/com/vaadin/demo/sampler/features/selects/NativeSelection.java +++ b/src/com/vaadin/demo/sampler/features/selects/NativeSelection.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.FeatureSet; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.NativeSelect; +@SuppressWarnings("serial") public class NativeSelection extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java b/src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java index 63976bfc70..f1798f0a83 100644 --- a/src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java +++ b/src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java @@ -5,6 +5,7 @@ import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.ui.NativeSelect; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class NativeSelectionExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/selects/TwinColumnSelect.java b/src/com/vaadin/demo/sampler/features/selects/TwinColumnSelect.java index 3522a4e8ca..9034c1f1db 100644 --- a/src/com/vaadin/demo/sampler/features/selects/TwinColumnSelect.java +++ b/src/com/vaadin/demo/sampler/features/selects/TwinColumnSelect.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.TwinColSelect; +@SuppressWarnings("serial") public class TwinColumnSelect extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/selects/TwinColumnSelectExample.java b/src/com/vaadin/demo/sampler/features/selects/TwinColumnSelectExample.java index b35a4d60d7..61168f7985 100644 --- a/src/com/vaadin/demo/sampler/features/selects/TwinColumnSelectExample.java +++ b/src/com/vaadin/demo/sampler/features/selects/TwinColumnSelectExample.java @@ -5,6 +5,7 @@ import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.ui.TwinColSelect; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class TwinColumnSelectExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/table/TableActions.java b/src/com/vaadin/demo/sampler/features/table/TableActions.java index 3c08f9cb75..f497244c99 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableActions.java +++ b/src/com/vaadin/demo/sampler/features/table/TableActions.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableActions extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableCellStyling.java b/src/com/vaadin/demo/sampler/features/table/TableCellStyling.java index 4dd1a41218..c99ef8e4a9 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableCellStyling.java +++ b/src/com/vaadin/demo/sampler/features/table/TableCellStyling.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableCellStyling extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableColumnAlignment.java b/src/com/vaadin/demo/sampler/features/table/TableColumnAlignment.java index 5ede6a9de5..9f4a2591a7 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableColumnAlignment.java +++ b/src/com/vaadin/demo/sampler/features/table/TableColumnAlignment.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableColumnAlignment extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableColumnCollapsing.java b/src/com/vaadin/demo/sampler/features/table/TableColumnCollapsing.java index fdc21f8620..d263d73754 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableColumnCollapsing.java +++ b/src/com/vaadin/demo/sampler/features/table/TableColumnCollapsing.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableColumnCollapsing extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableColumnHeaders.java b/src/com/vaadin/demo/sampler/features/table/TableColumnHeaders.java index aa4dc85ddd..e895ee816a 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableColumnHeaders.java +++ b/src/com/vaadin/demo/sampler/features/table/TableColumnHeaders.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableColumnHeaders extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableColumnReordering.java b/src/com/vaadin/demo/sampler/features/table/TableColumnReordering.java index 7b01fedc78..005199c39d 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableColumnReordering.java +++ b/src/com/vaadin/demo/sampler/features/table/TableColumnReordering.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableColumnReordering extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableHeaderIcons.java b/src/com/vaadin/demo/sampler/features/table/TableHeaderIcons.java index df12a44097..1274be04e4 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableHeaderIcons.java +++ b/src/com/vaadin/demo/sampler/features/table/TableHeaderIcons.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableHeaderIcons extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableLazyLoading.java b/src/com/vaadin/demo/sampler/features/table/TableLazyLoading.java index a800451258..195959856f 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableLazyLoading.java +++ b/src/com/vaadin/demo/sampler/features/table/TableLazyLoading.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableLazyLoading extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableMainFeaturesExample.java b/src/com/vaadin/demo/sampler/features/table/TableMainFeaturesExample.java index 3629f9e9ae..8d6d0c2659 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableMainFeaturesExample.java +++ b/src/com/vaadin/demo/sampler/features/table/TableMainFeaturesExample.java @@ -13,6 +13,7 @@ import com.vaadin.ui.Table; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Table.CellStyleGenerator; +@SuppressWarnings("serial") public class TableMainFeaturesExample extends VerticalLayout { Table table = new Table("ISO-3166 Country Codes and flags"); diff --git a/src/com/vaadin/demo/sampler/features/table/TableMouseEvents.java b/src/com/vaadin/demo/sampler/features/table/TableMouseEvents.java index 8cc57641aa..a0a1825d01 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableMouseEvents.java +++ b/src/com/vaadin/demo/sampler/features/table/TableMouseEvents.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableMouseEvents extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableRowHeaders.java b/src/com/vaadin/demo/sampler/features/table/TableRowHeaders.java index 1eb98dc871..8cd403d7e6 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableRowHeaders.java +++ b/src/com/vaadin/demo/sampler/features/table/TableRowHeaders.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableRowHeaders extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableRowStyling.java b/src/com/vaadin/demo/sampler/features/table/TableRowStyling.java index af022f9813..c95443f960 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableRowStyling.java +++ b/src/com/vaadin/demo/sampler/features/table/TableRowStyling.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableRowStyling extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableSorting.java b/src/com/vaadin/demo/sampler/features/table/TableSorting.java index a812b9cf75..80b2176e31 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableSorting.java +++ b/src/com/vaadin/demo/sampler/features/table/TableSorting.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Table; +@SuppressWarnings("serial") public class TableSorting extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/table/TableStylingExample.java b/src/com/vaadin/demo/sampler/features/table/TableStylingExample.java index 80b059aeda..bdcdae5515 100644 --- a/src/com/vaadin/demo/sampler/features/table/TableStylingExample.java +++ b/src/com/vaadin/demo/sampler/features/table/TableStylingExample.java @@ -17,6 +17,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Table.CellStyleGenerator; +@SuppressWarnings("serial") public class TableStylingExample extends VerticalLayout { Table table = new Table(); diff --git a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetDisabled.java b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetDisabled.java index ad8a52cc83..f010101074 100644 --- a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetDisabled.java +++ b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetDisabled.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.TabSheet; +@SuppressWarnings("serial") public class TabSheetDisabled extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetDisabledExample.java b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetDisabledExample.java index 1491e57e85..ffc335def4 100644 --- a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetDisabledExample.java +++ b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetDisabledExample.java @@ -10,6 +10,7 @@ import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.TabSheet.SelectedTabChangeEvent; import com.vaadin.ui.TabSheet.Tab; +@SuppressWarnings("serial") public class TabSheetDisabledExample extends VerticalLayout implements TabSheet.SelectedTabChangeListener, Button.ClickListener { private static final ThemeResource icon1 = new ThemeResource( diff --git a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetIcons.java b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetIcons.java index aa7a1d180c..34e5322987 100644 --- a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetIcons.java +++ b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetIcons.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.TabSheet; +@SuppressWarnings("serial") public class TabSheetIcons extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetIconsExample.java b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetIconsExample.java index 5bbe5e8835..17b06bca43 100644 --- a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetIconsExample.java +++ b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetIconsExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.TabSheet; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.TabSheet.SelectedTabChangeEvent; +@SuppressWarnings("serial") public class TabSheetIconsExample extends VerticalLayout implements TabSheet.SelectedTabChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetScrolling.java b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetScrolling.java index 6fcae06bc2..7e9686aa98 100644 --- a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetScrolling.java +++ b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetScrolling.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.TabSheet; +@SuppressWarnings("serial") public class TabSheetScrolling extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetScrollingExample.java b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetScrollingExample.java index f5e3627f10..41e9b2beba 100644 --- a/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetScrollingExample.java +++ b/src/com/vaadin/demo/sampler/features/tabsheets/TabSheetScrollingExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.TabSheet; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.TabSheet.SelectedTabChangeEvent; +@SuppressWarnings("serial") public class TabSheetScrollingExample extends VerticalLayout implements TabSheet.SelectedTabChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/text/LabelPlain.java b/src/com/vaadin/demo/sampler/features/text/LabelPlain.java index b30dc69005..6efeded44d 100644 --- a/src/com/vaadin/demo/sampler/features/text/LabelPlain.java +++ b/src/com/vaadin/demo/sampler/features/text/LabelPlain.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Label; +@SuppressWarnings("serial") public class LabelPlain extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/text/LabelPlainExample.java b/src/com/vaadin/demo/sampler/features/text/LabelPlainExample.java index f96df7af68..b1ed134aa1 100644 --- a/src/com/vaadin/demo/sampler/features/text/LabelPlainExample.java +++ b/src/com/vaadin/demo/sampler/features/text/LabelPlainExample.java @@ -3,6 +3,7 @@ package com.vaadin.demo.sampler.features.text; import com.vaadin.ui.Label; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class LabelPlainExample extends VerticalLayout { public LabelPlainExample() { diff --git a/src/com/vaadin/demo/sampler/features/text/LabelPreformatted.java b/src/com/vaadin/demo/sampler/features/text/LabelPreformatted.java index 339a251583..a2327806b3 100644 --- a/src/com/vaadin/demo/sampler/features/text/LabelPreformatted.java +++ b/src/com/vaadin/demo/sampler/features/text/LabelPreformatted.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Label; +@SuppressWarnings("serial") public class LabelPreformatted extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/text/LabelPreformattedExample.java b/src/com/vaadin/demo/sampler/features/text/LabelPreformattedExample.java index f9dfb597ed..cf4da1d178 100644 --- a/src/com/vaadin/demo/sampler/features/text/LabelPreformattedExample.java +++ b/src/com/vaadin/demo/sampler/features/text/LabelPreformattedExample.java @@ -3,6 +3,7 @@ package com.vaadin.demo.sampler.features.text; import com.vaadin.ui.Label; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class LabelPreformattedExample extends VerticalLayout { public LabelPreformattedExample() { diff --git a/src/com/vaadin/demo/sampler/features/text/LabelRich.java b/src/com/vaadin/demo/sampler/features/text/LabelRich.java index 40ac46f175..f9ea94e29e 100644 --- a/src/com/vaadin/demo/sampler/features/text/LabelRich.java +++ b/src/com/vaadin/demo/sampler/features/text/LabelRich.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Label; +@SuppressWarnings("serial") public class LabelRich extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/text/LabelRichExample.java b/src/com/vaadin/demo/sampler/features/text/LabelRichExample.java index 289e916a8d..9251a85828 100644 --- a/src/com/vaadin/demo/sampler/features/text/LabelRichExample.java +++ b/src/com/vaadin/demo/sampler/features/text/LabelRichExample.java @@ -7,6 +7,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Button.ClickListener; +@SuppressWarnings("serial") public class LabelRichExample extends VerticalLayout implements ClickListener { private Button b; diff --git a/src/com/vaadin/demo/sampler/features/text/RichTextEditor.java b/src/com/vaadin/demo/sampler/features/text/RichTextEditor.java index 2ef5661329..556d6ae905 100644 --- a/src/com/vaadin/demo/sampler/features/text/RichTextEditor.java +++ b/src/com/vaadin/demo/sampler/features/text/RichTextEditor.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.RichTextArea; +@SuppressWarnings("serial") public class RichTextEditor extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/text/TextArea.java b/src/com/vaadin/demo/sampler/features/text/TextArea.java index 3bb731e4d3..964c1051a3 100644 --- a/src/com/vaadin/demo/sampler/features/text/TextArea.java +++ b/src/com/vaadin/demo/sampler/features/text/TextArea.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.FeatureSet; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.TextField; +@SuppressWarnings("serial") public class TextArea extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/text/TextAreaExample.java b/src/com/vaadin/demo/sampler/features/text/TextAreaExample.java index c6ca5fe181..8918b387e6 100644 --- a/src/com/vaadin/demo/sampler/features/text/TextAreaExample.java +++ b/src/com/vaadin/demo/sampler/features/text/TextAreaExample.java @@ -7,6 +7,7 @@ import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Label; import com.vaadin.ui.TextField; +@SuppressWarnings("serial") public class TextAreaExample extends HorizontalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/text/TextFieldInputPrompt.java b/src/com/vaadin/demo/sampler/features/text/TextFieldInputPrompt.java index a7da1c61d7..80c9bd5020 100644 --- a/src/com/vaadin/demo/sampler/features/text/TextFieldInputPrompt.java +++ b/src/com/vaadin/demo/sampler/features/text/TextFieldInputPrompt.java @@ -8,6 +8,7 @@ import com.vaadin.demo.sampler.features.selects.ComboBoxInputPrompt; import com.vaadin.demo.sampler.features.selects.ComboBoxNewItems; import com.vaadin.ui.TextField; +@SuppressWarnings("serial") public class TextFieldInputPrompt extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/text/TextFieldInputPromptExample.java b/src/com/vaadin/demo/sampler/features/text/TextFieldInputPromptExample.java index 9f3d40b445..29339dcd8f 100644 --- a/src/com/vaadin/demo/sampler/features/text/TextFieldInputPromptExample.java +++ b/src/com/vaadin/demo/sampler/features/text/TextFieldInputPromptExample.java @@ -5,6 +5,7 @@ import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.ui.TextField; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class TextFieldInputPromptExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/text/TextFieldSecret.java b/src/com/vaadin/demo/sampler/features/text/TextFieldSecret.java index b40daafedc..6af6a3feb8 100644 --- a/src/com/vaadin/demo/sampler/features/text/TextFieldSecret.java +++ b/src/com/vaadin/demo/sampler/features/text/TextFieldSecret.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.demo.sampler.features.selects.ComboBoxNewItems; import com.vaadin.ui.TextField; +@SuppressWarnings("serial") public class TextFieldSecret extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/text/TextFieldSecretExample.java b/src/com/vaadin/demo/sampler/features/text/TextFieldSecretExample.java index f0fee03346..127a6bacbe 100644 --- a/src/com/vaadin/demo/sampler/features/text/TextFieldSecretExample.java +++ b/src/com/vaadin/demo/sampler/features/text/TextFieldSecretExample.java @@ -5,6 +5,7 @@ import com.vaadin.ui.TextField; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class TextFieldSecretExample extends VerticalLayout { private final TextField username; diff --git a/src/com/vaadin/demo/sampler/features/text/TextFieldSingle.java b/src/com/vaadin/demo/sampler/features/text/TextFieldSingle.java index 15aa90de1c..cab38f5bdd 100644 --- a/src/com/vaadin/demo/sampler/features/text/TextFieldSingle.java +++ b/src/com/vaadin/demo/sampler/features/text/TextFieldSingle.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.demo.sampler.features.selects.ComboBoxNewItems; import com.vaadin.ui.TextField; +@SuppressWarnings("serial") public class TextFieldSingle extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/text/TextFieldSingleExample.java b/src/com/vaadin/demo/sampler/features/text/TextFieldSingleExample.java index 53b20db7ed..209cdc3429 100644 --- a/src/com/vaadin/demo/sampler/features/text/TextFieldSingleExample.java +++ b/src/com/vaadin/demo/sampler/features/text/TextFieldSingleExample.java @@ -5,6 +5,7 @@ import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.ui.TextField; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class TextFieldSingleExample extends VerticalLayout implements Property.ValueChangeListener { diff --git a/src/com/vaadin/demo/sampler/features/trees/TreeActions.java b/src/com/vaadin/demo/sampler/features/trees/TreeActions.java index 3d270e265f..1a4e5aedd6 100644 --- a/src/com/vaadin/demo/sampler/features/trees/TreeActions.java +++ b/src/com/vaadin/demo/sampler/features/trees/TreeActions.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Component; import com.vaadin.ui.Tree; +@SuppressWarnings("serial") public class TreeActions extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/trees/TreeMouseEvents.java b/src/com/vaadin/demo/sampler/features/trees/TreeMouseEvents.java index 261f72112f..54192f06e7 100644 --- a/src/com/vaadin/demo/sampler/features/trees/TreeMouseEvents.java +++ b/src/com/vaadin/demo/sampler/features/trees/TreeMouseEvents.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Tree; +@SuppressWarnings("serial") public class TreeMouseEvents extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/trees/TreeMouseEventsExample.java b/src/com/vaadin/demo/sampler/features/trees/TreeMouseEventsExample.java index 48d560447d..7b84ce16ee 100644 --- a/src/com/vaadin/demo/sampler/features/trees/TreeMouseEventsExample.java +++ b/src/com/vaadin/demo/sampler/features/trees/TreeMouseEventsExample.java @@ -8,6 +8,7 @@ import com.vaadin.ui.AbstractSelect; import com.vaadin.ui.Tree; import com.vaadin.ui.VerticalLayout; +@SuppressWarnings("serial") public class TreeMouseEventsExample extends VerticalLayout implements ItemClickListener { diff --git a/src/com/vaadin/demo/sampler/features/trees/TreeMultiSelect.java b/src/com/vaadin/demo/sampler/features/trees/TreeMultiSelect.java index c83729b29b..f669d23957 100644 --- a/src/com/vaadin/demo/sampler/features/trees/TreeMultiSelect.java +++ b/src/com/vaadin/demo/sampler/features/trees/TreeMultiSelect.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Tree; +@SuppressWarnings("serial") public class TreeMultiSelect extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/trees/TreeMultiSelectExample.java b/src/com/vaadin/demo/sampler/features/trees/TreeMultiSelectExample.java index e97111ad85..f1350e0a70 100644 --- a/src/com/vaadin/demo/sampler/features/trees/TreeMultiSelectExample.java +++ b/src/com/vaadin/demo/sampler/features/trees/TreeMultiSelectExample.java @@ -14,6 +14,7 @@ import com.vaadin.ui.Tree; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class TreeMultiSelectExample extends VerticalLayout implements Action.Handler { diff --git a/src/com/vaadin/demo/sampler/features/trees/TreeSingleSelect.java b/src/com/vaadin/demo/sampler/features/trees/TreeSingleSelect.java index d25950cdbc..a32f7d0608 100644 --- a/src/com/vaadin/demo/sampler/features/trees/TreeSingleSelect.java +++ b/src/com/vaadin/demo/sampler/features/trees/TreeSingleSelect.java @@ -5,6 +5,7 @@ import com.vaadin.demo.sampler.Feature; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Tree; +@SuppressWarnings("serial") public class TreeSingleSelect extends Feature { @Override public String getName() { diff --git a/src/com/vaadin/demo/sampler/features/trees/TreeSingleSelectExample.java b/src/com/vaadin/demo/sampler/features/trees/TreeSingleSelectExample.java index 0bbeacf921..7b238b74c2 100644 --- a/src/com/vaadin/demo/sampler/features/trees/TreeSingleSelectExample.java +++ b/src/com/vaadin/demo/sampler/features/trees/TreeSingleSelectExample.java @@ -12,6 +12,7 @@ import com.vaadin.ui.TextField; import com.vaadin.ui.Tree; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class TreeSingleSelectExample extends HorizontalLayout implements Property.ValueChangeListener, Button.ClickListener, Action.Handler { diff --git a/src/com/vaadin/demo/sampler/features/windows/NativeWindow.java b/src/com/vaadin/demo/sampler/features/windows/NativeWindow.java index 0d030945b5..695427f31a 100644 --- a/src/com/vaadin/demo/sampler/features/windows/NativeWindow.java +++ b/src/com/vaadin/demo/sampler/features/windows/NativeWindow.java @@ -7,6 +7,7 @@ import com.vaadin.demo.sampler.FeatureSet.Links; import com.vaadin.demo.sampler.FeatureSet.Windows; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class NativeWindow extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/windows/NativeWindowExample.java b/src/com/vaadin/demo/sampler/features/windows/NativeWindowExample.java index b1b2933f1d..e322f2a208 100644 --- a/src/com/vaadin/demo/sampler/features/windows/NativeWindowExample.java +++ b/src/com/vaadin/demo/sampler/features/windows/NativeWindowExample.java @@ -10,6 +10,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class NativeWindowExample extends VerticalLayout { public NativeWindowExample() { diff --git a/src/com/vaadin/demo/sampler/features/windows/Subwindow.java b/src/com/vaadin/demo/sampler/features/windows/Subwindow.java index aa7d1f48c4..74f7bca1bf 100644 --- a/src/com/vaadin/demo/sampler/features/windows/Subwindow.java +++ b/src/com/vaadin/demo/sampler/features/windows/Subwindow.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.FeatureSet; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class Subwindow extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowAutoSized.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowAutoSized.java index 1b8b5e32cd..ab35b4cd1a 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowAutoSized.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowAutoSized.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.FeatureSet; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class SubwindowAutoSized extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowAutoSizedExample.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowAutoSizedExample.java index e2f0a60e3d..482682bfeb 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowAutoSizedExample.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowAutoSizedExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class SubwindowAutoSizedExample extends VerticalLayout { Window subwindow; diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowClose.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowClose.java index 6c572bd20c..f838295ffe 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowClose.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowClose.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.FeatureSet; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class SubwindowClose extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowCloseExample.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowCloseExample.java index 2b0f0073c0..2a39508dd7 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowCloseExample.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowCloseExample.java @@ -7,6 +7,7 @@ import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Window.CloseEvent; +@SuppressWarnings("serial") public class SubwindowCloseExample extends VerticalLayout { Window subwindow; diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowExample.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowExample.java index cb48201acc..307c2a9376 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowExample.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class SubwindowExample extends VerticalLayout { Window subwindow; diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowModal.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowModal.java index 28c93c1ae0..b82bf8d778 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowModal.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowModal.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.FeatureSet; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class SubwindowModal extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowModalExample.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowModalExample.java index 15ee9f040a..65abf8885f 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowModalExample.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowModalExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class SubwindowModalExample extends VerticalLayout { Window subwindow; diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowPositioned.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowPositioned.java index 3da56d87bc..42023e77d7 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowPositioned.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowPositioned.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.FeatureSet; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class SubwindowPositioned extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowPositionedExample.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowPositionedExample.java index f50bf0a21b..dbbc64a571 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowPositionedExample.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowPositionedExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class SubwindowPositionedExample extends VerticalLayout { Window subwindow; diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowSized.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowSized.java index ad03155d30..e1493ea5f0 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowSized.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowSized.java @@ -6,6 +6,7 @@ import com.vaadin.demo.sampler.FeatureSet; import com.vaadin.demo.sampler.NamedExternalResource; import com.vaadin.ui.Window; +@SuppressWarnings("serial") public class SubwindowSized extends Feature { @Override diff --git a/src/com/vaadin/demo/sampler/features/windows/SubwindowSizedExample.java b/src/com/vaadin/demo/sampler/features/windows/SubwindowSizedExample.java index 93703773e2..a4d72b0e38 100644 --- a/src/com/vaadin/demo/sampler/features/windows/SubwindowSizedExample.java +++ b/src/com/vaadin/demo/sampler/features/windows/SubwindowSizedExample.java @@ -6,6 +6,7 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent; +@SuppressWarnings("serial") public class SubwindowSizedExample extends VerticalLayout { Window subwindow; diff --git a/src/com/vaadin/demo/util/SampleCalendarDatabase.java b/src/com/vaadin/demo/util/SampleCalendarDatabase.java index 23c39a6e2e..f5bd59dc11 100644 --- a/src/com/vaadin/demo/util/SampleCalendarDatabase.java +++ b/src/com/vaadin/demo/util/SampleCalendarDatabase.java @@ -102,6 +102,7 @@ public class SampleCalendarDatabase { * names as HSQLDB returns column names in capitalized form with this demo. * */ + @SuppressWarnings("deprecation") private void createTables() { try { String stmt = null; diff --git a/src/com/vaadin/demo/util/SampleDirectory.java b/src/com/vaadin/demo/util/SampleDirectory.java index 2e4c785024..a82b9bedc8 100644 --- a/src/com/vaadin/demo/util/SampleDirectory.java +++ b/src/com/vaadin/demo/util/SampleDirectory.java @@ -60,14 +60,14 @@ public class SampleDirectory { } // Add failure notification as an Panel to main window final Panel errorPanel = new Panel("Demo application error"); - errorPanel.setStyle("strong"); + errorPanel.setStyleName("strong"); errorPanel.setComponentError(new SystemError( "Cannot provide sample directory")); errorPanel.addComponent(new Label(errorMessage, Label.CONTENT_XHTML)); // Remove all components from applications main window - application.getMainWindow().getLayout().removeAllComponents(); + application.getMainWindow().getContent().removeAllComponents(); // Add error panel - application.getMainWindow().getLayout().addComponent(errorPanel); + application.getMainWindow().getContent().addComponent(errorPanel); return null; } }