/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_state_Manager({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":null,"uses":[],"html":"

Files

This is the global state manager. By default all components that are \"state aware\" check this class\nfor state information if you don't pass them a custom state provider. In order for this class\nto be useful, it must be initialized with a provider when your application initializes. Example usage:

\n\n
// in your initialization function\ninit : function(){\n   Ext.state.Manager.setProvider(new Ext.state.CookieProvider());\n   var win = new Window(...);\n   win.restoreState();\n}\n 
\n\n
Defined By

Methods

Ext.state.Manager
view source
( name )
Clears a value from the state ...

Clears a value from the state

\n

Parameters

Ext.state.Manager
view source
( name, defaultValue ) : Mixed
Returns the current value for a key ...

Returns the current value for a key

\n

Parameters

  • name : String

    The key name

    \n
  • defaultValue : Mixed

    The default value to return if the key lookup does not match

    \n

Returns

  • Mixed

    The state data

    \n
Ext.state.Manager
view source
( ) : Provider
Gets the currently configured state provider ...

Gets the currently configured state provider

\n

Returns

  • Provider

    The state provider

    \n
Ext.state.Manager
view source
( name, value )
Sets the value for a key ...

Sets the value for a key

\n

Parameters

  • name : String

    The key name

    \n
  • value : Mixed

    The state data

    \n
Ext.state.Manager
view source
( stateProvider )
Configures the default state provider for your application ...

Configures the default state provider for your application

\n

Parameters

  • stateProvider : Provider

    The state provider to set

    \n
","superclasses":[],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"StateManager.html#Ext-state-Manager","filename":"StateManager.js"}],"linenr":1,"members":{"property":[],"cfg":[],"css_var":[],"method":[{"tagname":"method","owner":"Ext.state.Manager","meta":{},"name":"clear","id":"method-clear"},{"tagname":"method","owner":"Ext.state.Manager","meta":{},"name":"get","id":"method-get"},{"tagname":"method","owner":"Ext.state.Manager","meta":{},"name":"getProvider","id":"method-getProvider"},{"tagname":"method","owner":"Ext.state.Manager","meta":{},"name":"set","id":"method-set"},{"tagname":"method","owner":"Ext.state.Manager","meta":{},"name":"setProvider","id":"method-setProvider"}],"event":[],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.state.Manager","singleton":true,"override":null,"inheritdoc":null,"id":"class-Ext.state.Manager","mixins":[],"mixedInto":[]});