@@ -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(() -> { |
@@ -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> { | |||
@@ -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 { | |||
@@ -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 { |
@@ -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 { |
@@ -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(); |
@@ -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; |
@@ -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 { | |||
@@ -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 | |||
*/ |
@@ -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 |
@@ -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> { |
@@ -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 { | |||
} |