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

Added Documentation to Windows
author Dustin Demuth <dustin@intevation.de>
date Thu, 23 Jul 2015 16:40:50 +0200
parents 13c0e64e1873
children 8054232535ba
comparison
equal deleted inserted replaced
889:81fc61545638 890:def27cdd0dfa
26 26
27 probe: null, 27 probe: null,
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.probe = this.record; 35 this.probe = this.record;
33 if (this.probe === null) { 36 if (this.probe === null) {
34 Ext.Msg.alert('Zu der Messung existiert keine Probe!'); 37 Ext.Msg.alert('Zu der Messung existiert keine Probe!');
35 this.callParent(arguments); 38 this.callParent(arguments);
69 }] 72 }]
70 }]; 73 }];
71 this.callParent(arguments); 74 this.callParent(arguments);
72 }, 75 },
73 76
77 /**
78 * Initialise the Data of this Window
79 */
74 initData: function() { 80 initData: function() {
75 this.clearMessages(); 81 this.clearMessages();
76 var messung = Ext.create('Lada.model.Messung', { 82 var messung = Ext.create('Lada.model.Messung', {
77 probeId: this.record.get('id') 83 probeId: this.record.get('id')
78 }); 84 });
79 this.down('messungform').setRecord(messung); 85 this.down('messungform').setRecord(messung);
80 }, 86 },
81 87
88 /**
89 * Instructs the fields / forms listed in this method to set a message.
90 * @param errors These Errors shall be shown
91 * @param warnings These Warning shall be shown
92 */
82 setMessages: function(errors, warnings) { 93 setMessages: function(errors, warnings) {
83 //todo this is a stub 94 //todo this is a stub
84 }, 95 },
96
97 /**
98 * Instructs the fields / forms listed in this method to clear their messages.
99 */
85 clearMessages: function() { 100 clearMessages: function() {
86 //todo this is a stub 101 //todo this is a stub
87 }, 102 },
88 103
104 /**
105 * Disable the Childelements of this Window
106 */
89 disableChildren: function(){ 107 disableChildren: function(){
90 //intentionally! 108 //intentionally!
91 return true; 109 return true;
92 }, 110 },
93 111
112 /**
113 * Enable the Childelements of this Window
114 */
94 enableChildren: function(){ 115 enableChildren: function(){
95 //intentionally! 116 //intentionally!
96 return true; 117 return true;
97 } 118 }
98 }); 119 });

http://lada.wald.intevation.org