Top  | Previous | Next

Spinner

A Spinner in<br>
Integer mode

A Spinner in
Integer mode

A Spinner in<br>
Date mode

A Spinner in
Date mode

Description

The spinner component represents a value that is part of a series of values, such as numbers and dates. It allows you to not only edit the value directly, but to 'spin' the value up or down, using the up and down buttons that are part of the component. When setting up property bindings, make sure you use the value property that corresponds to the spinner mode. For example, if you chose the Double spinner mode, you should bind the doubleValue property.

Properties

Appearance

Font

Font of text of this component

Scripting name

font

Data type

Font

Foreground Color

The foreground color of the component.

Scripting name

foreground

Data type

Color

Background Color

The background color of the component.

Scripting name

background

Data type

Color

Number Format

A number format pattern to use when the spinner is in numeric mode.

Scripting name

numberFormat

Data type

String

Date Format

A date format pattern to use when the spinner is in date mode.

Scripting name

dateFormat

Data type

String

Antialias

Draw with antialias on? Makes text smoother

Scripting name

antialias

Data type

boolean

Flags

expert

Styles

Contains the component's styles

Scripting name

styles

Data type

Dataset

Flags

bindable | expert

Behavior

Spinner Mode

The mode controls which data type this spinner accepts

Scripting name

spinnerMode

Data type

int

Values

0

Integer

1

Double

2

Date

Numeric Step Size

The size to step up or down when in 'Integer' or 'Double' mode.

Scripting name

stepSize

Data type

double

Touchscreen Mode

Controls when this input component responds if touchscreen mode is enabled.

Scripting name

touchscreenMode

Data type

int

Flags

expert

Values

0

None

1

Single-Click

2

Double-Click

Common

Name

The name of this component.

Scripting name

name

Data type

String

Flags

bindable

Enabled

If disabled, a component cannot be used.

Scripting name

componentEnabled

Data type

boolean

Visible

If disabled, the component will be hidden.

Scripting name

visible

Data type

boolean

Flags

bindable

Border

The border surrounding this component. NOTE that the border is unaffected by rotation.

Scripting name

border

Data type

Border

Mouseover Text

The text that is displayed in the tooltip which pops up on mouseover of this component.

Scripting name

toolTipText

Data type

String

Data

Numeric Minimum

The minimum value this spinner will accept when in 'Integer' or 'Double' mode.

Scripting name

minValue

Data type

double

Flags

bindable

Numeric Maximum

The maximum value this spinner will accept when in 'Integer' or 'Double' mode.

Scripting name

maxValue

Data type

double

Flags

bindable

Value (Integer)

The current value if mode is 'Integer'

Scripting name

intValue

Data type

int

Flags

bindable

Value (Double)

The current value if mode is 'Double'

Scripting name

doubleValue

Data type

double

Flags

bindable

Value (Date)

The current value if mode is 'Date'

Scripting name

dateValue

Data type

Date

Flags

bindable

Data Quality

The data quality code for any tag bindings on this component.

Scripting name

dataQuality

Data type

int

Flags

bindable | expert

Uncategorized

Date in Milliseconds

 

Scripting name

dateInMillis

Data type

long

Flags

bindable | read-only

Scripting

Events

The following event sets are fired by this component. See Component Event Handlers to learn more.

propertyChange

 

Scripting Functions

This component has no special scripting functions.