aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorArtur <artur@vaadin.com>2017-04-18 10:57:11 +0300
committerHenri Sara <henri.sara@gmail.com>2017-04-18 10:57:11 +0300
commit9a0f1c136168fbc7b63570b88da7a9cba9de389c (patch)
tree1f08ad9d488a00fabdb639f7ffe9d7a02978aad3 /shared
parentb480c7166ac56801cda11b73a6ad4694d467b98b (diff)
downloadvaadin-framework-9a0f1c136168fbc7b63570b88da7a9cba9de389c.tar.gz
vaadin-framework-9a0f1c136168fbc7b63570b88da7a9cba9de389c.zip
Composite component (#8952)
A composite is included in the server side hierarchy and in the connector hierarchy on the client side but does not have its own widget or DOM. To ensure that captions etc are renderer correctly for the root contents, the client side connector returns both the widget and state for the content connector. Server side API related to width and height are automatically forwarded to the root component to enable easy use of the composite inside different layout configurations. Other server side API inherited from AbstractComponent is unwanted, should be optional and therefore throw an exception by default. Resolves #2458
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/composite/CompositeState.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/composite/CompositeState.java b/shared/src/main/java/com/vaadin/shared/composite/CompositeState.java
new file mode 100644
index 0000000000..1f552390df
--- /dev/null
+++ b/shared/src/main/java/com/vaadin/shared/composite/CompositeState.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.shared.composite;
+
+import com.vaadin.shared.AbstractComponentState;
+
+/**
+ * Shared state for Composite.
+ *
+ * @author Vaadin Ltd
+ * @since
+ */
+public class CompositeState extends AbstractComponentState {
+}