diff options
12 files changed, 42 insertions, 5 deletions
diff --git a/client/src/main/java/com/vaadin/client/ResourceLoader.java b/client/src/main/java/com/vaadin/client/ResourceLoader.java index 1f8266a98b..53967a74f7 100644 --- a/client/src/main/java/com/vaadin/client/ResourceLoader.java +++ b/client/src/main/java/com/vaadin/client/ResourceLoader.java @@ -481,6 +481,15 @@ public class ResourceLoader { })); }-*/; + /** + * Executes a Runnable when all HTML imports are ready. If the browser does + * not support triggering an event when HTML imports are ready, the Runnable + * is executed immediately. + * + * @param runnable + * the code to execute + * @since 8.1 + */ protected void runWhenHtmlImportsReady(Runnable runnable) { if (GWT.isClient() && supportsHtmlWhenReady()) { addHtmlImportsReadyHandler(() -> { diff --git a/client/src/main/java/com/vaadin/client/connectors/tree/TreeRendererConnector.java b/client/src/main/java/com/vaadin/client/connectors/tree/TreeRendererConnector.java index 36d30626fb..5e0be94d9b 100644 --- a/client/src/main/java/com/vaadin/client/connectors/tree/TreeRendererConnector.java +++ b/client/src/main/java/com/vaadin/client/connectors/tree/TreeRendererConnector.java @@ -28,6 +28,12 @@ import com.vaadin.ui.Tree.TreeRenderer; import elemental.json.JsonObject; +/** + * Connector for TreeRenderer + * + * @author Vaadin Ltd + * @since 8.1 + */ @Connect(TreeRenderer.class) public class TreeRendererConnector extends AbstractRendererConnector<String> { diff --git a/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java b/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java index ad5e019b6b..93e42fab1f 100644 --- a/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java +++ b/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java @@ -26,6 +26,12 @@ import com.vaadin.shared.ui.Connect; import com.vaadin.shared.ui.Connect.LoadStyle; import com.vaadin.ui.Composite; +/** + * Connector for the Composite component. + * + * @author Vaadin Ltd + * @since 8.1 + */ @Connect(value = Composite.class, loadStyle = LoadStyle.EAGER) public class CompositeConnector extends AbstractHasComponentsConnector { diff --git a/server/src/main/java/com/vaadin/event/CollapseEvent.java b/server/src/main/java/com/vaadin/event/CollapseEvent.java index ba740142e3..f0ba6d1907 100644 --- a/server/src/main/java/com/vaadin/event/CollapseEvent.java +++ b/server/src/main/java/com/vaadin/event/CollapseEvent.java @@ -79,6 +79,7 @@ public class CollapseEvent<T> extends Component.Event { * * @param <T> * the collapsed item's type + * @since 8.1 */ @FunctionalInterface public interface CollapseListener<T> extends Serializable { diff --git a/server/src/main/java/com/vaadin/event/ExpandEvent.java b/server/src/main/java/com/vaadin/event/ExpandEvent.java index 775c368a12..ce11bd4d8c 100644 --- a/server/src/main/java/com/vaadin/event/ExpandEvent.java +++ b/server/src/main/java/com/vaadin/event/ExpandEvent.java @@ -78,6 +78,7 @@ public class ExpandEvent<T> extends Component.Event { * * @param <T> * the expanded item's type + * @since 8.1 */ @FunctionalInterface public interface ExpandListener<T> extends Serializable { diff --git a/server/src/main/java/com/vaadin/server/BootstrapHandler.java b/server/src/main/java/com/vaadin/server/BootstrapHandler.java index e26518064d..bd091c6cc1 100644 --- a/server/src/main/java/com/vaadin/server/BootstrapHandler.java +++ b/server/src/main/java/com/vaadin/server/BootstrapHandler.java @@ -249,6 +249,7 @@ public abstract class BootstrapHandler extends SynchronizedRequestHandler { * Gets the URI resolver to use for bootstrap resources. * * @return the URI resolver + * @since 8.1 */ public BootstrapUriResolver getUriResolver() { if (uriResolver == null) { @@ -261,6 +262,8 @@ public abstract class BootstrapHandler extends SynchronizedRequestHandler { /** * The URI resolver used in the bootstrap process. + * + * @since 8.1 */ protected static class BootstrapUriResolver extends VaadinUriResolver { private final BootstrapContext context; @@ -352,6 +355,7 @@ public abstract class BootstrapHandler extends SynchronizedRequestHandler { * the session of the user to resolve the protocol for * @return the URL that frontend:// resolves to, possibly using another * internal protocol + * @since 8.1 */ public static String resolveFrontendUrl(VaadinSession session) { DeploymentConfiguration configuration = session.getConfiguration(); diff --git a/server/src/main/java/com/vaadin/server/BootstrapResponse.java b/server/src/main/java/com/vaadin/server/BootstrapResponse.java index f930055b6a..00a5ee9ca4 100644 --- a/server/src/main/java/com/vaadin/server/BootstrapResponse.java +++ b/server/src/main/java/com/vaadin/server/BootstrapResponse.java @@ -118,6 +118,7 @@ public abstract class BootstrapResponse extends EventObject { * * @param uriResolver * the uri resolver which is used + * @since 8.1 */ public void setUriResolver(VaadinUriResolver uriResolver) { assert this.uriResolver == null : "URI resolver should never be changed"; @@ -129,6 +130,7 @@ public abstract class BootstrapResponse extends EventObject { * Gets the URI resolver used in the bootstrap process. * * @return the URI resolver + * @since 8.1 */ public VaadinUriResolver getUriResolver() { return uriResolver; diff --git a/server/src/main/java/com/vaadin/server/DependencyFilter.java b/server/src/main/java/com/vaadin/server/DependencyFilter.java index f5ab634ce1..3c02e6acbc 100644 --- a/server/src/main/java/com/vaadin/server/DependencyFilter.java +++ b/server/src/main/java/com/vaadin/server/DependencyFilter.java @@ -27,7 +27,7 @@ import com.vaadin.ui.Dependency; * Filter for dependencies loaded using {@link StyleSheet @StyleSheet}, * {@link JavaScript @JavaScript} and {@link HtmlImport @HtmlImport}. * - * @since + * @since 8.1 */ public interface DependencyFilter extends Serializable { @@ -51,7 +51,7 @@ public interface DependencyFilter extends Serializable { /** * Provides context information for the dependency filter operation. * - * @since + * @since 8.1 */ public static class FilterContext implements Serializable { diff --git a/server/src/main/java/com/vaadin/server/VaadinService.java b/server/src/main/java/com/vaadin/server/VaadinService.java index 4bd2958eaf..1f687e91b0 100644 --- a/server/src/main/java/com/vaadin/server/VaadinService.java +++ b/server/src/main/java/com/vaadin/server/VaadinService.java @@ -1446,7 +1446,7 @@ public abstract class VaadinService implements Serializable { * filters, which is undefined. If you need a specific order, you can * override this method and alter the order. * - * @since + * @since 8.1 * @return the list of dependency filters to use for filtering resources, * not null * @throws ServiceException @@ -1469,7 +1469,7 @@ public abstract class VaadinService implements Serializable { * * @see #createDependencyFilters() * - * @since + * @since 8.1 * @return the dependency filters to pass resources dependencies through * before loading */ diff --git a/server/src/main/java/com/vaadin/ui/Dependency.java b/server/src/main/java/com/vaadin/ui/Dependency.java index 6274ae23e6..537887a9f2 100644 --- a/server/src/main/java/com/vaadin/ui/Dependency.java +++ b/server/src/main/java/com/vaadin/ui/Dependency.java @@ -181,7 +181,7 @@ public class Dependency implements Serializable { * defined filters and returns the filtered collection of dependencies to * load. * - * @since + * @since 8.1 * @param connectorTypes * the collection of connector classes to scan * @param manager diff --git a/server/src/main/java/com/vaadin/ui/Tree.java b/server/src/main/java/com/vaadin/ui/Tree.java index 8b34fdb06e..eb1af8443b 100644 --- a/server/src/main/java/com/vaadin/ui/Tree.java +++ b/server/src/main/java/com/vaadin/ui/Tree.java @@ -57,6 +57,8 @@ public class Tree<T> extends Composite implements HasDataProvider<T> { /** * String renderer that handles icon resources and stores their identifiers * into data objects. + * + * @since 8.1 */ public final class TreeRenderer extends AbstractRenderer<T, String> implements DataGenerator<T> { diff --git a/shared/src/main/java/com/vaadin/shared/ui/tree/TreeRendererState.java b/shared/src/main/java/com/vaadin/shared/ui/tree/TreeRendererState.java index 0bc6a499f7..794f37895f 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/tree/TreeRendererState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/tree/TreeRendererState.java @@ -17,6 +17,12 @@ package com.vaadin.shared.ui.tree; import com.vaadin.shared.ui.grid.renderers.AbstractRendererState; +/** + * Shared state for Tree renderer. + * + * @author Vaadin Ltd + * @since 8.1 + */ public class TreeRendererState extends AbstractRendererState { } |