Package org.opennms.web.tags.select
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 theSelectTag
to determine how to render its options elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDescription(T input)
Returns the String which should be put in the element section of the option tag.java.lang.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
java.lang.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
java.lang.String getDescription(T input)
Returns the String which should be put in the element section of the option tag.- Parameters:
input
-- Returns:
-
-