Interface ValueListProvider

  • All Known Implementing Classes:
    EmptyValueListProvider

    public interface ValueListProvider
    Dynamic value list provider which can be used with DropDownList annotation to retrieve picker value list dynamically from any data sources.
    • Method Detail

      • getValues

        List<String> getValues()
        Return picker value list. The return value must be a non-null list object.
        Returns:
        non-null picker value list
      • getDisplayValue

        String getDisplayValue​(String value)
        Return display string value for the picker value.
        Parameters:
        value - picker value
        Returns:
        display string value for the value
      • getDisplayValue

        String getDisplayValue​(String value,
                               Locale locale)
        Return display string value for the picker value and the specified locale. The locale can be null, in which case, it is supposed to use the default locale in implementations.
        Parameters:
        value - picker value
        locale - locale
        Returns:
        display string value for the value and the specified locale