| Package | org.openzet.containers |
| Interface | public interface IMDIWindow extends mx.core.IUIComponent |
| Implementors | MDIWindow |
| Property | Defined by | ||
|---|---|---|---|
| draggable : Boolean
Specifies whether a window is draggable.
| IMDIWindow | ||
| mdi : IMDI
Specifies a reference to parent container's IMDI object.
| IMDIWindow | ||
| resizable : Boolean
Specifies whether a window is resizable.
| IMDIWindow | ||
| windowState : String
Specifies a window's minimized, maximized, normal state.
| IMDIWindow | ||
| Method | Defined by | ||
|---|---|---|---|
|
close():void
Closes a window.
| IMDIWindow | ||
|
destroy():void
Invoked when a object is removed from an MDI instance.
| IMDIWindow | ||
|
focusIn():void
Invoked when a window gets its focus.
| IMDIWindow | ||
|
focusOut():void
Invoked when a window loses its focus.
| IMDIWindow | ||
|
maximize():void
Maximizes a window.
| IMDIWindow | ||
|
minimize():void
Minimizes a window.
| IMDIWindow | ||
|
restore():void
Restores a window to its previous size.
| IMDIWindow | ||
|
setPosition(x:Number, y:Number):void
Sets a component's position.
| IMDIWindow | ||
|
setSize(width:Number, height:Number):void
Sets a component's size.
| IMDIWindow | ||
|
setWindowState(value:String, noEvent:Boolean = false):void
Invoked when
windowState property value changes. | IMDIWindow | ||
| draggable | property |
draggable:Boolean [read-write]
Specifies whether a window is draggable.
Even if set to true, if windowState property's value is maximized,
draggable getter method will return false.
public function get draggable():Boolean
public function set draggable(value:Boolean):void
| mdi | property |
mdi:IMDI [read-write]Specifies a reference to parent container's IMDI object.
Implementation public function get mdi():IMDI
public function set mdi(value:IMDI):void
| resizable | property |
resizable:Boolean [read-write]
Specifies whether a window is resizable.
Even if set to true, if windowState property's value is notnormal
resizable getter method will return false.
public function get resizable():Boolean
public function set resizable(value:Boolean):void
| windowState | property |
windowState:String [read-write]
Specifies a window's minimized, maximized, normal state.
You can change a window's state by using constants defined by MDIWindowState class.
Valid values are MDIWindowState.MINIMIZED, MDIWindowState.MAXIMIZED and
MDIWindowState.NORMAL.
public function get windowState():String
public function set windowState(value:String):void
See also
| close | () | method |
public function close():voidCloses a window.
| destroy | () | method |
public function destroy():voidInvoked when a object is removed from an MDI instance. To prevent possible memory leaking, we override this method and removes all event listeneres registered when children are removed from their parent container.
| focusIn | () | method |
public function focusIn():voidInvoked when a window gets its focus.
| focusOut | () | method |
public function focusOut():voidInvoked when a window loses its focus.
| maximize | () | method |
public function maximize():voidMaximizes a window.
| minimize | () | method |
public function minimize():voidMinimizes a window.
| restore | () | method |
public function restore():voidRestores a window to its previous size.
| setPosition | () | method |
public function setPosition(x:Number, y:Number):voidSets a component's position.
Parametersx:Number |
|
y:Number |
| setSize | () | method |
public function setSize(width:Number, height:Number):voidSets a component's size.
Parameterswidth:Number |
|
height:Number |
| setWindowState | () | method |
public function setWindowState(value:String, noEvent:Boolean = false):void
Invoked when windowState property value changes.
Normally you shouldn't call this method directly, yet have this method called by changing
windowState property value.
value:String — windowState property's new value. Possible values are
MDIWindowState.NORMAL, MDIWindowState.MAXIMIZED and
MDIWindowState.MINIMIZED.
|
|
noEvent:Boolean (default = false) — If true, no event is dispatched.
If false, when windowState changes, dispatches a relevant event.
|