Module qupath.fx

Annotation Interface Pref


@Documented @Retention(RUNTIME) @Target({TYPE,FIELD}) public @interface Pref
Annotation for a general preference.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Type for the property
    Key for externalized string that gives the text of the preference
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional bundle for externalized string
    Name of a method that can be invoked to get a list of available choices.
  • Element Details

    • type

      Class<?> type
      Type for the property
      Returns:
    • value

      String value
      Key for externalized string that gives the text of the preference
      Returns:
    • bundle

      String bundle
      Optional bundle for externalized string
      Returns:
      Default:
      ""
    • choiceMethod

      String choiceMethod
      Name of a method that can be invoked to get a list of available choices. This is not needed for Enum types, where the choices are already known.

      The method is expected to be defined in the parent object containing the annotated property field. It should take no parameters.

      Returns:
      Default:
      ""