| com.gwtext.client.data.Store com.gwtext.client.data.GroupingStore
GroupingStore | public class GroupingStore extends Store (Code) | | A specialized store implementation that provides for grouping records by one of the available fields.
|
Method Summary | |
native public void | clearGrouping() Clears any existing grouping and refreshes the data using the default sort. | native JavaScriptObject | create(JavaScriptObject config) | native public void | groupBy(String field) Groups the data by the specified field. | native public void | groupBy(String field, boolean forceRegroup) Groups the data by the specified field. | public void | setGroupField(String groupField) The field name by which to sort the store's data (defaults to ''). | public void | setGroupOnSort(boolean groupOnSort) True to sort the data on the grouping field when a grouping operation occurs,
false to sort based on the existing sort info (defaults to false). | public void | setRemoteGroup(boolean remoteGroup) True if the grouping should apply on the server side, false if it is local only (defaults to false).
If the grouping is local, it can be applied immediately to the data. |
GroupingStore | public GroupingStore()(Code) | | Construct a new GroupingStore.
|
GroupingStore | public GroupingStore(Reader reader)(Code) | | Create a Store using the specified
Reader .
Parameters: reader - the reader |
GroupingStore | public GroupingStore(DataProxy dataProxy, Reader reader, boolean remoteSort)(Code) | | Create a Store using the specified
com.gwtext.client.data.DataProxy and
Reader .
Parameters: dataProxy - the data proxy Parameters: reader - the reader Parameters: remoteSort - true to enable remote sort of the data |
GroupingStore | public GroupingStore(DataProxy dataProxy, Reader reader, UrlParam[] baseParams, SortState initialSortState, boolean remoteSort)(Code) | | Create a Store using the specified configuration.
Parameters: dataProxy - the data proxy Parameters: reader - the reader Parameters: baseParams - base params which are to be sent as parameters on any HTTP request. Used only for Http based proxies. Parameters: initialSortState - the initial sort field name and direction Parameters: remoteSort - true to enable remote sort |
clearGrouping | native public void clearGrouping()(Code) | | Clears any existing grouping and refreshes the data using the default sort.
|
create | native JavaScriptObject create(JavaScriptObject config)(Code) | | |
groupBy | native public void groupBy(String field)(Code) | | Groups the data by the specified field.
Parameters: field - The field name by which to sort the store's data |
groupBy | native public void groupBy(String field, boolean forceRegroup)(Code) | | Groups the data by the specified field.
Parameters: field - The field name by which to sort the store's data Parameters: forceRegroup - true to force the group to be refreshed even if the field passed in is the same as the currentgrouping field, false to skip grouping on the same field (defaults to false) |
setGroupField | public void setGroupField(String groupField)(Code) | | The field name by which to sort the store's data (defaults to '').
Parameters: groupField - the group field |
setGroupOnSort | public void setGroupOnSort(boolean groupOnSort)(Code) | | True to sort the data on the grouping field when a grouping operation occurs,
false to sort based on the existing sort info (defaults to false).
Parameters: groupOnSort - true to group on sort |
setRemoteGroup | public void setRemoteGroup(boolean remoteGroup)(Code) | | True if the grouping should apply on the server side, false if it is local only (defaults to false).
If the grouping is local, it can be applied immediately to the data. If it is remote, then it will simply act as
a helper, automatically sending the grouping field name as the 'groupBy' param with each XHR call.
Parameters: remoteGroup - true if the grouping should apply on the server side |
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)
|
|
|