org.jminor.framework.client.ui
Class EntityComboProvider

java.lang.Object
  extended by org.jminor.common.ui.input.AbstractInputProvider<Entity,JComboBox>
      extended by org.jminor.framework.client.ui.EntityComboProvider
All Implemented Interfaces:
InputProvider<Entity,JComboBox>

public final class EntityComboProvider
extends AbstractInputProvider<Entity,JComboBox>

A InputProvider implementation for Entity values based on a JComboBox.

See Also:
EntityComboBoxModel

Constructor Summary
EntityComboProvider(EntityComboBoxModel model, Entity initialValue)
          Instantiates a new input provider based on the EntityComboBoxModel class
 
Method Summary
 Entity 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

EntityComboProvider

public EntityComboProvider(EntityComboBoxModel model,
                           Entity initialValue)
Instantiates a new input provider based on the EntityComboBoxModel class

Parameters:
model - the combo box model
initialValue - the initial value to display
Method Detail

getValue

public Entity getValue()

Specified by:
getValue in interface InputProvider<Entity,JComboBox>
Specified by:
getValue in class AbstractInputProvider<Entity,JComboBox>
Returns:
the value according to the input component