org.jminor.common.ui.input
Class ValueListInputProvider

java.lang.Object
  extended by org.jminor.common.ui.input.AbstractInputProvider<Object,JComboBox>
      extended by 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

Constructor Summary
ValueListInputProvider(Object initialValue, List<Item<Object>> values)
          Instantiates a new ValueListInputProvider.
 
Method Summary
 Object getValue()
          
 
Methods inherited from class org.jminor.common.ui.input.AbstractInputProvider
getInputComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueListInputProvider

public ValueListInputProvider(Object initialValue,
                              List<Item<Object>> values)
Instantiates a new ValueListInputProvider.

Parameters:
initialValue - the initial value
values - the available values
Method Detail

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