|
||||||||||
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
public abstract class AbstractNumberField
The base class of the number fields.
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 | |
---|---|
AbstractNumberField(AbstractXNumberFormatterFactory factory)
Creates a new instance of this class. |
|
AbstractNumberField(Number value,
AbstractXNumberFormatterFactory factory)
Creates a new instance of this class. |
|
AbstractNumberField(Number minValue,
Number maxValue,
AbstractXNumberFormatterFactory factory)
Creates a new instance of this class. |
|
AbstractNumberField(Number value,
Number minValue,
Number maxValue,
AbstractXNumberFormatterFactory factory)
Creates a new instance of this class. |
Method Summary | |
---|---|
AbstractXNumberFormatter |
getAbstractXNumberFormatter()
Gets the number formatter. |
AbstractXNumberFormatterFactory |
getAbstractXNumberFormatterFactory()
Gets the number formatter factory. |
Number |
getMaximumNumberValue()
Gets the maximum number value. |
Number |
getMinimumNumberValue()
Gets the minimum number value. |
Number |
getNumberValue()
Gets the value as a Number. |
protected void |
reinit()
Reinits this component. |
void |
setAbstractXNumberFormatterFactory(AbstractXNumberFormatterFactory factory)
Sets the number formatter factory. |
protected void |
setFormatter(JFormattedTextField.AbstractFormatter formatter)
Sets the formatter. |
void |
setFormatterFactory(JFormattedTextField.AbstractFormatterFactory aff)
Sets the formatter factory. |
void |
setLocale(Locale locale)
Sets the locale of this component. |
void |
setMaximumNumberValue(Number maxValue)
Sets the maximum number value. |
void |
setMinimumNumberValue(Number minValue)
Sets the minimum number value. |
void |
setNumberValue(Number value)
Sets the number value. |
void |
setValue(Object value)
Sets the value. |
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 AbstractNumberField(Number value, AbstractXNumberFormatterFactory factory)
value
- the valuefactory
- the number formatter factorypublic AbstractNumberField(Number minValue, Number maxValue, AbstractXNumberFormatterFactory factory)
minValue
- the minimum valuemaxValue
- the maximum valuefactory
- the number formatter factorypublic AbstractNumberField(Number value, Number minValue, Number maxValue, AbstractXNumberFormatterFactory factory)
value
- the valueminValue
- the minimum valuemaxValue
- the maximum valuefactory
- the number formatter factorypublic AbstractNumberField(AbstractXNumberFormatterFactory factory)
factory
- the number formatter factoryMethod Detail |
---|
protected void reinit()
public void setLocale(Locale locale)
setLocale
in class Component
locale
- the localepublic Number getNumberValue()
public void setNumberValue(Number value)
value
- the number valuepublic void setValue(Object value)
setValue
in class JFormattedTextField
value
- the number valuepublic Number getMinimumNumberValue()
public void setMinimumNumberValue(Number minValue)
minValue
- the minimum number valuepublic Number getMaximumNumberValue()
public void setMaximumNumberValue(Number maxValue)
maxValue
- the maximum number valueprotected void setFormatter(JFormattedTextField.AbstractFormatter formatter)
setFormatter
in class JFormattedTextField
formatter
- the number formatterpublic AbstractXNumberFormatter getAbstractXNumberFormatter()
public AbstractXNumberFormatterFactory getAbstractXNumberFormatterFactory()
public void setAbstractXNumberFormatterFactory(AbstractXNumberFormatterFactory factory)
factory
- the number formatter factorypublic void setFormatterFactory(JFormattedTextField.AbstractFormatterFactory aff)
setFormatterFactory
in class JFormattedTextField
aff
- the number formatter factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |