Class responsible for applying effects and default behaviors to MDIWindow instances such as
tiling, cascading, minimizing, maximizing, etc.
container:UIComponent
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 snapDistance:Number = 0
public var tileMinimize:Boolean = true
public var tileMinimizeWidth:int = 200
public var tilePadding:Number = 8
windowList:Array
Implementation public function get windowList():Array
public function set windowList(value:Array):void
public function MDIManager(container:UIComponent, effects:IMDIEffectsDescriptor = null)
Constructor()
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 an existing 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
<p>This is primarly used as the default space on the screen to position the window.</p>
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
<p>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.
</p>
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
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.CASCADE
Dispatched when the windows are cascaded.
Event Object Type: mx.events.EffectEvent
EffectEvent.type property = mx.events.EffectEvent.EFFECT_END
Dispatched when an effect ends.
Event Object Type: mx.events.EffectEvent
EffectEvent.type property = mx.events.EffectEvent.EFFECT_START
Dispatched when an effect begins.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.TILE
Dispatched when the windows are tiled.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_ADD
Dispatched when a window is added to the manager.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_CLOSE
Dispatched when the minimize button is clicked.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_DRAG
Dispatched while the window is being dragged.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_DRAG_END
Dispatched when the window stops being dragged.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_DRAG_START
Dispatched when the window begins being dragged.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_FOCUS_END
Dispatched when the window loses focus and no longer has topmost z-index of MDIManager's children.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_FOCUS_START
Dispatched when the window gains focus and is given topmost z-index of MDIManager's children.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_MAXIMIZE
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
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_MINIMIZE
Dispatched when the minimize button is clicked.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_RESIZE
Dispatched while the mouse is down on a resize handle.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_RESIZE_END
Dispatched when the mouse is released from a resize handle.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_RESIZE_START
Dispatched when a resize handle is pressed.
Event Object Type: flexlib.mdi.events.MDIManagerEvent
MDIManagerEvent.type property = flexlib.mdi.events.MDIManagerEvent.WINDOW_RESTORE
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
Mercredi Juillet 6 2011, 09:45 PM +02:00