com.vaadin.flow.component.internal.
Class DependencyList
- java.lang.Object
-
- com.vaadin.flow.component.internal.DependencyList
-
All Implemented Interfaces:
public class DependencyList extends Object implements Serializable
List for storing dependencies/files (JavaScript, Stylesheets) to be loaded and included on the client side.
Tracks previously sent URLs and doesn't send them again.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor and Description DependencyList()
Creates a new instance.
-
Method Summary
All Methods Modifier and Type Method and Description void
add(Dependency dependency)
Adds the given dependency to be loaded by the client side.
void
clearPendingSendToClient()
Clears the list of dependencies which should be sent to the client.
Collection<Dependency>
getPendingSendToClient()
Returns a list of dependencies which should be sent to the client.
-
-
-
Method Detail
-
add
public void add(Dependency dependency)
Adds the given dependency to be loaded by the client side.
Does not send any previously sent dependencies again.
Relative URLs are interpreted as relative to the configured
frontend
directory location. You can prefix the URL withcontext://
to make it relative to the context path or use an absolute URL to refer to files outside the frontend directory.Parameters:
dependency
- the dependency to include on the page
-
getPendingSendToClient
public Collection<Dependency> getPendingSendToClient()
Returns a list of dependencies which should be sent to the client.
Returns:
a list containing the dependencies which should be sent
-
clearPendingSendToClient
public void clearPendingSendToClient()
Clears the list of dependencies which should be sent to the client.
-
-