|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
com.vwp.swing.XIntegerField
public class XIntegerField
| Nested Class Summary |
|---|
| 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.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| 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 |
|---|
TOOL_TIP_TEXT_KEY, 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 | |
|---|---|
XIntegerField()
Constructs a new XIntegerField with an initial value of 0 |
|
XIntegerField(int value,
int columns)
Constructs a new XIntegerField |
|
XIntegerField(int value,
int MinVal,
int MaxVal)
Constructs a new XIntegerField |
|
XIntegerField(int value,
int columns,
int MinVal,
int MaxVal)
Constructs a new XIntegerField |
|
| Method Summary | |
|---|---|
void |
clearValue()
Clears the IntegerField so that no number can be seen. |
int |
getMaxValue()
Returns the actual maximum value |
int |
getMinValue()
Returns the actual minimum value |
String |
getText()
|
int |
getValue()
Returns the actual value |
void |
processFocusEvent(FocusEvent e)
|
void |
setMaxValue(int MaxVal)
Sets a new maximum value |
void |
setMinValue(int MinVal)
Sets a nem minimum value |
void |
setValue(int value)
Sets the actual maximum value |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XIntegerField()
public XIntegerField(int value,
int columns)
value - The initial valuecolumns - The width of the field
public XIntegerField(int value,
int MinVal,
int MaxVal)
value - The initial valueMinVal - The minimum allowed value which can be entered; smaller
values will automatically be set to MinValMaxVal - The maximum allowed value which can be entered; greater
values will automatically be set to MaxVal
public XIntegerField(int value,
int columns,
int MinVal,
int MaxVal)
value - The initial valuecolumns - The width of the fieldMinVal - The minimum allowed value which can be entered; smaller
values will automatically be set to MinValMaxVal - The maximum allowed value which can be entered; greater
values will automatically be set to MaxVal| Method Detail |
|---|
public void setMaxValue(int MaxVal)
MaxVal - The maximum allowed value which can be entered; greater
values will automatically be set to MaxValpublic void setMinValue(int MinVal)
MinVal - The minimum allowed value which can be entered; smaller
values will automatically be set to MinValpublic int getMaxValue()
public int getMinValue()
public String getText()
getText in class JTextComponentpublic int getValue()
public void setValue(int value)
value - The new actual value which has to be displayedpublic void clearValue()
public void processFocusEvent(FocusEvent e)
processFocusEvent in class Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||