com.jjt.utbeg
Class NumericSpinner

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--symantec.itools.awt.util.spinner.Spinner
                          |
                          +--symantec.itools.awt.util.spinner.NumericSpinner
                                |
                                +--com.jjt.utbeg.NumericSpinner

public class NumericSpinner
extends symantec.itools.awt.util.spinner.NumericSpinner
implements KeyListener

A subclass of Symantec's NumericSpinner that compensates for some defects.

In particular, this class listens for the <Enter> key, and updates the value when it occurs.

See Also:
Serialized Form

Inner classes inherited from class symantec.itools.awt.util.spinner.Spinner
symantec.itools.awt.util.spinner.Spinner.Action, symantec.itools.awt.util.spinner.Spinner.CurrentVeto, symantec.itools.awt.util.spinner.Spinner.MaxVeto, symantec.itools.awt.util.spinner.Spinner.MinVeto
 
Inner classes inherited from class java.awt.Component
Component.AWTTreeLock, Component.NativeInLightFixer
 
Fields inherited from class symantec.itools.awt.util.spinner.NumericSpinner
changes, vetos
 
Fields inherited from class symantec.itools.awt.util.spinner.Spinner
action, actionListener, added, buttons, changes, current, currentVeto, editable, errors, increment, max, maxVeto, min, minVeto, orientation, ORIENTATION_DEFAULT, text, textFld, textWidth, vetos, wrappable
 
Fields inherited from class java.awt.Panel
base, nameCounter, serialVersionUID
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
NumericSpinner()
          Creates a NumericSpinner.
 
Method Summary
 void keyPressed(KeyEvent e)
          This method is public as an implementation side-effect.
 void keyReleased(KeyEvent e)
          This method is public as an implementation side-effect.
 void keyTyped(KeyEvent e)
          This method is public as an implementation side-effect.
 
Methods inherited from class symantec.itools.awt.util.spinner.NumericSpinner
addNotify, addPropertyChangeListener, addVetoableChangeListener, getCurrentText, getIncrement, removePropertyChangeListener, 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, scrollDown, scrollUp, setCurrent, setDelay, setEditable, setEnabled, setLayout, setNotifyWhilePressed, setOrientation, setWrappable, sourceActionEvent, updateButtonStatus, updateText
 
Methods inherited from class java.awt.Panel
constructComponentName
 
Methods inherited from class java.awt.Container
, add, add, add, add, add, addContainerListener, addImpl, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMouseEventTarget, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, nextFocus, paint, paintComponents, paramString, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printOneComponent, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, remove, removeAll, removeContainerListener, setFocusOwner, setFont, transferFocus, update, validate, validateTree, writeObject
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

NumericSpinner

public NumericSpinner()
Creates a NumericSpinner.
Method Detail

keyPressed

public void keyPressed(KeyEvent e)
This method is public as an implementation side-effect.

Part of the KeyListener interface. This method is used to determine when the <Enter> key is pressed in the text field of this spin box, presumably after the user has entered a value in the box.

Invoked when a key has been pressed.

Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
This method is public as an implementation side-effect.

Part of the KeyListener interface.

Invoked when a key has been released.

Specified by:
keyReleased in interface KeyListener

keyTyped

public void keyTyped(KeyEvent e)
This method is public as an implementation side-effect.

Part of the KeyListener interface.

Invoked when a key has been typed.

Specified by:
keyTyped in interface KeyListener