Package org.dwcj.annotations
Annotation Type Link
@Retention(RUNTIME)
@Target(TYPE)
@Repeatable(Container.class)
@Inherited
@Documented
public @interface Link
Annotates a class to inject a Link into the web page.
The annotation can be used on the class level only and the class must extend
`org.dwcj.App` in order for the annotation to be processed.
@Link(url = "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap")
@Link(url = "https://fonts.googleapis.com/icon?family=Material+Icons", 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 link element.A unique resource id.booleanA boolean value specifying whether this link is to be injected into the head (true) or body (false) section.
-
Element Details
-
url
String urlA link URL to be injected into this web page as a link element..
-
-
-
id
String idA unique resource id. Can be used to avoid duplications- Default:
- ""
-
top
boolean topA boolean value specifying whether this link is to be injected into the head (true) or body (false) section.- Default:
- true
-
attributes
Attribute[] attributesA set of attributes to be added to the link 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:
- {}
-