Pacotemx.managers
Interfacepublic interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory
ImplementorsSystemManager, WindowedSystemManager

An ISystemManager manages an "application window". Every application that runs on the desktop or in a browser has an area where the visuals of the application will be displayed. It may be a window in the operating system or an area within the browser. That is an "application window" and different from an instance of mx.core.Application, which is the main "top-level" window within an application.

Every application has an ISystemManager. The ISystemManager sends an event if the size of the application window changes (you cannot change it from within the application, but only through interaction with the operating system window or browser). It parents all displayable items within the application, such as the main mx.core.Application instance and all popups, tooltips, cursors, an so on. Any object parented by the ISystemManager is considered to be a "top-level" window, even tooltips and cursors.

The ISystemManager also switches focus between top-level windows if there are more than one IFocusManagerContainer displayed and users are interacting with components within the IFocusManagerContainers.

All keyboard and mouse activity that is not expressly trapped is seen by the ISystemManager, making it a good place to monitor activity should you need to do so.

If an application is loaded into another application, an ISystemManager will still be created, but will not manage an "application window", depending on security and domain rules. Instead, it will be the content of the Loader that loaded it and simply serve as the parent of the sub-application

The ISystemManager maintains multiple lists of children, one each for tooltips, cursors, popup windows. This is how it ensures that popup windows "float" above the main application windows and that tooltips "float" above that and cursors above that. If you examine the numChildren property or getChildAt() method on the ISystemManager you are accessing the main application window and any other windows that aren't popped up. To get the list of all windows, including popups, tooltips and cursors, use the rawChildren property.



Propriedades Públicas
 PropriedadeDefinido por
  cursorChildren : IChildList
[read-only] An list of the custom cursors being parented by this ISystemManager.
ISystemManager
  document : Object
A reference to the document object.
ISystemManager
  focusPane : Sprite
A single Sprite shared among components used as an overlay for drawing focus.
ISystemManager
  loaderInfo : LoaderInfo
[read-only] The LoaderInfo object that represents information about the application.
ISystemManager
 InheritednumChildren : int
[read-only] The number of children in this child list.
IChildList
  numModalWindows : int
The number of modal windows.
ISystemManager
  popUpChildren : IChildList
[read-only] An list of the topMost (popup) windows being parented by this ISystemManager.
ISystemManager
  rawChildren : IChildList
[read-only] A list of all children being parented by this ISystemManager.
ISystemManager
  screen : Rectangle
[read-only] The size and position of the application window.
ISystemManager
  stage : Stage
[read-only] The flash.display.Stage that represents the application window mapped to this SystemManager
ISystemManager
  toolTipChildren : IChildList
[read-only] A list of the tooltips being parented by this ISystemManager.
ISystemManager
  topLevelSystemManager : ISystemManager
[read-only] The ISystemManager responsible for the application window.
ISystemManager
Métodos Públicos
 MétodoDefinido por
  
Activates the FocusManager in an IFocusManagerContainer.
ISystemManager
 Inherited
Adds a child DisplayObject after the end of this child list.
IChildList
 Inherited
Adds a child DisplayObject to this child list at the index specified.
IChildList
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
IEventDispatcher
  
Registers a top-level window containing a FocusManager.
ISystemManager
 Inherited
Determines if a DisplayObject is in this child list, or is a descendant of an child in this child list.
IChildList
 Inherited
create(... parameters):Object
A factory method that requests an instance of a definition known to the module.
IFlexModuleFactory
  
Deactivates the FocusManager in an IFocusManagerContainer, and activate the FocusManager of the next highest window that is an IFocusManagerContainer.
ISystemManager
 Inherited
Dispatches an event into the event flow.
IEventDispatcher
 Inherited
Gets the child DisplayObject at the specified index in this child list.
IChildList
 Inherited
Gets the child DisplayObject with the specified name in this child list.
IChildList
 Inherited
Gets the index of a specific child in this child list.
IChildList
  
Converts the given String to a Classe or package-level Function.
ISystemManager
 Inherited
Returns an array of DisplayObjects that lie under the specified point and are in this child list.
IChildList
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
IEventDispatcher
 Inherited
Returns a block of key/value pairs that hold static data known to the module.
IFlexModuleFactory
  
Returns true if the required font face is embedded in this application, or has been registered globally by using the Font.registerFont() method.
ISystemManager
  
Returns true if this ISystemManager is responsible for an application window, and false if this application has been loaded into another application.
ISystemManager
 Inherited
Removes the specified child DisplayObject from this child list.
IChildList
 Inherited
Removes the child DisplayObject at the specified index from this child list.
IChildList
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
IEventDispatcher
  
Unregisters a top-level window containing a FocusManager.
ISystemManager
 Inherited
setChildIndex(child:DisplayObject, newIndex:int):void
Changes the index of a particular child in this child list.
IChildList
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
IEventDispatcher
Detalhes da propriedade
cursorChildrenpropriedade
cursorChildren:IChildList  [read-only]

An list of the custom cursors being parented by this ISystemManager.

An ISystemManager has various types of children, such as the Application, popups, top-most windows, tooltips, and custom cursors. You can access the custom cursors through the cursorChildren property.

