|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
symantec.itools.awt.util.spinner.Spinner
symantec.itools.awt.util.spinner.NumericSpinner
wt.clients.prodmgmt.IntegerSpinner
IntegerSpinner extends NumericSpinner to allow listening to the
contained textfield. This spinner allows integer values
and throws PropertyChangeEvents with the new and old
Integer values.
Supported API: true
Extendable: true
NumericSpinner
,
Serialized FormNested Class Summary | |
(package private) class |
IntegerSpinner.SymKey
|
Nested classes inherited from class symantec.itools.awt.util.spinner.Spinner |
|
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected IntegerSpinner.SymKey |
aSymKey
|
protected symantec.itools.beans.PropertyChangeSupport |
changes
|
protected int |
d_currentIntegerValue
|
protected boolean |
d_isVisible
|
Fields inherited from class symantec.itools.awt.util.spinner.NumericSpinner |
|
Fields inherited from class symantec.itools.awt.util.spinner.Spinner |
action, actionListener, added, current, currentVeto, editable, errors, increment, max, maxVeto, min, minVeto, orientation, ORIENTATION_DEFAULT, text, textWidth, wrappable |
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface symantec.itools.awt.Orientation |
ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
IntegerSpinner()
Construct an IntegerSpinner. |
Method Summary | |
void |
addKeyListener(KeyListener keyListener)
Add a key listener to this component. |
void |
addNotify()
Overridden to add a KeyListener for key stroke events in the contained text field. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a listener for all property change events. |
int |
getCurrentIntegerValue()
Gets the current integer value. |
String |
getCurrentText()
Construct the locale specific numeric string. |
protected TextField |
getTextField()
Get reference to internal TextField object. |
(package private) void |
qtyListSpinner_keyPressed(KeyEvent event)
Preprocess key events before they are passed to the TextField. |
(package private) void |
qtyListSpinner_keyReleased(KeyEvent event)
Perform post processing of keypress. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a listener for all property change events. |
private void |
RestoreField(Exception e)
|
protected void |
scrollDown()
Decrements the spinner's value and handles wrapping as needed. |
protected void |
scrollUp()
Increments the spinner's value and handles wrapping as needed. |
void |
setCurrentIntegerValue(int value)
Sets the current integer value. |
Methods inherited from class symantec.itools.awt.util.spinner.NumericSpinner |
addVetoableChangeListener, getIncrement, removeVetoableChangeListener, setIncrement, setMax, setMin, validateText |
Methods inherited from class symantec.itools.awt.util.spinner.Spinner |
addActionListener, addCurrentListener, addCurrentListener, addMaxListener, addMaxListener, addMinListener, addMinListener, getCurrent, getDelay, getEditable, getEntryFieldText, getMax, getMin, getMinimumSize, getNotifyWhilePressed, getOrientation, getPreferredSize, getWrappable, isEditable, isNotifyWhilePressed, isValidCurrentValue, isValidMaxValue, isValidMinValue, isWrappable, removeActionListener, removeCurrentListener, removeCurrentListener, removeMaxListener, removeMaxListener, removeMinListener, removeMinListener, removeNotify, setCurrent, setDelay, setEditable, setEnabled, setLayout, setNotifyWhilePressed, setOrientation, setWrappable, sourceActionEvent, updateButtonStatus, updateText |
Methods inherited from class java.awt.Panel |
getAccessibleContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected IntegerSpinner.SymKey aSymKey
protected int d_currentIntegerValue
protected boolean d_isVisible
protected symantec.itools.beans.PropertyChangeSupport changes
Constructor Detail |
public IntegerSpinner()
Method Detail |
public void addNotify()
public int getCurrentIntegerValue()
public String getCurrentText()
protected TextField getTextField()
symantec.itools.awt.util.spinner
public void setCurrentIntegerValue(int value) throws PropertyVetoException
value
- the new integer value.
PropertyVetoException
- if the new value is greater
than the specified maximum valuepublic void addKeyListener(KeyListener keyListener)
keyListener
- a new listener for this componentKeyListener
protected void scrollUp()
scrollDown()
,
Spinner.increment
protected void scrollDown()
scrollUp()
,
Spinner.increment
void qtyListSpinner_keyPressed(KeyEvent event)
void qtyListSpinner_keyReleased(KeyEvent event)
private void RestoreField(Exception e)
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to addremovePropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to removeaddPropertyChangeListener(java.beans.PropertyChangeListener)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |