annotate app/view/status/List.js @ 187:ef7b8499c924

Added readonly attribute.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 05 Jul 2013 14:46:43 +0200
parents 23f74ae3bb87
children 7997272bbf4b
rev   line source
182
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 Ext.define('Lada.view.status.List' ,{
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 extend: 'Ext.grid.Panel',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 alias: 'widget.statuslist',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 store: 'Status',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 viewConfig: {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 maxHeight: 350,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 emptyText: 'Keine Statusangaben gefunden.',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 // minHeight and deferEmptyText are needed to be able to show the
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 // emptyText message.
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 minHeight: 35,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 deferEmptyText: false
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 },
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 probeId: null,
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 initComponent: function() {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 this.dockedItems = [
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 xtype: 'toolbar',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 dock: 'top',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 items: [
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 text: 'Hinzufügen',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 icon: 'gfx/plus.gif',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 action: 'add',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 probeId: this.probeId
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 },
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 {
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 text: 'Löschen',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28 icon: 'gfx/minus.gif',
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
29 action: 'delete'
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 ]
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
33 ];
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
34 this.columns = [
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
35 {header: 'Erzeuger', dataIndex: 'erzeuger'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 {header: 'Status', dataIndex: 'status'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 {header: 'Datum', dataIndex: 'sdatum'},
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
38 {header: 'Text', dataIndex: 'stext', flex: 1}
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
39 ];
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
40 this.callParent(arguments);
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
41 }
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
42 });
23f74ae3bb87 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
43

http://lada.wald.intevation.org