diff 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
line wrap: on
line diff
--- a/app/view/window/MessungCreate.js	Thu Jul 23 16:40:28 2015 +0200
+++ b/app/view/window/MessungCreate.js	Thu Jul 23 16:40:50 2015 +0200
@@ -28,6 +28,9 @@
     record: null,
     grid: null,
 
+    /**
+     * This function initialises the Window
+     */
     initComponent: function() {
         this.probe = this.record;
         if (this.probe === null) {
@@ -71,6 +74,9 @@
         this.callParent(arguments);
     },
 
+    /**
+     * Initialise the Data of this Window
+     */
     initData: function() {
         this.clearMessages();
         var messung = Ext.create('Lada.model.Messung', {
@@ -79,18 +85,33 @@
         this.down('messungform').setRecord(messung);
     },
 
+    /**
+     * Instructs the fields / forms listed in this method to set a message.
+     * @param errors These Errors shall be shown
+     * @param warnings These Warning shall be shown
+     */
     setMessages: function(errors, warnings) {
         //todo this is a stub
     },
+
+    /**
+     * Instructs the fields / forms listed in this method to clear their messages.
+     */
     clearMessages: function() {
         //todo this is a stub
     },
 
+    /**
+     * Disable the Childelements of this Window
+     */
     disableChildren: function(){
         //intentionally!
         return true;
     },
 
+    /**
+     * Enable the Childelements of this Window
+     */
     enableChildren: function(){
         //intentionally!
         return true;

http://lada.wald.intevation.org