Package org.dwcj.annotations
Annotation Type InlineStyleSheet
@Retention(RUNTIME)
@Target(TYPE)
@Repeatable(Container.class)
@Inherited
@Documented
public @interface InlineStyleSheet
Annotates a class to inject a CSS content into the web page.
The annotation can be used on the AppLevel or the control level.
@InlineStyleSheet(value = "body {background-color: red;}")
@InlineStyleSheet(value = "body {background-color: red;}", top = true)
@InlineStyleSheet(value = "css/style.css", local = 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 is in local file.booleanA boolean value specifying whether this style is to be injected into the top level window of the page.
-
Element Details
-
value
String valueA CSS content to be injected into this web page as a style element.
-
-
-
id
String idA unique resource id. Can be used to avoid duplications- Default:
- ""
-
local
boolean localA boolean value specifying whether this style is to be injected is in local file.- Default:
- false
-
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. Attributes can be specified either as a string in the format "attr=value,attr=value" or as a HashMap containing key/value pairs.- Default:
- {}
-