T
- The type of the elements which will be rendered by the SelectTag (e.g. String)public interface SelectTagHandler<T>
SelectTag
to determine how to render its options elements.Modifier and Type | Method and 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
|
String getValue(T input)
input
- The object to get the value from.String getDescription(T input)
input
- Copyright © 2018. All rights reserved.