Bienvenue sur PostGIS.fr

Bienvenue sur PostGIS.fr , le site de la communauté des utilisateurs francophones de PostGIS.

PostGIS ajoute le support d'objets géographique à la base de données PostgreSQL. En effet, PostGIS "spatialise" le serverur PostgreSQL, ce qui permet de l'utiliser comme une base de données SIG.

Maintenu à jour, en fonction de nos disponibilités et des diverses sorties des outils que nous testons, nous vous proposons l'ensemble de nos travaux publiés en langue française.

source: trunk/workshop-routing-foss4g/web/GeoExt/docs/lib/GeoExt/plugins/AttributeForm.html @ 76

Revision 76, 10.2 KB checked in by djay, 10 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
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.plugins.AttributeForm &mdash; 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.plugins" href="../plugins.html" />
25    <link rel="next" title="GeoExt.plugins.PrintExtent" href="PrintExtent.html" />
26    <link rel="prev" title="GeoExt.plugins" href="../plugins.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 &hellip;" tabindex="3" onblur="if(this.value=='') this.value='Search &hellip;';" onfocus="if(this.value=='Search &hellip;') 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> &raquo;</li>
59          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
60          <li><a href="../plugins.html" accesskey="U"><tt class="docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.plugins</span></tt></a> &raquo;</li>
61        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.plugins.AttributeForm</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.plugins.AttributeForm</span></tt></a><ul>
70<li><a class="reference external" href="#example-use">Example Use</a></li>
71<li><a class="reference external" href="#config-options">Config Options</a></li>
72</ul>
73</li>
74</ul>
75
76            <h4>Previous topic</h4>
77            <p class="topless"><a href="../plugins.html"
78                                  title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">GeoExt.plugins</span></tt></a></p>
79            <h4>Next topic</h4>
80            <p class="topless"><a href="PrintExtent.html"
81                                  title="next chapter"><tt class="docutils literal"><span class="pre">GeoExt.plugins.PrintExtent</span></tt></a></p>
82        </div>
83      </div>
84
85
86    <div class="document">
87      <div class="documentwrapper">
88        <div class="bodywrapper">
89          <div class="body">
90           
91  <div class="section" id="geoext-plugins-attributeform">
92<h1><a title="GeoExt.plugins.AttributeForm" class="reference internal" href="#GeoExt.plugins.AttributeForm"><tt class="xref docutils literal"><span class="pre">GeoExt.plugins.AttributeForm</span></tt></a><a class="headerlink" href="#geoext-plugins-attributeform" title="Permalink to this headline">¶</a></h1>
93<dl class="meta docutils">
94<dt>ptype</dt>
95<dd><tt class="docutils literal"><span class="pre">gx_attributeform</span></tt></dd>
96</dl>
97<dl class="class">
98<dt id="GeoExt.plugins.AttributeForm">
99<em class="property">class </em><tt class="descclassname">GeoExt.plugins.</tt><tt class="descname">AttributeForm</tt><a class="headerlink" href="#GeoExt.plugins.AttributeForm" title="Permalink to this definition">¶</a></dt>
100<dd></dd></dl>
101
102<p>This plugin allows creating form items from attribute records
103and fill a form panel with these items.</p>
104<div class="section" id="example-use">
105<h2>Example Use<a class="headerlink" href="#example-use" title="Permalink to this headline">¶</a></h2>
106<p>Sample code showing how to use an Ext form panel as a feature
107attribute form (for editing features for example).</p>
108<div class="highlight-javascript"><div class="highlight"><pre><span class="kd">var</span> <span class="nx">formPanel</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Ext</span><span class="p">.</span><span class="nx">form</span><span class="p">.</span><span class="nx">FormPanel</span><span class="p">({</span>
109    <span class="nx">autoScroll</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
110    <span class="nx">height</span><span class="o">:</span> <span class="mi">300</span><span class="p">,</span>
111    <span class="nx">width</span><span class="o">:</span> <span class="mi">350</span><span class="p">,</span>
112    <span class="nx">defaults</span><span class="o">:</span> <span class="p">{</span>
113        <span class="nx">maxLengthText</span><span class="o">:</span> <span class="s2">&quot;too long&quot;</span><span class="p">,</span>
114        <span class="nx">minLengthText</span><span class="o">:</span> <span class="s2">&quot;too short&quot;</span>
115    <span class="p">}</span>
116    <span class="nx">plugins</span><span class="o">:</span> <span class="p">[</span>
117        <span class="k">new</span> <span class="nx">GeoExt</span><span class="p">.</span><span class="nx">plugins</span><span class="p">.</span><span class="nx">AttributeForm</span><span class="p">({</span>
118            <span class="nx">attributeStore</span><span class="o">:</span> <span class="k">new</span> <span class="nx">GeoExt</span><span class="p">.</span><span class="nx">data</span><span class="p">.</span><span class="nx">AttributeStore</span><span class="p">({</span>
119                <span class="nx">url</span><span class="o">:</span> <span class="s2">&quot;http://some.wfs&quot;</span><span class="p">,</span>
120                <span class="nx">baseParams</span><span class="o">:</span> <span class="p">{</span>
121                    <span class="s2">&quot;SERVICE&quot;</span><span class="o">:</span> <span class="s2">&quot;WFS&quot;</span><span class="p">,</span>
122                    <span class="s2">&quot;VERSION&quot;</span><span class="o">:</span> <span class="s2">&quot;1.1.0&quot;</span><span class="p">,</span>
123                    <span class="s2">&quot;REQUEST&quot;</span><span class="o">:</span> <span class="s2">&quot;DescribeFeatureType&quot;</span><span class="p">,</span>
124                    <span class="s2">&quot;TYPENAME&quot;</span><span class="o">:</span> <span class="s2">&quot;the_typename&quot;</span>
125                <span class="p">}</span>
126            <span class="p">})</span>
127        <span class="p">})</span>
128    <span class="p">]</span>
129<span class="p">});</span>
130</pre></div>
131</div>
132</div>
133<div class="section" id="config-options">
134<h2>Config Options<a class="headerlink" href="#config-options" title="Permalink to this headline">¶</a></h2>
135<p>Configuration properties.</p>
136<dl class="describe">
137<dt>
138<tt class="descname">attributeStore</tt></dt>
139<dd><tt class="docutils literal"><span class="pre">Ext.data.Store</span></tt> The attribute store to bind to this plugin.
140It can be any Ext store configured with a
141<a title="GeoExt.data.AttributeReader" class="reference external" href="../data/AttributeReader.html#GeoExt.data.AttributeReader"><tt class="xref docutils literal"><span class="pre">GeoExt.data.AttributeReader</span></tt></a>. If set form items
142will be created from the attribute records in the form. In
143most cases this store will be a <a title="GeoExt.data.AttributeStore" class="reference external" href="../data/AttributeStore.html#GeoExt.data.AttributeStore"><tt class="xref docutils literal"><span class="pre">GeoExt.data.AttributeStore</span></tt></a>.</dd></dl>
144
145</div>
146</div>
147
148
149          </div>
150        </div>
151      </div>
152      <div class="clearer"></div>
153    </div>
154    <div class="related">
155      <h3>Navigation</h3>
156      <ul>
157            <li class="right" style="margin-right: 10px">
158              <a href="../../../genindex.html" title="General Index"
159                 accesskey="I">index</a></li>
160            <li class="right" >
161              <a href="../../../modindex.html" title="Global Module Index"
162                 accesskey="M">modules</a> |</li>
163            <li class="right" >
164              <a href="PrintExtent.html" title="GeoExt.plugins.PrintExtent"
165                 accesskey="N">next</a> |</li>
166            <li class="right" >
167              <a href="../plugins.html" title="GeoExt.plugins"
168                 accesskey="P">previous</a> |</li>
169        <li><a href="../../../index.html">GeoExt</a> &raquo;</li>
170          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
171          <li><a href="../plugins.html" ><tt class="docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.plugins</span></tt></a> &raquo;</li>
172        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.plugins.AttributeForm</span></tt></a></li>
173      </ul>
174    </div>
175
176    <div class="footer">
177      &copy; Copyright 2009-2010, GeoExt Community.
178    </div>
179  </body>
180</html>
Note: See TracBrowser for help on using the repository browser.