text: // vim: sw=2:ts=2:nu:nospell:fdc=2:expandtab
  /**
  * @class Ext.ux.SimpleIFrame
  * @extends Ext.Panel
  *
  * A simple ExtJS 4 implementaton of an iframe providing basic functionality.
  * For example:
  *
  * var panel=Ext.create('Ext.ux.SimpleIFrame', {
  *   border: false,
  *   src: 'http://localhost'
  * });
  * panel.setSrc('http://www.sencha.com');
  * panel.reset();
  * panel.reload();
  * panel.getSrc();
  * panel.update('<div><b>Some Content....</b></div>');
  * panel.destroy();
  *
  * @author    Conor Armstrong
  * @copyright (c) 2011 Conor Armstrong
  * @date      12 April 2011
  * @version   0.1
  *
  * @license Ext.ux.SimpleIFrame.js is licensed under the terms of the Open Source
  * LGPL 3.0 license. Commercial use is permitted to the extent that the 
  * code/component(s) do NOT become part of another Open Source or Commercially
  * licensed development library or toolkit without explicit permission.
  * 
  * <p>License details: <a href="http://www.gnu.org/licenses/lgpl.html"
  * target="_blank">http://www.gnu.org/licenses/lgpl.html</a></p>
  *
  */
  
  
  
  Ext.define('MetApp.resources.ux.SimpleIFrame', {
    extend: 'Ext.Panel',
    alias: 'widget.simpleiframe',
    src: 'about:blank',
    loadingText: 'Loading ...',
    initComponent: function(){
      this.updateHTML();
      this.callParent();
    },
    updateHTML: function() {
      this.html='<iframe id="iframe-'+this.id+'"'+
          ' style="overflow:auto;width:100%;height:100%;"'+
          ' frameborder="0" '+
          ' src="'+this.src+'"'+
          '></iframe>';
    }
  });