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
-
NumericSpinner()
- Constructs an empty NumericSpinner.
-
addNotify()
- Tells this component that it has been added to a container.
-
getCurrentText()
- Gets the current text from the Spinner.
-
getIncrement()
- Gets the increment/decrement value.
-
setIncrement(int)
- Sets the value to increment/decrement the Spinner by.
NumericSpinner
public NumericSpinner()
- Constructs an empty NumericSpinner.
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
getIncrement
public int getIncrement()
- Gets the increment/decrement value.
- Returns:
- the increment/decrement value
- See Also:
- setIncrement
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
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