mx.controls
Class NumericStepper



class NumericStepper
extends mx.core.UIComponent

The NumericStepper control lets the user select a number from an ordered set. The NumericStepper control consists of a single line input text field and a pair of arrow buttons for stepping through the possible values. The up and down arrow keys also cycle through the values.

MXML Syntax

The <mx:NumericStepper< tag inherits all the properties of its parent classes, and the following properties:

 <mx:NumericStepper
maximum="10"
minimum="0"
stepSize="1"
value="0"
change="Event handler; no default."
/>



Methods

Methods inherited from class mx.core.UIComponent
getFocus  setFocus  getFocusManager 

Methods inherited from class mx.core.UIObject
createAccessibilityImplementation  measure  doLater  cancelAllDoLaters  invalidate  invalidateStyle  invalidateProperties  invalidateSize  redraw  move  setSize  setSizeNoLayout  drawRect  fillRect  destroyLabel  createClassObject  createEmptyObject  destroyObject  getStyle  setMask  swapDepths 


Properties
staticversion:String  
ComponentVersion is for internal use only.
      nextValue:Number   [Read-Only]
Next value that is in the step and range.
      previousValue:Number   [Read-Only]
Previous value that is in the step and range.
      value:Number   [Read-Write]
Current value displayed in the text area of the NumericStepper control.
      minimum:Number   [Read-Write]
Minimum range value.
      maximum:Number   [Read-Write]
Maximum range value.
      stepSize:Number   [Read-Write]
Non zero unit change from the current value.

Properties inherited from class mx.core.UIComponent
version  enabled  tabIndex 

Properties inherited from class mx.core.UIObject
version  nestLevel  dispatchEvent  addEventListener  handleEvent  removeEventListener  kStretch  styleName  className  setStyle  parentApplication  isDocument  parentDocument  documentDescriptor  descriptor  instanceIndices  repeaterIndices  getRepeaterItem  id  width  height  x  y  minHeight  minWidth  preferredHeight  preferredWidth  maxHeight  maxWidth  widthFlex  heightFlex  visible  scaleX  scaleY  alpha  depth  mouseX  mouseY  toolTip  baselinePosition 


Effects

Effects inherited from class mx.core.UIComponent
showEffect  hideEffect  focusInEffect  focusOutEffect 

Effects inherited from class mx.core.UIObject
creationCompleteEffect  moveEffect  resizeEffect  mouseDownEffect  mouseOverEffect  mouseOutEffect  mouseUpEffect 


Events
changeHandler for change events which are broadcast when the value of the NumericStepper control changes as a result of user interaction. Target contains a reference to the component that triggered the event. Type contains the name of the event.
drawBroadcast when an object is about to draw its graphics. Target contains a reference to the component that triggered the event. Type contains the name of the event.

Events inherited from class: mx.core.UIComponent
focusIn  focusOut  keyDown  keyUp  show  hide  valid  invalid  valueCommitted 

Events inherited from class: mx.core.UIObject
initialize  creationComplete  resize  move  draw  load  unload  mouseDown  mouseUp  mouseMove  mouseOver  mouseOut  mouseDownSomewhere  mouseUpSomewhere  mouseMoveSomewhere  mouseChangeSomewhere  effectStart  effectEnd  dragBegin  dragComplete  dragEnter  dragOver  dragExit  dragDrop 


Styles

Styles inherited from class mx.core.UIComponent
backgroundColor  backgroundDisabledColor  backgroundImage  backgroundAlpha  backgroundSize  barColor  borderCapColor  borderColor  buttonColor  borderStyle  disabledColor  errorColor  highlightColor  lineHeight  modalTransparency  scrollTrackColor  shadowColor  shadowCapColor  symbolColor  symbolBackgroundColor  symbolBackgroundDisabledColor  symbolBackgroundPressedColor  symbolDisabledColor  themeColor 

Styles inherited from class mx.core.UIObject
color  fontFamily  fontSize  fontStyle  fontWeight  textAlign  textDecoration  textIndent  marginLeft  marginRight  horizontalGap  verticalGap 


Property Detail

maximum

maximum:Number   [Read-Write]

Maximum range value. Can contain a number with up to three decimal places. The default value is 10.


minimum

minimum:Number   [Read-Write]

Minimum range value.


nextValue

nextValue:Number   [Read-Only]

Next value that is in the step and range.


previousValue

previousValue:Number   [Read-Only]

Previous value that is in the step and range.


stepSize

stepSize:Number   [Read-Write]

Non zero unit change from the current value. It can contain a number with up to three decimal places. The default value is 1.


value

value:Number   [Read-Write]

Current value displayed in the text area of the NumericStepper control. The value will not be assigned if it does not correspond to the NumericStepper control’s maximum and minimum range values and stepSize. It can contain a number with up to three decimal places. The default value is 0.


version

static version:String  

ComponentVersion is for internal use only.