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

Added Documentation to Windows
author Dustin Demuth <dustin@intevation.de>
date Thu, 23 Jul 2015 16:40:50 +0200
parents e5f72fb491f4
children
comparison
equal deleted inserted replaced
889:81fc61545638 890:def27cdd0dfa
28 parentWindow: null, 28 parentWindow: null,
29 probe: null, 29 probe: null,
30 record: null, 30 record: null,
31 grid: null, 31 grid: null,
32 32
33 /**
34 * This function initialises the Window
35 */
33 initComponent: function() { 36 initComponent: function() {
34 if (this.record === null) { 37 if (this.record === null) {
35 Ext.Msg.alert('Kein valider Ort ausgewählt!'); 38 Ext.Msg.alert('Kein valider Ort ausgewählt!');
36 this.callParent(arguments); 39 this.callParent(arguments);
37 return; 40 return;
100 }] 103 }]
101 }]; 104 }];
102 this.callParent(arguments); 105 this.callParent(arguments);
103 }, 106 },
104 107
108 /**
109 * Initialise the Data of this Window
110 */
105 initData: function() { 111 initData: function() {
106 Ext.ClassManager.get('Lada.model.Ort').load(this.record.get('id'), { 112 Ext.ClassManager.get('Lada.model.Ort').load(this.record.get('id'), {
107 failure: function(record, action) { 113 failure: function(record, action) {
108 // TODO 114 // TODO
109 }, 115 },
178 context.up('window').down('locationform').setRecord(this.locationRecord); 184 context.up('window').down('locationform').setRecord(this.locationRecord);
179 context.up('window').down('locationform').setReadOnly(false); 185 context.up('window').down('locationform').setReadOnly(false);
180 } 186 }
181 }, 187 },
182 188
189 /**
190 * Instructs the fields / forms listed in this method to set a message.
191 * @param errors These Errors shall be shown
192 * @param warnings These Warning shall be shown
193 */
183 setMessages: function(errors, warnings) { 194 setMessages: function(errors, warnings) {
184 //todo this is a stub 195 //todo this is a stub
185 }, 196 },
186 197
198 /**
199 * Instructs the fields / forms listed in this method to clear their messages.
200 */
187 clearMessages: function() { 201 clearMessages: function() {
188 //todo this is a stub 202 //todo this is a stub
189 } 203 }
190 }); 204 });

http://lada.wald.intevation.org