public class TimeStampMultiInput extends AbstractCalendarMultiInput implements BoundedDateInput
various time fields can be suppressed by passing a Calendar field value to the constructor. Only those fields greater or equal to this value are shown. The year value is always shown.
Values for the suppressed fields will be remembered by the input though not editable by the UI.
day_input, hour_input, max_field, min_input, month_input, sec_input, year_inputvalidatorsUSE_DATE_INPUT| Constructor and Description |
|---|
TimeStampMultiInput(java.util.Date now) |
TimeStampMultiInput(java.util.Date now,
long resolution,
int max_field) |
| 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.
|
protected void |
setBounds() |
java.util.Date |
setMax(java.util.Date val)
set the maximum value
|
java.util.Date |
setMaxDate(java.util.Date d) |
java.util.Date |
setMin(java.util.Date val)
Set the minimum value
|
java.util.Date |
setMinDate(java.util.Date d) |
protected void |
setNull() |
java.util.Date |
setValue(java.util.Date v)
set the value of this selector.
|
getType, makeCalendar, setCalendarFromInputs, setInputsFromCalendaraccept, addInput, addInput, containsInput, getInput, getInputs, getPrettyString, getSubKeys, getSubLabel, hasLineBreaks, hasSubLabels, isEmpty, removeInput, requireAll, setKey, setLineBreaks, validateInneraddValidator, getKey, getString, removeValidator, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstance, getInstancegetString, parsegetTypeaccept, addValidator, getKey, getPrettyString, isEmpty, removeValidator, setKey, validatepublic TimeStampMultiInput(java.util.Date now)
public TimeStampMultiInput(java.util.Date now,
long resolution,
int max_field)
public java.util.Date convert(java.lang.Object v)
throws TypeError
Inputpublic final java.util.Date getValue()
InputgetValue in interface Input<java.util.Date>getValue in class MultiInput<java.util.Date,Input<java.lang.Integer>>public final java.util.Date setValue(java.util.Date v)
throws TypeError
Inputpublic java.util.Date setMinDate(java.util.Date d)
public java.util.Date setMaxDate(java.util.Date d)
public java.util.Date parseValue(java.lang.String v)
throws ParseException
ParseInputInput.getString(Object) method.parseValue in interface ParseInput<java.util.Date>ParseExceptionpublic 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 java.util.Date getMin()
BoundedInputgetMin in interface BoundedInput<java.util.Date>public java.util.Date getMax()
BoundedInputgetMax in interface BoundedInput<java.util.Date>public java.lang.String formatRange(java.util.Date n)
BoundedInputformatRange in interface BoundedInput<java.util.Date>public java.util.Date setMin(java.util.Date val)
BoundedInputsetMin in interface BoundedInput<java.util.Date>protected void setBounds()
public java.util.Date setMax(java.util.Date val)
BoundedInputsetMax in interface BoundedInput<java.util.Date>protected void setNull()
setNull in class AbstractCalendarMultiInput