Annotation Interface Param


@Target({PARAMETER,FIELD,METHOD}) @Retention(RUNTIME) public @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
    Modifier and Type
    Required Element
    Description
    The name of the parameter.
  • Element Details

    • value

      String value
      The name of the parameter.
      Returns:
      The name of the parameter.