Package react4j.annotations
Annotation Interface InputDefault
Annotation used to specify the default value for a input.
The annotation can be applied to a static field or static method on the view.
The field or method is then accessed when initializing the default inputs for the view.
If a method is annotated with this annotation then it must also comply with the following constraints:
- Must have 0 parameters
- Must return a value with the same type as the associated
@Input
annotated method - Must be a static method
- Must not be private
- Must not throw exceptions
If a field is annotated with this annotation then it must also comply with the following constraints:
-
Optional Element Summary
-
Element Details
-
name
Return the name of the associated input.If the annotation is applied to a method, this value will be derived if the method name matches the pattern "get[Name]Default", otherwise it must be specified.
If the annotation is applied to a field, this value will be derived if the field name matches the pattern "DEFAULT_[NAME]", otherwise it must be specified.
- Returns:
- the name of the input.
- Default:
- "<default>"
-