|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.text.JTextComponent javax.swing.JTextField javax.swing.JFormattedTextField org.softsmithy.lib.swing.AbstractNumberField org.softsmithy.lib.swing.JRealNumberField org.softsmithy.lib.swing.JDoubleField
public class JDoubleField
A double field.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFormattedTextField |
---|
JFormattedTextField.AbstractFormatter, JFormattedTextField.AbstractFormatterFactory |
Nested classes/interfaces inherited from class javax.swing.JTextField |
---|
JTextField.AccessibleJTextField |
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JFormattedTextField |
---|
COMMIT, COMMIT_OR_REVERT, PERSIST, REVERT |
Fields inherited from class javax.swing.JTextField |
---|
notifyAction |
Fields inherited from class javax.swing.text.JTextComponent |
---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JDoubleField()
Creates a new instance of this class. |
|
JDoubleField(double value)
Creates a new instance of this class. |
|
JDoubleField(double minValue,
double maxValue)
Creates a new instance of this class. |
|
JDoubleField(double value,
double minValue,
double maxValue)
Creates a new instance of this class. |
|
JDoubleField(DoubleFormatterFactory factory)
Creates a new instance of this class. |
|
JDoubleField(NumberFormat format)
Creates a new instance of this class. |
|
JDoubleField(NumberFormat format,
double minValue,
double maxValue)
Creates a new instance of this class. |
Method Summary | |
---|---|
DoubleFormatter |
getDoubleFormatter()
Gets the number formatter. |
DoubleFormatterFactory |
getDoubleFormatterFactory()
Gets the number formatter factory. |
double |
getDoubleValue()
Gets the value. |
double |
getMaximumDoubleValue()
Gets the maximum value. |
double |
getMinimumDoubleValue()
Gets the minimum value. |
void |
setDoubleFormatterFactory(DoubleFormatterFactory factory)
Sets the number formatter factory. |
void |
setDoubleValue(double value)
Sets the value. |
protected void |
setFormatter(JFormattedTextField.AbstractFormatter formatter)
Sets the formatter. |
void |
setFormatterFactory(JFormattedTextField.AbstractFormatterFactory aff)
Sets the formatter factory. |
void |
setMaximumDoubleValue(double maxValue)
Sets the maximum value. |
void |
setMinimumDoubleValue(double minValue)
Sets the minimum value. |
Methods inherited from class org.softsmithy.lib.swing.JRealNumberField |
---|
getBigDecimalValue, getMaximumBigDecimalValue, getMinimumBigDecimalValue, getRealNumberFormatter, getRealNumberFormatterFactory, setBigDecimalValue, setMaximumBigDecimalValue, setMaximumNumberValue, setMinimumBigDecimalValue, setMinimumNumberValue, setRealNumberFormatterFactory, setValue |
Methods inherited from class org.softsmithy.lib.swing.AbstractNumberField |
---|
getAbstractXNumberFormatter, getAbstractXNumberFormatterFactory, getMaximumNumberValue, getMinimumNumberValue, getNumberValue, reinit, setAbstractXNumberFormatterFactory, setLocale, setNumberValue |
Methods inherited from class javax.swing.JFormattedTextField |
---|
commitEdit, getActions, getFocusLostBehavior, getFormatter, getFormatterFactory, getUIClassID, getValue, invalidEdit, isEditValid, processFocusEvent, processInputMethodEvent, setDocument, setFocusLostBehavior |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JDoubleField()
public JDoubleField(double value)
value
- the valuepublic JDoubleField(NumberFormat format)
format
- the number formatpublic JDoubleField(double minValue, double maxValue)
minValue
- the minimum valuemaxValue
- the maximum valuepublic JDoubleField(NumberFormat format, double minValue, double maxValue)
format
- the number formatminValue
- the minimum valuemaxValue
- the maximum valuepublic JDoubleField(double value, double minValue, double maxValue)
value
- the valueminValue
- the minimum valuemaxValue
- the maximum valuepublic JDoubleField(DoubleFormatterFactory factory)
factory
- the number formatter factoryMethod Detail |
---|
public double getDoubleValue()
public void setDoubleValue(double value)
value
- the valuepublic double getMinimumDoubleValue()
public void setMinimumDoubleValue(double minValue)
minValue
- the minimum valuepublic double getMaximumDoubleValue()
public void setMaximumDoubleValue(double maxValue)
maxValue
- the maximum valueprotected void setFormatter(JFormattedTextField.AbstractFormatter formatter)
setFormatter
in class JRealNumberField
formatter
- the number formatterpublic DoubleFormatter getDoubleFormatter()
public DoubleFormatterFactory getDoubleFormatterFactory()
public void setDoubleFormatterFactory(DoubleFormatterFactory factory)
factory
- the number formatter factorypublic void setFormatterFactory(JFormattedTextField.AbstractFormatterFactory aff)
setFormatterFactory
in class JRealNumberField
aff
- the number formatter factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |