Package org.dwcj.annotations
Annotation Type StyleSheet
@Retention(RUNTIME)
@Target(TYPE)
@Repeatable(Container.class)
@Inherited
@Documented
public @interface StyleSheet
Annotates a class to inject a CSS content into the web page.
The annotation can be used on the AppLevel or the control level.
@StyleSheet(url = "https://www.w3schools.com/w3css/4/w3.css")
@StyleSheet(url = "https://www.w3schools.com/w3css/4/w3.css", top = true)
- See Also:
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionA set of attributes to be added to the style element.A unique resource id.booleanA boolean value specifying whether this style is to be injected into the top level window of the page.
-
Element Details
-
url
String urlA CSS URL to be injected into this web page as a style element.
-
-
-
id
String idA unique resource id. Can be used to avoid duplications- Default:
- ""
-
top
boolean topA boolean value specifying whether this style is to be injected into the top level window of the page.- Default:
- false
-
attributes
Attribute[] attributesA set of attributes to be added to the style element.- Default:
- {}
-