Package: | Roo.state |
Defined In: | Roo/state/Manager.js. |
Class: | Manager |
// in your initialization function
init : function(){
Roo.state.Manager.setProvider(new Roo.state.CookieProvider());
...
// supposed you have a {link Roo.BorderLayout}
var layout = new Roo.BorderLayout(...);
layout.restoreState();
// or a {Roo.BasicDialog}
var dialog = new Roo.BasicDialog(...);
dialog.restoreState();
Method | Defined By | |
---|---|---|
Roo.state.Manager.clear
(String name)
Clears a value from the state
Clears a value from the state
|
Roo.state.Manager | |
Roo.state.Manager.get
(String name, Mixed defaultValue)
:
Mixed
Returns the current value for a key
Returns the current value for a key
|
Roo.state.Manager | |
Roo.state.Manager.getProvider
()
:
Provider
Gets the currently configured state provider
Gets the currently configured state provider
|
Roo.state.Manager | |
Roo.state.Manager.set
(String name, Mixed value)
Sets the value for a key
Sets the value for a key
|
Roo.state.Manager | |
Roo.state.Manager.setProvider
(Provider stateProvider)
Configures the default state provider for your application
Configures the default state provider for your application
|
Roo.state.Manager |