BaseComponent.js 474 Bytes
// Define the base class
Ext.define('amdaPlotComp.plotFunction.BaseComponent', {
    extend: 'Ext.form.FieldSet',

    collapsible: false,
    layout: LAYOUT_STYLE,
    
    /**
     * 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');
    }
});