annotate app/view/widgets/Messmethode.js @ 479:d00cc841a876

Set size on initialize in windows.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 21 Jan 2014 15:08:53 +0100
parents debfcc7713e3
children e45f4df57938
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 445
diff changeset
8
178
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 var mmtStore = Ext.create('Ext.data.Store', {
445
a122424f2f0f Fixed typos in fields.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 422
diff changeset
10 fields: ['mmtId', 'messmethode'],
260
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 178
diff changeset
11 sorters: [{
422
f9bb1ecf6462 Removed trailing commas.
Raimund Renkert <rrenkert@intevation.de>
parents: 367
diff changeset
12 property: 'mmtId'
260
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 178
diff changeset
13 }],
367
cdef828f8049 Set autoload to true
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 355
diff changeset
14 autoLoad: true,
178
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 proxy: {
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 type: 'ajax',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 api: {
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 read: 'server/rest/messmethode'
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 },
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 reader: {
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 type: 'json',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 root: 'data'
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 }
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 }
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 });
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26
352
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 272
diff changeset
27 /**
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 272
diff changeset
28 * Combobox for Messmethode
5fbcbf330839 Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 272
diff changeset
29 */
178
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 Ext.define('Lada.view.widgets.Messmethode' ,{
445
a122424f2f0f Fixed typos in fields.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 422
diff changeset
31 tpl: '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >{mmtId} - {messmethode}</div></tpl>',
178
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 extend: 'Ext.form.ComboBox',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
33 alias: 'widget.messmethode',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
34 store: mmtStore,
445
a122424f2f0f Fixed typos in fields.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 422
diff changeset
35 displayField:'messmethode',
178
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 valueField: 'mmtId',
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 emptyText:'Wählen Sie eine Messmethode',
355
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
38 // Enable filtering of comboboxes
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
39 autoSelect: false,
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
40 queryMode: 'local',
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
41 triggerAction : 'all',
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
42 typeAhead: true,
596501c16560 Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 352
diff changeset
43 minChars: 0,
178
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
44 initComponent: function() {
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
45 this.callParent(arguments);
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
46 }
c53f3110852e Added Messmethode.js
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
47 });

http://lada.wald.intevation.org