Packageorg.openzet.containers
Interfacepublic interface IMDIWindow extends mx.core.IUIComponent
ImplementorsMDIWindow

IMDIWindow interface defines methods and properties need for an MDI instance. To register a control as a child object of an MDI, the control must always implement this interface. User defined windows could be instances of UIComponent or its subclasses. Yet mostly, you'd prefer to use Panel instance as a window.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property detail
draggableproperty
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.

Implementation
    public function get draggable():Boolean
    public function set draggable(value:Boolean):void
mdiproperty 
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
resizableproperty 
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.

Implementation
    public function get resizable():Boolean
    public function set resizable(value:Boolean):void
windowStateproperty 
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.

Implementation
    public function get windowState():String
    public function set windowState(value:String):void

See also

Method detail
close()method
public function close():void

Closes a window.

destroy()method 
public function destroy():void

Invoked 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():void

Invoked when a window gets its focus.

focusOut()method 
public function focusOut():void

Invoked when a window loses its focus.

maximize()method 
public function maximize():void

Maximizes a window.

minimize()method 
public function minimize():void

Minimizes a window.

restore()method 
public function restore():void

Restores a window to its previous size.

setPosition()method 
public function setPosition(x:Number, y:Number):void

Sets a component's position.

Parameters
x:Number
 
y:Number
setSize()method 
public function setSize(width:Number, height:Number):void

Sets a component's size.

Parameters
width: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.

Parameters
value:StringwindowState 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.