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 | ![]() | ![]() | The text alignment. Valid values are:left right center |
font | | ![]() | ![]() | This is used to describe how to paint the text in the spinner. |
maximum | Number | ![]() | ![]() | The maximum value for the spinner |
minimum | Number | ![]() | ![]() | The minimum value for the spinner |
value | Number | ![]() | ![]() | The value for the spinner |
Methods
None.
Events
| Name | Type | Bubbles | Descripton |
action | | This event is fired when the enter key is pressed | |
change | | This event is fired when the maximum, minimum or maximum properties are changed. | |
invalidcharacter | | This is fired if an invalid character is typed. | |
invalidvalue | | This event is fired when the value is change becuase the value entered by the user was not valid. | |
textchanged | | Fired 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
