ProviderPreferencesProvider
| Package: | CQ.state |
| Class: | PreferencesProvider |
| Extends: | CQ.Ext.state.Provider |
| Clientlib: | cq.widgets |
| Config Options | Defined By | |
|---|---|---|
|
data : Object Name/value pairs for the preferences contained in this provider. This option will only be used if the config doesn't ...
Name/value pairs for the preferences contained in this provider. This option will only be used if the config doesn't contain a url to request preferences stored remotely.
The object must have the following format: |
PreferencesProvider | |
| url : String | PreferencesProvider | |
| Method | Defined By | |
|---|---|---|
PreferencesProvider( Object config ) Creates a new PreferencesProvider.
Creates a new PreferencesProvider.
Parameters:
|
PreferencesProvider | |
clear( String name ) : void Clears a value from the state
Clears a value from the state
Parameters:
|
Provider | |
decodeValue( String value ) : Mixed Decodes a string previously encoded with encodeValue.
Decodes a string previously encoded with encodeValue.
Parameters:
|
Provider | |
encodeValue( Mixed value ) : String Encodes a value including type information. Decode with decodeValue.
Encodes a value including type information. Decode with decodeValue.
Parameters:
|
Provider | |
get( String name, Mixed defaultValue ) : Mixed Returns the current value for a key
Returns the current value for a key
Parameters:
|
Provider | |
set( String name, Mixed value ) : void Sets the value for a key
Sets the value for a key
Parameters:
|
Provider | |
| Event | Defined By | |
|---|---|---|
statechange : ( Provider this, String key, String value ) Fires when a state change occurs.
Fires when a state change occurs.
Listeners will be called with the following arguments:
|
Provider | |