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

Added Documentation to Windows
author Dustin Demuth <dustin@intevation.de>
date Thu, 23 Jul 2015 16:40:50 +0200
parents 392be36fe3ac
children 8054232535ba
comparison
equal deleted inserted replaced
889:81fc61545638 890:def27cdd0dfa
24 layout: 'fit', 24 layout: 'fit',
25 constrain: true, 25 constrain: true,
26 26
27 record: null, 27 record: null,
28 28
29 /**
30 * This function initialises the Window
31 */
29 initComponent: function() { 32 initComponent: function() {
30 this.title = '§3-Probe'; 33 this.title = '§3-Probe';
31 this.buttons = [{ 34 this.buttons = [{
32 text: 'Schließen', 35 text: 'Schließen',
33 scope: this, 36 scope: this,
57 }] 60 }]
58 }]; 61 }];
59 this.callParent(arguments); 62 this.callParent(arguments);
60 }, 63 },
61 64
65 /**
66 * Initialise the Data of this Window
67 */
62 initData: function() { 68 initData: function() {
63 var record = Ext.create('Lada.model.Probe'); 69 var record = Ext.create('Lada.model.Probe');
64 this.down('probeform').setRecord(record); 70 this.down('probeform').setRecord(record);
65 }, 71 },
66 72
73 /**
74 * Instructs the fields / forms listed in this method to set a message.
75 * @param errors These Errors shall be shown
76 * @param warnings These Warning shall be shown
77 */
67 setMessages: function(errors, warnings) { 78 setMessages: function(errors, warnings) {
68 this.down('probeform').setMessages(errors, warnings); 79 this.down('probeform').setMessages(errors, warnings);
69 }, 80 },
70 81
82 /**
83 * Instructs the fields / forms listed in this method to clear their messages.
84 */
71 clearMessages: function() { 85 clearMessages: function() {
72 this.down('probeform').clearMessages(); 86 this.down('probeform').clearMessages();
73 }, 87 },
74 88
89 /**
90 * Disable the Childelements of this window
91 */
75 disableChildren: function(){ 92 disableChildren: function(){
76 //intentionally! 93 //intentionally!
77 return true; 94 return true;
78 }, 95 },
79 96
97 /**
98 * Enable the Childelements of this window
99 */
80 enableChildren: function(){ 100 enableChildren: function(){
81 //intentionally! 101 //intentionally!
82 return true; 102 return true;
83 } 103 }
84 }); 104 });

http://lada.wald.intevation.org