X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/api/Ext.state.Manager.html diff --git a/docs/api/Ext.state.Manager.html b/docs/api/Ext.state.Manager.html deleted file mode 100644 index 05db8f86..00000000 --- a/docs/api/Ext.state.Manager.html +++ /dev/null @@ -1,82 +0,0 @@ -Ext.state.Manager | Ext JS 4.0 Documentation -
For up to date documentation and features, visit -http://docs.sencha.com/ext-js/4-0

Sencha Documentation

- - - - - -

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

- -
// in your initialization function
-init : function(){
-   Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
-   var win = new Window(...);
-   win.restoreState();
-}
- 
- - -

This class passes on calls from components to the underlying Ext.state.Provider so that -there is a common interface that can be used without needing to refer to a specific provider instance -in every component.

-
Defined By

Methods

 
clear( -String name) - : void

Clears a value from the state

-

Clears a value from the state

-

Parameters

  • name : String

    The key name

    -

Returns

  • void    -
 
get( -String name, Mixed defaultValue) - : Mixed

Returns the current value for a key

-

Returns the current value for a key

-

Parameters

  • name : String

    The key name

    -
  • defaultValue : Mixed

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

    -

Returns

  • Mixed   

    The state data

    -
 

Gets the currently configured state provider

-

Gets the currently configured state provider

-

Returns

  • Provider   

    The state provider

    -
 
set( -String name, Mixed value) - : void

Sets the value for a key

-

Sets the value for a key

-

Parameters

  • name : String

    The key name

    -
  • value : Mixed

    The state data

    -

Returns

  • void    -
 
setProvider( -Provider stateProvider) - : void

Configures the default state provider for your application

-

Configures the default state provider for your application

-

Parameters

  • stateProvider : Provider

    The state provider to set

    -

Returns

  • void    -
\ No newline at end of file