torsten@472: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz torsten@472: * Software engineering by Intevation GmbH torsten@472: * torsten@472: * This file is Free Software under the GNU GPL (v>=3) torsten@472: * and comes with ABSOLUTELY NO WARRANTY! Check out raimund@497: * the documentation coming with IMIS-Labordaten-Application for details. torsten@472: */ torsten@472: torsten@352: /** torsten@352: * Combobox for Messgroesse torsten@352: */ raimund@497: Ext.define('Lada.view.widgets.Messgroesse', { raimund@490: extend: 'Ext.form.ComboBox', raimund@490: alias: 'widget.messgroesse', raimund@490: store: 'StaMessgroessen', raimund@490: displayField: 'messgroesse', raimund@490: valueField: 'id', raimund@497: emptyText: 'Wählen Sie eine Messgröße', raimund@490: // Enable filtering of comboboxes raimund@490: autoSelect: false, raimund@490: queryMode: 'local', raimund@497: triggerAction: 'all', raimund@490: typeAhead: false, raimund@490: minChars: 0, torsten@354: torsten@186: initComponent: function() { raimund@496: this.store = Ext.data.StoreManager.get('staMessgroessen'); raimund@490: if (!this.store) { raimund@490: this.store = Ext.create('Lada.store.StaMessgroessen'); raimund@490: } torsten@186: this.callParent(arguments); torsten@186: } torsten@186: });