|
||||||||||
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.JWholeNumberField org.softsmithy.lib.swing.JIntegerField
public class JIntegerField
An integer 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 | |
---|---|
JIntegerField()
Creates a new instance of this class. |
|
JIntegerField(int value)
Creates a new instance of this class. |
|
JIntegerField(int minValue,
int maxValue)
Creates a new instance of this class. |
|
JIntegerField(int value,
int minValue,
int maxValue)
Creates a new instance of this class. |
|
JIntegerField(int value,
int minValue,
int maxValue,
Locale locale)
Creates a new instance of this class. |
|
JIntegerField(int minValue,
int maxValue,
Locale locale)
Creates a new instance of this class. |
|
JIntegerField(int value,
Locale locale)
Creates a new instance of this class. |
|
JIntegerField(Locale locale)
Creates a new instance of this class. |
Method Summary | |
---|---|
IntegerFormatter |
getIntegerFormatter()
Gets the number formatter. |
IntegerFormatterFactory |
getIntegerFormatterFactory()
Gets the number formatter factory. |
int |
getIntValue()
Gets the value. |
int |
getMaximumIntValue()
Gets the maximum value. |
int |
getMinimumIntValue()
Gets the minimum value. |
protected void |
setFormatter(JFormattedTextField.AbstractFormatter formatter)
Sets the formatter. |
void |
setFormatterFactory(JFormattedTextField.AbstractFormatterFactory aff)
Sets the formatter factory. |
void |
setIntegerFormatterFactory(IntegerFormatterFactory factory)
Sets the number formatter factory. |
void |
setIntValue(int i)
Sets the value |
void |
setMaximumIntValue(int maxIntValue)
Sets the maximum value. |
void |
setMinimumIntValue(int minIntValue)
Sets the maximum value. |
Methods inherited from class org.softsmithy.lib.swing.JWholeNumberField |
---|
getBigIntegerValue, getMaximumBigIntegerValue, getMinimumBigIntegerValue, getWholeNumberFormatter, getWholeNumberFormatterFactory, reinit, setBigIntegerValue, setMaximumBigIntegerValue, setMaximumNumberValue, setMinimumBigIntegerValue, setMinimumNumberValue, setValue, setWholeNumberFormatterFactory |
Methods inherited from class org.softsmithy.lib.swing.AbstractNumberField |
---|
getAbstractXNumberFormatter, getAbstractXNumberFormatterFactory, getMaximumNumberValue, getMinimumNumberValue, getNumberValue, 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 JIntegerField()
public JIntegerField(Locale locale)
locale
- the localepublic JIntegerField(int value)
value
- the valuepublic JIntegerField(int value, Locale locale)
value
- the valuelocale
- the localepublic JIntegerField(int minValue, int maxValue)
minValue
- the minimum valuemaxValue
- the maximum valuepublic JIntegerField(int minValue, int maxValue, Locale locale)
minValue
- the minimum valuemaxValue
- the maximum valuelocale
- the localepublic JIntegerField(int value, int minValue, int maxValue)
value
- the valueminValue
- the minimum valuemaxValue
- the maximum valuepublic JIntegerField(int value, int minValue, int maxValue, Locale locale)
value
- the valueminValue
- the minimum valuemaxValue
- the maximum valuelocale
- the localeMethod Detail |
---|
public int getIntValue()
public void setIntValue(int i)
i
- the valuepublic int getMinimumIntValue()
public void setMinimumIntValue(int minIntValue)
minIntValue
- the minimum valuepublic int getMaximumIntValue()
public void setMaximumIntValue(int maxIntValue)
maxIntValue
- the maximum valueprotected void setFormatter(JFormattedTextField.AbstractFormatter formatter)
setFormatter
in class JWholeNumberField
formatter
- the number formatterpublic IntegerFormatter getIntegerFormatter()
public IntegerFormatterFactory getIntegerFormatterFactory()
public void setIntegerFormatterFactory(IntegerFormatterFactory factory)
factory
- the number formatter factorypublic void setFormatterFactory(JFormattedTextField.AbstractFormatterFactory aff)
setFormatterFactory
in class JWholeNumberField
aff
- the number formatter factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |