diff 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
line wrap: on
line diff
--- a/app/view/window/OrtEdit.js	Thu Jul 23 16:40:28 2015 +0200
+++ b/app/view/window/OrtEdit.js	Thu Jul 23 16:40:50 2015 +0200
@@ -30,6 +30,9 @@
     record: null,
     grid: null,
 
+    /**
+     * This function initialises the Window
+     */
     initComponent: function() {
         if (this.record === null) {
             Ext.Msg.alert('Kein valider Ort ausgewählt!');
@@ -102,6 +105,9 @@
         this.callParent(arguments);
     },
 
+    /**
+     * Initialise the Data of this Window
+     */
     initData: function() {
         Ext.ClassManager.get('Lada.model.Ort').load(this.record.get('id'), {
             failure: function(record, action) {
@@ -180,10 +186,18 @@
         }
     },
 
+    /**
+     * 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
     }

http://lada.wald.intevation.org