aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-13 19:13:24 +0300
committerArtur Signell <artur@vaadin.com>2012-08-13 19:18:50 +0300
commitacf099b41fe1f983d416e598b5b49eaea9f35c66 (patch)
treeda664e675e639a074b6d8abde3af4d7a7b52055a /shared
parente85d933b25cc3c5cc85eb7eb4b13b950fd8e1569 (diff)
downloadvaadin-framework-acf099b41fe1f983d416e598b5b49eaea9f35c66.tar.gz
vaadin-framework-acf099b41fe1f983d416e598b5b49eaea9f35c66.zip
Eliminated dependencies from server to client (#9279)
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ApplicationConstants.java36
-rw-r--r--shared/src/com/vaadin/shared/EventId.java3
-rw-r--r--shared/src/com/vaadin/shared/JsonConstants.java21
-rw-r--r--shared/src/com/vaadin/shared/ui/combobox/ComboBoxConstants.java13
-rw-r--r--shared/src/com/vaadin/shared/ui/datefield/DateFieldConstants.java12
-rw-r--r--shared/src/com/vaadin/shared/ui/draganddropwrapper/DragAndDropWrapperConstants.java14
-rw-r--r--shared/src/com/vaadin/shared/ui/embedded/EmbeddedConstants.java11
-rw-r--r--shared/src/com/vaadin/shared/ui/menubar/MenuBarConstants.java23
-rw-r--r--shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupConstants.java10
-rw-r--r--shared/src/com/vaadin/shared/ui/root/RootConstants.java36
-rw-r--r--shared/src/com/vaadin/shared/ui/table/TableConstants.java24
-rw-r--r--shared/src/com/vaadin/shared/ui/tabsheet/TabsheetBaseConstants.java19
-rw-r--r--shared/src/com/vaadin/shared/ui/tabsheet/TabsheetConstants.java11
-rw-r--r--shared/src/com/vaadin/shared/ui/textfield/TextFieldConstants.java14
-rw-r--r--shared/src/com/vaadin/shared/ui/tree/TreeConstants.java23
-rw-r--r--shared/src/com/vaadin/shared/ui/treetable/TreeTableConstants.java11
-rw-r--r--shared/src/com/vaadin/shared/ui/twincolselect/TwinColSelectConstants.java13
17 files changed, 294 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ApplicationConstants.java b/shared/src/com/vaadin/shared/ApplicationConstants.java
new file mode 100644
index 0000000000..ff87e6c4b6
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ApplicationConstants.java
@@ -0,0 +1,36 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared;
+
+public class ApplicationConstants {
+ // This indicates the whole page is generated by us (not embedded)
+ public static final String GENERATED_BODY_CLASSNAME = "v-generated-body";
+
+ public static final String APP_REQUEST_PATH = "APP/";
+
+ public static final String UIDL_REQUEST_PATH = "UIDL/";
+
+ public static final String CONNECTOR_RESOURCE_PREFIX = APP_REQUEST_PATH
+ + "CONNECTOR";
+
+ public static final String APP_PROTOCOL_PREFIX = "app://";
+ public static final String CONNECTOR_PROTOCOL_PREFIX = "connector://";
+ public static final String UIDL_SECURITY_TOKEN_ID = "Vaadin-Security-Key";
+ /**
+ * Name of the parameter used to transmit root ids back and forth
+ */
+ public static final String ROOT_ID_PARAMETER = "rootId";
+
+ public static final String PARAM_UNLOADBURST = "onunloadburst";
+
+ @Deprecated
+ public static final String UPDATE_VARIABLE_INTERFACE = "v";
+ @Deprecated
+ public static final String UPDATE_VARIABLE_METHOD = "v";
+
+ public static final String PORTLET_RESOUCE_URL_BASE = "portletAppURLBase";
+
+ public static final String V_RESOURCE_PATH = "v-resourcePath";
+
+}
diff --git a/shared/src/com/vaadin/shared/EventId.java b/shared/src/com/vaadin/shared/EventId.java
index 616d37dcd0..d5968988d6 100644
--- a/shared/src/com/vaadin/shared/EventId.java
+++ b/shared/src/com/vaadin/shared/EventId.java
@@ -6,4 +6,7 @@ package com.vaadin.shared;
public interface EventId {
public static final String BLUR = "blur";
public static final String FOCUS = "focus";
+ public static final String CLICK_EVENT_IDENTIFIER = "click";
+ public static final String LAYOUT_CLICK_EVENT_IDENTIFIER = "lClick";
+
}
diff --git a/shared/src/com/vaadin/shared/JsonConstants.java b/shared/src/com/vaadin/shared/JsonConstants.java
new file mode 100644
index 0000000000..afa831fb76
--- /dev/null
+++ b/shared/src/com/vaadin/shared/JsonConstants.java
@@ -0,0 +1,21 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared;
+
+public class JsonConstants {
+ public static final String VTYPE_CONNECTOR = "c";
+ public static final String VTYPE_BOOLEAN = "b";
+ public static final String VTYPE_DOUBLE = "d";
+ public static final String VTYPE_FLOAT = "f";
+ public static final String VTYPE_LONG = "l";
+ public static final String VTYPE_INTEGER = "i";
+ public static final String VTYPE_STRING = "s";
+ public static final String VTYPE_ARRAY = "a";
+ public static final String VTYPE_STRINGARRAY = "S";
+ public static final String VTYPE_MAP = "m";
+ public static final String VTYPE_LIST = "L";
+ public static final String VTYPE_SET = "q";
+ public static final String VTYPE_NULL = "n";
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/combobox/ComboBoxConstants.java b/shared/src/com/vaadin/shared/ui/combobox/ComboBoxConstants.java
new file mode 100644
index 0000000000..fe33499ba3
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/combobox/ComboBoxConstants.java
@@ -0,0 +1,13 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.combobox;
+
+@Deprecated
+public class ComboBoxConstants {
+ @Deprecated
+ public static final String ATTR_INPUTPROMPT = "prompt";
+ @Deprecated
+ public static final String ATTR_NO_TEXT_INPUT = "noInput";
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/datefield/DateFieldConstants.java b/shared/src/com/vaadin/shared/ui/datefield/DateFieldConstants.java
new file mode 100644
index 0000000000..ffb9ffbd6f
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/datefield/DateFieldConstants.java
@@ -0,0 +1,12 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.datefield;
+
+@Deprecated
+public class DateFieldConstants {
+
+ @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
new file mode 100644
index 0000000000..a7f2086233
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/draganddropwrapper/DragAndDropWrapperConstants.java
@@ -0,0 +1,14 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.draganddropwrapper;
+
+@Deprecated
+public class DragAndDropWrapperConstants {
+
+ @Deprecated
+ public static final String HTML5_DATA_FLAVORS = "html5-data-flavors";
+ @Deprecated
+ public static final String DRAG_START_MODE = "dragStartMode";
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/embedded/EmbeddedConstants.java b/shared/src/com/vaadin/shared/ui/embedded/EmbeddedConstants.java
new file mode 100644
index 0000000000..5163395fc1
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/embedded/EmbeddedConstants.java
@@ -0,0 +1,11 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.embedded;
+
+@Deprecated
+public class EmbeddedConstants {
+ @Deprecated
+ public static final String ALTERNATE_TEXT = "alt";
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/menubar/MenuBarConstants.java b/shared/src/com/vaadin/shared/ui/menubar/MenuBarConstants.java
new file mode 100644
index 0000000000..be4e26f76e
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/menubar/MenuBarConstants.java
@@ -0,0 +1,23 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.menubar;
+
+@Deprecated
+public class MenuBarConstants {
+ @Deprecated
+ public static final String ATTRIBUTE_CHECKED = "checked";
+ @Deprecated
+ public static final String ATTRIBUTE_ITEM_DESCRIPTION = "description";
+ @Deprecated
+ public static final String ATTRIBUTE_ITEM_ICON = "icon";
+ @Deprecated
+ public static final String ATTRIBUTE_ITEM_DISABLED = "disabled";
+ @Deprecated
+ public static final String ATTRIBUTE_ITEM_STYLE = "style";
+ @Deprecated
+ public static final String HTML_CONTENT_ALLOWED = "usehtml";
+ @Deprecated
+ public static final String OPEN_ROOT_MENU_ON_HOWER = "ormoh";
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupConstants.java b/shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupConstants.java
new file mode 100644
index 0000000000..76084ba186
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupConstants.java
@@ -0,0 +1,10 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.optiongroup;
+
+public class OptionGroupConstants {
+ 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/root/RootConstants.java b/shared/src/com/vaadin/shared/ui/root/RootConstants.java
new file mode 100644
index 0000000000..6efb04ddc5
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/root/RootConstants.java
@@ -0,0 +1,36 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.root;
+
+public class RootConstants {
+ /**
+ * Attribute name for the lazy resize setting .
+ */
+ @Deprecated
+ public static final String RESIZE_LAZY = "rL";
+ @Deprecated
+ public static final String BROWSER_HEIGHT_VAR = "browserHeight";
+
+ @Deprecated
+ public static final String BROWSER_WIDTH_VAR = "browserWidth";
+ @Deprecated
+ public static final String NOTIFICATION_HTML_CONTENT_NOT_ALLOWED = "useplain";
+
+ @Deprecated
+ public static final String FRAGMENT_VARIABLE = "fragment";
+
+ @Deprecated
+ public static final String ATTRIBUTE_NOTIFICATION_STYLE = "style";
+ @Deprecated
+ public static final String ATTRIBUTE_NOTIFICATION_CAPTION = "caption";
+ @Deprecated
+ public static final String ATTRIBUTE_NOTIFICATION_MESSAGE = "message";
+ @Deprecated
+ public static final String ATTRIBUTE_NOTIFICATION_ICON = "icon";
+ @Deprecated
+ public static final String ATTRIBUTE_NOTIFICATION_POSITION = "position";
+ @Deprecated
+ public static final String ATTRIBUTE_NOTIFICATION_DELAY = "delay";
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/table/TableConstants.java b/shared/src/com/vaadin/shared/ui/table/TableConstants.java
new file mode 100644
index 0000000000..0af61615b9
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/table/TableConstants.java
@@ -0,0 +1,24 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.table;
+
+public class TableConstants {
+ 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";
+ public static final String COLUMN_RESIZE_EVENT_ID = "columnResize";
+ public static final String COLUMN_REORDER_EVENT_ID = "columnReorder";
+
+ @Deprecated
+ public static final String ATTRIBUTE_PAGEBUFFER_FIRST = "pb-ft";
+ @Deprecated
+ public static final String ATTRIBUTE_PAGEBUFFER_LAST = "pb-l";
+ /**
+ * Tell the client that old keys are no longer valid because the server has
+ * cleared its key map.
+ */
+ @Deprecated
+ public static final String ATTRIBUTE_KEY_MAPPER_RESET = "clearKeyMap";
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetBaseConstants.java b/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetBaseConstants.java
new file mode 100644
index 0000000000..5e07ca6c31
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetBaseConstants.java
@@ -0,0 +1,19 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.tabsheet;
+
+@Deprecated
+public class TabsheetBaseConstants {
+ @Deprecated
+ public static final String ATTRIBUTE_TAB_DISABLED = "disabled";
+ @Deprecated
+ public static final String ATTRIBUTE_TAB_DESCRIPTION = "description";
+ @Deprecated
+ public static final String ATTRIBUTE_TAB_ERROR_MESSAGE = "error";
+ @Deprecated
+ public static final String ATTRIBUTE_TAB_CAPTION = "caption";
+ @Deprecated
+ public static final String ATTRIBUTE_TAB_ICON = "icon";
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetConstants.java b/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetConstants.java
new file mode 100644
index 0000000000..f92ad70e3e
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetConstants.java
@@ -0,0 +1,11 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.tabsheet;
+
+@Deprecated
+public class TabsheetConstants {
+ @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
new file mode 100644
index 0000000000..6a0856f09b
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/textfield/TextFieldConstants.java
@@ -0,0 +1,14 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.textfield;
+
+public class TextFieldConstants {
+ 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";
+ public static final String VAR_CURSOR = "c";
+ public static final String ATTR_TEXTCHANGE_EVENTMODE = "iem";
+ public static final String TEXTCHANGE_MODE_EAGER = "EAGER";
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/tree/TreeConstants.java b/shared/src/com/vaadin/shared/ui/tree/TreeConstants.java
new file mode 100644
index 0000000000..21b61e783b
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/tree/TreeConstants.java
@@ -0,0 +1,23 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.tree;
+
+@Deprecated
+public class TreeConstants {
+
+ @Deprecated
+ public static final String ATTRIBUTE_NODE_STYLE = "style";
+ @Deprecated
+ public static final String ATTRIBUTE_NODE_CAPTION = "caption";
+ @Deprecated
+ public static final String ATTRIBUTE_NODE_ICON = "icon";
+
+ @Deprecated
+ public static final String ATTRIBUTE_ACTION_CAPTION = "caption";
+ @Deprecated
+ public static final String ATTRIBUTE_ACTION_ICON = ATTRIBUTE_NODE_ICON;
+
+ public static final String ITEM_CLICK_EVENT_ID = "itemClick";
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/treetable/TreeTableConstants.java b/shared/src/com/vaadin/shared/ui/treetable/TreeTableConstants.java
new file mode 100644
index 0000000000..b43594b0b7
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/treetable/TreeTableConstants.java
@@ -0,0 +1,11 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.treetable;
+
+@Deprecated
+public class TreeTableConstants {
+ @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
new file mode 100644
index 0000000000..cba5b3a0e2
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/twincolselect/TwinColSelectConstants.java
@@ -0,0 +1,13 @@
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+package com.vaadin.shared.ui.twincolselect;
+
+@Deprecated
+public class TwinColSelectConstants {
+ @Deprecated
+ public static final String ATTRIBUTE_LEFT_CAPTION = "lc";
+ @Deprecated
+ public static final String ATTRIBUTE_RIGHT_CAPTION = "rc";
+
+}