Class SelectDouble
java.lang.Object
com.marginallyclever.donatello.select.Select
com.marginallyclever.donatello.select.SelectDouble
A JFormattedTextField that sets itself up to format floating point numbers.
- Since:
- 7.24.0
- Author:
- Dan Royer
-
Constructor Summary
ConstructorsConstructorDescriptionSelectDouble(String internalName, String labelKey) SelectDouble(String internalName, String labelKey, double defaultValue) SelectDouble(String internalName, String labelKey, Locale locale) SelectDouble(String internalName, String labelKey, Locale locale, double defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(JComponent panel, GridBagConstraints gbc) getText()doublegetValue()voidsetReadOnly(boolean state) voidsetValue(double newValue) Set the value visible in the field.Methods inherited from class com.marginallyclever.donatello.select.Select
addSelectListener, getName, removeSelectListener, setName
-
Constructor Details
-
SelectDouble
-
SelectDouble
-
SelectDouble
-
SelectDouble
-
-
Method Details
-
attach
-
setReadOnly
public void setReadOnly(boolean state) - Specified by:
setReadOnlyin classSelect
-
getValue
public double getValue() -
setValue
public void setValue(double newValue) Set the value visible in the field. Do not fire a property change event.- Parameters:
newValue- the new value to display
-
getText
-