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_input
validators
USE_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, setInputsFromCalendar
accept, addInput, addInput, containsInput, getInput, getInputs, getPrettyString, getSubKeys, getSubLabel, hasLineBreaks, hasSubLabels, isEmpty, removeInput, requireAll, setKey, setLineBreaks, validateInner
addValidator, getKey, getString, removeValidator, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstance, getInstance
getString, parse
getType
accept, addValidator, getKey, getPrettyString, isEmpty, removeValidator, setKey, validate
public 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
Input
public final java.util.Date getValue()
Input
getValue
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
Input
public 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
ParseInput
Input.getString(Object)
method.parseValue
in interface ParseInput<java.util.Date>
ParseException
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 java.util.Date getMin()
BoundedInput
getMin
in interface BoundedInput<java.util.Date>
public java.util.Date getMax()
BoundedInput
getMax
in interface BoundedInput<java.util.Date>
public java.lang.String formatRange(java.util.Date n)
BoundedInput
formatRange
in interface BoundedInput<java.util.Date>
public java.util.Date setMin(java.util.Date val)
BoundedInput
setMin
in interface BoundedInput<java.util.Date>
protected void setBounds()
public java.util.Date setMax(java.util.Date val)
BoundedInput
setMax
in interface BoundedInput<java.util.Date>
protected void setNull()
setNull
in class AbstractCalendarMultiInput