Packageorg.ow2.kerneos.core.view.window
Classpublic class KerneosWindow
InheritanceKerneosWindow Inheritance flexlib.mdi.containers.MDIWindow
Subclasses ModuleWindow, NotificationsLogWindow



Public Properties
 PropertyDefined By
  LEFT_MARGIN : int = 150
[static]
KerneosWindow
  MINIMUM_ACCEPTED_WINDOW_HEIGHT : int = 100
[static]
KerneosWindow
  MINIMUM_ACCEPTED_WINDOW_WIDTH : int = 100
[static]
KerneosWindow
  TOP_MARGIN : int = 15
[static]
KerneosWindow
  WINDOW_DEFAULT_PERCENT_HEIGHT : int = 90
[static]
KerneosWindow
  WINDOW_DEFAULT_PERCENT_WIDTH : int = 80
[static] New windows size and placement parameters
KerneosWindow
  WINDOW_DEFAULT_X_OFFSET : int = 30
[static]
KerneosWindow
  WINDOW_DEFAULT_Y_OFFSET : int = 15
[static]
KerneosWindow
  WINDOW_MOVE_COLLISION_MARGIN : int = 50
[static]
KerneosWindow
Public Methods
 MethodDefined By
  
Constructor.
KerneosWindow
  
bringToFront(e:Event = null):void
Bring the window to the front.
KerneosWindow
  
saveWindowSetup(event:Event = null):void
Save the window size and placement to the user shared object.
KerneosWindow
Protected Methods
 MethodDefined By
  
checkCollisions(margin:Number = 0):void
Calculate which IFrameWindows this one overlaps and notify them.
KerneosWindow
  
checkCollisionWithWindow(window:IFrameModuleWindow, margin:Number = 0):Boolean
Check if the current window overlaps the given window.
KerneosWindow
  
onClose(e:Event = null):void
When the window is closed.
KerneosWindow
  
onDrag(e:Event = null):void
When the window is being dragged.
KerneosWindow
  
onDragEnd(e:Event = null):void
When the window stops being dragged.
KerneosWindow
  
onDragStart(e:Event = null):void
When the window starts being dragged.
KerneosWindow
  
onFocusEnd(e:Event = null):void
When the window loses the focus.
KerneosWindow
  
onFocusStart(e:Event = null):void
When the window gets the focus.
KerneosWindow
  
onMaximize(e:Event = null):void
When the window is maximized.
KerneosWindow
  
onMinimize(e:Event = null):void
When the window is minimized.
KerneosWindow
  
onResize(e:Event = null):void
When the window is resized.
KerneosWindow
  
onResizeEnd(e:Event = null):void
When the window stops being resized.
KerneosWindow
  
onResizeStart(e:Event = null):void
When the window starts being resized.
KerneosWindow
  
onRestore(e:Event = null):void
When the window is restored.
KerneosWindow
  
Apply the default algorithm for positioning and sizing the window.
KerneosWindow
  
Try to apply the user saved setting for positioning and sizing this window.
KerneosWindow
  
setupWindowMaximization(event:Event = null):void
Setup wether the window must be maximized.
KerneosWindow
  
setupWindowSizeAndPosition(event:Event = null):void
Setup the window size and position.
KerneosWindow
Property Detail
LEFT_MARGINproperty
public static var LEFT_MARGIN:int = 150

MINIMUM_ACCEPTED_WINDOW_HEIGHTproperty 
public static var MINIMUM_ACCEPTED_WINDOW_HEIGHT:int = 100

MINIMUM_ACCEPTED_WINDOW_WIDTHproperty 
public static var MINIMUM_ACCEPTED_WINDOW_WIDTH:int = 100

TOP_MARGINproperty 
public static var TOP_MARGIN:int = 15

WINDOW_DEFAULT_PERCENT_HEIGHTproperty 
public static var WINDOW_DEFAULT_PERCENT_HEIGHT:int = 90

WINDOW_DEFAULT_PERCENT_WIDTHproperty 
public static var WINDOW_DEFAULT_PERCENT_WIDTH:int = 80

New windows size and placement parameters

WINDOW_DEFAULT_X_OFFSETproperty 
public static var WINDOW_DEFAULT_X_OFFSET:int = 30

WINDOW_DEFAULT_Y_OFFSETproperty 
public static var WINDOW_DEFAULT_Y_OFFSET:int = 15

WINDOW_MOVE_COLLISION_MARGINproperty 
public static var WINDOW_MOVE_COLLISION_MARGIN:int = 50

Constructor Detail
KerneosWindow()Constructor
public function KerneosWindow()

Constructor.

Method Detail
bringToFront()method
public function bringToFront(e:Event = null):void

Bring the window to the front.

Parameters

e:Event (default = null)

checkCollisions()method 
protected function checkCollisions(margin:Number = 0):void

Calculate which IFrameWindows this one overlaps and notify them.

Parameters

margin:Number (default = 0) — the margin to apply when calculating the collisions

checkCollisionWithWindow()method 
protected function checkCollisionWithWindow(window:IFrameModuleWindow, margin:Number = 0):Boolean

Check if the current window overlaps the given window.

Parameters

window:IFrameModuleWindow — the margin to apply when calculating the collisions
 
margin:Number (default = 0)

Returns
Boolean
onClose()method 
protected function onClose(e:Event = null):void

When the window is closed.

Parameters

e:Event (default = null)

onDrag()method 
protected function onDrag(e:Event = null):void

When the window is being dragged.

Parameters

e:Event (default = null)

onDragEnd()method 
protected function onDragEnd(e:Event = null):void

When the window stops being dragged.

Parameters

e:Event (default = null)

onDragStart()method 
protected function onDragStart(e:Event = null):void

When the window starts being dragged.

Parameters

e:Event (default = null)

onFocusEnd()method 
protected function onFocusEnd(e:Event = null):void

When the window loses the focus.

Parameters

e:Event (default = null)

onFocusStart()method 
protected function onFocusStart(e:Event = null):void

When the window gets the focus.

Parameters

e:Event (default = null)

onMaximize()method 
protected function onMaximize(e:Event = null):void

When the window is maximized.

Parameters

e:Event (default = null)

onMinimize()method 
protected function onMinimize(e:Event = null):void

When the window is minimized.

Parameters

e:Event (default = null)

onResize()method 
protected function onResize(e:Event = null):void

When the window is resized.

Parameters

e:Event (default = null)

onResizeEnd()method 
protected function onResizeEnd(e:Event = null):void

When the window stops being resized.

Parameters

e:Event (default = null)

onResizeStart()method 
protected function onResizeStart(e:Event = null):void

When the window starts being resized.

Parameters

e:Event (default = null)

onRestore()method 
protected function onRestore(e:Event = null):void

When the window is restored.

Parameters

e:Event (default = null)

saveWindowSetup()method 
public function saveWindowSetup(event:Event = null):void

Save the window size and placement to the user shared object.

Parameters

event:Event (default = null)

setupDefaultWindowSizeAndPosition()method 
protected function setupDefaultWindowSizeAndPosition():void

Apply the default algorithm for positioning and sizing the window.

setupUserWindowSizeAndPosition()method 
protected function setupUserWindowSizeAndPosition():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 
protected function setupWindowMaximization(event:Event = null):void

Setup wether the window must be maximized.

Parameters

event:Event (default = null)

setupWindowSizeAndPosition()method 
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 calculates the window size and position.

Parameters

event:Event (default = null)