Home Reference Source
public class | source

UserSettingsController

Extends:

TypedObject → UserSettingsController

Class responsible for preference persistence.

Static Method Summary

Static Public Methods
public static

instance(): *

Method Summary

Public Methods
public

clearPreferences(userSettingsOptions: *)

Clears preferences

public
public

getColumnOrder(userSettingsOptions: *): Array

Gets the order of columns

public

getColumnVisibility(userSettingsOptions: *): *

public

getColumnWidths(userSettingsOptions: *): *

Gets the widths of the columns

public

getCompactPreferencesString(userSettingsOptions: *): String

public

getFirstColumn(col: *): *

public
public

getLegacyPreferences(userSettingsOptions: *): Array

public

getPreferencesString(userSettingsOptions: *): *

Gets the preferences string for the supplied grid

public

getPropertyValues(userSettingsOptions: *, property: *): Array

public

loadPreferences(userSettingsOptions: *)

Loads preferences

public

parseCompactPreferencesString(userSettingsOptions: *, val: *): Array

public

parsePreferences(userSettingsOptions: *, val: *): *

public

persistPreferences(userSettingsOptions: *, name: *, isDefault: *)

Saves the preferences

public

rearrangeColumns(col: *, val: *, userSettingsOptions: *)

public

removeUndefined(source: *): Array

public

setColumnOrder(userSettingsOptions: *, val: *)

Sets the order of columns

public

setColumnVisibility(userSettingsOptions: *, val: *)

Sets the visibility of the columns

public

setColumnWidths(userSettingsOptions: *, val: *)

Sets the widths of the columns

public

setPreferences(userSettingsOptions: *, arrayCollection: *)

Applies previously set preferences..

public

setPropertyValues(userSettingsOptions: *, val: *, property: *)

Inherited Summary

From class TypedObject
public

typeCache: {}

public
public

Returns a list of strings that represent the object hierarchy for this object.

public

Returns true if the class name to check is in the list of class names defined for this class.

Static Public Methods

public static instance(): * source

Return:

*

Public Methods

public clearPreferences(userSettingsOptions: *) source

Clears preferences

Params:

NameTypeAttributeDescription
userSettingsOptions *

public getClassNames(): Array source

Returns a list of strings that represent the object hierarchy for this object.

Override:

TypedObject#getClassNames

Return:

Array

public getColumnOrder(userSettingsOptions: *): Array source

Gets the order of columns

Params:

NameTypeAttributeDescription
userSettingsOptions *

Return:

Array

public getColumnVisibility(userSettingsOptions: *): * source

Params:

NameTypeAttributeDescription
userSettingsOptions *

Return:

*

public getColumnWidths(userSettingsOptions: *): * source

Gets the widths of the columns

Params:

NameTypeAttributeDescription
userSettingsOptions *
  • optional

Return:

*

public getCompactPreferencesString(userSettingsOptions: *): String source

Params:

NameTypeAttributeDescription
userSettingsOptions *

Return:

String

public getFirstColumn(col: *): * source

Params:

NameTypeAttributeDescription
col *

Return:

*

public getIsColumnOnly(col: *): Boolean source

Params:

NameTypeAttributeDescription
col *

Return:

Boolean

public getLegacyPreferences(userSettingsOptions: *): Array source

Params:

NameTypeAttributeDescription
userSettingsOptions *

Return:

Array

public getPreferencesString(userSettingsOptions: *): * source

Gets the preferences string for the supplied grid

Params:

NameTypeAttributeDescription
userSettingsOptions *

Return:

*

public getPropertyValues(userSettingsOptions: *, property: *): Array source

Params:

NameTypeAttributeDescription
userSettingsOptions *
property *

Return:

Array

public loadPreferences(userSettingsOptions: *) source

Loads preferences

Params:

NameTypeAttributeDescription
userSettingsOptions *

public parseCompactPreferencesString(userSettingsOptions: *, val: *): Array source

Params:

NameTypeAttributeDescription
userSettingsOptions *
val *

Return:

Array

public parsePreferences(userSettingsOptions: *, val: *): * source

Params:

NameTypeAttributeDescription
userSettingsOptions *
val *

Return:

*

public persistPreferences(userSettingsOptions: *, name: *, isDefault: *) source

Saves the preferences

Params:

NameTypeAttributeDescription
userSettingsOptions *
name *
isDefault *

public rearrangeColumns(col: *, val: *, userSettingsOptions: *) source

Params:

NameTypeAttributeDescription
col *
val *
userSettingsOptions *

public removeUndefined(source: *): Array source

Params:

NameTypeAttributeDescription
source *

Return:

Array

public setColumnOrder(userSettingsOptions: *, val: *) source

Sets the order of columns

Params:

NameTypeAttributeDescription
userSettingsOptions *
  • optional
val *
  • optional

public setColumnVisibility(userSettingsOptions: *, val: *) source

Sets the visibility of the columns

Params:

NameTypeAttributeDescription
userSettingsOptions *
val *

public setColumnWidths(userSettingsOptions: *, val: *) source

Sets the widths of the columns

Params:

NameTypeAttributeDescription
userSettingsOptions *
  • optional
val *
  • optional

public setPreferences(userSettingsOptions: *, arrayCollection: *) source

Applies previously set preferences..

Params:

NameTypeAttributeDescription
userSettingsOptions *
  • optional
arrayCollection *
  • optional

public setPropertyValues(userSettingsOptions: *, val: *, property: *) source

Params:

NameTypeAttributeDescription
userSettingsOptions *
  • optional
val *
  • optional
property *
  • optional