@Retention(value=CLASS)
public @interface OnTrigger
For example
@LayoutSpec
public class ComponentSpec {
@OnTrigger(YourEvent.class)
static Object yourEventClick(ComponentContext c, @FromTrigger YourObject obj) {
return new Object();
}
}
OnEvent
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<?> |
value |