Annotation Interface StyleSheet
@Retention(RUNTIME)
@Target(TYPE)
@Documented
@Repeatable(Container.class)
public @interface StyleSheet
Defines style sheet dependencies on a
Component
class. For adding
multiple style sheets for a single component, you can use this annotation
multiple times.
It is guaranteed that dependencies will be loaded only once.
NOTE: while this annotation is not inherited using the
@Inherited
annotation, the annotations of the possible
parent components or implemented interfaces are read when sending the
dependencies to the browser.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Internal annotation to enable use of multipleStyleSheet
annotations. -
Required Element Summary
-
Optional Element Summary
-
Element Details
-
value
String valueStyle sheet file URL to load before using the annotatedComponent
in the browser.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.- Returns:
- a style sheet file URL
-
-