public class DoubleInput extends NumberInput<java.lang.Double>
nf
validators
Constructor and Description |
---|
DoubleInput() |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
convert(java.lang.Object v)
Perform any supported type conversions to to generate a value of the
target type
|
java.lang.String |
getString(java.lang.Double val)
get a String representation of an Object that is compatible with the way
the input is parsed
|
protected java.lang.Double |
normalise(java.lang.Double val)
Extension point to normalise a value after a parse
|
java.lang.Double |
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, 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.Double convert(java.lang.Object v) throws TypeError
Input
public java.lang.String getString(java.lang.Double val)
BaseInput
getString
in interface Input<java.lang.Double>
getString
in class NumberInput<java.lang.Double>
ParseInput
public java.lang.Double parseValue(java.lang.String v) throws ParseException
ParseInput
Input.getString(Object)
method.ParseException
protected java.lang.Double normalise(java.lang.Double val)
val
-