|
|||||||||||
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.Spinner
Spinner extends NumericSpinner to allow listening to the
contained textfield. This spinner allows decimal values
and throws PropertyChangeEvents with the new and old
Double values.
Supported API: true
Extendable: false
NumericSpinner
,
Serialized FormNested Class Summary | |
(package private) class |
Spinner.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 Spinner.SymKey |
aSymKey
|
protected symantec.itools.beans.PropertyChangeSupport |
changes
|
protected boolean |
d_containsDecimalPoint
|
protected double |
d_currentDoubleValue
|
protected char |
d_decimalCharacter
|
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 | |
Spinner()
Construct a Spinner object. |
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. |
double |
getCurrentDoubleValue()
Get the contents of d_currentDoubleValue. |
String |
getCurrentText()
Get the current text from the Spinner. |
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 |
setCurrentDoubleValue(double value)
Sets the current double 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 Spinner.SymKey aSymKey
protected double d_currentDoubleValue
protected boolean d_containsDecimalPoint
protected char d_decimalCharacter
protected boolean d_isVisible
protected symantec.itools.beans.PropertyChangeSupport changes
Constructor Detail |
public Spinner()
Method Detail |
public void addNotify()
public double getCurrentDoubleValue()
public String getCurrentText()
protected TextField getTextField()
symantec.itools.awt.util.spinner
public void setCurrentDoubleValue(double value) throws PropertyVetoException
value
- Value contains the value to set d_currentDoubleValue to.
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 |