org.jminor.common.ui.input
Class AbstractInputProvider<T,K extends JComponent>

java.lang.Object
  extended by org.jminor.common.ui.input.AbstractInputProvider<T,K>
Type Parameters:
T - the value type
K - the input component type
All Implemented Interfaces:
InputProvider<T,K>
Direct Known Subclasses:
BooleanInputProvider, DateInputProvider, DoubleInputProvider, EntityComboProvider, EntityLookupProvider, IntInputProvider, TextInputProvider, ValueListInputProvider

public abstract class AbstractInputProvider<T,K extends JComponent>
extends Object
implements InputProvider<T,K>

A default InputProvider implementation.


Constructor Summary
AbstractInputProvider(K inputComponent)
          Instantiates a new AbstractInputProvider.
 
Method Summary
 K getInputComponent()
          
abstract  T getValue()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInputProvider

public AbstractInputProvider(K inputComponent)
Instantiates a new AbstractInputProvider.

Parameters:
inputComponent - the input component
Method Detail

getInputComponent

public final K getInputComponent()

Specified by:
getInputComponent in interface InputProvider<T,K extends JComponent>
Returns:
the input component

getValue

public abstract T getValue()

Specified by:
getValue in interface InputProvider<T,K extends JComponent>
Returns:
the value according to the input component