comparison app/view/window/MessprogrammOrt.js @ 890:def27cdd0dfa

Added Documentation to Windows
author Dustin Demuth <dustin@intevation.de>
date Thu, 23 Jul 2015 16:40:50 +0200
parents 097d4edc2f00
children 0a47e8af9006
comparison
equal deleted inserted replaced
889:81fc61545638 890:def27cdd0dfa
27 constrain: true, 27 constrain: true,
28 28
29 parentWindow: null, 29 parentWindow: null,
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 37
35 this.title = i18n.getMsg('messprogrammort.window.title'); 38 this.title = i18n.getMsg('messprogrammort.window.title');
36 this.buttons = [{ 39 this.buttons = [{
118 }] 121 }]
119 }]; 122 }];
120 this.callParent(arguments); 123 this.callParent(arguments);
121 }, 124 },
122 125
126 /**
127 * Initialise the Data of this Window.
128 */
123 initData: function() { 129 initData: function() {
124 //Only do this if an OrtId exists... 130 //Only do this if an OrtId exists...
125 var ortId = this.record.get('ortId'); 131 var ortId = this.record.get('ortId');
126 132
127 if (ortId) { 133 if (ortId) {
224 230
225 this.parentWindow.down('messprogrammform') 231 this.parentWindow.down('messprogrammform')
226 .ortWindow = null; 232 .ortWindow = null;
227 this.close(); 233 this.close();
228 }, 234 },
235
236 /**
237 * Instructs the fields / forms listed in this method to set a message.
238 * @param errors These Errors shall be shown
239 * @param warnings These Warning shall be shown
240 */
229 setMessages: function(errors, warnings) { 241 setMessages: function(errors, warnings) {
230 //todo this is a stub 242 //todo this is a stub
231 }, 243 },
232 244
245 /**
246 * Instructs the fields / forms listed in this method to clear their messages.
247 */
233 clearMessages: function() { 248 clearMessages: function() {
234 //todo this is a stub 249 //todo this is a stub
235 } 250 }
236 }); 251 });
237 252

http://lada.wald.intevation.org