org.jminor.common.ui.input
Class ValueListInputProvider
java.lang.Object
org.jminor.common.ui.input.AbstractInputProvider<Object,JComboBox>
org.jminor.common.ui.input.ValueListInputProvider
- All Implemented Interfaces:
- InputProvider<Object,JComboBox>
public final class ValueListInputProvider
- extends AbstractInputProvider<Object,JComboBox>
A InputProvider implementation based on a list of Item's
- See Also:
Item
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueListInputProvider
public ValueListInputProvider(Object initialValue,
List<Item<Object>> values)
- Instantiates a new ValueListInputProvider.
- Parameters:
initialValue
- the initial valuevalues
- the available values
getValue
public Object getValue()
-
- Specified by:
getValue
in interface InputProvider<Object,JComboBox>
- Specified by:
getValue
in class AbstractInputProvider<Object,JComboBox>
- Returns:
- the value according to the input component