| java.lang.Object net.mygwt.ui.client.state.StateManager
StateManager | public class StateManager (Code) | | This is the global state manager. In order for this class to be useful, it
must be initialized with a provider when your application initializes. By
default, MyGWT initializes the StateManager with a CookieProvider. The
provider can be replaced as needed.
- Events:
- StateChange : (source this, name, value)
Fires after a state change.
- source : the state manager
- name : the key name
- value : the value or
null if cleared
|
get | public static Object get(String name)(Code) | | Returns the current value for a key.
Parameters: name - the key name the value |
getDate | public static Date getDate(String name)(Code) | | Returns the current value for a key.
Parameters: name - the key name the value |
getInteger | public static int getInteger(String name)(Code) | | Returns the current value for a key.
Parameters: name - the key name the value |
getProvider | public static Provider getProvider()(Code) | | Returns the manager's state provider.
the provider |
getString | public static String getString(String name)(Code) | | Returns the current value for a key.
Parameters: name - the key name the value |
set | public static void set(String name, Object value)(Code) | | Sets a key.
Parameters: name - the key name Parameters: value - the value |
setProvider | public static void setProvider(Provider stateProvider)(Code) | | Sets the manager's state provider.
Parameters: stateProvider - the provider |
|
|