public class StorageUnitTextInput extends NumberInput<java.lang.Long> implements FormatHintInput
Input for storage sizes where the
unit is parsed as part of the input.nfvalidators| 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, setUnitaccept, getBoxWidth, getMaxResultLength, getSingle, setBoxWidth, setMaxResultLength, setSinglegetValue, setKey, setValueaddValidator, getKey, getPrettyString, getString, removeValidator, validate, validateInnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, addValidator, getKey, getPrettyString, getValue, isEmpty, removeValidator, setKey, setValue, validategetString, parsepublic java.lang.Long parseValue(java.lang.String v)
throws ParseException
ParseInputInput.getString(Object) method.parseValue in interface ParseInput<java.lang.Long>ParseExceptionpublic java.lang.Long convert(java.lang.Object v)
throws TypeError
Inputpublic java.lang.String getType()
HTML5InputgetType in interface HTML5InputgetType in class NumberInput<java.lang.Long>public java.lang.String getFormatHint()
getFormatHint in interface FormatHintInput