com.gwtext.client.data
Class MemoryProxy
java.lang.Object
com.gwtext.client.core.JsObject
com.gwtext.client.data.DataProxy
com.gwtext.client.data.MemoryProxy
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);
Fields inherited from class com.gwtext.client.core.JsObject |
jsObj |
Constructor Summary |
MemoryProxy(java.lang.Object[][] data)
Create s new memory proxy using the passed array data. |
Method Summary |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryProxy
public MemoryProxy(java.lang.Object[][] data)
- Create s new memory proxy using the passed array data.
- Parameters:
data
- the array data
create
protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject data)