The Store class encapsulates a client side cache of {@link Record} objects which provide input data for widgets suchas the {@link com.gwtext.client.widgets.grid.GridPanel}, or the {@link com.gwtext.client.widgets.form.ComboBox}.
A Store object uses an implementation of {@link DataProxy} to access a data object unless you call loadData() directlyand pass in your data. The Store object has no knowledge of the format of the data returned by the Proxy.
A Store object uses its configured implementation of {@link Reader} to {@link Record} instances from the data object.These records are cached and made available through accessor functions. Usage :
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);
@see com.gwtext.client.data.XmlReader
@see com.gwtext.client.data.JsonReader
@see com.gwtext.client.data.HttpProxy
@see com.gwtext.client.data.MemoryProxy