 Ext.ns('energywater');

energywater.counterFormWindow = Ext.extend(Ext.Window,{
  title: 'Creation d un nouveau compteur',
  width: 650,
  height: 380,
  layout: 'accordion',
  layoutConfig: {
    titleCollapse: true,
    animate: true,
    activeOnTop: false
  }
  ,initComponent:function() {
    var config = {
      items:[{
        title:'compteurs eau',
        xtype:'watercounterform'
        ,height: 130
        ,padding: '10px'
        ,collapsed:true
      },{
        title:'compteurs energie',
        xtype:'energycounterform'
        ,height: 150
        ,padding: '10px'
        ,collapsed:true
      }]
    };
    // apply config
    Ext.apply(this, Ext.apply(this.initialConfig, config));
    // call parent initComponent
    energywater.counterFormWindow.superclass.initComponent.call(this);
  } // end of function initComponent
  ,onRender:function() {
    // call parent
    energywater.counterFormWindow.superclass.onRender.apply(this, arguments);
    // after parent code, e.g. install event handlers on rendered components
  } // eo function onRender
});

Ext.reg('energywatercounterformwindow', energywater.counterFormWindow);
