diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-09-27 12:03:18 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-27 13:03:18 +0300 |
commit | 22566d5d9d3794edc1bad59a709f3a78b3a3ba28 (patch) | |
tree | ea1ac7cdb9e40d0f1b8b3f438f3e1d6dcbc3fb57 /shared | |
parent | 367c7751a6ff9234fd47bc5a48e6ef9a4117a7a2 (diff) | |
download | vaadin-framework-22566d5d9d3794edc1bad59a709f3a78b3a3ba28.tar.gz vaadin-framework-22566d5d9d3794edc1bad59a709f3a78b3a3ba28.zip |
Convert Embedded not to be a LegacyComponent (#10088)
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/embedded/EmbeddedConstants.java | 25 | ||||
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/embedded/EmbeddedState.java | 72 |
2 files changed, 72 insertions, 25 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/embedded/EmbeddedConstants.java b/shared/src/main/java/com/vaadin/shared/ui/embedded/EmbeddedConstants.java deleted file mode 100644 index 6e0564f5b7..0000000000 --- a/shared/src/main/java/com/vaadin/shared/ui/embedded/EmbeddedConstants.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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.ui.embedded; - -import java.io.Serializable; - -@Deprecated -public class EmbeddedConstants implements Serializable { - @Deprecated - public static final String ALTERNATE_TEXT = "alt"; - -} diff --git a/shared/src/main/java/com/vaadin/shared/ui/embedded/EmbeddedState.java b/shared/src/main/java/com/vaadin/shared/ui/embedded/EmbeddedState.java index 726e021ed2..9476aabe46 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/embedded/EmbeddedState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/embedded/EmbeddedState.java @@ -15,10 +15,82 @@ */ package com.vaadin.shared.ui.embedded; +import java.util.HashMap; +import java.util.Map; + import com.vaadin.shared.ui.AbstractEmbeddedState; public class EmbeddedState extends AbstractEmbeddedState { { primaryStyleName = "v-embedded"; } + + /** + * The object type. + * + * @since + */ + public int type; + + /** + * The MIME-type of the object. + * + * @since + */ + public String mimeType; + + /** + * Specifies the base path used to resolve relative URIs specified by the + * classid, data, and archive attributes. + * + * @since + */ + public String codebase; + + /** + * The MIME-Type of the code. + * + * @since + */ + public String codetype; + + /** + * May be used to specify the location of an object's implementation via a + * URI. + * + * @since + */ + public String classId; + + /** + * May be used to specify a space-separated list of URIs for archives + * containing resources relevant to the object. + * + * @since + */ + public String archive; + + /** + * The component's "alt-text". + * + * @since + */ + public String altText; + + /** + * Specifies a message that a user agent may render while loading the + * object's implementation and data. + * + * @since + */ + public String standby; + + /** + * Object parameters. Parameters are optional information, and they are + * passed to the instantiated object. + * + * @since + */ + public final Map<String, String> parameters = new HashMap<>(); + } |