1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
3 | |
---|
4 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
5 | <head> |
---|
6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
7 | |
---|
8 | <title>GeoExt.data.AttributeStore — GeoExt v1.0</title> |
---|
9 | <link rel="stylesheet" href="../../../_static/geoext.css" type="text/css" /> |
---|
10 | <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" /> |
---|
11 | <script type="text/javascript"> |
---|
12 | var DOCUMENTATION_OPTIONS = { |
---|
13 | URL_ROOT: '../../../', |
---|
14 | VERSION: '1.0', |
---|
15 | COLLAPSE_MODINDEX: false, |
---|
16 | FILE_SUFFIX: '.html', |
---|
17 | HAS_SOURCE: true |
---|
18 | }; |
---|
19 | </script> |
---|
20 | <script type="text/javascript" src="../../../_static/jquery.js"></script> |
---|
21 | <script type="text/javascript" src="../../../_static/doctools.js"></script> |
---|
22 | <link rel="shortcut icon" href="../../../_static/favicon.ico"/> |
---|
23 | <link rel="top" title="GeoExt v1.0" href="../../../index.html" /> |
---|
24 | <link rel="up" title="GeoExt.data" href="../data.html" /> |
---|
25 | <link rel="next" title="GeoExt.data.FeatureReader" href="FeatureReader.html" /> |
---|
26 | <link rel="prev" title="GeoExt.data.AttributeReader" href="AttributeReader.html" /> |
---|
27 | |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | </head> |
---|
34 | <body> |
---|
35 | <div class="header"> |
---|
36 | <div class="wrap"> |
---|
37 | <h1 id="logo"><a href="../../../index.html">GeoExt</a></h1> |
---|
38 | <ul id="top-nav"> |
---|
39 | <li class="first"><a href="../../../docs.html">Documentation</a></li> |
---|
40 | <li><a href="../../../examples.html">Examples</a></li> |
---|
41 | <li><a href="../../../downloads.html">Download</a></li> |
---|
42 | <li><a href="http://trac.geoext.org/">Development</a></li> |
---|
43 | </ul> |
---|
44 | <div id="searchbox"> |
---|
45 | <form class="search" action="../../../search.html" method="get"> |
---|
46 | <input id="searchbox-query" type="text" name="q" size="25" value="Search …" tabindex="3" onblur="if(this.value=='') this.value='Search …';" onfocus="if(this.value=='Search …') this.value='';" /> |
---|
47 | <input id="searchbox-submit" type="image" value="Search" src="../../../_static/img/search_icon_green.png" /> |
---|
48 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
49 | <input type="hidden" name="area" value="default" /> |
---|
50 | </form> |
---|
51 | </div> |
---|
52 | </div> |
---|
53 | </div> |
---|
54 | |
---|
55 | <div class="related"> |
---|
56 | <h3>Navigation</h3> |
---|
57 | <ul> |
---|
58 | <li><a href="../../../index.html">GeoExt</a> »</li> |
---|
59 | <li><a href="../../index.html" >API Reference</a> »</li> |
---|
60 | <li><a href="../data.html" accesskey="U"><tt class="docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.data</span></tt></a> »</li> |
---|
61 | <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.data.AttributeStore</span></tt></a></li> |
---|
62 | </ul> |
---|
63 | </div> |
---|
64 | |
---|
65 | <div class="sphinxsidebar"> |
---|
66 | <div class="sphinxsidebarwrapper"> |
---|
67 | <h3><a href="../../../index.html">Table Of Contents</a></h3> |
---|
68 | <ul> |
---|
69 | <li><a class="reference external" href="#"><tt class="docutils literal"><span class="pre">GeoExt.data.AttributeStore</span></tt></a><ul> |
---|
70 | <li><a class="reference external" href="#config-options">Config Options</a></li> |
---|
71 | </ul> |
---|
72 | </li> |
---|
73 | </ul> |
---|
74 | |
---|
75 | <h4>Previous topic</h4> |
---|
76 | <p class="topless"><a href="AttributeReader.html" |
---|
77 | title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">GeoExt.data.AttributeReader</span></tt></a></p> |
---|
78 | <h4>Next topic</h4> |
---|
79 | <p class="topless"><a href="FeatureReader.html" |
---|
80 | title="next chapter"><tt class="docutils literal"><span class="pre">GeoExt.data.FeatureReader</span></tt></a></p> |
---|
81 | </div> |
---|
82 | </div> |
---|
83 | |
---|
84 | |
---|
85 | <div class="document"> |
---|
86 | <div class="documentwrapper"> |
---|
87 | <div class="bodywrapper"> |
---|
88 | <div class="body"> |
---|
89 | |
---|
90 | <div class="section" id="geoext-data-attributestore"> |
---|
91 | <h1><a title="GeoExt.data.AttributeStore" class="reference internal" href="#GeoExt.data.AttributeStore"><tt class="xref docutils literal"><span class="pre">GeoExt.data.AttributeStore</span></tt></a><a class="headerlink" href="#geoext-data-attributestore" title="Permalink to this headline">¶</a></h1> |
---|
92 | <dl class="meta docutils"> |
---|
93 | <dt>Extends</dt> |
---|
94 | <dd><ul class="first last simple"> |
---|
95 | <li><a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store">Ext.data.Store</a></li> |
---|
96 | </ul> |
---|
97 | </dd> |
---|
98 | </dl> |
---|
99 | <dl class="class"> |
---|
100 | <dt id="GeoExt.data.AttributeStore"> |
---|
101 | <em class="property">class </em><tt class="descclassname">GeoExt.data.</tt><tt class="descname">AttributeStore</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#GeoExt.data.AttributeStore" title="Permalink to this definition">¶</a></dt> |
---|
102 | <dd>Small helper class to make creating stores for remotely-loaded attributes |
---|
103 | data easier. AttributeStore is pre-configured with a built-in |
---|
104 | <tt class="docutils literal"><span class="pre">Ext.data.HttpProxy</span></tt> and <a title="GeoExt.data.AttributeReader" class="reference external" href="AttributeReader.html#GeoExt.data.AttributeReader"><tt class="xref docutils literal"><span class="pre">GeoExt.data.AttributeReader</span></tt></a>. The |
---|
105 | HttpProxy is configured to allow caching (disableCaching: false) and |
---|
106 | uses GET. If you require some other proxy/reader combination then you’ll |
---|
107 | have to configure this with your own proxy or create a basic |
---|
108 | <tt class="docutils literal"><span class="pre">Ext.data.Store</span></tt> and configure as needed.</dd></dl> |
---|
109 | |
---|
110 | <div class="section" id="config-options"> |
---|
111 | <h2>Config Options<a class="headerlink" href="#config-options" title="Permalink to this headline">¶</a></h2> |
---|
112 | <p>Configuration properties in addition to |
---|
113 | those listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store">Ext.data.Store</a>.</p> |
---|
114 | <dl class="describe"> |
---|
115 | <dt> |
---|
116 | <tt class="descname">feature</tt></dt> |
---|
117 | <dd><tt class="docutils literal"><span class="pre">OpenLayers.Feature.Vector</span></tt> |
---|
118 | A vector feature. If provided, and if the reader is a |
---|
119 | <a title="GeoExt.data.AttributeReader" class="reference external" href="AttributeReader.html#GeoExt.data.AttributeReader"><tt class="xref docutils literal"><span class="pre">GeoExt.data.AttributeReader</span></tt></a> (the default), then records |
---|
120 | of this store will include a field named “value” referencing the |
---|
121 | corresponding attribute value in the feature. And if the “value” |
---|
122 | field of a record is updated the update will propagate to the |
---|
123 | corresponding feature attribute. Optional.</dd></dl> |
---|
124 | |
---|
125 | <dl class="describe"> |
---|
126 | <dt> |
---|
127 | <tt class="descname">fields</tt></dt> |
---|
128 | <dd><tt class="docutils literal"><span class="pre">Array</span> <span class="pre">or</span> <span class="pre">Function</span></tt> |
---|
129 | Either an array of field definition objects as passed to |
---|
130 | <tt class="docutils literal"><span class="pre">Ext.data.Record.create</span></tt>, or a record constructor created using |
---|
131 | <tt class="docutils literal"><span class="pre">Ext.data.Record.create</span></tt>. Defaults to <tt class="docutils literal"><span class="pre">["name",</span> <span class="pre">"type",</span> <span class="pre">"restriction"]</span></tt>.</dd></dl> |
---|
132 | |
---|
133 | <dl class="describe"> |
---|
134 | <dt> |
---|
135 | <tt class="descname">format</tt></dt> |
---|
136 | <dd><tt class="docutils literal"><span class="pre">OpenLayers.Format</span></tt> |
---|
137 | A parser for transforming the XHR response into an array of objects |
---|
138 | representing attributes. Defaults to an |
---|
139 | <tt class="docutils literal"><span class="pre">OpenLayers.Format.WFSDescribeFeatureType</span></tt> parser.</dd></dl> |
---|
140 | |
---|
141 | </div> |
---|
142 | </div> |
---|
143 | |
---|
144 | |
---|
145 | </div> |
---|
146 | </div> |
---|
147 | </div> |
---|
148 | <div class="clearer"></div> |
---|
149 | </div> |
---|
150 | <div class="related"> |
---|
151 | <h3>Navigation</h3> |
---|
152 | <ul> |
---|
153 | <li class="right" style="margin-right: 10px"> |
---|
154 | <a href="../../../genindex.html" title="General Index" |
---|
155 | accesskey="I">index</a></li> |
---|
156 | <li class="right" > |
---|
157 | <a href="../../../modindex.html" title="Global Module Index" |
---|
158 | accesskey="M">modules</a> |</li> |
---|
159 | <li class="right" > |
---|
160 | <a href="FeatureReader.html" title="GeoExt.data.FeatureReader" |
---|
161 | accesskey="N">next</a> |</li> |
---|
162 | <li class="right" > |
---|
163 | <a href="AttributeReader.html" title="GeoExt.data.AttributeReader" |
---|
164 | accesskey="P">previous</a> |</li> |
---|
165 | <li><a href="../../../index.html">GeoExt</a> »</li> |
---|
166 | <li><a href="../../index.html" >API Reference</a> »</li> |
---|
167 | <li><a href="../data.html" ><tt class="docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.data</span></tt></a> »</li> |
---|
168 | <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.data.AttributeStore</span></tt></a></li> |
---|
169 | </ul> |
---|
170 | </div> |
---|
171 | |
---|
172 | <div class="footer"> |
---|
173 | © Copyright 2009-2010, GeoExt Community. |
---|
174 | </div> |
---|
175 | </body> |
---|
176 | </html> |
---|