| Package | org.openzet.containers |
| Class | public class MDIWindow |
| Inheritance | MDIWindow mx.containers.Panel |
| Implements | IMDIWindow |
Hide MXML Syntax
<zet:MDIWindow> tag inherits all properties of its superclass on top of following properties.
<zet:MDIWindow
Properties
info=""
showMaxButton="false|true"
showMinButton="false|true"
showCloseButton="false|true"
windowState="normal|maximized|minimized"
resizeType
moveType
allowRotate
Styles
infoStyleName="mdiWindowInfoStyle"
maxButtonDisabledSkin="'MaxButtonDisabled' symbol in Assets.swf"
maxButtonDownSkin="'MaxButtonDown' symbol in Assets.swf"
maxButtonOverSkin="'MaxButtonOver' symbol in Assets.swf"
maxButtonUpSkin="'MaxButtonUp' symbol in Assets.swf"
minButtonDisabledSkin="'MinButtonDisabled' symbol in Assets.swf"
minButtonDownSkin="'MinButtonDown' symbol in Assets.swf"
minButtonOverSkin="'MinButtonOver' symbol in Assets.swf"
minButtonUpSkin="'MinButtonUp' symbol in Assets.swf"
restoreButtonDisabledSkin="'RestoreButtonDisabled' symbol in Assets.swf"
restoreButtonDownSkin="'RestoreButtonDown' symbol in Assets.swf"
restoreButtonOverSkin="'RestoreButtonOver' symbol in Assets.swf"
restoreButtonUpSkin="'RestoreButtonUp' symbol in Assets.swf"
closeButtonDisabledSkin="'CloseButtonDisabled' symbol in Assets.swf"
closeButtonDownSkin="'CloseButtonDown' symbol in Assets.swf"
closeButtonOverSkin="'CloseButtonOver' symbol in Assets.swf"
closeButtonUpSkin="'CloseButtonUp' symbol in Assets.swf"
Events
close="No default"
minimize="No default"
maximize="No default"
restore="No default"
>
...
child tags
...
</zet:MDIWindow>
See also
| Property | Defined by | ||
|---|---|---|---|
| dragAlpha : Number = 0.4 [static]
Alpha value for a dragged window.
| MDIWindow | ||
| dragAlphaEnabled : Boolean = false [static]
Specifies whether to apply transparency to a windw when dragging it.
| MDIWindow | ||
| draggable : Boolean
Flag to specify whether dragging is enabled.
| MDIWindow | ||
| info : String
Text property to show at the bottom of a window.
| MDIWindow | ||
| mdi : IMDI
Reference to the parent container of IMDI type.
| MDIWindow | ||
| moveType : String = "none" [static]
Specifies move type.
| MDIWindow | ||
| resizable : Boolean
Flag to specify whether resizing is enabled.
| MDIWindow | ||
| resizeType : String = "none" [static]
Specifie resize type.
| MDIWindow | ||
| showCloseButton : Boolean
Flag to specify whether to show close button.
| MDIWindow | ||
| showMaxButton : Boolean
Flag to specify whether to show maximize button.
| MDIWindow | ||
| showMinButton : Boolean
Flag to specify whether to show minimize button.
| MDIWindow | ||
| useInfo : Boolean
Flag to specify whehter to use info property.
| MDIWindow | ||
| windowState : String
Specifies a window's maximized, minimized, normal state.
| MDIWindow | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| MDIWindow | ||
|
close():void
Closes a window
| MDIWindow | ||
|
destroy():void
You should call this method after removing objects from an MDI instance.
| MDIWindow | ||
|
focusIn():void
Invoked by an MDI instance when a window gets its focus.
| MDIWindow | ||
|
focusOut():void
Invoked by an MDI instance when a window loses its focus.
| MDIWindow | ||
|
maximize():void
Maximizes a windwow
| MDIWindow | ||
|
minimize():void
Minimizes a window
| MDIWindow | ||
|
restore():void
Restores a window
| MDIWindow | ||
|
resume(compulsion:Boolean = false):void
Resumes user interaction within the content area suspended by a call on suspend() method.
| MDIWindow | ||
|
setPosition(x:Number, y:Number):void
Moves the component to a specified position within its parent.
| MDIWindow | ||
|
setSize(w:Number, h:Number):void
Sizes the object.
| MDIWindow | ||
|
setWindowState(value:String, noEvent:Boolean = false):void
Invoked whenever
windowState property changes. | MDIWindow | ||
|
suspend():void
Prevents user interaction within a window's content area.
| MDIWindow | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when close() method is invoked or close button is clicked on. | MDIWindow | |||
| Dispatched when the user presses the Enter key. | MDIWindow | |||
| Dispatched when maximize() method is invoekd or maximize button is clicked on. | MDIWindow | |||
| Dispatched when minimize() method is invoked or minimize button is clicked on. | MDIWindow | |||
| Dispatched when restore() method is invoked or restore button is clicked on. | MDIWindow | |||
| Dispatched while dragging is in progress. | MDIWindow | |||
| Disptached when dragging is complete. | MDIWindow | |||
| Dispatched when dragging starts. | MDIWindow | |||
| Dispatched when resizing is in progress. | MDIWindow | |||
| Dispatched when resizing completes. | MDIWindow | |||
| Dispatched when resizing starts. | MDIWindow | |||
| dragAlpha | property |
public static var dragAlpha:Number = 0.4
Alpha value for a dragged window.
This value could vary from 0.0 to 1.0
Applies only when dragAlphaEnabled is true.
The default value is 0.4.
| dragAlphaEnabled | property |
public static var dragAlphaEnabled:Boolean = false
Specifies whether to apply transparency to a windw when dragging it.
If true, the widow will have its transparency value based on dragAlpha property when dragged.
This property only apples when MDIWindow.moveType is MDIWindowMoveType.REALTIME.
The default value is false.
| draggable | property |
draggable:Boolean [read-write]
Flag to specify whether dragging is enabled.
Even if set to true, if windowState is maximized,
this getter method will return false.
public function get draggable():Boolean
public function set draggable(value:Boolean):void
| info | property |
info:String [read-write]Text property to show at the bottom of a window.
The default value is "".
This property can be used as the source for data binding.
Implementation public function get info():String
public function set info(value:String):void
| mdi | property |
mdi:IMDI [read-write]Reference to the parent container of IMDI type.
Implementation public function get mdi():IMDI
public function set mdi(value:IMDI):void
| moveType | property |
public static var moveType:String = "none"
Specifies move type.
Possible values include MDIWindowMoveType.NONE, MDIWindowMoveType.REALTIME,
MDIWindowMoveType.ANIMATED etc.
The default value is WindowMoveType.NONE.
See also
| resizable | property |
resizable:Boolean [read-write]
Flag to specify whether resizing is enabled.
Even if set to true, if windowState is not normal,
this getter method will return false.
public function get resizable():Boolean
public function set resizable(value:Boolean):void
| resizeType | property |
public static var resizeType:String = "none"
Specifie resize type.
Possible values include MDIWindowResizeType.NONE, MDIWindowResizeType.REALTIME,
MDIWindowResizeType.ANIMATED etc.
The default value is MDIWindowResizeType.NONE.
See also
| showCloseButton | property |
showCloseButton:Boolean [read-write]Flag to specify whether to show close button.
The default value is true.
public function get showCloseButton():Boolean
public function set showCloseButton(value:Boolean):void
| showMaxButton | property |
showMaxButton:Boolean [read-write]Flag to specify whether to show maximize button.
The default value is true.
public function get showMaxButton():Boolean
public function set showMaxButton(value:Boolean):void
| showMinButton | property |
showMinButton:Boolean [read-write]Flag to specify whether to show minimize button.
The default value is true.
public function get showMinButton():Boolean
public function set showMinButton(value:Boolean):void
| useInfo | property |
useInfo:Boolean [read-write]Flag to specify whehter to use info property.
Implementation public function get useInfo():Boolean
public function set useInfo(value:Boolean):void
| windowState | property |
windowState:String [read-write]
Specifies a window's maximized, minimized, normal state.
You can change a window's state by using constants defined in MDIWindowState class.
Valid values are MDIWindowState.MINIMIZED, MDIWindowState.MAXIMIZED and
MDIWindowState.NORMAL.
The default value is "normal".
public function get windowState():String
public function set windowState(value:String):void
See also
| MDIWindow | () | constructor |
public function MDIWindow()Constructor.
| close | () | method |
public function close():voidCloses a window
| destroy | () | method |
public function destroy():voidYou should call this method after removing objects from an MDI instance. Override this method to prevent possible memory leak when removing windows by removing event listeners registered.
| focusIn | () | method |
public function focusIn():voidInvoked by an MDI instance when a window gets its focus.
| focusOut | () | method |
public function focusOut():voidInvoked by an MDI instance when a window loses its focus.
| maximize | () | method |
public function maximize():voidMaximizes a windwow
| minimize | () | method |
public function minimize():voidMinimizes a window
| restore | () | method |
public function restore():voidRestores a window
| resume | () | method |
public function resume(compulsion:Boolean = false):voidResumes user interaction within the content area suspended by a call on suspend() method. You must call resume() method after calling suspend() method to resume the user interaction.
Parameterscompulsion:Boolean (default = false) — If set to true, resumes the user interaction regardless of the method call counts of
suspend() method.
|
| setPosition | () | method |
public function setPosition(x:Number, y:Number):voidMoves the component to a specified position within its parent.
Parametersx:Number — x Left position of the component within its parent.
|
|
y:Number — Top position of the component within its parent.
|
| setSize | () | method |
public function setSize(w:Number, h:Number):voidSizes the object.
Parametersw:Number — Width of the object.
|
|
h:Number — Height of the object.
|
| setWindowState | () | method |
public function setWindowState(value:String, noEvent:Boolean = false):void
Invoked whenever windowState property changes.
Normally you shouldn't call this method directly but simply change windowState property
value to change a window's state.
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 and if windowState changes,
dispatches a correspding event.
|
| suspend | () | method |
public function suspend():voidPrevents user interaction within a window's content area. This method is usually called in cases when data is loaded from the server, when user interaction should be blocked for some reason, or when a suspended screen should be provided. After calling this method, you must always call resume() method to resume user interaction. The number of method calls on suspend() and resume() methods are counted by an internal counter. For example, if you call suspend() method twice for a data load from server, you should also call resume() method twice to resume the user interaction.
| close | event |
org.openzet.events.MDIWindowEvent
Dispatched when close() method is invoked or close button is clicked on.
| enter | event |
| maximize | event |
org.openzet.events.MDIWindowEvent
Dispatched when maximize() method is invoekd or maximize button is clicked on.
| minimize | event |
org.openzet.events.MDIWindowEvent
Dispatched when minimize() method is invoked or minimize button is clicked on.
| restore | event |
org.openzet.events.MDIWindowEvent
Dispatched when restore() method is invoked or restore button is clicked on.
| windowDrag | event |
| windowDragEnd | event |
| windowDragStart | event |
| windowResize | event |
| windowResizeEnd | event |
| windowResizeStart | event |
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:containers="org.openzet.containers.*"
xmlns:controls="org.openzet.controls.*"
width="800" height="600"
initialize="initializeHandler();">
<mx:Style source="../openzet-defaults.css" />
<mx:Style>
global
{
themeColor: #D4D0C8;
}
Application
{