|
|||||||||||
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.scheduler.LongSpinner
LongSpinner extends NumericSpinner to allow listening to the contained textfield.
This spinner allows long values and throws PropertyChangeEvents with
the new and old long values.
Supported API: false
Extendable: false
NumericSpinner
,
Serialized FormNested Class Summary | |
(package private) class |
LongSpinner.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 symantec.itools.beans.PropertyChangeSupport |
_changes
|
protected boolean |
_isVisible
|
protected long |
_longValue
|
LongSpinner.SymKey |
aSymKey
|
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 | |
LongSpinner()
|
Method Summary | |
void |
addKeyListener(KeyListener l)
Add a key listener to this component. |
void |
addNotify()
|
void |
addPropertyChangeListener(PropertyChangeListener ear)
Add a listener for all property change events |
long |
getCurrentLongValue()
get the contents of the current long value |
String |
getCurrentText()
Get the current text from the spinner. |
protected TextField |
getTextField()
Get a reference to the internal text field object. |
private boolean |
isBadKey(int code)
|
(package private) void |
LongSpinner_keyPressed(KeyEvent event)
Preprocess key events to maintain the integrity of the text field. |
(package private) void |
LongSpinner_keyReleased(KeyEvent event)
Post processing of key press. |
void |
removePropertyChangeListener(PropertyChangeListener ear)
Remove a listener for all property change events. |
private void |
restoreField(Exception e)
|
void |
scrollDown()
Decrement the spinner's value and wrap if necessary |
void |
scrollUp()
Increment the spinners value and handles wrapping |
void |
setCurrentLongValue(long candVal)
Sets the current long 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 |
public LongSpinner.SymKey aSymKey
protected boolean _isVisible
protected long _longValue
protected symantec.itools.beans.PropertyChangeSupport _changes
Constructor Detail |
public LongSpinner()
Method Detail |
public void addNotify()
public long getCurrentLongValue()
public String getCurrentText()
protected TextField getTextField()
symantec.itools.awt.util.spinner
public void setCurrentLongValue(long candVal) throws PropertyVetoException
PropertyVetoException
- is thrown if the new value is greater than the
specified maximum value, or if the value is less than the minimum value.public void addKeyListener(KeyListener l)
KeyListener
public void scrollUp()
public void scrollDown()
void LongSpinner_keyPressed(KeyEvent event)
private boolean isBadKey(int code)
void LongSpinner_keyReleased(KeyEvent event)
private void restoreField(Exception e)
public void addPropertyChangeListener(PropertyChangeListener ear)
removePropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener ear)
ear
- the PropertyChangeListner to removeaddPropertyChangeListener(java.beans.PropertyChangeListener)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |