Java Doc for JsonStore.java in  » Ajax » gwtext-2.01 » com » gwtext » client » data » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » gwtext 2.01 » com.gwtext.client.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.gwtext.client.data.Store
   com.gwtext.client.data.JsonStore

JsonStore
public class JsonStore extends Store (Code)
Small helper class to make creating Stores for JSON data easier.
 
 JsonStore store = new JsonStore("get-images.php", "images",new RecordDef(new FieldDef[]{
 new StringFieldDef("name"),
 new StringFieldDef("url"),
 new FloatFieldDef("size"),
 new DateFieldDef("lastmod")}));
 
 

This would consume a returned object of the form:

 
 {
 images: [
 {name: <em>'Image one'</em>, url:<em>'/GetImage.php?id=1'</em>, size:46.5, lastmod: <b>new</b> Date(2007, 10, 29)},
 {name: <em>'Image Two'</em>, url:<em>'/GetImage.php?id=2'</em>, size:43.2, lastmod: <b>new</b> Date(2007, 10, 30)}
 ]
 }
 
 



Constructor Summary
public  JsonStore(String url, String root, String[] fields)
     Create a new JsonStore.
public  JsonStore(String url, String root, RecordDef recordDef)
     Create a new JsonStore.

Method Summary
native  JavaScriptObjectcreate(JavaScriptObject config)
    


Constructor Detail
JsonStore
public JsonStore(String url, String root, String[] fields)(Code)
Create a new JsonStore.
Parameters:
  url - the URL that returns the Json data
Parameters:
  root - name of the property which contains the Array of row objects
Parameters:
  fields - the name of the fields



JsonStore
public JsonStore(String url, String root, RecordDef recordDef)(Code)
Create a new JsonStore.
Parameters:
  url - the URL that returns the Json data
Parameters:
  root - name of the property which contains the Array of row objects
Parameters:
  recordDef - the record def




Method Detail
create
native JavaScriptObject create(JavaScriptObject config)(Code)



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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.