@Documented
@Target(value=METHOD)
public @interface OnInputChange
Each parameter is expected to be named according to the pattern "last[MyInput]", "prev[MyInput]"
or "[myInput]". If name of the parameter does not follow the pattern then the name can be explicitly
mapped via the InputRef
annotation on a parameter.
The method must also conform to the following constraints:
View
SuppressWarnings
or SuppressReact4jWarnings
annotations with a key
"React4j:PublicMethod". This warning is also suppressed by the annotation processor if it is implementing
an interface method.
View
annotation as the method is not
expected to be invoked outside the view. A warning will be generated but can be suppressed by the
SuppressWarnings
or SuppressReact4jWarnings
annotations with a key "React4j:ProtectedMethod".
Modifier and Type | Optional Element and Description |
---|---|
OnInputChange.Phase |
phase
The phase in which the method should be invoked.
|
public abstract OnInputChange.Phase phase