Main Page | Packages | Class Tree | Index | Help

xp.system

class SystemManager

Object
  |
  +--xp.system.SystemManager


class SystemManager
extends Object



Field Summary

public static
activeForm


public
bDrawFocus: Boolean
should focus be drawn

public static
DEPTH_RESERVED_WINDOW
WindowManager vars depth constant for system windows holder

public
enabled: Boolean
Controls whether the FocusManager will control tabbing

public static
focusControl
the object that had focus when the mouse button was pressed

public static
forms: Array


public static
isMouseDown: Boolean


public static
isPressFocused
are we in pressFocused state

public
lastActiveWindow


public static
lastFocusControl


public static
logEnabled: Boolean
SystemManager vars

Property Summary

public
hasModals: Boolean (read-only)


Constructor

public
SystemManager ( )
Creates a new instance of the WindowManager

Method Summary

public
activateForm ( f: Object ): Void


public
addForm ( f: Object ): Void


public static
checkIdle ( ): Void


public
createMenu ( owner: Object ): Object
Creates a container for popup menus

public
createPopup ( owner: Object ): Object
Creates a container for a popup

public
createWindow ( WindowClass, isModal: Boolean, content, title: String, closeButton: Boolean, listener: Object, contentInitProps: Object, options: Object, owner: Object, returnFunction: Function ): Object
Displays the standard non modal dialog/window

public
deactivateForm ( f: Object ): Void


public
getActualFocus ( o: Object ): Object
Locates the owning component of a focusable object

public
getFocus ( ): Object
Get the component that currently has the focus.

public static
getInstance ( ): SystemManager
Returns a ref to the singleton SystemManager*

public
getSelectionFocus ( ): Object
Returns a reference to the actual object that currently is focused

public
hideFocus ( ): Void
turns of drawing focus and removes the focus ring on the current item*

public
hidePopUp ( popup: Object ): Void
Hide the active popup

public static
init ( ): Void


public
isOurFocus ( o: Object ): Boolean
Is the specified object part of our focus group*

public
onActivateWindow ( tgt ): Void
Called by a window when it becomes active or by the system when a MouseDown in a new Window

public
onDeactivateWindow ( tgt ): Void
Called by a window when it becomes inactive or hidden

public
onMouseDown ( ): Void


public
onMouseMove ( ): Void


public
onMouseUp ( ): Void


public
onSetFocus ( oldFocus: Object, newFocus: Object ): Void


public static
onTabKeyPress ( )
callback from the tabcapture control*

public
removeForm ( f: Object ): Void


public
showFocus ( ): Void
turns on drawing focus and redraws the focus ring on the current item*

public
showPopUp ( popup: Object, x: Number, y: Number ): Void
Makes a popup visible and places it at the specified location

public
tabHandler ( )
Handler for the tab key press*



Field Documentation

activeForm

public static var activeForm

bDrawFocus

public var bDrawFocus: Boolean
should focus be drawn

DEPTH_RESERVED_WINDOW

public static var DEPTH_RESERVED_WINDOW
WindowManager vars depth constant for system windows holder

enabled

public var enabled: Boolean
Controls whether the FocusManager will control tabbing

focusControl

public static var focusControl
the object that had focus when the mouse button was pressed

forms

public static var forms: Array

isMouseDown

public static var isMouseDown: Boolean

isPressFocused

public static var isPressFocused
are we in pressFocused state

lastActiveWindow

public var lastActiveWindow

lastFocusControl

public static var lastFocusControl

logEnabled

public static var logEnabled: Boolean
SystemManager vars


Property Documentation

hasModals

public hasModals: Boolean (read-only)

Constructor Documentation

SystemManager

public function SystemManager()
Creates a new instance of the WindowManager

Do not call directly. The Window class automatically instantiates the WindowManager.


Method Documentation

activateForm

public function activateForm(f: Object): Void

addForm

public function addForm(f: Object): Void

checkIdle

public static function checkIdle(): Void

createMenu

public function createMenu(owner: Object): Object
Creates a container for popup menus

Parameters:
owner
A reference to the owner of the menu container
Returns:
A reference to the container

createPopup

public function createPopup(owner: Object): Object
Creates a container for a popup

Parameters:
owner
A reference to the owner of the popup container
Returns:
A reference to the container

createWindow

public function createWindow(WindowClass,
 isModal: Boolean,
 content,
 title: String,
 closeButton: Boolean,
 listener: Object,
 contentInitProps: Object,
 options: Object,
 owner: Object,
 returnFunction: Function): Object
Displays the standard non modal dialog/window

Parameters:
WindowClass
The class or linkageId of the window
isModal
Is this a modal window
content
The class or linkageId of the content Form to be loaded into the window
title
The title text to be displayed in the TitleBar
closeButton
Controls whether a close button will be displayed in the TitleBar
listener
A listener object to be passed to the content Form
contentInitProps
A property bag to be passed to the content Form on instanciation
options
A property bag to set options on the window on instanciation, an objects with the attributes:
width width of the window, if not specified the window will default to the sizeof its content height height of the window, if not specified the window will default to the sizeof its content sizable controls whether the user can resize the window, if not specified the window is not resizable statusbar controls whether the statusbar is displayed, if not specified the statusbar is not shown id The unique id of this window instance. Optional, the system will automatically generate a name.
owner
returnFunction
Returns:
A reference to the newly created window

deactivateForm

public function deactivateForm(f: Object): Void

getActualFocus

public function getActualFocus(o: Object): Object
Locates the owning component of a focusable object

For MM compatibility A component may set focus to an internal object. We want to find the component that really "owns" focus

Parameters:
o
A focusable object
Returns:
The component thats owns the object

getFocus

public function getFocus(): Object
Get the component that currently has the focus.

For MM compatibility. Recommended instead of using Selection object because it will tell you which component has focus. Selection might return a subobject in that component

Returns:
the component that has focus

getInstance

public static function getInstance(): SystemManager
Returns a ref to the singleton SystemManager*

getSelectionFocus

public function getSelectionFocus(): Object
Returns a reference to the actual object that currently is focused

For MM compatibility Returns a reference to the actual object that currently is focused (this is the clip or textField not the component)

hideFocus

public function hideFocus(): Void
turns of drawing focus and removes the focus ring on the current item*

hidePopUp

public function hidePopUp(popup: Object): Void
Hide the active popup

Parameters:
popup
The popup to hide

init

public static function init(): Void

isOurFocus

public function isOurFocus(o: Object): Boolean
Is the specified object part of our focus group*

onActivateWindow

public function onActivateWindow(tgt): Void
Called by a window when it becomes active or by the system when a MouseDown in a new Window

Parameters:
tgt
The Window being activated

onDeactivateWindow

public function onDeactivateWindow(tgt): Void
Called by a window when it becomes inactive or hidden

Parameters:
tgt
The Window being deactivated

onMouseDown

public function onMouseDown(): Void

onMouseMove

public function onMouseMove(): Void

onMouseUp

public function onMouseUp(): Void

onSetFocus

public function onSetFocus(oldFocus: Object,
 newFocus: Object): Void

onTabKeyPress

public static function onTabKeyPress()
callback from the tabcapture control*

removeForm

public function removeForm(f: Object): Void

showFocus

public function showFocus(): Void
turns on drawing focus and redraws the focus ring on the current item*

showPopUp

public function showPopUp(popup: Object,
 x: Number,
 y: Number): Void
Makes a popup visible and places it at the specified location

Parameters:
popup
A reference to the popup to show
x
The x location to display at relative to the popup owner
y
The y location to display at relative to the popup owner

tabHandler

public function tabHandler()
Handler for the tab key press*


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc