Mercurial > lada > lada-client
comparison app/view/window/Messprogramm.js @ 890:def27cdd0dfa
Added Documentation to Windows
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 23 Jul 2015 16:40:50 +0200 |
parents | 6249b731d438 |
children | 8054232535ba |
comparison
equal
deleted
inserted
replaced
889:81fc61545638 | 890:def27cdd0dfa |
---|---|
27 constrain: true, | 27 constrain: true, |
28 probenWindow: null, | 28 probenWindow: null, |
29 | 29 |
30 record: null, | 30 record: null, |
31 | 31 |
32 /** | |
33 * This function initialises the Window | |
34 */ | |
32 initComponent: function() { | 35 initComponent: function() { |
33 var i18n = Lada.getApplication().bundle; | 36 var i18n = Lada.getApplication().bundle; |
34 var me = this; | 37 var me = this; |
35 | 38 |
36 if (this.record == null) { | 39 if (this.record == null) { |
188 | 191 |
189 enableChildren: function() { | 192 enableChildren: function() { |
190 // there are no children.... | 193 // there are no children.... |
191 }, | 194 }, |
192 | 195 |
196 /** | |
197 * Instructs the fields / forms listed in this method to set a message. | |
198 * @param errors These Errors shall be shown | |
199 * @param warnings These Warning shall be shown | |
200 */ | |
193 setMessages: function(errors, warnings) { | 201 setMessages: function(errors, warnings) { |
194 this.down('messprogrammform').setMessages(errors, warnings); | 202 this.down('messprogrammform').setMessages(errors, warnings); |
195 }, | 203 }, |
196 | 204 |
205 /** | |
206 * Instructs the fields / forms listed in this method to clear their messages. | |
207 */ | |
197 clearMessages: function() { | 208 clearMessages: function() { |
198 this.down('messprogrammform').clearMessages(); | 209 this.down('messprogrammform').clearMessages(); |
199 } | 210 } |
200 }); | 211 }); |