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:
  • 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:
      ""
    • subject

      String subject
      Returns:
      explicit method name that will be set using annotated method
      Default:
      ""
    • required

      boolean required
      Declares whether the annotated dependency is required.

      Defaults to true.

      Default:
      true