public class PercentInput extends DoubleInput
nf
validators
Constructor and Description |
---|
PercentInput() |
PercentInput(boolean integer_only) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatRange(java.lang.Double n)
format step/range values as used by the input into compatible to the way they are
presented.
|
java.lang.String |
getType()
get the type tag to emit for
the corresponding html5 type.
|
protected java.lang.Double |
normalise(java.lang.Double val)
Extension point to normalise a value after a parse
|
convert, getString, parseValue
getMax, getMin, getStep, 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 PercentInput()
public PercentInput(boolean integer_only)
public java.lang.String formatRange(java.lang.Double n)
BoundedInput
formatRange
in interface BoundedInput<java.lang.Double>
formatRange
in class NumberInput<java.lang.Double>
public java.lang.String getType()
HTML5Input
getType
in interface HTML5Input
getType
in class NumberInput<java.lang.Double>
protected java.lang.Double normalise(java.lang.Double val)
DoubleInput
normalise
in class DoubleInput