Class IntegerListSelectBoxDisplay2
java.lang.Object
name.matthewgreet.strutscommons.view.SingleSelectBoxDisplay2<Integer,Integer>
name.matthewgreet.strutscommons.view.IntegerListSelectBoxDisplay2
Concrete subclass of SingleSelectBoxDisplay that formats list of numbers for display in an HTML select
box. The raw list, as set in the model property, should be a collection of Integer. See
SingleSelectBoxDisplay2.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class SingleSelectBoxDisplay2
SingleSelectBoxDisplay2.TextComparator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IntegerOverridden by subclasses to return unformatted identifier of item record.protected Comparator<SelectBoxItemDisplay2<Integer, Integer>> Returns comparator that compares number items by value.protected StringConverts number to select box item display text.protected StringConverts number to select box item value.Methods inherited from class SingleSelectBoxDisplay2
addBlankValue, addItems, getBlankText, getInitialList, getList, getSelectedItem, hasBlankValue, isAllowed, setList, setModel, setSelectedFormattedValue, setSelectedFormattedValueWithConversionError, setSelectedValue, setSelectedValueWithConversionError
-
Constructor Details
-
IntegerListSelectBoxDisplay2
public IntegerListSelectBoxDisplay2()
-
-
Method Details
-
getSortComparator
Returns comparator that compares number items by value. May be overridden for a different order.- Overrides:
getSortComparatorin classSingleSelectBoxDisplay2<Integer,Integer>
-
getKey
Description copied from class:SingleSelectBoxDisplay2Overridden by subclasses to return unformatted identifier of item record. This is the value used to match the parameter ofSingleSelectBoxDisplay2.setSelectedValue(K).- Specified by:
getKeyin classSingleSelectBoxDisplay2<Integer,Integer> - Parameters:
item- Member of raw data list to be displayed.
-
getValue
-
getText
-