public class StorageUnitTextInput extends NumberInput<java.lang.Long> implements FormatHintInput
Input
for storage sizes where the
unit is parsed as part of the input.nf
validators
Constructor and Description |
---|
StorageUnitTextInput() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
convert(java.lang.Object v)
Perform any supported type conversions to to generate a value of the
target type
|
java.lang.String |
getFormatHint() |
java.lang.String |
getType()
get the type tag to emit for
the corresponding html5 type.
|
java.lang.Long |
parseValue(java.lang.String v)
Parse a String into the correct type for this input.
|
formatRange, getMax, getMin, getStep, getString, getUnit, setMax, setMin, setNumberFormat, setStep, setUnit
accept, getBoxWidth, getMaxResultLength, getSingle, setBoxWidth, setMaxResultLength, setSingle
getValue, setKey, setValue
addValidator, getKey, getPrettyString, getString, removeValidator, validate, validateInner
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, addValidator, getKey, getPrettyString, getValue, isEmpty, removeValidator, setKey, setValue, validate
getString, parse
public java.lang.Long parseValue(java.lang.String v) throws ParseException
ParseInput
Input.getString(Object)
method.parseValue
in interface ParseInput<java.lang.Long>
ParseException
public java.lang.Long convert(java.lang.Object v) throws TypeError
Input
public java.lang.String getType()
HTML5Input
getType
in interface HTML5Input
getType
in class NumberInput<java.lang.Long>
public java.lang.String getFormatHint()
getFormatHint
in interface FormatHintInput