Package org.fulib.fx.annotation.param
Annotation Interface Param
Fields, parameters and methods annotated with this annotation will be injected with a parameter provided when using the
FulibFxApp.show(String, Map) method.
If the annotation is used on a field, the field will be injected with the specified parameter's value before initializing the controller/component.
If the field is a writable property, the value will be set using the property's setter method (e.g. SimpleStringProperty).
If the annotation is used on a method, the method will be called with the specified parameter's value initializing the controller/component.
If the annotation is used on a method argument, the argument will be injected with the specified parameter's value (method has to be annotated with OnRender or OnInit).
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe name of the parameter.- Returns:
- The name of the parameter.
-
-
-
method
String methodThe method of the field's class that will be called with the parameter's value. Useful forfinalfields orPropertyfields.- Returns:
- the method name
- Default:
- ""
-
type
Class<?> typeWhen usingmethod(), this specifies the type of the first (and only) parameter of that method.- Returns:
- the type of the method parameter
- Default:
- java.lang.Object.class
-