diff options
author | Henri Sara <hesara@vaadin.com> | 2013-01-15 12:42:10 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2013-01-15 12:42:10 +0200 |
commit | ea2ebd16543c36e389f4204591a7e9d2d9613534 (patch) | |
tree | 9d05cf95cf6067b605a25e48787070ca983766d1 /shared | |
parent | 7413385a7cc0e87ec8d35574963113d3c58af5ec (diff) | |
download | vaadin-framework-ea2ebd16543c36e389f4204591a7e9d2d9613534.tar.gz vaadin-framework-ea2ebd16543c36e389f4204591a7e9d2d9613534.zip |
Ensure all server and shared classes are serializable (#10735)
Change-Id: I40a59087fea7fbd4ad202ef803b42bbc76bf94d3
Diffstat (limited to 'shared')
27 files changed, 79 insertions, 28 deletions
diff --git a/shared/src/com/vaadin/shared/ApplicationConstants.java b/shared/src/com/vaadin/shared/ApplicationConstants.java index 7486c91d3a..333833ab60 100644 --- a/shared/src/com/vaadin/shared/ApplicationConstants.java +++ b/shared/src/com/vaadin/shared/ApplicationConstants.java @@ -15,7 +15,9 @@ */ package com.vaadin.shared; -public class ApplicationConstants { +import java.io.Serializable; + +public class ApplicationConstants implements Serializable { // This indicates the whole page is generated by us (not embedded) public static final String GENERATED_BODY_CLASSNAME = "v-generated-body"; diff --git a/shared/src/com/vaadin/shared/ComponentConstants.java b/shared/src/com/vaadin/shared/ComponentConstants.java index 1f6ba7e7ec..b4081d02e2 100644 --- a/shared/src/com/vaadin/shared/ComponentConstants.java +++ b/shared/src/com/vaadin/shared/ComponentConstants.java @@ -16,6 +16,8 @@ package com.vaadin.shared; -public class ComponentConstants { +import java.io.Serializable; + +public class ComponentConstants implements Serializable { public static final String ICON_RESOURCE = "icon"; } diff --git a/shared/src/com/vaadin/shared/EventId.java b/shared/src/com/vaadin/shared/EventId.java index 048a6ea10e..dd30379d41 100644 --- a/shared/src/com/vaadin/shared/EventId.java +++ b/shared/src/com/vaadin/shared/EventId.java @@ -15,7 +15,9 @@ */ package com.vaadin.shared; -public interface EventId { +import java.io.Serializable; + +public interface EventId extends Serializable { public static final String BLUR = "blur"; public static final String FOCUS = "focus"; public static final String CLICK_EVENT_IDENTIFIER = "click"; diff --git a/shared/src/com/vaadin/shared/JavaScriptConnectorState.java b/shared/src/com/vaadin/shared/JavaScriptConnectorState.java index 69798231e1..e1b9604a37 100644 --- a/shared/src/com/vaadin/shared/JavaScriptConnectorState.java +++ b/shared/src/com/vaadin/shared/JavaScriptConnectorState.java @@ -16,10 +16,11 @@ package com.vaadin.shared; +import java.io.Serializable; import java.util.Map; import java.util.Set; -public interface JavaScriptConnectorState { +public interface JavaScriptConnectorState extends Serializable { public Set<String> getCallbackNames(); public Map<String, Set<String>> getRpcInterfaces(); diff --git a/shared/src/com/vaadin/shared/JsonConstants.java b/shared/src/com/vaadin/shared/JsonConstants.java index 0e0df02e37..8a9e37f1a5 100644 --- a/shared/src/com/vaadin/shared/JsonConstants.java +++ b/shared/src/com/vaadin/shared/JsonConstants.java @@ -15,7 +15,9 @@ */ package com.vaadin.shared; -public class JsonConstants { +import java.io.Serializable; + +public class JsonConstants implements Serializable { public static final String VTYPE_CONNECTOR = "c"; public static final String VTYPE_BOOLEAN = "b"; public static final String VTYPE_DOUBLE = "d"; diff --git a/shared/src/com/vaadin/shared/annotations/DelegateToWidget.java b/shared/src/com/vaadin/shared/annotations/DelegateToWidget.java index 2a1d866c90..ba661e3f32 100644 --- a/shared/src/com/vaadin/shared/annotations/DelegateToWidget.java +++ b/shared/src/com/vaadin/shared/annotations/DelegateToWidget.java @@ -15,6 +15,7 @@ */ package com.vaadin.shared.annotations; +import java.io.Serializable; import java.lang.annotation.ElementType; import java.lang.annotation.Target; @@ -22,7 +23,7 @@ import java.lang.annotation.Target; public @interface DelegateToWidget { public String value() default ""; - public static class Helper { + public static class Helper implements Serializable { public static String getDelegateTarget(String propertyName, String annotationValue) { String name = annotationValue; diff --git a/shared/src/com/vaadin/shared/communication/FieldRpc.java b/shared/src/com/vaadin/shared/communication/FieldRpc.java index a1390900f8..50e8e80872 100644 --- a/shared/src/com/vaadin/shared/communication/FieldRpc.java +++ b/shared/src/com/vaadin/shared/communication/FieldRpc.java @@ -15,7 +15,9 @@ */ package com.vaadin.shared.communication; -public class FieldRpc { +import java.io.Serializable; + +public class FieldRpc implements Serializable { public interface FocusServerRpc extends ServerRpc { public void focus(); } diff --git a/shared/src/com/vaadin/shared/ui/AlignmentInfo.java b/shared/src/com/vaadin/shared/ui/AlignmentInfo.java index ecc80b4085..060bac3070 100644 --- a/shared/src/com/vaadin/shared/ui/AlignmentInfo.java +++ b/shared/src/com/vaadin/shared/ui/AlignmentInfo.java @@ -16,9 +16,11 @@ package com.vaadin.shared.ui; -public final class AlignmentInfo { +import java.io.Serializable; + +public final class AlignmentInfo implements Serializable { /** Bitmask values for client server communication */ - public static class Bits { + public static class Bits implements Serializable { public static final int ALIGNMENT_LEFT = 1; public static final int ALIGNMENT_RIGHT = 2; public static final int ALIGNMENT_TOP = 4; diff --git a/shared/src/com/vaadin/shared/ui/ComponentStateUtil.java b/shared/src/com/vaadin/shared/ui/ComponentStateUtil.java index 4d726601ae..5be5721c50 100644 --- a/shared/src/com/vaadin/shared/ui/ComponentStateUtil.java +++ b/shared/src/com/vaadin/shared/ui/ComponentStateUtil.java @@ -15,12 +15,13 @@ */ package com.vaadin.shared.ui; +import java.io.Serializable; import java.util.HashSet; import com.vaadin.shared.AbstractComponentState; import com.vaadin.shared.communication.SharedState; -public final class ComponentStateUtil { +public final class ComponentStateUtil implements Serializable { private ComponentStateUtil() { // Util class is not instantiable diff --git a/shared/src/com/vaadin/shared/ui/ShortCutConstants.java b/shared/src/com/vaadin/shared/ui/ShortCutConstants.java index b14ad72e2d..eb493d1031 100644 --- a/shared/src/com/vaadin/shared/ui/ShortCutConstants.java +++ b/shared/src/com/vaadin/shared/ui/ShortCutConstants.java @@ -15,7 +15,9 @@ */ package com.vaadin.shared.ui; -public class ShortCutConstants { +import java.io.Serializable; + +public class ShortCutConstants implements Serializable { public static final String ACTION_TARGET_ATTRIBUTE = "sat"; public static final String ACTION_TARGET_ACTION_ATTRIBUTE = "sata"; public static final String ACTION_CAPTION_ATTRIBUTE = "caption"; diff --git a/shared/src/com/vaadin/shared/ui/colorpicker/Color.java b/shared/src/com/vaadin/shared/ui/colorpicker/Color.java index 3ceeedd424..3d0db2d124 100644 --- a/shared/src/com/vaadin/shared/ui/colorpicker/Color.java +++ b/shared/src/com/vaadin/shared/ui/colorpicker/Color.java @@ -15,12 +15,14 @@ */ package com.vaadin.shared.ui.colorpicker; +import java.io.Serializable; + /** * Default implementation for color. * * @since 7.0.0 */ -public class Color { +public class Color implements Serializable { public static final Color WHITE = new Color(255, 255, 255); public static final Color BLACK = new Color(0, 0, 0); diff --git a/shared/src/com/vaadin/shared/ui/combobox/ComboBoxConstants.java b/shared/src/com/vaadin/shared/ui/combobox/ComboBoxConstants.java index 12e233c198..c127d09cec 100644 --- a/shared/src/com/vaadin/shared/ui/combobox/ComboBoxConstants.java +++ b/shared/src/com/vaadin/shared/ui/combobox/ComboBoxConstants.java @@ -15,8 +15,10 @@ */ package com.vaadin.shared.ui.combobox; +import java.io.Serializable; + @Deprecated -public class ComboBoxConstants { +public class ComboBoxConstants implements Serializable { @Deprecated public static final String ATTR_INPUTPROMPT = "prompt"; @Deprecated diff --git a/shared/src/com/vaadin/shared/ui/datefield/DateFieldConstants.java b/shared/src/com/vaadin/shared/ui/datefield/DateFieldConstants.java index b05cf813e7..bdc57f2bc2 100644 --- a/shared/src/com/vaadin/shared/ui/datefield/DateFieldConstants.java +++ b/shared/src/com/vaadin/shared/ui/datefield/DateFieldConstants.java @@ -15,8 +15,10 @@ */ package com.vaadin.shared.ui.datefield; +import java.io.Serializable; + @Deprecated -public class DateFieldConstants { +public class DateFieldConstants implements Serializable { @Deprecated public static final String ATTR_WEEK_NUMBERS = "wn"; diff --git a/shared/src/com/vaadin/shared/ui/draganddropwrapper/DragAndDropWrapperConstants.java b/shared/src/com/vaadin/shared/ui/draganddropwrapper/DragAndDropWrapperConstants.java index 0060e8ccea..f0793fb39d 100644 --- a/shared/src/com/vaadin/shared/ui/draganddropwrapper/DragAndDropWrapperConstants.java +++ b/shared/src/com/vaadin/shared/ui/draganddropwrapper/DragAndDropWrapperConstants.java @@ -15,8 +15,10 @@ */ package com.vaadin.shared.ui.draganddropwrapper; +import java.io.Serializable; + @Deprecated -public class DragAndDropWrapperConstants { +public class DragAndDropWrapperConstants implements Serializable { @Deprecated public static final String HTML5_DATA_FLAVORS = "html5-data-flavors"; diff --git a/shared/src/com/vaadin/shared/ui/embedded/EmbeddedConstants.java b/shared/src/com/vaadin/shared/ui/embedded/EmbeddedConstants.java index 3bcc421b28..067466c825 100644 --- a/shared/src/com/vaadin/shared/ui/embedded/EmbeddedConstants.java +++ b/shared/src/com/vaadin/shared/ui/embedded/EmbeddedConstants.java @@ -15,8 +15,10 @@ */ package com.vaadin.shared.ui.embedded; +import java.io.Serializable; + @Deprecated -public class EmbeddedConstants { +public class EmbeddedConstants implements Serializable { @Deprecated public static final String ALTERNATE_TEXT = "alt"; diff --git a/shared/src/com/vaadin/shared/ui/link/LinkConstants.java b/shared/src/com/vaadin/shared/ui/link/LinkConstants.java index e37731a75a..3f4050f176 100644 --- a/shared/src/com/vaadin/shared/ui/link/LinkConstants.java +++ b/shared/src/com/vaadin/shared/ui/link/LinkConstants.java @@ -16,6 +16,8 @@ package com.vaadin.shared.ui.link; -public class LinkConstants { +import java.io.Serializable; + +public class LinkConstants implements Serializable { public static String HREF_RESOURCE = "href"; } diff --git a/shared/src/com/vaadin/shared/ui/menubar/MenuBarConstants.java b/shared/src/com/vaadin/shared/ui/menubar/MenuBarConstants.java index 154188782f..5e9971985d 100644 --- a/shared/src/com/vaadin/shared/ui/menubar/MenuBarConstants.java +++ b/shared/src/com/vaadin/shared/ui/menubar/MenuBarConstants.java @@ -15,8 +15,10 @@ */ package com.vaadin.shared.ui.menubar; +import java.io.Serializable; + @Deprecated -public class MenuBarConstants { +public class MenuBarConstants implements Serializable { @Deprecated public static final String ATTRIBUTE_CHECKED = "checked"; @Deprecated diff --git a/shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupConstants.java b/shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupConstants.java index e620a3ab41..ff6f6fa241 100644 --- a/shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupConstants.java +++ b/shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupConstants.java @@ -15,7 +15,9 @@ */ package com.vaadin.shared.ui.optiongroup; -public class OptionGroupConstants { +import java.io.Serializable; + +public class OptionGroupConstants implements Serializable { public static final String HTML_CONTENT_ALLOWED = "usehtml"; public static final String ATTRIBUTE_OPTION_DISABLED = "disabled"; diff --git a/shared/src/com/vaadin/shared/ui/table/TableConstants.java b/shared/src/com/vaadin/shared/ui/table/TableConstants.java index 05b2e5c047..caaac7ef14 100644 --- a/shared/src/com/vaadin/shared/ui/table/TableConstants.java +++ b/shared/src/com/vaadin/shared/ui/table/TableConstants.java @@ -15,7 +15,9 @@ */ package com.vaadin.shared.ui.table; -public class TableConstants { +import java.io.Serializable; + +public class TableConstants implements Serializable { public static final String ITEM_CLICK_EVENT_ID = "itemClick"; public static final String HEADER_CLICK_EVENT_ID = "handleHeaderClick"; public static final String FOOTER_CLICK_EVENT_ID = "handleFooterClick"; diff --git a/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetBaseConstants.java b/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetBaseConstants.java index f8a5991e9e..7eb23a9887 100644 --- a/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetBaseConstants.java +++ b/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetBaseConstants.java @@ -15,8 +15,10 @@ */ package com.vaadin.shared.ui.tabsheet; +import java.io.Serializable; + @Deprecated -public class TabsheetBaseConstants { +public class TabsheetBaseConstants implements Serializable { @Deprecated public static final String ATTRIBUTE_TAB_DISABLED = "disabled"; @Deprecated diff --git a/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetConstants.java b/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetConstants.java index 6bd6ec9835..74670da8b2 100644 --- a/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetConstants.java +++ b/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetConstants.java @@ -15,8 +15,10 @@ */ package com.vaadin.shared.ui.tabsheet; +import java.io.Serializable; + @Deprecated -public class TabsheetConstants { +public class TabsheetConstants implements Serializable { @Deprecated public static final String TAB_STYLE_NAME = "tabstyle"; diff --git a/shared/src/com/vaadin/shared/ui/textfield/TextFieldConstants.java b/shared/src/com/vaadin/shared/ui/textfield/TextFieldConstants.java index 78787a3283..8476e6769a 100644 --- a/shared/src/com/vaadin/shared/ui/textfield/TextFieldConstants.java +++ b/shared/src/com/vaadin/shared/ui/textfield/TextFieldConstants.java @@ -15,7 +15,9 @@ */ package com.vaadin.shared.ui.textfield; -public class TextFieldConstants { +import java.io.Serializable; + +public class TextFieldConstants implements Serializable { public static final String VAR_CUR_TEXT = "curText"; public static final String ATTR_NO_VALUE_CHANGE_BETWEEN_PAINTS = "nvc"; public static final String ATTR_TEXTCHANGE_TIMEOUT = "iet"; diff --git a/shared/src/com/vaadin/shared/ui/tree/TreeConstants.java b/shared/src/com/vaadin/shared/ui/tree/TreeConstants.java index d59014f52c..7adc69511d 100644 --- a/shared/src/com/vaadin/shared/ui/tree/TreeConstants.java +++ b/shared/src/com/vaadin/shared/ui/tree/TreeConstants.java @@ -15,8 +15,10 @@ */ package com.vaadin.shared.ui.tree; +import java.io.Serializable; + @Deprecated -public class TreeConstants { +public class TreeConstants implements Serializable { @Deprecated public static final String ATTRIBUTE_NODE_STYLE = "style"; diff --git a/shared/src/com/vaadin/shared/ui/treetable/TreeTableConstants.java b/shared/src/com/vaadin/shared/ui/treetable/TreeTableConstants.java index a4de050360..1a9e5f1f39 100644 --- a/shared/src/com/vaadin/shared/ui/treetable/TreeTableConstants.java +++ b/shared/src/com/vaadin/shared/ui/treetable/TreeTableConstants.java @@ -15,8 +15,10 @@ */ package com.vaadin.shared.ui.treetable; +import java.io.Serializable; + @Deprecated -public class TreeTableConstants { +public class TreeTableConstants implements Serializable { @Deprecated public static final String ATTRIBUTE_HIERARCHY_COLUMN_INDEX = "hci"; diff --git a/shared/src/com/vaadin/shared/ui/twincolselect/TwinColSelectConstants.java b/shared/src/com/vaadin/shared/ui/twincolselect/TwinColSelectConstants.java index c2ee041a7e..efde077a82 100644 --- a/shared/src/com/vaadin/shared/ui/twincolselect/TwinColSelectConstants.java +++ b/shared/src/com/vaadin/shared/ui/twincolselect/TwinColSelectConstants.java @@ -15,8 +15,10 @@ */ package com.vaadin.shared.ui.twincolselect; +import java.io.Serializable; + @Deprecated -public class TwinColSelectConstants { +public class TwinColSelectConstants implements Serializable { @Deprecated public static final String ATTRIBUTE_LEFT_CAPTION = "lc"; @Deprecated diff --git a/shared/src/com/vaadin/shared/ui/ui/UIConstants.java b/shared/src/com/vaadin/shared/ui/ui/UIConstants.java index 4d1e43824a..880913f801 100644 --- a/shared/src/com/vaadin/shared/ui/ui/UIConstants.java +++ b/shared/src/com/vaadin/shared/ui/ui/UIConstants.java @@ -15,7 +15,9 @@ */ package com.vaadin.shared.ui.ui; -public class UIConstants { +import java.io.Serializable; + +public class UIConstants implements Serializable { /** * Attribute name for the lazy resize setting . */ diff --git a/shared/src/com/vaadin/shared/ui/video/VideoConstants.java b/shared/src/com/vaadin/shared/ui/video/VideoConstants.java index fb02f5600e..88ea0c88c7 100644 --- a/shared/src/com/vaadin/shared/ui/video/VideoConstants.java +++ b/shared/src/com/vaadin/shared/ui/video/VideoConstants.java @@ -16,6 +16,8 @@ package com.vaadin.shared.ui.video; -public class VideoConstants { +import java.io.Serializable; + +public class VideoConstants implements Serializable { public static final String POSTER_RESOURCE = "poster"; } |