summaryrefslogtreecommitdiffstats
path: root/compatibility-shared
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-08-30 13:42:53 +0300
committerHenri Sara <hesara@vaadin.com>2016-08-30 14:10:21 +0000
commitb31a71ae635d431c258d387a90bacb27d62a6bbf (patch)
tree03a37be3683857243099a399b1517b134ee574de /compatibility-shared
parentb965c256e86dd14b8baf607f4456da58f6f1d21a (diff)
downloadvaadin-framework-b31a71ae635d431c258d387a90bacb27d62a6bbf.tar.gz
vaadin-framework-b31a71ae635d431c258d387a90bacb27d62a6bbf.zip
Move and duplicate client side and state to compatibility package
* ProgressBar * ProgressIndicator * OptionGroup * Table * Tree * TreeTable Change-Id: Ie1249631cbdd2721f2c3a36e1b8ffc8160fca6aa
Diffstat (limited to 'compatibility-shared')
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/combobox/ComboBoxState.java2
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/optiongroup/OptionGroupConstants.java23
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/optiongroup/OptionGroupState.java33
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressBarState.java39
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressIndicatorServerRpc.java24
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressIndicatorState.java30
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/select/AbstractSelectState.java38
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/CollapseMenuContent.java40
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableConstants.java55
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableServerRpc.java36
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableState.java31
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeConstants.java41
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeServerRpc.java34
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeState.java29
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/treetable/TreeTableConstants.java25
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/treetable/TreeTableState.java24
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/twincolselect/TwinColSelectConstants.java27
-rw-r--r--compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/twincolselect/TwinColSelectState.java29
18 files changed, 559 insertions, 1 deletions
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/combobox/ComboBoxState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/combobox/ComboBoxState.java
index bbab911309..5911308111 100644
--- a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/combobox/ComboBoxState.java
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/combobox/ComboBoxState.java
@@ -15,7 +15,7 @@
*/
package com.vaadin.v7.shared.ui.combobox;
-import com.vaadin.shared.ui.select.AbstractSelectState;
+import com.vaadin.v7.shared.ui.select.AbstractSelectState;
/**
* Shared state for the ComboBox component.
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/optiongroup/OptionGroupConstants.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/optiongroup/OptionGroupConstants.java
new file mode 100644
index 0000000000..6c0a74b7ea
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/optiongroup/OptionGroupConstants.java
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.optiongroup;
+
+import java.io.Serializable;
+
+public class OptionGroupConstants implements Serializable {
+ public static final String ATTRIBUTE_OPTION_DISABLED = "disabled";
+
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/optiongroup/OptionGroupState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/optiongroup/OptionGroupState.java
new file mode 100644
index 0000000000..167b1b31f0
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/optiongroup/OptionGroupState.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.optiongroup;
+
+import com.vaadin.shared.annotations.DelegateToWidget;
+import com.vaadin.v7.shared.ui.select.AbstractSelectState;
+
+/**
+ * Shared state for the OptionGroup component.
+ *
+ * @since 7.0
+ */
+public class OptionGroupState extends AbstractSelectState {
+ {
+ primaryStyleName = "v-select-optiongroup";
+ }
+
+ @DelegateToWidget
+ public boolean htmlContentAllowed = false;
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressBarState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressBarState.java
new file mode 100644
index 0000000000..c5b07dd3e4
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressBarState.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.vaadin.v7.shared.ui.progressindicator;
+
+import com.vaadin.shared.AbstractFieldState;
+import com.vaadin.shared.annotations.NoLayout;
+import com.vaadin.shared.communication.SharedState;
+
+/**
+ * {@link SharedState} for {@link com.vaadin.ui.ProgressBar}
+ *
+ * @since 7.1
+ * @author Vaadin Ltd
+ */
+public class ProgressBarState extends AbstractFieldState {
+ public static final String PRIMARY_STYLE_NAME = "v-progressbar";
+
+ {
+ primaryStyleName = PRIMARY_STYLE_NAME;
+ }
+ public boolean indeterminate = false;
+ @NoLayout
+ public float state = 0.0f;
+
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressIndicatorServerRpc.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressIndicatorServerRpc.java
new file mode 100644
index 0000000000..26ca1143e8
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressIndicatorServerRpc.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.progressindicator;
+
+import com.vaadin.shared.annotations.NoLoadingIndicator;
+import com.vaadin.shared.communication.ServerRpc;
+
+public interface ProgressIndicatorServerRpc extends ServerRpc {
+ @NoLoadingIndicator
+ public void poll();
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressIndicatorState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressIndicatorState.java
new file mode 100644
index 0000000000..9cc19d860f
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressIndicatorState.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.progressindicator;
+
+import com.vaadin.shared.annotations.NoLayout;
+
+@Deprecated
+public class ProgressIndicatorState extends ProgressBarState {
+ public static final String PRIMARY_STYLE_NAME = "v-progressindicator";
+
+ {
+ primaryStyleName = PRIMARY_STYLE_NAME;
+ }
+
+ @NoLayout
+ public int pollingInterval = 1000;
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/select/AbstractSelectState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/select/AbstractSelectState.java
new file mode 100644
index 0000000000..624a20162a
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/select/AbstractSelectState.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.select;
+
+import com.vaadin.shared.AbstractFieldState;
+
+/**
+ * Shared state for the AbstractSelect component.
+ *
+ * @since 7.6
+ */
+public class AbstractSelectState extends AbstractFieldState {
+
+ {
+ primaryStyleName = "v-select";
+ }
+
+ /**
+ * Is the select in multiselect mode?
+ *
+ * Note that Table and Tree still use the old communication mechanism for
+ * multi-mode support.
+ */
+ public boolean multiSelect;
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/CollapseMenuContent.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/CollapseMenuContent.java
new file mode 100644
index 0000000000..adc2e7a61a
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/CollapseMenuContent.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.vaadin.v7.shared.ui.table;
+
+/**
+ * Defines whether only collapsible columns should be shown to the user in the
+ * column collapse menu.
+ *
+ * @see com.vaadin.ui.Table#setCollapseMenuContent(CollapseMenuContent)
+ *
+ * @since 7.6
+ * @author Vaadin Ltd
+ */
+public enum CollapseMenuContent {
+ /**
+ * All columns are shown in the collapse menu. Columns that are not
+ * collapsible are shown as disabled in the menu. This is the default
+ * setting.
+ */
+ ALL_COLUMNS,
+
+ /**
+ * Only collapsible columns are shown in the collapse menu.
+ */
+ COLLAPSIBLE_COLUMNS;
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableConstants.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableConstants.java
new file mode 100644
index 0000000000..3fb5a4de44
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableConstants.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.table;
+
+import java.io.Serializable;
+
+public class TableConstants implements Serializable {
+ /**
+ * Enum describing different sections of Table.
+ *
+ * @since 7.6
+ */
+ public enum Section {
+ HEADER, BODY, FOOTER
+ }
+
+ 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";
+ public static final String COLUMN_COLLAPSE_EVENT_ID = "columnCollapse";
+
+ @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";
+
+ /**
+ * Default value for {@link TableState#collapseMenuContent}.
+ *
+ * @since 7.6
+ */
+ public static final CollapseMenuContent DEFAULT_COLLAPSE_MENU_CONTENT = CollapseMenuContent.ALL_COLUMNS;
+
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableServerRpc.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableServerRpc.java
new file mode 100644
index 0000000000..18ba4e69e9
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableServerRpc.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.table;
+
+import com.vaadin.shared.MouseEventDetails;
+import com.vaadin.shared.communication.ServerRpc;
+import com.vaadin.v7.shared.ui.table.TableConstants.Section;
+
+/**
+ * Client-to-server RPC interface for the Table component
+ *
+ * @since 7.6
+ * @author Vaadin Ltd
+ */
+public interface TableServerRpc extends ServerRpc {
+
+ /**
+ * Informs the server that a context click happened inside of Table
+ */
+ public void contextClick(String rowKey, String colKey, Section section,
+ MouseEventDetails details);
+
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableState.java
new file mode 100644
index 0000000000..979a5e2591
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/table/TableState.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.table;
+
+import com.vaadin.v7.shared.ui.select.AbstractSelectState;
+
+/**
+ * Shared state for the Table component.
+ *
+ * @since 7.0
+ */
+public class TableState extends AbstractSelectState {
+ {
+ primaryStyleName = "v-table";
+ }
+
+ public CollapseMenuContent collapseMenuContent = TableConstants.DEFAULT_COLLAPSE_MENU_CONTENT;
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeConstants.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeConstants.java
new file mode 100644
index 0000000000..7fe3779e8c
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeConstants.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.tree;
+
+import java.io.Serializable;
+
+@Deprecated
+public class TreeConstants implements Serializable {
+
+ @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_NODE_ICON_ALT = "iconalt";
+
+ @Deprecated
+ public static final String ATTRIBUTE_ACTION_CAPTION = "caption";
+ @Deprecated
+ public static final String ATTRIBUTE_ACTION_ICON = ATTRIBUTE_NODE_ICON;
+ @Deprecated
+ public static final String ATTRIBUTE_HTML_ALLOWED = "htmlAllowed";
+
+ public static final String ITEM_CLICK_EVENT_ID = "itemClick";
+
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeServerRpc.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeServerRpc.java
new file mode 100644
index 0000000000..23587a43e8
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeServerRpc.java
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.tree;
+
+import com.vaadin.shared.MouseEventDetails;
+import com.vaadin.shared.communication.ServerRpc;
+
+/**
+ * Client-to-server RPC interface for the Tree component
+ *
+ * @since 7.6
+ * @author Vaadin Ltd
+ */
+public interface TreeServerRpc extends ServerRpc {
+
+ /**
+ * Informs the server that a context click happened inside of Tree
+ */
+ public void contextClick(String rowKey, MouseEventDetails details);
+
+} \ No newline at end of file
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeState.java
new file mode 100644
index 0000000000..bc99ae642e
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/tree/TreeState.java
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.tree;
+
+import com.vaadin.v7.shared.ui.select.AbstractSelectState;
+
+/**
+ * Shared state for the Table component.
+ *
+ * @since 7.0
+ */
+public class TreeState extends AbstractSelectState {
+ {
+ primaryStyleName = "v-tree";
+ }
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/treetable/TreeTableConstants.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/treetable/TreeTableConstants.java
new file mode 100644
index 0000000000..3b2b68d9e2
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/treetable/TreeTableConstants.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.treetable;
+
+import java.io.Serializable;
+
+@Deprecated
+public class TreeTableConstants implements Serializable {
+ @Deprecated
+ public static final String ATTRIBUTE_HIERARCHY_COLUMN_INDEX = "hci";
+
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/treetable/TreeTableState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/treetable/TreeTableState.java
new file mode 100644
index 0000000000..6bb4ee528d
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/treetable/TreeTableState.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.treetable;
+
+import com.vaadin.v7.shared.ui.table.TableState;
+
+public class TreeTableState extends TableState {
+ {
+ primaryStyleName = "v-table";
+ }
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/twincolselect/TwinColSelectConstants.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/twincolselect/TwinColSelectConstants.java
new file mode 100644
index 0000000000..439334fcb7
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/twincolselect/TwinColSelectConstants.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.twincolselect;
+
+import java.io.Serializable;
+
+@Deprecated
+public class TwinColSelectConstants implements Serializable {
+ @Deprecated
+ public static final String ATTRIBUTE_LEFT_CAPTION = "lc";
+ @Deprecated
+ public static final String ATTRIBUTE_RIGHT_CAPTION = "rc";
+
+}
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/twincolselect/TwinColSelectState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/twincolselect/TwinColSelectState.java
new file mode 100644
index 0000000000..83a3c9667b
--- /dev/null
+++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/twincolselect/TwinColSelectState.java
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.v7.shared.ui.twincolselect;
+
+import com.vaadin.v7.shared.ui.select.AbstractSelectState;
+
+/**
+ * Shared state for the TwinColSelect component.
+ *
+ * @since 7.0
+ */
+public class TwinColSelectState extends AbstractSelectState {
+ {
+ primaryStyleName = "v-select-twincol";
+ }
+}