Mercurial > lada > lada-client
view app/view/window/ProbeCreate.js @ 707:c632c7c34029
added disable/enableChildren Method
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 27 Mar 2015 15:22:32 +0100 |
parents | 6a6d1b02a1a3 |
children | 6f6d2df00130 |
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=3) * and comes with ABSOLUTELY NO WARRANTY! Check out * the documentation coming with IMIS-Labordaten-Application for details. */ /* * Window to edit a Probe */ Ext.define('Lada.view.window.ProbeCreate', { extend: 'Ext.window.Window', alias: 'widget.probecreate', requires: [ 'Lada.view.form.Probe' ], collapsible: true, maximizable: true, autoShow: true, autoScroll: true, layout: 'fit', constrain: true, record: null, initComponent: function() { this.title = '§3-Probe'; this.buttons = [{ text: 'Schließen', scope: this, handler: this.close }]; this.width = 700; // InitialConfig is the config object passed to the constructor on // creation of this window. We need to pass it throuh to the form as // we need the "modelId" param to load the correct item. this.items = [{ border: 0, autoScroll: true, items: [{ xtype: 'probeform' }] }]; this.callParent(arguments); }, initData: function() { var record = Ext.create('Lada.model.Probe'); this.down('probeform').setRecord(record); }, setMessages: function(errors, warnings) { this.down('probeform').setMessages(errors, warnings); }, clearMessages: function() { this.down('probeform').clearMessages(); }, disableChildren: function(){ //intentionally! return true; }, enableChildren: function(){ //intentionally! return true; } });