public class NumericSpinner
extends <any>
TextField
that consumes only numeric inputs. A numeric property is
associated with this TextField and will be updated upon the user's pressing ENTER or the
TextField's lossing focus. If the input (even before pressing ENTER) does not match the
scientific or percentage format, the TextField will be highlighted.Constructor and Description |
---|
NumericSpinner()
Constructs an
NumericSpinner . |
NumericSpinner(double min,
double max,
double step) |
NumericSpinner(double min,
double max,
double step,
boolean intOnly) |
NumericSpinner(double min,
double max,
double step,
boolean intOnly,
HashMap<String,Double> kwMap) |
Modifier and Type | Method and Description |
---|---|
<any> |
getIsPercentageProperty() |
double |
getMax() |
double |
getMin() |
<any> |
getNumberProperty()
Retrieves the numeric property associated with this text field.
|
double |
getStepSize() |
void |
setClamped(Double value) |
void |
setIntOnly(boolean intOnly) |
void |
setKwMap(HashMap<String,Double> kwMap) |
void |
setMax(double max) |
void |
setMin(double min) |
void |
setStepSize(double stepSize) |
public NumericSpinner(double min, double max, double step, boolean intOnly, HashMap<String,Double> kwMap)
min
- the minimummax
- the maximumstep
- the step sizeintOnly
- if this is an integral spinnerkwMap
- the map from keywords to corresponding valuespublic NumericSpinner(double min, double max, double step, boolean intOnly)
public NumericSpinner(double min, double max, double step)
public NumericSpinner()
NumericSpinner
.public double getMin()
public void setMin(double min)
min
- the min to setpublic double getMax()
public void setMax(double max)
max
- the max to setpublic double getStepSize()
public void setStepSize(double stepSize)
stepSize
- the stepSize to setpublic void setIntOnly(boolean intOnly)
intOnly
- false if this NumericSpinner is allowed to consume doubles.public <any> getNumberProperty()
public void setClamped(Double value)
public <any> getIsPercentageProperty()
Copyright © 2015–2022 FLIMLib. All rights reserved.