public class CalendarMultiInputWrapper extends AbstractCalendarMultiInput
AbstractDateInput
into a MultiInput
.day_input, hour_input, max_field, min_input, month_input, sec_input, year_input
validators
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, setInputsFromCalendar
accept, addInput, addInput, containsInput, getInput, getInputs, getPrettyString, getSubKeys, getSubLabel, hasLineBreaks, hasSubLabels, isEmpty, removeInput, requireAll, setKey, setLineBreaks
addValidator, getKey, getString, removeValidator, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getString, parse
accept, addValidator, getKey, getPrettyString, isEmpty, removeValidator, setKey, validate
public CalendarMultiInputWrapper(TimeStampInput input)
public CalendarMultiInputWrapper(DateInput input)
public CalendarMultiInputWrapper(AbstractDateInput input, int max_field)
input
- nested AbstractDateInput
max_field
- maximum resolution field to presentpublic java.util.Date parseValue(java.lang.String v) throws ParseException
ParseInput
Input.getString(Object)
method.ParseException
public java.util.Date convert(java.lang.Object v) throws TypeError
Input
public java.util.Date getMin()
BoundedInput
public java.util.Date getMax()
BoundedInput
public java.lang.String formatRange(java.util.Date n)
BoundedInput
public java.util.Date setMin(java.util.Date val)
BoundedInput
public java.util.Date setMax(java.util.Date val)
BoundedInput
protected void setNull()
setNull
in class AbstractCalendarMultiInput
public java.util.Date getValue()
Input
getValue
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
Input
public java.lang.String getString(java.util.Date val)
BaseInput
getString
in interface Input<java.util.Date>
getString
in class MultiInput<java.util.Date,Input<java.lang.Integer>>
ParseInput
public void validateInner() throws FieldException
BaseInput
validateInner
in class MultiInput<java.util.Date,Input<java.lang.Integer>>
FieldException