Packageorg.ow2.kerneos.core.view.window
Classpublic class ModuleWindow
InheritanceModuleWindow Inheritance KerneosWindow Inheritance flexlib.mdi.containers.MDIWindow
Implements mx.binding.IBindingClient
Subclasses FolderWindow, IFrameModuleWindow, SwfModuleWindow



Public Properties
 PropertyDefined By
 InheritedLEFT_MARGIN : int = 150
[static]
KerneosWindow
  minimizedModuleWindow : MinimizedModuleWindow
The minimized module item
ModuleWindow
 InheritedMINIMUM_ACCEPTED_WINDOW_HEIGHT : int = 100
[static]
KerneosWindow
 InheritedMINIMUM_ACCEPTED_WINDOW_WIDTH : int = 100
[static]
KerneosWindow
  module : ModuleWithWindowVO = null
The module
ModuleWindow
 InheritedTOP_MARGIN : int = 15
[static]
KerneosWindow
 InheritedWINDOW_DEFAULT_PERCENT_HEIGHT : int = 90
[static]
KerneosWindow
 InheritedWINDOW_DEFAULT_PERCENT_WIDTH : int = 80
[static] New windows size and placement parameters
KerneosWindow
 InheritedWINDOW_DEFAULT_X_OFFSET : int = 30
[static]
KerneosWindow
 InheritedWINDOW_DEFAULT_Y_OFFSET : int = 15
[static]
KerneosWindow
 InheritedWINDOW_MOVE_COLLISION_MARGIN : int = 50
[static]
KerneosWindow
Public Methods
 MethodDefined By
  
Constructor.
ModuleWindow
 Inherited
bringToFront(e:Event = null):void
Bring the window to the front.
KerneosWindow
  
minimize(event:MouseEvent = null):void
[override] Override the default minimize behaviour
ModuleWindow
 Inherited
saveWindowSetup(event:Event = null):void
Save the window size and placement to the user shared object.
KerneosWindow
  
unMinimize(event:MouseEvent = null):void
[override] Override the default unminimize behaviour
ModuleWindow
Protected Methods
 MethodDefined By
 Inherited
checkCollisions(margin:Number = 0):void
Calculate which IFrameWindows this one overlaps and notify them.
KerneosWindow
 Inherited
checkCollisionWithWindow(window:IFrameModuleWindow, margin:Number = 0):Boolean
Check if the current window overlaps the given window.
KerneosWindow
 Inherited
onClose(e:Event = null):void
When the window is closed.
KerneosWindow
 Inherited
onDrag(e:Event = null):void
When the window is being dragged.
KerneosWindow
 Inherited
onDragEnd(e:Event = null):void
When the window stops being dragged.
KerneosWindow
 Inherited
onDragStart(e:Event = null):void
When the window starts being dragged.
KerneosWindow
 Inherited
onFocusEnd(e:Event = null):void
When the window loses the focus.
KerneosWindow
 Inherited
onFocusStart(e:Event = null):void
When the window gets the focus.
KerneosWindow
 Inherited
onMaximize(e:Event = null):void
When the window is maximized.
KerneosWindow
 Inherited
onMinimize(e:Event = null):void
When the window is minimized.
KerneosWindow
 Inherited
onResize(e:Event = null):void
When the window is resized.
KerneosWindow
 Inherited
onResizeEnd(e:Event = null):void
When the window stops being resized.
KerneosWindow
 Inherited
onResizeStart(e:Event = null):void
When the window starts being resized.
KerneosWindow
 Inherited
onRestore(e:Event = null):void
When the window is restored.
KerneosWindow
 Inherited
Apply the default algorithm for positioning and sizing the window.
KerneosWindow
  
Try to apply the user saved setting for positioning and sizing this window.
ModuleWindow
 Inherited
Try to apply the user saved setting for positioning and sizing this window.
KerneosWindow
  
setupWindowMaximization(event:Event = null):void
[override] Setup wether the window must be maximized.
ModuleWindow
  
setupWindowSizeAndPosition(event:Event = null):void
[override] Setup the window size and position.
ModuleWindow
Property Detail
minimizedModuleWindowproperty
public var minimizedModuleWindow:MinimizedModuleWindow

The minimized module item

This property can be used as the source for data binding.

moduleproperty 
public var module:ModuleWithWindowVO = null

The module

This property can be used as the source for data binding.

Constructor Detail
ModuleWindow()Constructor
public function ModuleWindow()

Constructor.

Method Detail
minimize()method
override public function minimize(event:MouseEvent = null):void

Override the default minimize behaviour

Parameters

event:MouseEvent (default = null)

setupKerneosConfigWindowSizeAndPosition()method 
protected function setupKerneosConfigWindowSizeAndPosition():Boolean

Try to apply the user saved setting for positioning and sizing this window.

Returns
Boolean — false if no setting saved or not applicable anymore.
setupWindowMaximization()method 
override protected function setupWindowMaximization(event:Event = null):void

Setup wether the window must be maximized.

Parameters

event:Event (default = null)

setupWindowSizeAndPosition()method 
override protected function setupWindowSizeAndPosition(event:Event = null):void

Setup the window size and position. Tries to read the user preferences from the shared object. If valid, applies it. Else if settings defined in Kerneos config and valid, applies it. Else calculates the window size and position.

Parameters

event:Event (default = null)

unMinimize()method 
override public function unMinimize(event:MouseEvent = null):void

Override the default unminimize behaviour

Parameters

event:MouseEvent (default = null)