mx.managers
Class FocusManager



class FocusManager
extends mx.core.UIComponent

The FocusManager class manages the focus on components. Each top-level window has a Focus Manager.



Methods
      getFocus() : Object
Gets the component that currently has the focus.
      getMaxTabIndex(o:UIComponent) : Number
Gets the highest tab index currently used in this Focus Manager`s form or subform.
      sendDefaultPushButtonEvent() : Void
You call this method to make the system think the Enter key was pressed.
      setFocus(o:Object) : Void
Sets the focus to an object.

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.
      className:String  
Name of this class.
      defaultPushButton:SimpleButton   [Read-Write]
Original default push button.
      nextTabIndex:Number   [Read-Only]
Next unique tab index to use on this form.

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

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 


Method Detail

getFocus

getFocus() : Object

Gets the component that currently has the focus. This is recommended instead of using Selection object because it indicates which component has focus. Selection might return a subobject in that component.

Returns
     Object that has focus.


getMaxTabIndex

getMaxTabIndex(o:UIComponent) : Number

Gets the highest tab index currently used in this Focus Manager`s form or subform.

Parameters
     o - Form or subform.

Returns
     Highest tab index currently used.


sendDefaultPushButtonEvent

sendDefaultPushButtonEvent() : Void

You call this method to make the system think the Enter key was pressed.


setFocus

setFocus(o:Object) : Void

Sets the focus to an object. This is recommended instead of using Selection object.

Parameters
     o - Object to receive focus.


Property Detail

className

className:String  

Name of this class.


defaultPushButton

defaultPushButton:SimpleButton   [Read-Write]

Original default push button. This may not be the actual button that is the default.


nextTabIndex

nextTabIndex:Number   [Read-Only]

Next unique tab index to use on this form.


version

static version:String  

ComponentVersion is for internal use only.