Class Ext.state.Provider
Abstract base class for provider implementations. This class provides methods
for encoding and decoding typed variables including dates and defines the
Provider interface.
Properties
-
Methods
-
Events
Public Properties
This class has no public properties.
Public Methods
| |
clear() : void |
Provider |
| Clear a value from the state. |
| |
decodeValue(String value) : Mixed |
Provider |
| Decodes a string previously encoded with encodeValue. |
| |
encodeValue(Mixed value) : String |
Provider |
| Encode a value including type information. |
| |
get(String name, Mixed defaultValue) : Mixed |
Provider |
| Get the current value for a key. |
| |
set(String name, Mixed value) : void |
Provider |
| Set the value for a key. |
Public Events
| |
statechange : (Provider this, String key, String value) |
Provider |
| Fires when a state change occurs. |
Method Details
clear
public function clear()
Clear a value from the state.
This method is defined by Provider.
decodeValue
public function decodeValue(String value)
This method is defined by Provider.
encodeValue
public function encodeValue(Mixed value)
Encode a value including type information.
This method is defined by Provider.
get
public function get(String name, Mixed defaultValue)
Get the current value for a key.
Parameters:
name : StringdefaultValue : Mixed
Returns:
This method is defined by Provider.
set
public function set(String name, Mixed value)
Set the value for a key.
Parameters:
name : Stringvalue : Mixed
Returns:
This method is defined by Provider.
Event Details
statechange
public event statechange
Fires when a state change occurs.
Subscribers will be called with the following parameters:
This event is defined by Provider.
yui-ext - Copyright © 2006 Jack Slocum. |
Yahoo! UI - Copyright © 2006 Yahoo! Inc.
All rights reserved.