Packageorg.ow2.kerneos.core.managers
Classpublic class SharedObjectManager
InheritanceSharedObjectManager Inheritance Object

Manages the Flash player cookie (shared object) to store some user settings.



Public Methods
 MethodDefined By
  
[static] Get the user chosen language.
SharedObjectManager
  
getWindowIsMaximized(name:String):Boolean
[static] Check wether the user has maximized the window.
SharedObjectManager
  
getWindowSizeAndPosition(name:String):Object
[static] Get the user size and position for a window.
SharedObjectManager
  
load():void
[static] Load the user shared object
SharedObjectManager
  
save():void
[static] Save the modifications to the user disk
SharedObjectManager
  
setActiveLanguage(value:String):void
[static] Store the user chosen language.
SharedObjectManager
  
setWindowIsMaximized(name:String, maximized:Boolean):void
[static] Store wether has maximized the window.
SharedObjectManager
  
setWindowSizeAndPosition(name:String, width:int, height:int, x:int, y:int):void
[static] Store the user size and position for a window.
SharedObjectManager
Method Detail
getActiveLanguage()method
public static function getActiveLanguage():String

Get the user chosen language.

Returns
String — null if the shared object does not exist, or chosen language never set or invalid.
getWindowIsMaximized()method 
public static function getWindowIsMaximized(name:String):Boolean

Check wether the user has maximized the window.

Parameters

name:String

Returns
Boolean — null if the shared object does not exist, or preferences for this window not set or invalid.
getWindowSizeAndPosition()method 
public static function getWindowSizeAndPosition(name:String):Object

Get the user size and position for a window.

Parameters

name:String

Returns
Object — null if the shared object does not exist, or preferences for this window not set or invalid. An Object with the following properties else: "width", "height", "x" and "y".
load()method 
public static function load():void

Load the user shared object

save()method 
public static function save():void

Save the modifications to the user disk

setActiveLanguage()method 
public static function setActiveLanguage(value:String):void

Store the user chosen language.

Parameters

value:String

setWindowIsMaximized()method 
public static function setWindowIsMaximized(name:String, maximized:Boolean):void

Store wether has maximized the window.

Parameters

name:String
 
maximized:Boolean

setWindowSizeAndPosition()method 
public static function setWindowSizeAndPosition(name:String, width:int, height:int, x:int, y:int):void

Store the user size and position for a window.

Parameters

name:String
 
width:int
 
height:int
 
x:int
 
y:int