Detailed Description

The storage web API. Used by Local/SessionStorage.

Inheritance diagram for PowerUI.Storage:
PowerUI.LocalStorage PowerUI.SessionStorage

Public Member Functions

 Storage (HtmlDocument document)
 
string key (int i)
 The key at index i. More...
 
string saveKeySet ()
 Builds a key set as a string. More...
 
virtual string getItem (string key)
 Gets the item with the given key. More...
 
virtual void setItem (string key, string data)
 Sets the item with the given key. More...
 
virtual void removeItem (string key)
 Removes the item with the given key. More...
 
virtual void clear ()
 Removes all the items. More...
 

Public Attributes

List< string > KeyList
 The available keys for this domain. More...
 
Dictionary< string, bool > KeyLookup
 The available keys for this domain. More...
 

Package Functions

void loadKeySet (string keys)
 Loads a key set. More...
 
bool hasItem (string key)
 True if the given key is set. More...
 
void AddKey (string key)
 Adds a key to the lookups. More...
 
void RemoveKey (string key)
 Removes a key from the lookups. More...
 

Package Attributes

string origin
 The storage origin. More...
 

Constructor & Destructor Documentation

PowerUI.Storage.Storage ( HtmlDocument  document)
inline

Member Function Documentation

void PowerUI.Storage.AddKey ( string  key)
inlinepackage

Adds a key to the lookups.

virtual void PowerUI.Storage.clear ( )
inlinevirtual

Removes all the items.

Reimplemented in PowerUI.SessionStorage, and PowerUI.LocalStorage.

virtual string PowerUI.Storage.getItem ( string  key)
inlinevirtual

Gets the item with the given key.

Reimplemented in PowerUI.SessionStorage, and PowerUI.LocalStorage.

bool PowerUI.Storage.hasItem ( string  key)
inlinepackage

True if the given key is set.

string PowerUI.Storage.key ( int  i)
inline

The key at index i.

void PowerUI.Storage.loadKeySet ( string  keys)
inlinepackage

Loads a key set.

virtual void PowerUI.Storage.removeItem ( string  key)
inlinevirtual

Removes the item with the given key.

Reimplemented in PowerUI.SessionStorage, and PowerUI.LocalStorage.

void PowerUI.Storage.RemoveKey ( string  key)
inlinepackage

Removes a key from the lookups.

string PowerUI.Storage.saveKeySet ( )
inline

Builds a key set as a string.

virtual void PowerUI.Storage.setItem ( string  key,
string  data 
)
inlinevirtual

Sets the item with the given key.

Reimplemented in PowerUI.SessionStorage, and PowerUI.LocalStorage.

Member Data Documentation

List<string> PowerUI.Storage.KeyList

The available keys for this domain.

Dictionary<string,bool> PowerUI.Storage.KeyLookup

The available keys for this domain.

string PowerUI.Storage.origin
package

The storage origin.