BaseComponent.js 423 Bytes
// Define the base class
Ext.define('amdaPlotComp.plotFunction.BaseComponent', {
    extend: 'Ext.form.FieldSet',
    
    /**
     * Subclasses are expected to implement this method to retrieve values.
     * @returns {Object} The values.
     * @throws {Error} If the method is not implemented.
     */
    getValues: function () {
        throw new Error('getValues() method must be implemented by subclass');
    }
});