Mercurial > lada > lada-client
comparison app/view/window/OrtCreate.js @ 890:def27cdd0dfa
Added Documentation to Windows
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 23 Jul 2015 16:40:50 +0200 |
parents | 7267bae1d43f |
children |
comparison
equal
deleted
inserted
replaced
889:81fc61545638 | 890:def27cdd0dfa |
---|---|
26 constrain: true, | 26 constrain: true, |
27 | 27 |
28 record: null, | 28 record: null, |
29 grid: null, | 29 grid: null, |
30 | 30 |
31 /** | |
32 * This function initialises the Window | |
33 */ | |
31 initComponent: function() { | 34 initComponent: function() { |
32 this.title = 'Ort'; | 35 this.title = 'Ort'; |
33 this.buttons = [{ | 36 this.buttons = [{ |
34 text: 'Schließen', | 37 text: 'Schließen', |
35 scope: this, | 38 scope: this, |
85 }] | 88 }] |
86 }]; | 89 }]; |
87 this.callParent(arguments); | 90 this.callParent(arguments); |
88 }, | 91 }, |
89 | 92 |
93 /** | |
94 * Initialise the Data of this Window | |
95 */ | |
90 initData: function() { | 96 initData: function() { |
91 var ort = Ext.create('Lada.model.Ort', { | 97 var ort = Ext.create('Lada.model.Ort', { |
92 probeId: this.record.get('id') | 98 probeId: this.record.get('id') |
93 }); | 99 }); |
94 this.down('ortform').setRecord(ort); | 100 this.down('ortform').setRecord(ort); |
120 context.up('window').down('locationform').setRecord(this.locationRecord); | 126 context.up('window').down('locationform').setRecord(this.locationRecord); |
121 context.up('window').down('locationform').setReadOnly(false); | 127 context.up('window').down('locationform').setReadOnly(false); |
122 } | 128 } |
123 }, | 129 }, |
124 | 130 |
131 /** | |
132 * Instructs the fields / forms listed in this method to set a message. | |
133 * @param errors These Errors shall be shown | |
134 * @param warnings These Warning shall be shown | |
135 */ | |
125 setMessages: function(errors, warnings) { | 136 setMessages: function(errors, warnings) { |
126 //todo this is a stub | 137 //todo this is a stub |
127 }, | 138 }, |
128 | 139 |
140 /** | |
141 * Instructs the fields / forms listed in this method to clear their messages. | |
142 */ | |
129 clearMessages: function() { | 143 clearMessages: function() { |
130 //todo this is a stub | 144 //todo this is a stub |
131 } | 145 } |
132 }); | 146 }); |