@ParametersAreNonnullByDefault
public final class ScreenDependencyUtils
extends java.lang.Object
Constructor and Description |
---|
ScreenDependencyUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addScreenDependencies(FrameOwner frameOwner,
java.lang.String... dependencies)
Adds dependency paths to the given
frameOwner . |
static void |
addScreenDependency(FrameOwner frameOwner,
java.lang.String path,
com.vaadin.ui.Dependency.Type type)
Adds a dependency to the given
frameOwner . |
protected static java.util.Optional<CubaWindowVerticalLayout> |
findWindowVerticalLayout(FrameOwner frameOwner) |
static java.util.List<com.vaadin.ui.HasDependencies.ClientDependency> |
getScreenDependencies(FrameOwner frameOwner)
Returns a list of dependencies previously added to the given frame owner.
|
static void |
setScreenDependencies(FrameOwner frameOwner,
java.util.List<com.vaadin.ui.HasDependencies.ClientDependency> dependencies)
Sets a list of dependencies to the given
frameOwner . |
public static java.util.List<com.vaadin.ui.HasDependencies.ClientDependency> getScreenDependencies(FrameOwner frameOwner)
frameOwner
- a frame owner from which the dependency list is obtainedpublic static void setScreenDependencies(FrameOwner frameOwner, java.util.List<com.vaadin.ui.HasDependencies.ClientDependency> dependencies)
frameOwner
.
Each dependency represented with a HasDependencies.ClientDependency
object which path corresponds to one of the sources:
webjar://
vaadin://
http://
or https://
frameOwner
- a frame owner to which dependencies are addeddependencies
- dependencies to setpublic static void addScreenDependencies(FrameOwner frameOwner, java.lang.String... dependencies)
frameOwner
.
Each path corresponds to one of the sources:
webjar://
vaadin://
http://
or https://
frameOwner
- a frame owner to which dependencies are addeddependencies
- dependencies to addpublic static void addScreenDependency(FrameOwner frameOwner, java.lang.String path, com.vaadin.ui.Dependency.Type type)
frameOwner
. Path corresponds to one of the sources:
webjar://
vaadin://
http://
or https://
frameOwner
- a frame owner to which a dependency is addedpath
- a dependency pathtype
- a dependency typeprotected static java.util.Optional<CubaWindowVerticalLayout> findWindowVerticalLayout(FrameOwner frameOwner)