added example record edit dlg to extdoc
authorPhilipp Schüle <p.schuele@metaways.de>
Tue, 29 Sep 2009 15:24:11 +0000 (15:24 +0000)
committerPhilipp Schüle <p.schuele@metaways.de>
Tue, 29 Sep 2009 15:24:11 +0000 (15:24 +0000)
git-svn-id: file:///www/metaways/svn.tine20.org/repo/trunk@10652 8d11cdf3-9d2f-0410-bbb5-e098f187f06b

docs/ext-doc.xml
tine20/ExampleApplication/js/ExampleRecordEditDialog.js

index f96d731..004ac6a 100644 (file)
         <source src="../tine20/Calendar/js/PagingToolbar.js"/> \r
         <source src="../tine20/Calendar/js/ParallelEventsRegistry.js"/> \r
         <source src="../tine20/Calendar/js/RrulePanel.js"/> -->\r
+        <!--<source src="../tine20/Crm/js/Crm.js"/>\r
+        <source src="../tine20/Crm/js/Models.js"/>\r
+        <source src="../tine20/Crm/js/LeadGridPanel.js"/>-->\r
         <source src="../tine20/ExampleApplication/js/ExampleRecordGridPanel.js"/>\r
+        <source src="../tine20/ExampleApplication/js/ExampleRecordEditDialog.js"/>\r
         <source src="../tine20/Felamimail/js" match="*.js"/>\r
         <source src="../tine20/Setup/js" match="*.js"/>\r
         <source src="../tine20/Tasks/js/EditDialog.js"/>\r
index e4243dd..027dc6b 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Tine 2.0
  * 
  * @package     ExampleApplication
  
 Ext.namespace('Tine.ExampleApplication');
 
+/**
+ * @namespace   Tine.ExampleApplication
+ * @class       Tine.ExampleApplication.ExampleRecordEditDialog
+ * @extends     Tine.widgets.dialog.EditDialog
+ * 
+ * <p>ExampleRecord Compose Dialog</p>
+ * <p></p>
+ * 
+ *  @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
+ * @author      Cornelius Weiss <c.weiss@metaways.de>
+ * @copyright   Copyright (c) 2007-2008 Metaways Infosystems GmbH (http://www.metaways.de)
+ * @version     $Id:ExampleRecordEditDialog.js 7170 2009-03-05 10:58:55Z p.schuele@metaways.de $
+ * 
+ * @param       {Object} config
+ * @constructor
+ * Create a new Tine.ExampleApplication.ExampleRecordEditDialog
+ */
 Tine.ExampleApplication.ExampleRecordEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
     
     /**
@@ -26,17 +43,29 @@ Tine.ExampleApplication.ExampleRecordEditDialog = Ext.extend(Tine.widgets.dialog
     
     /**
      * overwrite update toolbars function (we don't have record grants yet)
+     * @private
      */
     updateToolbars: function() {
 
     },
     
+    /**
+     * executed after record got updated from proxy
+     * 
+     * @private
+     */
     onRecordLoad: function() {
        // you can do something here
 
        Tine.ExampleApplication.ExampleRecordEditDialog.superclass.onRecordLoad.call(this);        
     },
     
+    /**
+     * executed when record gets updated from form
+     * - add attachments to record here
+     * 
+     * @private
+     */
     onRecordUpdate: function() {
         Tine.ExampleApplication.ExampleRecordEditDialog.superclass.onRecordUpdate.call(this);
         
@@ -47,6 +76,9 @@ Tine.ExampleApplication.ExampleRecordEditDialog = Ext.extend(Tine.widgets.dialog
      * returns dialog
      * 
      * NOTE: when this method gets called, all initalisation is done.
+     * 
+     * @return {Object}
+     * @private
      */
     getFormItems: function() {
         return {
@@ -159,6 +191,9 @@ Tine.ExampleApplication.ExampleRecordEditDialog = Ext.extend(Tine.widgets.dialog
 
 /**
  * ExampleApplication Edit Popup
+ * 
+ * @param   {Object} config
+ * @return  {Ext.ux.Window}
  */
 Tine.ExampleApplication.ExampleRecordEditDialog.openWindow = function (config) {
     var id = (config.record && config.record.id) ? config.record.id : 0;