title: Extjs How to create getter/setter in component
body: <p>I have a code in which I created a component. On click of apply I want to save this forms fields object and make available for getter. So that Parent container can read that.</p>
  
  <p>I also want all field getter/setter, so that can update value runtime. How to achieve this?</p>
  
  <pre><code>Ext.define('MyApp.view.MyForm', {
      extend: 'Ext.form.Panel',
  
      height: 463,
      width: 227,
      bodyPadding: 10,
      title: 'My Form',
  
      initComponent: function() {
          var me = this;
  
          Ext.applyIf(me, {
              items: [
                  {
                      xtype: 'textfield',
                      fieldLabel: 'Component Name',
                      anchor: '100%'
                  },
                  {
                      xtype: 'textfield',
                      fieldLabel: 'Host',
                      anchor: '100%'
                  },
                  {
                      xtype: 'textfield',
                      fieldLabel: 'Port',
                      anchor: '100%'
                  },
                  {
                      xtype: 'textfield',
                      fieldLabel: 'Path',
                      anchor: '100%'
                  },
                  {
                      xtype: 'textareafield',
                      fieldLabel: 'Request Data',
                      anchor: '100%'
                  },
                  {
                      xtype: 'button',
                      text: 'Apply',
                      listeners: {
                          click: {
                              fn: me.onButtonClick,
                              scope: me
                          }
                      }
                  }
              ]
          });
  
          me.callParent(arguments);
      },
          onButtonClick: function(button, e, options) {
                     var form = this.getForm(),
              values = form.getFieldValues(),
                      //make this available to public
              json = Ext.JSON.encode(values);
              console.log(json);
  
  
      }
  
  });
  </code></pre>