Package org.dwcj.annotations
Annotation Type AppMeta
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(Container.class)
@Inherited
@Documented
public @interface 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 -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe attributes of the meta tag