Class Ext.state.Provider
Abstract base class for state provider implementations. This class provides methods
for encoding and decoding typed variables including dates and defines the
Provider interface.
属性
-
方法
-
事件
公共属性
此类没有公共属性。
公共方法
|
clear(String name ) : void |
Provider |
Clears a value from the state |
|
decodeValue(String value ) : Mixed |
Provider |
Decodes a string previously encoded with encodeValue. |
|
encodeValue(Mixed value ) : String |
Provider |
Encodes a value including type information. Decode with decodeValue. |
|
get(String name , Mixed defaultValue ) : Mixed |
Provider |
Returns the current value for a key |
|
set(String name , Mixed value ) : void |
Provider |
Sets the value for a key |
公共事件
|
statechange : (Provider this , String key , String value ) |
Provider |
Fires when a state change occurs. |
方法详情
clear
public function clear(String name
)
Clears a value from the state
参数:
name
: StringThe key name
返回:
This method is defined by Provider.
decodeValue
public function decodeValue(String value
)
Decodes a string previously encoded with
encodeValue.
参数:
value
: StringThe value to decode
返回:
This method is defined by Provider.
encodeValue
public function encodeValue(Mixed value
)
Encodes a value including type information. Decode with
decodeValue.
参数:
value
: MixedThe value to encode
返回:
This method is defined by Provider.
get
public function get(String name
, Mixed defaultValue
)
Returns the current value for a key
This method is defined by Provider.
set
public function set(String name
, Mixed value
)
Sets the value for a key
参数:
name
: StringThe key name
value
: MixedThe value to set
返回:
This method is defined by Provider.
事件详情
statechange
public event statechange
Fires when a state change occurs.
Subscribers will be called with the following parameters:
This event is defined by Provider.