Annotation Type AppMeta


Annotates a class to set the meta tags of the app. It can be used multiple times to set multiple meta tags. The attributes of the meta tag can be set using the Attribute annotation. The attributes can be repeated multiple times to set multiple attributes but the attributes are optional. 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.
 {@code
 @AppMeta(name = "description", content = "My App")
 @AppMeta(name = "keywords", content = "My, App, Java")
 @AppMeta(name = "theme-color", content = "#000000", attributes = {
  @Attribute(name = "media", value = "(prefers-color-scheme: dark)"),
  @Attribute(name = "name", value = "theme-color") })
 </pre>
 
 @see AppMetas
 @see Attribute
 
 @author Hyyan Abo Fakher
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The content of the meta tag
    The name of the meta tag
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The attributes of the meta tag
  • Element Details

    • name

      String name
      The name of the meta tag
    • content

      String content
      The content of the meta tag
    • attributes

      Attribute[] attributes
      The attributes of the meta tag
      Default:
      {}