|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | 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 | +--util.swing.JIntInput
A JTextField
that will allow only int values within a certain range to be entered.
Note: This class is not meant to be serialized!
Inner classes inherited from class javax.swing.JTextField |
JTextField.AccessibleJTextField |
Inner classes inherited from class javax.swing.text.JTextComponent |
JTextComponent.AccessibleJTextComponent,
JTextComponent.KeyBinding |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
Field Summary | |
protected int[] |
m_anValue
The current value observer. |
protected int |
m_nDefault
The default value of the input field. |
protected int |
m_nMaximum
The maximum value. |
protected int |
m_nMinimum
The minimum value. |
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 |
Constructor Summary | |
JIntInput(int[] anValue,
int nDefault)
Create a new JIntInput. |
|
JIntInput(int[] anValue,
int nDefault,
int nMinimum,
int nMaximum)
Create a new JIntInput. |
Method Summary | |
protected Document |
createDefaultModel()
Create and return the input fields document. |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int[] m_anValue
protected int m_nDefault
protected int m_nMinimum
protected int m_nMaximum
Constructor Detail |
public JIntInput(int[] anValue, int nDefault)
Integer.MIN_VALUE
and
Integer.MAX_VALUE
, resp.anValue
- the value observer the current value of the input field can be found as the first element
of the array at any time.nDefault
- the default value of the input line.public JIntInput(int[] anValue, int nDefault, int nMinimum, int nMaximum)
anValue
- the value observer the current value of the input field can be found as the first element
of the array at any time.nDefault
- the default value of the input line.nMinimum
- the minimum input value.nMaximum
- the maximum input value.Method Detail |
protected Document createDefaultModel()
|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |