Class MemoryProxy

  extended by com.gwtext.client.core.JsObject
      extended by
          extended by

public class MemoryProxy
extends DataProxy

An implementation of DataProxy that simply passes the data specified in its constructor to the Reader when its load method is called.


Object[][] states = new Object[][]{ new Object[]{"AL", "Alabama"}, new Object[]{"AK", "Alaska"}, new Object[]{"AZ", "Arizona"}, new Object[]{"AR", "Arkansas"}, new Object[]{"CA", "California"}};

Reader reader = new ArrayReader(new RecordDef( new FieldDef[]{ new StringFieldDef("abbr"), new StringFieldDef("state") }));

Store store = new Store(proxy, reader);

Field Summary
Fields inherited from class com.gwtext.client.core.JsObject
Constructor Summary
MemoryProxy(java.lang.Object[][] data)
          Create s new memory proxy using the passed array data.
Method Summary
protected create( data)
Methods inherited from class com.gwtext.client.core.JsObject
getJsObj, getProperties, isCreated, setJsObj
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public MemoryProxy(java.lang.Object[][] data)
Create s new memory proxy using the passed array data.

data - the array data
Method Detail


protected create( data)