public class StorageUnitNumberInput extends NumberInput<java.lang.Long>
Input for storage size in specified Units.
The returned value (and the bounds etc.) are always in bytes but the text representation
(and numeric values passed to convert(Object) are in the specified unit.nfvalidators| Constructor and Description |
|---|
StorageUnitNumberInput(Units unit) |
| 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 |
getPrettyString(java.lang.Long val)
Convert a value into a user friendly string.
|
java.lang.String |
getString(java.lang.Long val)
get a String representation of an Object that is compatible with the way
the input is parsed
|
java.lang.Long |
parseValue(java.lang.String v)
Parse a String into the correct type for this input.
|
formatRange, getMax, getMin, getStep, getType, getUnit, setMax, setMin, setNumberFormat, setStep, setUnitaccept, getBoxWidth, getMaxResultLength, getSingle, setBoxWidth, setMaxResultLength, setSinglegetValue, setKey, setValueaddValidator, getKey, getString, removeValidator, validate, validateInnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, addValidator, getKey, getValue, isEmpty, removeValidator, setKey, setValue, validategetString, parsepublic StorageUnitNumberInput(Units unit)
public java.lang.Long parseValue(java.lang.String v)
throws ParseException
ParseInputInput.getString(Object) method.ParseExceptionpublic java.lang.String getString(java.lang.Long val)
BaseInputgetString in interface Input<java.lang.Long>getString in class NumberInput<java.lang.Long>ParseInputpublic java.lang.Long convert(java.lang.Object v)
throws TypeError
Inputpublic java.lang.String getPrettyString(java.lang.Long val)
InputgetPrettyString in interface Input<java.lang.Long>getPrettyString in class BaseInput<java.lang.Long>ListInput