public class CalendarMultiInputWrapper extends AbstractCalendarMultiInput
AbstractDateInput into a MultiInput.day_input, hour_input, max_field, min_input, month_input, sec_input, year_inputvalidators| Constructor and Description |
|---|
CalendarMultiInputWrapper(AbstractDateInput input,
int max_field) |
CalendarMultiInputWrapper(DateInput input) |
CalendarMultiInputWrapper(TimeStampInput input) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
convert(java.lang.Object v)
Perform any supported type conversions to to generate a value of the
target type
|
java.lang.String |
formatRange(java.util.Date n)
format step/range values as used by the input into compatible to the way they are
presented.
|
java.util.Date |
getMax()
Maximum valid value
null value implies no maximum
|
java.util.Date |
getMin()
Minimum valid value.
|
java.lang.String |
getString(java.util.Date val)
get a String representation of an Object that is compatible with the way
the input is parsed
|
java.util.Date |
getValue()
get the current value of the Object created by this selector.
|
java.util.Date |
parseValue(java.lang.String v)
Parse a String into the correct type for this input.
|
java.util.Date |
setMax(java.util.Date val)
set the maximum value
|
java.util.Date |
setMin(java.util.Date val)
Set the minimum value
|
protected void |
setNull() |
java.util.Date |
setValue(java.util.Date v)
set the value of this selector.
|
void |
validateInner()
Extension point to add validation to sub-class specific inner-state
|
getType, makeCalendar, setCalendarFromInputs, setInputsFromCalendaraccept, addInput, addInput, containsInput, getInput, getInputs, getPrettyString, getSubKeys, getSubLabel, hasLineBreaks, hasSubLabels, isEmpty, removeInput, requireAll, setKey, setLineBreaksaddValidator, getKey, getString, removeValidator, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetString, parseaccept, addValidator, getKey, getPrettyString, isEmpty, removeValidator, setKey, validatepublic CalendarMultiInputWrapper(TimeStampInput input)
public CalendarMultiInputWrapper(DateInput input)
public CalendarMultiInputWrapper(AbstractDateInput input, int max_field)
input - nested AbstractDateInputmax_field - maximum resolution field to presentpublic java.util.Date parseValue(java.lang.String v)
throws ParseException
ParseInputInput.getString(Object) method.ParseExceptionpublic java.util.Date convert(java.lang.Object v)
throws TypeError
Inputpublic java.util.Date getMin()
BoundedInputpublic java.util.Date getMax()
BoundedInputpublic java.lang.String formatRange(java.util.Date n)
BoundedInputpublic java.util.Date setMin(java.util.Date val)
BoundedInputpublic java.util.Date setMax(java.util.Date val)
BoundedInputprotected void setNull()
setNull in class AbstractCalendarMultiInputpublic java.util.Date getValue()
InputgetValue in interface Input<java.util.Date>getValue in class MultiInput<java.util.Date,Input<java.lang.Integer>>public java.util.Date setValue(java.util.Date v)
throws TypeError
Inputpublic java.lang.String getString(java.util.Date val)
BaseInputgetString in interface Input<java.util.Date>getString in class MultiInput<java.util.Date,Input<java.lang.Integer>>ParseInputpublic void validateInner()
throws FieldException
BaseInputvalidateInner in class MultiInput<java.util.Date,Input<java.lang.Integer>>FieldException