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

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the attribute
    The value of the attribute
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    By default, setAttribute applies to the document element on the web page.
  • Element Details

    • name

      String name
      The name of the attribute
    • value

      String value
      The value of the attribute
    • selector

      String selector
      By 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:
      ""