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/_sources/lib/GeoExt/plugins/PrintProviderField.txt @ 81

Revision 76, 2.5 KB checked in by djay, 12 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
1
2.. currentmodule:: GeoExt.plugins
3
4:class:`GeoExt.plugins.PrintProviderField`
5================================================================================
6
7
8.. cssclass:: meta
9
10
11Extends
12    * `Ext.util.Observable <http://dev.sencha.com/deploy/dev/docs/?class=Ext.util.Observable>`_
13   
14
15
16
17
18ptype
19    ``gx_printproviderfield``
20
21
22
23.. class:: PrintProviderField
24
25A plugin for ``Ext.form.Field`` components which provides synchronization
26with a :class:`GeoExt.data.PrintProvider`.
27
28
29
30Example Use
31-----------
32
33A form with combo boxes for layout and resolution, and a text field for a
34map title. The latter is a custom parameter to the print module, which is
35a default for all print pages. For setting custom parameters on the page
36level, use :class:`GeoExt.plugins.PrintPageField`):
37
38.. code-block:: javascript
39
40    var printProvider = new GeoExt.data.PrintProvider({
41        capabilities: printCapabilities
42    });
43    new Ext.form.FormPanel({
44        renderTo: "form",
45        width: 200,
46        height: 300,
47        items: [{
48            xtype: "combo",
49            displayField: "name",
50            store: printProvider.layouts, // printProvider.layout
51            fieldLabel: "Layout",
52            typeAhead: true,
53            mode: "local",
54            forceSelection: true,
55            triggerAction: "all",
56            selectOnFocus: true,
57            plugins: new GeoExt.plugins.PrintProviderField({
58                printProvider: printProvider
59            })
60        }, {
61            xtype: "combo",
62            displayField: "name",
63            store: printProvider.dpis, // printProvider.dpi
64            fieldLabel: "Resolution",
65            typeAhead: true,
66            mode: "local",
67            forceSelection: true,
68            triggerAction: "all",
69            selectOnFocus: true,
70            plugins: new GeoExt.plugins.PrintProviderField({
71                printProvider: printProvider
72            })
73        }, {
74            xtype: "textfield",
75            name: "mapTitle", // printProvider.customParams.mapTitle
76            fieldLabel: "Map Title",
77            plugins: new GeoExt.plugins.PrintProviderField({
78                printProvider: printProvider
79            })
80        }]
81    }):
82
83   
84
85
86Config Options
87--------------
88
89Configuration properties in addition to
90those listed for `Ext.util.Observable <http://dev.sencha.com/deploy/dev/docs/?class=Ext.util.Observable>`_.
91
92
93.. describe:: printProvider
94
95    ``GeoExt.data.PrintProvider`` The print provider to use with this
96    plugin's field. Not required if set on the owner container of the
97    field.
98
99
100
101
102
103
104
105
106
Note: See TracBrowser for help on using the repository browser.