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

NameTypegetsetDescripton
alignStringcheckedcheckedThe text alignment. Valid values are:

left
right
center
fontBiFontcheckedcheckedThis is used to describe how to paint the text in the spinner.
maximumNumbercheckedcheckedThe maximum value for the spinner
minimumNumbercheckedcheckedThe minimum value for the spinner
valueNumbercheckedcheckedThe value for the spinner

Methods

None.

Events

NameTypeBubblesDescripton
actionBiEventThis event is fired when the enter key is pressed
changeBiEventThis event is fired when the maximum, minimum or maximum properties are changed.
invalidcharacterBiEventThis is fired if an invalid character is typed.
invalidvalueBiEventThis event is fired when the value is change becuase the value entered by the user was not valid.
textchangedBiEventFired when the text of the text box changes

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