BiSpinner

A spinner is a text box that accepts a number. A spinner also has buttons for increasing and decreasing the value.

This class extends BiComponent and therefore all methods and fields available for BiComponent are also available for BiSpinner .

Constructor

new BiSpinner ( )

Parameters

No parameters.

Properties

Name Type get set Descripton
align String checked checked The text alignment. Valid values are:

left
right
center
font BiFont checked checked This is used to describe how to paint the text in the spinner.
maximum Number checked checked The maximum value for the spinner
minimum Number checked checked The minimum value for the spinner
value Number checked checked The value for the spinner

Methods

None.

Events

Name Type Bubbles Descripton
action BiEvent This event is fired when the enter key is pressed
change BiEvent This event is fired when the maximum, minimum or maximum properties are changed.
invalidcharacter BiEvent This is fired if an invalid character is typed.
invalidvalue BiEvent This event is fired when the value is change becuase the value entered by the user was not valid.

Static Methods

None.

Static Fields

None.

Remarks

The maximum, minimum and value are always integers. When setting these, these are rounded to the nearest smaller integer. The following is always true for the properties of a spinner: minimum <= value <= maximum If the spinner has a command the command will be executed when the user presses the enter key