flexlib :: library Documentation | All Packages | All Classes | Index | Frames No Frames |
MDIWindowControlsContainer

Package | flexlib.mdi.containers
Class | public class MDIWindowControlsContainer
Inheritance | MDIWindowControlsContainer mx.core.LayoutContainer

Class that holds window control buttons and handles general titleBar layout. Provides minimize, maximize/restore and close buttons by default. Subclass this class to create custom layouts that rearrange, add to, or reduce the default controls. Set layout property to switch between horizontal, vertical and absolute layouts.

Public Properties

| Property | Defined By
--- | --- | ---
|  | closeBtn : Button | MDIWindowControlsContainer
|  | maximizeRestoreBtn : Button | MDIWindowControlsContainer
|  | minimizeBtn : Button | MDIWindowControlsContainer
|  | window : MDIWindow | MDIWindowControlsContainer

Public Methods

| Method | Defined By
--- | --- | ---
|  | MDIWindowControlsContainer() Base class to hold window controls. | MDIWindowControlsContainer

Protected Methods

| Method | Defined By
--- | --- | ---
|  | createChildren():void [override] | MDIWindowControlsContainer
|  | updateDisplayList(w:Number, h:Number):void [override] Traditional override of built-in lifecycle function used to control visual layout of the class. | MDIWindowControlsContainer

Property Detail

closeBtn | property

`public var closeBtn:Button`

maximizeRestoreBtn | property |

`public var maximizeRestoreBtn:Button`

minimizeBtn | property |

`public var minimizeBtn:Button`

window | property |

`public var window:MDIWindow`

Constructor Detail

MDIWindowControlsContainer | () | Constructor

`public function MDIWindowControlsContainer()`

Base class to hold window controls. Since it inherits from LayoutContainer, literally any layout can be accomplished by manipulating or subclassing this class.

Method Detail

createChildren | () | method

`override protected function createChildren():void`

updateDisplayList | () | method |

`override protected function updateDisplayList(w:Number, h:Number):void`

Traditional override of built-in lifecycle function used to control visual layout of the class. Minor difference is that size is set here as well because automatic measurement and sizing is not handled by framework since we go into rawChildren (of MDIWindow).

Parameters

| `w:Number`
| `h:Number`

Dimanche Juin 19 2011, 03:12 PM +02:00