Ext.ns('water');

water.counterFormWindow = Ext.extend(Ext.Window,{
  title: 'Modification du compteur',
  width: 610,
  height: 220,
  layout: 'column',
  defaults: {
    columnWidth: 1
  }
  ,initComponent:function() {
    var config = {
      items:[{
        xtype:'watercounterform'
        ,height: 160
        ,padding: '10px'
      }]
    };
    // apply config
    Ext.apply(this, Ext.apply(this.initialConfig, config));
    // call parent initComponent
    water.counterFormWindow.superclass.initComponent.call(this);

  } // end of function initComponent
  ,onRender:function() {
    // call parent
    water.counterFormWindow.superclass.onRender.apply(this, arguments);
    // after parent code, e.g. install event handlers on rendered components
  } // eo function onRender
});

Ext.reg('watercounterformwindow', water.counterFormWindow);
