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/PrintPageField.html @ 76

Revision 76, 12.9 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.PrintPageField &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.PrintProviderField" href="PrintProviderField.html" />
26    <link rel="prev" title="GeoExt.plugins.PrintExtent" href="PrintExtent.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 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.PrintPageField</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.PrintPageField</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="PrintExtent.html"
78                                  title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">GeoExt.plugins.PrintExtent</span></tt></a></p>
79            <h4>Next topic</h4>
80            <p class="topless"><a href="PrintProviderField.html"
81                                  title="next chapter"><tt class="docutils literal"><span class="pre">GeoExt.plugins.PrintProviderField</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-printpagefield">
92<h1><a title="GeoExt.plugins.PrintPageField" class="reference internal" href="#GeoExt.plugins.PrintPageField"><tt class="xref docutils literal"><span class="pre">GeoExt.plugins.PrintPageField</span></tt></a><a class="headerlink" href="#geoext-plugins-printpagefield" title="Permalink to this headline">¶</a></h1>
93<dl class="meta docutils">
94<dt>Extends</dt>
95<dd><ul class="first last simple">
96<li><a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.util.Observable">Ext.util.Observable</a></li>
97</ul>
98</dd>
99<dt>ptype</dt>
100<dd><tt class="docutils literal"><span class="pre">gx_printpagefield</span></tt></dd>
101</dl>
102<dl class="class">
103<dt id="GeoExt.plugins.PrintPageField">
104<em class="property">class </em><tt class="descclassname">GeoExt.plugins.</tt><tt class="descname">PrintPageField</tt><a class="headerlink" href="#GeoExt.plugins.PrintPageField" title="Permalink to this definition">¶</a></dt>
105<dd></dd></dl>
106
107<p>A plugin for <tt class="docutils literal"><span class="pre">Ext.form.Field</span></tt> components which provides synchronization
108with a <a title="GeoExt.data.PrintPage" class="reference external" href="../data/PrintPage.html#GeoExt.data.PrintPage"><tt class="xref docutils literal"><span class="pre">GeoExt.data.PrintPage</span></tt></a>. The field name has to match the
109respective property of the printPage (e.g. <tt class="docutils literal"><span class="pre">scale</span></tt>, <tt class="docutils literal"><span class="pre">rotation</span></tt>).</p>
110<div class="section" id="example-use">
111<h2>Example Use<a class="headerlink" href="#example-use" title="Permalink to this headline">¶</a></h2>
112<p>A form with a combo box for the scale and text fields for rotation and a
113page title. The page title is a custom parameter of the print module&#8217;s
114page configuration:</p>
115<div class="highlight-javascript"><div class="highlight"><pre><span class="kd">var</span> <span class="nx">printPage</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">PrintPage</span><span class="p">({</span>
116    <span class="nx">printProvider</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">PrintProvider</span><span class="p">({</span>
117        <span class="nx">capabilities</span><span class="o">:</span> <span class="nx">printCapabilities</span>
118    <span class="p">})</span>
119<span class="p">});</span>
120<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>
121    <span class="nx">renderTo</span><span class="o">:</span> <span class="s2">&quot;form&quot;</span><span class="p">,</span>
122    <span class="nx">width</span><span class="o">:</span> <span class="mi">200</span><span class="p">,</span>
123    <span class="nx">height</span><span class="o">:</span> <span class="mi">300</span><span class="p">,</span>
124    <span class="nx">items</span><span class="o">:</span> <span class="p">[{</span>
125        <span class="nx">xtype</span><span class="o">:</span> <span class="s2">&quot;combo&quot;</span><span class="p">,</span>
126        <span class="nx">displayField</span><span class="o">:</span> <span class="s2">&quot;name&quot;</span><span class="p">,</span>
127        <span class="nx">store</span><span class="o">:</span> <span class="nx">printPage</span><span class="p">.</span><span class="nx">scales</span><span class="p">,</span> <span class="c1">// printPage.scale</span>
128        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;scale&quot;</span><span class="p">,</span>
129        <span class="nx">fieldLabel</span><span class="o">:</span> <span class="s2">&quot;Scale&quot;</span><span class="p">,</span>
130        <span class="nx">typeAhead</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
131        <span class="nx">mode</span><span class="o">:</span> <span class="s2">&quot;local&quot;</span><span class="p">,</span>
132        <span class="nx">forceSelection</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
133        <span class="nx">triggerAction</span><span class="o">:</span> <span class="s2">&quot;all&quot;</span><span class="p">,</span>
134        <span class="nx">selectOnFocus</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
135        <span class="nx">plugins</span><span class="o">:</span> <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">PrintPageField</span><span class="p">({</span>
136            <span class="nx">printPage</span><span class="o">:</span> <span class="nx">printPage</span>
137        <span class="p">})</span>
138    <span class="p">},</span> <span class="p">{</span>
139        <span class="nx">xtype</span><span class="o">:</span> <span class="s2">&quot;textfield&quot;</span><span class="p">,</span>
140        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;rotation&quot;</span><span class="p">,</span> <span class="c1">// printPage.rotation</span>
141        <span class="nx">fieldLabel</span><span class="o">:</span> <span class="s2">&quot;Rotation&quot;</span><span class="p">,</span>
142        <span class="nx">plugins</span><span class="o">:</span> <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">PrintPageField</span><span class="p">({</span>
143            <span class="nx">printPage</span><span class="o">:</span> <span class="nx">printPage</span>
144        <span class="p">})</span>
145    <span class="p">},</span> <span class="p">{</span>
146        <span class="nx">xtype</span><span class="o">:</span> <span class="s2">&quot;textfield&quot;</span><span class="p">,</span>
147        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;mapTitle&quot;</span><span class="p">,</span> <span class="c1">// printPage.customParams[&quot;mapTitle&quot;]</span>
148        <span class="nx">fieldLabel</span><span class="o">:</span> <span class="s2">&quot;Map Title&quot;</span><span class="p">,</span>
149        <span class="nx">plugins</span><span class="o">:</span> <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">PrintPageField</span><span class="p">({</span>
150            <span class="nx">printPage</span><span class="o">:</span> <span class="nx">printPage</span>
151        <span class="p">})</span>
152    <span class="p">}]</span>
153<span class="p">});</span>
154</pre></div>
155</div>
156</div>
157<div class="section" id="config-options">
158<h2>Config Options<a class="headerlink" href="#config-options" title="Permalink to this headline">¶</a></h2>
159<p>Configuration properties in addition to
160those listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.util.Observable">Ext.util.Observable</a>.</p>
161<dl class="describe">
162<dt>
163<tt class="descname">printPage</tt></dt>
164<dd><tt class="docutils literal"><span class="pre">GeoExt.data.PrintPage</span></tt> The print page to synchronize with.</dd></dl>
165
166</div>
167</div>
168
169
170          </div>
171        </div>
172      </div>
173      <div class="clearer"></div>
174    </div>
175    <div class="related">
176      <h3>Navigation</h3>
177      <ul>
178            <li class="right" style="margin-right: 10px">
179              <a href="../../../genindex.html" title="General Index"
180                 accesskey="I">index</a></li>
181            <li class="right" >
182              <a href="../../../modindex.html" title="Global Module Index"
183                 accesskey="M">modules</a> |</li>
184            <li class="right" >
185              <a href="PrintProviderField.html" title="GeoExt.plugins.PrintProviderField"
186                 accesskey="N">next</a> |</li>
187            <li class="right" >
188              <a href="PrintExtent.html" title="GeoExt.plugins.PrintExtent"
189                 accesskey="P">previous</a> |</li>
190        <li><a href="../../../index.html">GeoExt</a> &raquo;</li>
191          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
192          <li><a href="../plugins.html" ><tt class="docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.plugins</span></tt></a> &raquo;</li>
193        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.plugins.PrintPageField</span></tt></a></li>
194      </ul>
195    </div>
196
197    <div class="footer">
198      &copy; Copyright 2009-2010, GeoExt Community.
199    </div>
200  </body>
201</html>
Note: See TracBrowser for help on using the repository browser.