public class NumericTextField
extends TextField
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 |
---|
NumericTextField()
Constructs an
NumericTextField . |
NumericTextField(boolean intOnly) |
NumericTextField(boolean intOnly,
HashMap<String,Double> kwMap)
Constructs an
NumericTextField . |
Modifier and Type | Method and Description |
---|---|
<any> |
getIsPercentageProperty() |
<any> |
getNumberProperty()
Retrieves the numeric property associated with this text field.
|
void |
setIntOnly(boolean intOnly) |
void |
setKwMap(HashMap<String,Double> kwMap) |
public NumericTextField(boolean intOnly, HashMap<String,Double> kwMap)
NumericTextField
.intOnly
- false if this spinner is allowed to consume doubles.kwMap
- the map between string keywords and corresponding numeric valuespublic NumericTextField(boolean intOnly)
public NumericTextField()
NumericTextField
.public void setIntOnly(boolean intOnly)
intOnly
- false if this NumericTextField is allowed to consume doubles.public <any> getNumberProperty()
public <any> getIsPercentageProperty()
Copyright © 2015–2022 FLIMLib. All rights reserved.