| com.gwtext.client.data.Store com.gwtext.client.data.SimpleStore
SimpleStore | public class SimpleStore extends Store (Code) | | Convenience class that creates a Store directly using field names and local array data. Usage :
Store store = new SimpleStore(new String[]{"theme", "label"}, new Object[][]{
new Object[]{"xtheme-aero.css", "Aero Glass Theme"},
new Object[]{"xtheme-gray.css", "Gray Theme"},
new Object[]{"xtheme-vista.css", "Vista Dark Theme"}});
|
Constructor Summary | |
public | SimpleStore(String field, Object[] data) Construct a single field SimpleStore.
Parameters: field - a single field Parameters: data - store data. | public | SimpleStore(String[] fields, Object[][] data) | public | SimpleStore(int id, String[] fields, Object[][] data) Construct a SimpleStore.
Parameters: id - name of the ID field Parameters: fields - array of field names. | public | SimpleStore(int id, FieldDef[] fieldDefs, Object[][] data) Construct a SimpleStore. |
SimpleStore | public SimpleStore(String field, Object[] data)(Code) | | Construct a single field SimpleStore.
Parameters: field - a single field Parameters: data - store data. all fields are treated as String's |
SimpleStore | public SimpleStore(int id, String[] fields, Object[][] data)(Code) | | Construct a SimpleStore.
Parameters: id - name of the ID field Parameters: fields - array of field names. All Fields are treated as Strings Parameters: data - store data |
SimpleStore | public SimpleStore(int id, FieldDef[] fieldDefs, Object[][] data)(Code) | | Construct a SimpleStore.
Parameters: id - name of the ID field Parameters: fieldDefs - the field definitions Parameters: data - store data |
Fields inherited from com.gwtext.client.data.Store | protected JavaScriptObject configJS(Code)(Java Doc)
|
Methods inherited from com.gwtext.client.data.Store | native public void add(Record record)(Code)(Java Doc) public void add(Record[] records)(Code)(Java Doc) native public void addSorted(Record record)(Code)(Java Doc) native public void addStoreListener(StoreListener listener)(Code)(Java Doc) native public void clearFilter()(Code)(Java Doc) native public void clearFilter(boolean suppressEvent)(Code)(Java Doc) native public void commitChanges()(Code)(Java Doc) native JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc) native public void each(StoreTraversalCallback cb)(Code)(Java Doc) native public void filter(String field, RegExp regexp)(Code)(Java Doc) native public void filter(String field, String value)(Code)(Java Doc) native public void filter(String field, String value, boolean anyMatch)(Code)(Java Doc) native public void filterBy(StoreTraversalCallback cb)(Code)(Java Doc) native public Record getAt(int index)(Code)(Java Doc) public UrlParam[] getBaseParams()(Code)(Java Doc) native public Record getById(String id)(Code)(Java Doc) native public int getCount()(Code)(Java Doc) public JavaScriptObject getJsObj()(Code)(Java Doc) public Record[] getModifiedRecords()(Code)(Java Doc) public Record[] getRange(int startIndex, int endIndex)(Code)(Java Doc) public Record getRecordAt(int index)(Code)(Java Doc) public Record[] getRecords()(Code)(Java Doc) public SortState getSortState()(Code)(Java Doc) native public int getTotalCount()(Code)(Java Doc) native public int indexOf(Record record)(Code)(Java Doc) native public int indexOfId(String id)(Code)(Java Doc) native public void insert(int index, Record record)(Code)(Java Doc) public void insert(int index, Record[] records)(Code)(Java Doc) native public void load()(Code)(Java Doc) native public void load(int start, int limit)(Code)(Java Doc) public void load(UrlParam[] params)(Code)(Java Doc) public void load(UrlParam[] params, boolean add)(Code)(Java Doc) native public void loadJsonData(String jsonString, boolean append)(Code)(Java Doc) native public void loadXmlData(String xmlString, boolean append)(Code)(Java Doc) native public void loadXmlDataFromUrl(String url, boolean append)(Code)(Java Doc) public Record[] query(String field, String value)(Code)(Java Doc) public Record[] query(String field, String value, boolean anyMatch)(Code)(Java Doc) public Record[] query(String field, RegExp regexp)(Code)(Java Doc) public Record[] queryBy(StoreQueryFunction queryFunction)(Code)(Java Doc) native public void rejectChanges()(Code)(Java Doc) native public void reload()(Code)(Java Doc) public void reload(UrlParam[] params)(Code)(Java Doc) public void reload(UrlParam[] params, boolean add)(Code)(Java Doc) native public void remove(Record record)(Code)(Java Doc) native public void removeAll()(Code)(Java Doc) public void setAutoLoad(boolean autoLoad)(Code)(Java Doc) public void setBaseParams(UrlParam[] baseParams)(Code)(Java Doc) public void setDataProxy(DataProxy proxy)(Code)(Java Doc) public void setDefaultSort(String field, SortDir sortDir)(Code)(Java Doc) native public void setDefaultSort(String field, String sortDir)(Code)(Java Doc) public void setInitialSortState(SortState initialSortState)(Code)(Java Doc) public void setPruneModifiedRecords(boolean pruneModifiedRecords)(Code)(Java Doc) public void setReader(Reader reader)(Code)(Java Doc) public void setRecordDef(RecordDef recordDef)(Code)(Java Doc) public void setRemoteSort(boolean remoteSort)(Code)(Java Doc) public void setSortInfo(SortState sortInfo)(Code)(Java Doc) public void setStoreId(String storeId)(Code)(Java Doc) public void setUrl(String url)(Code)(Java Doc) native public void sort(String field)(Code)(Java Doc) public void sort(String field, SortDir direction)(Code)(Java Doc) native public void sort(String field, String direction)(Code)(Java Doc) native public float sum(String field)(Code)(Java Doc) native public float sum(String field, int startIndex, int endIndex)(Code)(Java Doc)
|
|
|