Package org.opennms.web.tags.select
Class FilterFavoriteSelectTagHandler
- java.lang.Object
-
- org.opennms.web.tags.select.FilterFavoriteSelectTagHandler
-
- All Implemented Interfaces:
SelectTagHandler<OnmsFilterFavorite>
public class FilterFavoriteSelectTagHandler extends java.lang.Object implements SelectTagHandler<OnmsFilterFavorite>
-
-
Constructor Summary
Constructors Constructor Description FilterFavoriteSelectTagHandler(java.lang.String nullDescription)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription(OnmsFilterFavorite input)
Returns the String which should be put in the element section of the option tag.java.lang.String
getValue(OnmsFilterFavorite input)
Returns the String which should be put in the value attribute of the option.boolean
isSelected(OnmsFilterFavorite currentElement, OnmsFilterFavorite selectedElement)
Determines if the currentElement is the selectedElement
-
-
-
Method Detail
-
getValue
public java.lang.String getValue(OnmsFilterFavorite input)
Description copied from interface:SelectTagHandler
Returns the String which should be put in the value attribute of the option.- Specified by:
getValue
in interfaceSelectTagHandler<OnmsFilterFavorite>
- Parameters:
input
- The object to get the value from.- Returns:
- the value for the value attribute of the option-tag.
-
getDescription
public java.lang.String getDescription(OnmsFilterFavorite input)
Description copied from interface:SelectTagHandler
Returns the String which should be put in the element section of the option tag.- Specified by:
getDescription
in interfaceSelectTagHandler<OnmsFilterFavorite>
- Returns:
-
isSelected
public boolean isSelected(OnmsFilterFavorite currentElement, OnmsFilterFavorite selectedElement)
Description copied from interface:SelectTagHandler
Determines if the currentElement is the selectedElement- Specified by:
isSelected
in interfaceSelectTagHandler<OnmsFilterFavorite>
- Returns:
- if the currentElement is the selectedElement.
-
-