Annotation Interface SelectorParam


@Target(PARAMETER) @Retention(RUNTIME) public @interface SelectorParam
Marker annotation to identify the component of a parameter of a method
The value() is the selector to find components. It uses Selectors.find(org.zkoss.zk.ui.Component, String) to select the components.
The base component of the selector is the view component of the binder.
If the parameter type is a Collection, it passes the result directly. Otherwise it passes the first result or null if no result.
Since:
6.0.0
Author:
dennis
See Also:
  • Init
  • Command
  • Selectors.find(org.zkoss.zk.ui.Component, String)
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    component selector of the parameter.
  • Element Details

    • value

      String value
      component selector of the parameter. Since 9.5.0, it can be omitted if selector is the same as the name of annotated parameter.
      Returns:
      component selector of the parameter
      Default:
      ""