All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.NumericSpinner

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----symantec.itools.awt.Spinner
                                   |
                                   +----symantec.itools.awt.NumericSpinner

public class NumericSpinner
extends Spinner
Creates a text box, containing a list of numbers, with up and down arrows. Use this component to allow your users to move through a set of fixed values or type a valid value in the box.

At run time only the selected value is displayed in the text box.

See Also:
Spinner

Constructor Index

 o NumericSpinner()
Constructs an empty NumericSpinner.

Method Index

 o addNotify()
Tells this component that it has been added to a container.
 o getCurrentText()
Gets the current text from the Spinner.
 o getIncrement()
Gets the increment/decrement value.
 o setIncrement(int)
Sets the value to increment/decrement the Spinner by.

Constructors

 o NumericSpinner
  public NumericSpinner()
Constructs an empty NumericSpinner.

Methods

 o setIncrement
  public void setIncrement(int i)
Sets the value to increment/decrement the Spinner by.

Parameters:
int - i the increment/decrement value
See Also:
getIncrement
 o getIncrement
  public int getIncrement()
Gets the increment/decrement value.

Returns:
the increment/decrement value
See Also:
setIncrement
 o getCurrentText
  protected String getCurrentText()
Gets the current text from the Spinner.

Returns:
the text of the currently selected Spinner value
Overrides:
getCurrentText in class Spinner
 o addNotify
  public void addNotify()
Tells this component that it has been added to a container. This is a standard Java AWT method which gets called by the AWT when this component is added to a container. Typically, it is used to create this component's peer. Here it's used to set maximum text width and note the text of the current selection.

Overrides:
addNotify in class Spinner
See Also:
removeNotify

All Packages  Class Hierarchy  This Package  Previous  Next  Index