Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel.gui
Class SpinBox  view SpinBox download SpinBox.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended bycom.trapezium.chisel.gui.SpinBox
All Implemented Interfaces:
java.awt.event.ActionListener, Control, java.util.EventListener, java.awt.image.ImageObserver, LabelConstants, java.awt.MenuContainer, java.io.Serializable

public class SpinBox
extends java.awt.Container
implements LabelConstants, java.awt.event.ActionListener, Control

A widget for selecting from a numerical sequence of values.

Version:
1.0, 3/10/98

Nested Class Summary
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  java.awt.event.ActionListener actionListener
           
(package private)  TextLabel displayNum
           
(package private)  GlyphButton down
           
(package private)  int incValue
           
(package private)  int maxValue
           
(package private)  int minValue
           
(package private)  GlyphButton up
           
(package private)  int value
           
 
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 com.trapezium.chisel.gui.LabelConstants
IMAGE_ALIGN, IMAGE_ALIGN_BOTTOM, IMAGE_ALIGN_CENTER, IMAGE_ALIGN_HORZ, IMAGE_ALIGN_LEFT, IMAGE_ALIGN_RIGHT, IMAGE_ALIGN_TOP, IMAGE_ALIGN_VCENTER, IMAGE_ALIGN_VERT, TEXT_ALIGN, TEXT_ALIGN_BOTTOM, TEXT_ALIGN_CENTER, TEXT_ALIGN_HORZ, TEXT_ALIGN_LEFT, TEXT_ALIGN_RIGHT, TEXT_ALIGN_TOP, TEXT_ALIGN_VCENTER, TEXT_ALIGN_VCENTERASCENT, TEXT_ALIGN_VERT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SpinBox()
           
SpinBox(int min, int max, int inc, int start)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This method is invoked when an action occurs.
 void addActionListener(java.awt.event.ActionListener listener)
          Adds the specified action listener to receive action events from this control.
 void doLayout()
          Layout the components in this container.
 int getIntValue()
           
 java.awt.Dimension getMinimumSize()
          The minimum size of the button.
 java.awt.Dimension getPreferredSize()
          The preferred size of the button.
 java.lang.Object getValue()
          set the value
 void removeActionListener(java.awt.event.ActionListener listener)
          Removes the specified action listener so it no longer receives action events from this button.
 void setConstraints(int min, int max, int inc)
           
 void setIntValue(int val)
           
 void setValue(java.lang.Object value)
          set the value
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

up

GlyphButton up

down

GlyphButton down

displayNum

TextLabel displayNum

actionListener

java.awt.event.ActionListener actionListener

minValue

int minValue

maxValue

int maxValue

incValue

int incValue

value

int value
Constructor Detail

SpinBox

public SpinBox()

SpinBox

public SpinBox(int min,
               int max,
               int inc,
               int start)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from interface: java.awt.event.ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

setValue

public void setValue(java.lang.Object value)
set the value

Specified by:
setValue in interface Control

getValue

public java.lang.Object getValue()
Description copied from interface: Control
set the value

Specified by:
getValue in interface Control

setIntValue

public void setIntValue(int val)

getIntValue

public int getIntValue()

setConstraints

public void setConstraints(int min,
                           int max,
                           int inc)

addActionListener

public void addActionListener(java.awt.event.ActionListener listener)
Adds the specified action listener to receive action events from this control.

Specified by:
addActionListener in interface Control

removeActionListener

public void removeActionListener(java.awt.event.ActionListener listener)
Removes the specified action listener so it no longer receives action events from this button.

Specified by:
removeActionListener in interface Control

getPreferredSize

public java.awt.Dimension getPreferredSize()
The preferred size of the button.


getMinimumSize

public java.awt.Dimension getMinimumSize()
The minimum size of the button.


doLayout

public void doLayout()
Description copied from class: java.awt.Container
Layout the components in this container.