org.jminor.common.ui.input
Class DateInputProvider

java.lang.Object
  extended by org.jminor.common.ui.input.AbstractInputProvider<Date,DateInputPanel>
      extended by org.jminor.common.ui.input.DateInputProvider
All Implemented Interfaces:
InputProvider<Date,DateInputPanel>

public final class DateInputProvider
extends AbstractInputProvider<Date,DateInputPanel>

A InputProvider implementation for date values.


Constructor Summary
DateInputProvider(Date initialValue, SimpleDateFormat dateFormat)
          Instantiates a new DateInputProvider.
 
Method Summary
 Date 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

DateInputProvider

public DateInputProvider(Date initialValue,
                         SimpleDateFormat dateFormat)
Instantiates a new DateInputProvider.

Parameters:
initialValue - the initial value
dateFormat - the date format
Method Detail

getValue

public Date getValue()

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