Package org.dwcj.annotations
Annotation Type AppAttribute
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(Container.class)
@Inherited
@Documented
public @interface AppAttribute
Annotates a class to set an attribute on the document element of 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.
@AppAttribute(name = "first-attr", value = "value1")
@AppAttribute(name = "second-attr", value = "value2", selector = "body")
- See Also:
-
AppAttributes
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
-
selector
String selectorBy default, setAttribute applies to the document element on the web page. If a selector is specified, it selects a descendant element within the document to set this attribute. If a specified selector doesn't return any elements, the default document element is used.- Default:
- ""
-