The IChildList object has methods like getChildAt() and properties like numChildren. For exemplo, cursorChildren.numChildren gives the number of custom cursors (which will be either 0 or 1) and, if a custom cursor exists, you can access it as cursorChildren.getChildAt(0).


Implementação
    public function get cursorChildren():IChildList
documentpropriedade 
document:Object  [read-write]

A reference to the document object. A document object is an Object at the top of the hierarchy of a Flex application, MXML component, or AS component.


Implementação
    public function get document():Object
    public function set document(value:Object):void
focusPanepropriedade 
focusPane:Sprite  [read-write]

A single Sprite shared among components used as an overlay for drawing focus. You share it if you parent a focused component, not if you are IFocusManagerComponent.


Implementação
    public function get focusPane():Sprite
    public function set focusPane(value:Sprite):void
loaderInfopropriedade 
loaderInfo:LoaderInfo  [read-only]

The LoaderInfo object that represents information about the application.


Implementação
    public function get loaderInfo():LoaderInfo
numModalWindowspropriedade 
numModalWindows:int  [read-write]

The number of modal windows.

Modal windows don't allow clicking in another windows which would normally activate the FocusManager in that window. The PopUpManager modifies this count as it creates and destroy modal windows.


Implementação
    public function get numModalWindows():int
    public function set numModalWindows(value:int):void
popUpChildrenpropriedade 
popUpChildren:IChildList  [read-only]

An list of the topMost (popup) windows being parented by this ISystemManager.

An ISystemManager has various types of children, such as the Application, popups, tooltips, and custom cursors. You can access the top-most windows through the popUpChildren property.

The IChildList object has methods like getChildAt() and properties like numChildren. For exemplo, popUpChildren.numChildren gives the number of topmost windows and you can access them as popUpChildren.getChildAt(i).


Implementação
    public function get popUpChildren():IChildList
rawChildrenpropriedade 
rawChildren:IChildList  [read-only]

A list of all children being parented by this ISystemManager.

An ISystemManager has various types of children, such as the Application, popups, tooltips, and custom cursors.

The IChildList object has methods like getChildAt() and properties like numChildren.


Implementação
    public function get rawChildren():IChildList
screenpropriedade 
screen:Rectangle  [read-only]

The size and position of the application window. The Rectangle object contains x, y, width, and height properties.


Implementação
    public function get screen():Rectangle
stagepropriedade 
stage:Stage  [read-only]

The flash.display.Stage that represents the application window mapped to this SystemManager


Implementação
    public function get stage():Stage
toolTipChildrenpropriedade 
toolTipChildren:IChildList  [read-only]

A list of the tooltips being parented by this ISystemManager.

An ISystemManager has various types of children, such as the Application, popups, topmost windows, tooltips, and custom cursors.

The IChildList object has methods like getChildAt() and properties like numChildren. For exemplo, toolTipChildren.numChildren gives the number of tooltips (which will be either 0 or 1) and, if a tooltip exists, you can access it as toolTipChildren.getChildAt(0).


Implementação
    public function get toolTipChildren():IChildList
topLevelSystemManagerpropriedade 
topLevelSystemManager:ISystemManager  [read-only]

The ISystemManager responsible for the application window. This will be the same ISystemManager unless this application has been loaded into another application.


Implementação
    public function get topLevelSystemManager():ISystemManager
Detalhes do método
activate()método
public function activate(f:IFocusManagerContainer):void

Activates the FocusManager in an IFocusManagerContainer.

Parâmetros

f:IFocusManagerContainer — IFocusManagerContainer the top-level window whose FocusManager should be activated.

addFocusManager()método 
public function addFocusManager(f:IFocusManagerContainer):void

Registers a top-level window containing a FocusManager. Called by the FocusManager, generally not called by application code.

Parâmetros

f:IFocusManagerContainer — The top-level window in the application.

deactivate()método 
public function deactivate(f:IFocusManagerContainer):void

Deactivates the FocusManager in an IFocusManagerContainer, and activate the FocusManager of the next highest window that is an IFocusManagerContainer.

Parâmetros

f:IFocusManagerContainer — IFocusManagerContainer the top-level window whose FocusManager should be deactivated.

getDefinitionByName()método 
public function getDefinitionByName(name:String):Object

Converts the given String to a Classe or package-level Function. Calls the appropriate ApplicationDomain.getDefinition() method based on whether you are loaded into another application or not.

Parâmetros

name:String — Name of class, for exemplo "mx.video.VideoManager".

Retorna
Object — The Classe represented by the name, or null.
isFontFaceEmbedded()método 
public function isFontFaceEmbedded(tf:TextFormat):Boolean

Returns true if the required font face is embedded in this application, or has been registered globally by using the Font.registerFont() method.

Parâmetros

tf:TextFormat — The TextFormat class representing character formatting information.

Retorna
Booleantrue if the required font face is embedded in this application, or has been registered globally by using the Font.registerFont() method.
isTopLevel()método 
public function isTopLevel():Boolean

Returns true if this ISystemManager is responsible for an application window, and false if this application has been loaded into another application.

Retorna
Booleantrue if this ISystemManager is responsible for an application window.
removeFocusManager()método 
public function removeFocusManager(f:IFocusManagerContainer):void

Unregisters a top-level window containing a FocusManager. Called by the FocusManager, generally not called by application code.

Parâmetros

f:IFocusManagerContainer — The top-level window in the application.