Package io.jmix.flowui.view
Annotation Interface Subscribe
Annotation for declarative event handler methods in UI controllers.
Example:
Example:
@Subscribe("demoButton") protected void onDemoButtonClick(Button.ClickEvent event) { // handle button click }
- See Also:
-
Optional Element Summary
-
Element Details
-
target
Target target- Returns:
- type of target
- Default:
- COMPONENT
-
value
- Returns:
- id or path to target object
- Default:
- ""
-
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 requiredDeclares whether the annotated dependency is required.Defaults to
true
.- Default:
- true
-