Class DependencyList
java.lang.Object
com.vaadin.flow.component.internal.DependencyList
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Dependency dependency) Adds the given dependency to be loaded by the client side.voidClears the list of dependencies which should be sent to the client.getDependencyByUrl(String url, Dependency.Type type) Gets a dependency by its URL and type.Returns a list of dependencies which should be sent to the client.booleanRemoves a dependency by its ID.
-
Constructor Details
-
DependencyList
public DependencyList()Creates a new instance.
-
-
Method Details
-
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. -
remove
Removes a dependency by its ID.For internal use only. May be renamed or removed in a future release.
- Parameters:
dependencyId- the ID of the dependency to remove- Returns:
- true if the dependency was removed, false if it wasn't found