Interface SelectTagHandler<T>

  • Type Parameters:
    T - The type of the elements which will be rendered by the SelectTag (e.g. String)
    All Known Implementing Classes:
    FilterFavoriteSelectTagHandler

    public interface SelectTagHandler<T>
    Is used by the SelectTag to determine how to render its options elements.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getDescription​(T input)
      Returns the String which should be put in the element section of the option tag.
      String getValue​(T input)
      Returns the String which should be put in the value attribute of the option.
      boolean isSelected​(T currentElement, T selectedElement)
      Determines if the currentElement is the selectedElement
    • Method Detail

      • getValue

        String getValue​(T input)
        Returns the String which should be put in the value attribute of the option.
        Parameters:
        input - The object to get the value from.
        Returns:
        the value for the value attribute of the option-tag.
      • getDescription

        String getDescription​(T input)
        Returns the String which should be put in the element section of the option tag.
        Parameters:
        input -
        Returns:
      • isSelected

        boolean isSelected​(T currentElement,
                           T selectedElement)
        Determines if the currentElement is the selectedElement
        Returns:
        if the currentElement is the selectedElement.