Mercurial > lada > lada-client
diff app/view/Viewport.js @ 341:6eaa741b396b
Added documentation.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 13 Aug 2013 11:12:09 +0200 |
parents | 1626279daadb |
children | b8bd8d9a93ab |
line wrap: on
line diff
--- a/app/view/Viewport.js Tue Aug 13 09:52:03 2013 +0200 +++ b/app/view/Viewport.js Tue Aug 13 11:12:09 2013 +0200 @@ -1,3 +1,10 @@ +/** + * Viewport for the Lada-Client + * + * The viewport initialises the graphical elements of the application. For + * debugging it is possible to initialize other components directly see the + * initComponent function. + */ Ext.define('Lada.view.Viewport' ,{ extend: 'Ext.container.Viewport', requires: [ @@ -25,6 +32,10 @@ this.setInfo(); this.callParent(arguments); }, + /** + * Set some information about user, client and server version in the top + * of the application window. The data will be fetched from the server. + */ setInfo: function() { var store = Ext.create('Lada.store.Info'); store.load({ @@ -41,6 +52,10 @@ } }); }, + /** + * Function to initialize the edit window for a priticular probe directly + * @private + */ initProbe: function() { var store = Ext.getStore('Proben'); store.load({ @@ -59,6 +74,10 @@ } }); }, + /** + * Function to initialize the edit window for a priticular messwert directly + * @private + */ initMesswert: function() { var store = Ext.getStore('Messwerte'); store.load({ @@ -72,10 +91,18 @@ } }); }, + /** + * Function to initialize the edit window for a priticular ort directly + * @private + */ initOrt: function() { var ort = Ext.create('Lada.model.Ort'); var win = Ext.create('Lada.view.orte.Create', {model: ort}); }, + /** + * Function to initialize the edit window for a priticular ort directly + * @private + */ initMessung: function() { var store = Ext.getStore('Messungen'); var kstore = Ext.getStore('MKommentare'); @@ -114,6 +141,11 @@ } }); }, + /** + * Function to initialize the search window. This is the default method + * called by the {@link Lada.view.Viewport#initComponent initComponent} method. + * @private + */ initSearch: function() { this.items = { xtype: 'panel',