Packagecom.flexicious.persistence
Classpublic class GridPreferencesInfo
InheritanceGridPreferencesInfo Inheritance Object
Implements flash.events.IEventDispatcher

Class added in 2.9 to support multiple preferences. Each IPersistable has a gridpreferences object, that contains an array of PreferenceInfo objects



Public Properties
 PropertyDefined By
  defaultPreferenceName : String
Name of the default preference
GridPreferencesInfo
  loadDefaultPreferenceOnCreationComplete : Boolean
Flag that tells the grid to load the default preferences on creation complete
GridPreferencesInfo
  savedPreferences : Array
List of saved preferences.
GridPreferencesInfo
Public Methods
 MethodDefined By
  
GridPreferencesInfo
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void
GridPreferencesInfo
  
dispatchEvent(event:Event):Boolean
GridPreferencesInfo
  
Converts a string resut of toPreferenceString to a GridPreferencesInfo object
GridPreferencesInfo
  
hasEventListener(type:String):Boolean
GridPreferencesInfo
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
GridPreferencesInfo
  
A function that converts the current preference object into a string.
GridPreferencesInfo
  
willTrigger(type:String):Boolean
GridPreferencesInfo
Property Detail
defaultPreferenceNameproperty
defaultPreferenceName:String

Name of the default preference

The default value is Default.

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


Implementation
    public function get defaultPreferenceName():String
    public function set defaultPreferenceName(value:String):void
loadDefaultPreferenceOnCreationCompleteproperty 
loadDefaultPreferenceOnCreationComplete:Boolean

Flag that tells the grid to load the default preferences on creation complete

The default value is true.

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


Implementation
    public function get loadDefaultPreferenceOnCreationComplete():Boolean
    public function set loadDefaultPreferenceOnCreationComplete(value:Boolean):void
savedPreferencesproperty 
savedPreferences:Array

List of saved preferences.

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


Implementation
    public function get savedPreferences():Array
    public function set savedPreferences(value:Array):void
Constructor Detail
GridPreferencesInfo()Constructor
public function GridPreferencesInfo()



Method Detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
weakRef:Boolean (default = false)

dispatchEvent()method 
public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean
fromPreferenceString()method 
public function fromPreferenceString(uso:UserSettingsOptions, str:String):GridPreferencesInfo

Converts a string resut of toPreferenceString to a GridPreferencesInfo object

Parameters

uso:UserSettingsOptions
 
str:String

Returns
GridPreferencesInfo
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Parameters

type:String

Returns
Boolean
removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

toPreferenceString()method 
public function toPreferenceString(uso:UserSettingsOptions):String

A function that converts the current preference object into a string.

Parameters

uso:UserSettingsOptions

Returns
String
willTrigger()method 
public function willTrigger(type:String):Boolean

Parameters

type:String

Returns
Boolean