com.sas.swing.visuals
Class SpinBox

com.sas.swing.visuals.SpinBox
All Implemented Interfaces:
com.sas.collection.ContentsChangedListener, com.sas.lang.DoubleDataInterface, com.sas.lang.StringDataInterface, java.awt.Adjustable, java.awt.event.ActionListener, java.awt.event.AdjustmentListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener

public class SpinBox
implements java.awt.Adjustable, java.awt.ItemSelectable, java.awt.event.AdjustmentListener, com.sas.lang.StringDataInterface, com.sas.lang.DoubleDataInterface, com.sas.collection.ContentsChangedListener, java.beans.PropertyChangeListener, java.awt.event.FocusListener, java.awt.event.ActionListener

SpinBox is a class that combines a textField (JTextField) and a spinButton. The value in the textField can be incremented by pressing the spinButton. The SpinBox supports two types of models: an StaticOrderedCollectionInterface model or a BoundedNumberInterface model. The collection model displays one item from the collection in the textField and allows stepping throught the collection by using the spinButton. The boundedNumber model displays the value of the boundedNumber in the textField and allows it to be incremented or decremented by the spinButton. An AdjustmentEvent is fired any time the value of the SpinBox changes. An ItemEvent is also fired when the model is a collection and the value changes. The defaultModel for the SpinBox is a BoundedDouble.

Notes: