Annotation Interface EnumWidget


@Documented @Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface EnumWidget
Provides information about UI widget representing this enumeration constant.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Description text.
    boolean
    Whether to hide enum constant.
    Image icon to show for this item.
    int
    Sequence number to order the option.
    Title for the UI.
  • Element Details

    • title

      String title
      Title for the UI.
      Returns:
      the title
      Default:
      ""
    • description

      String description
      Description text.
      Returns:
      description text
      Default:
      ""
    • icon

      String icon
      Image icon to show for this item.
      Returns:
      icon name
      Default:
      ""
    • hidden

      boolean hidden
      Whether to hide enum constant.
      Returns:
      true if marked as hidden, default is false
      Default:
      false
    • order

      int order
      Sequence number to order the option.
      Returns:
      the sequence number
      Default:
      0