org.jminor.common.ui.input
Class AbstractInputProvider<T,K extends JComponent>
java.lang.Object
org.jminor.common.ui.input.AbstractInputProvider<T,K>
- Type Parameters:
T
- the value typeK
- 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractInputProvider
public AbstractInputProvider(K inputComponent)
- Instantiates a new AbstractInputProvider.
- Parameters:
inputComponent
- the input component
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