Annotation Interface Subscribe


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Subscribe
Annotation for declarative event handler methods in UI controllers.
Example:
    @Subscribe("demoButton")
    protected void onDemoButtonClick(Button.ClickEvent event) {
        // handle button click
    }
 
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    boolean
    Declares whether the annotated dependency is required.
     
     
  • Element Details

    • target

      Target target
      Returns:
      type of target
      Default:
      COMPONENT
    • value

      @AliasFor("id") String value
      Returns:
      id or path to target object
      Default:
      ""
    • id

      @AliasFor("value") String id
      Returns:
      id or path to target object
      Default:
      ""
    • required

      boolean required
      Declares whether the annotated dependency is required.

      Defaults to true.

      Default:
      true