Annotation Type 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
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A link URL to be injected into this web page as a link element..
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    A set of attributes to be added to the link element.
    A unique resource id.
    boolean
    A boolean value specifying whether this link is to be injected into the head (true) or body (false) section.
  • Element Details

    • url

      String url
      A link URL to be injected into this web page as a link element..
    • id

      String id
      A unique resource id. Can be used to avoid duplications
      Default:
      ""
    • top

      boolean top
      A boolean value specifying whether this link is to be injected into the head (true) or body (false) section.
      Default:
      true
    • attributes

      Attribute[] attributes
      A 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:
      {}