Class responsible for applying effects and default behaviors to MDIWindow instances such as
tiling, cascading, minimizing, maximizing, etc.
container:UIComponent
[read-write]Implementation
public function get container():UIComponent
public function set container(value:UIComponent):void
public var enforceBoundaries:Boolean = true
global:MDIManager
[read-only]
Implementation
public static function get global():MDIManager
public var minTilePadding:Number = 5
public var showMinimizedTiles:Boolean = false
public var tileMinimize:Boolean = true
public var tileMinimizeWidth:int = 200
public var tilePadding:Number = 8
public var windowList:Array
This property can be used as the source for data binding.
public function MDIManager(container:UIComponent, effects:IMDIEffectsDescriptor = null)
Contstructor()
Parameters
public function absPos(window:MDIWindow, x:int, y:int):void
Positions a window in an absolute position
Parameters
| window:MDIWindow — Window to position
|
|
| x:int — The x position of the window
|
|
| y:int — The y position of the window
|
public function add(window:MDIWindow):void
Parameters
public function addCenter(window:MDIWindow):void
Parameters
public function addContextMenu(window:MDIWindow, contextMenu:ContextMenu = null):void
Parameters
| window:MDIWindow |
|
| contextMenu:ContextMenu (default = null )
|
public function bringToFront(window:MDIWindow):void
Brings a window to the front of the screen.
Parameters
public function cascade():void
Cascades all managed windows from top left to bottom right
public function center(window:MDIWindow):void
Positions a window in the center of the available screen.
Parameters
public function executeDefaultBehavior(event:Event):void
Parameters
public function getOpenWindowList():Array
Gets a list of open windows for scenarios when only open windows need to be managed
Returns
public function manage(window:MDIWindow):void
Pushes a window onto the managed window stack
Parameters
| window:MDIWindow — Window:MDIWindow to push onto managed windows stack
|
public function position(window:MDIWindow):void
Positions a window on the screen
This is primarly used as the default space on the screen to position the window.
Parameters
public function remove(window:MDIWindow):void
Removes a window instance from the managed window stack
Parameters
public function removeAll():void
Removes all windows from managed window stack;
public function resize(window:MDIWindow):void
Parameters
public function showAllWindows():void
public function tile(fillAvailableSpace:Boolean = false, gap:Number = 0):void
Tiles the window across the screen
By default, windows will be tiled to all the same size and use only the space they can accomodate.
If you set fillAvailableSpace = true, tile will use all the space available to tile the windows with
the windows being arranged by varying heights and widths.
Parameters
| fillAvailableSpace:Boolean (default = false ) — Variable to determine whether to use the fill the entire available screen
|
|
| gap:Number (default = 0 )
|
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when the windows are cascaded.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when the windows are tiled.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when a window is added to the manager.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when the minimize button is clicked.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched while the window is being dragged.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when the window stops being dragged.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when the window begins being dragged.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when the window loses focus and no longer has topmost z-index of MDIManager's children.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when the window gains focus and is given topmost z-index of MDIManager's children.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when the maximize button is clicked or when the window is in a
normal state (not minimized or maximized) and the titleBar is double clicked.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when the minimize button is clicked.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched while the mouse is down on a resize handle.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when the mouse is released from a resize handle.
Event object type: flexlib.mdi.events.MDIManagerEvent
Dispatched when a resize handle is pressed.
Event object type: flexlib.mdi.events.MDIManagerEvent
If the window is minimized, this event is dispatched when the titleBar is clicked.
If the window is maxmimized, this event is dispatched upon clicking the restore button
or double clicking the titleBar.
public static const CONTEXT_MENU_LABEL_CASCADE:String = "Cascade"
public static const CONTEXT_MENU_LABEL_SHOW_ALL:String = "Show All Windows"
public static const CONTEXT_MENU_LABEL_TILE:String = "Tile"
public static const CONTEXT_MENU_LABEL_TILE_FILL:String = "Tile + Fill"