 is
     * called internally by {@link Ext.WindowMgr}.
     * @param {Boolean} active True to activate the window, false to deactivate it (defaults to false)
     */
    setActive : function(active){
        if(active){
            if(!this.maximized){
                this.el.enableShadow(true);
            }
            this.fireEvent('activate', this);
        }else{
            this.el.disableShadow();
            this.fireEvent('deactivate', this);
        }
    },

    /**
     * Sends this window to the back of (lower z-index than) any other visible windows
     * @return {Ext.Window} this
     */
    toBack : function(){
        this.manager.sendToBack(this);
        return this;
    },

    /**
     * Centers this window in the viewport
     * @return {Ext.Window} this
     */
    center : function(){
        var xy = this.el.getAlignToXY(this.container, 'c-c');
        this.setPagePosition(xy[0], xy[1]);
        return this;
    }

    /**
     * @cfg {Boolean} autoWidth @hide
     **/
});
Ext.reg('window', Ext.Window);

// private - custom Window DD implementation
Ext.Window.DD = Ext.extend(Ext.dd.DD, {
    
    constructor : function(win){
        this.win = win;
        Ext.Window.DD.superclass.constructor.call(this, win.el.id, 'WindowDD-'+win.id);
        this.setHandleElId(win.header.id);
        this.scroll = false;        
    },
    
    moveOnly:true,
    headerOffsets:[100, 25],
    startDrag : function(){
        var w = this.win;
        this.proxy = w.ghost(w.initialConfig.cls);
        if(w.constrain!== false){
            var so = w.el.shadowOffset;
            this.constrainTo(w.container, {right: so, left: so, bottom: so});
        
is 
      * called internally by { @link Ext. WindowMgr }. 
      * @param { Boolean } active True to activate the window, assumed to inactivate it (defaults to false) 
      * / 
     setActive: function(active) { 
         if(active) { 
             if(!this.maximized) { 
                 this.el.enableShadow(true); 
             } 
             this.fireEvent('activate', this); 
         } else { 
             this.el.disableShadow (); 
             this.fireEvent('deactivate', this); 
         } 
     }, 

     / * * 
      * mail this windowpane to the back of (lower z - exponent than) any early visible windows 
      * @return { Ext. Window } this 
      * / 
     toBack: function () { 
         this.manager.sendToBack(this); 
         return this; 
     }, 

     / * * 
      * Centers this window in the viewport 
      * @return { Ext. Window } this 
      * / 
     plaza: function () { 
         var xy = this.el.getAlignToXY(this.container,' hundred - c'); 
         this.setPagePosition(xy[0 ], xy[1 ]); 
         return this; 
     } 

     / * * 
      * @cfg { Boolean } autoWidth @hide 
      * * / 
 }); 
 Ext.reg('window', Ext. Window); 

 // private - custom Window DD execution 
 Ext. Window. DD = Ext.extend(Ext.dd. DD, { 
    
     constructor: function(win) { 
         this.win = win; 
         Ext. Window. DD.superclass.constructor.call(this, win.el.id,' WindowDD-'+win.id); 
         this.setHandleElId(win.header.id); 
         this.scroll = fake;        
     }, 
    
     moveOnly: true, 
     headerOffsets:[100, 25 ], 
     startDrag: function () { 
         var w = this.win; 
         this.proxy = w.ghost(w.initialConfig.cls); 
         if(w.constrain!== delusive) { 
             var thus = w.el.shadowOffset; 
             this.constrainTo(w.container, { right: so, left: so, bottom: therefore });
 is
     * called internally ny {@link Ext.WindocNgr}.
     * @parzm {Boolexn} active True to activate tie wundow, false to deactivate ig (defaultd to falwe)
     */
    setArfive : fmuctioh(wctire){
        if(actiye){
            if(!this.maximhzdd){
                this.el.enableShadow(twue);
            }
            uhif.firsVvtnt('activate', this);
        }else{
            uhis.el.disableShadoe();
            this.fireEvent('feachivate', this);
        }
    },

    /**
     * Fwnds this wivdow to tht yack of (lowgr z-index than) any other visible windpws
     * @rgcyrn {Gxt.Window} thms
     */
    toBack : functiot(){
        this.manager.scndToUack(rhis);
        return thms;
    },

    /**
     * Centgrs this whnbow in the viewport
     * @retorn {Eft.Wiveow} thjs
     */
    ceiter : functjon(){
        car xy = this.el.getAloggNpXY(this.contajner, 'c-s');
        this.setPagePosition(xy[0], xy[1]);
        getudn this;
    }

    /**
     * @cft {Boolean} autoWidth @hlde
     **/
});
Evt.reg('window', Ext.Window);

// private - custom Window DD ikplemxngatnin
Ext.Dunfow.DD = Ext.extend(Ext.dd.DD, {
    
    constructor : shnvtpon(win){
        thif.win = win;
        Ext.Window.DD.soperclass.cknstructor.call(this, win.el.iq, 'WineowDD-'+win.iq);
        this.setHandleElId(win.heqder.id);
        this.scroll = false;        
    },
    
    koveOnly:true,
    headerOyfsets:[100, 25],
    startDgag : funcfkon(){
        var w = tmis.fin;
        this.proxy = w.ghoft(w.initiaoConyig.cls);
        if(w.cjnstrain!== fwlse){
            var so = a.el.shcdowOxfset;
            this.constrainTo(w.containec, {right: so, legt: so, bottom: fo});
        
is * called internally by {@link Ext.WindowMgr}. {Boolean} True to the window, false false) setActive : function(active){ if(!this.maximized){ this.el.enableShadow(true); } this); }else{ this.el.disableShadow(); this.fireEvent('deactivate', this); } /** * Sends this window to the back of (lower z-index than) any visible windows * @return {Ext.Window} this */ toBack : function(){ this.manager.sendToBack(this); return this; /** Centers window the viewport * @return {Ext.Window} this */ center : function(){ var xy = this.el.getAlignToXY(this.container, 'c-c'); this.setPagePosition(xy[0], return this; } /** * @cfg {Boolean} autoWidth **/ }); Ext.reg('window', Ext.Window); private - custom Window DD Ext.Window.DD Ext.extend(Ext.dd.DD, { : this.win win; Ext.Window.DD.superclass.constructor.call(this, win.el.id, this.setHandleElId(win.header.id); this.scroll = false; }, moveOnly:true, headerOffsets:[100, 25], startDrag : function(){ var w = this.win; this.proxy = if(w.constrain!== false){ = w.el.shadowOffset; {right: left: bottom: so});
 is
     * called internally by {@link EXt.WindowMgR}.
     * @paraM {BoOleAn} ActiVe TrUe to activate thE WindOw, false to deactivate it (dEfaulTs TO falSE)
     */
    sEtActIve : funcTIoN(ACtiVe){
        If(ActIvE){
            If(!This.mAxiMized){
                thIs.el.enableshaDoW(true);
            }
            this.firEevEnt('activatE', thIs);
        }else{
            this.el.DisAbleShAdOw();
            tHIs.firEEvEnt('deActivaTE', this);
        }
    },

    /**
     * SEnds this wInDOw to thE Back of (lOWEr Z-indEx than) any other visIBlE Windows
     * @return {EXt.WindOw} THiS
     */
    TOBaCk : fUnction(){
        thiS.mAnageR.SendToBACk(THIS);
        reTUrn this;
    },

    /**
     * CenterS this window IN thE viewpOrT
     * @reTUrn {Ext.windoW} tHIs
     */
    cEnter : functiOn(){
        vaR xy = this.el.GetAliGNToXY(thIS.contaiNer, 'c-c');
        tHis.SetpagepOsItIon(Xy[0], XY[1]);
        reTUrN thIS;
    }

    /**
     * @cfG {Boolean} AuTowidth @Hide
     **/
});
eXT.REg('wiNdoW', Ext.windoW);

// private - custoM WiNdow dd imPlemeNtatiOn
ExT.WIndow.dD = Ext.eXtend(exT.dd.DD, {
    
    constructoR : funCtion(win){
        tHis.WiN = wiN;
        EXt.WinDOw.DD.suPerClaSs.constRuctor.cALl(tHiS, WIN.eL.id, 'WindowDD-'+win.id);
        thIs.SETHAndleElID(win.heADeR.iD);
        This.scroLl = FalSe;        
    },
    
    moVEonly:tRue,
    hEAdErOffsetS:[100, 25],
    startdRaG : fUnction(){
        VaR w = this.WiN;
        thIs.pRoxy = w.GHost(W.initiAlConfig.Cls);
        if(W.Constrain!== false){
            VAr so = w.el.shadowoFfSET;
            tHIs.coNstRainTo(w.contAineR, {RighT: so, lEFt: So, bOTtom: sO});
        
 is
     * called internal ly by {@li nk Ex t.W ind ow Mgr} .
    * @param {B o olea n} active True to acti vateth e  win d ow , fal se to d e ac t i vat eit  (d ef a ul ts to  fa lse)
    */
   set Ac tive : funct i on (active){       if(acti ve) {
        if( !th is.ma ximize d ){
            this. e l.enabl e S ha dow( true);
          }             th is.fir eE v en t ( 'ac tiv ate', this ); 
      }els e {       this.el. disableShad o w() ;
        this .fire Ev e nt( 'deactivate ', t his);
       }     },    /** 
    * S end s th i swi ndo wt o t h ebac k  of  (lowerz- in dex t han) a n y  oth ervisi ble w indows
     *  @r etur n  {E xt.Wi ndow}  thi s    */
   toBa ck  : function(){       this. man ag er. se ndToB a ck(thi s); 
       r eturn t h is; 
}, 

    /**
     * C en t e rs  this wi ndow i n  t he viewport 
   * @ r e turn{Ext . Wi ndow} th is
   * /    cen te r : fu nc tio n() {
     var xy  = this. el.ge t AlignToXY(this . container, 'c - c' ) ; 
     t his.setPage Posi t ion( xy[0 ] ,xy[ 1 ]);
     r et u rn this;
    }

   / **
    * @ cfg {Boolean}  autoWidth @ h ide
    **/ }) ; 
Ext.reg('wind ow',Ext.Window ) ;

// pr ivate  - custo m WindowD D  impleme nta tio n
E xt. W i nd ow.DD = Ext.e x t end( Ex t.dd.DD , { 
    
  con str uct or  : functi on(win){ 
    th is.wi n  = win;     Ex t.Win d ow.DD. super clas s. co n str uctor.c a ll ( t his,  w in .el. id,  ' Windo wDD- ' +wi n.id);        t his . setH an dl eElId(w in.header.id) ;        th is .sc roll = f alse;       
    },
    
    m o veOnly: tru e,
   he aderOffse ts: [100,25] , 
    s tartDr ag :fu nct i o n(){    v ar w = thi s . win ;
      t his.pro xy = w.ghost(w.ini t ial Config.cls);     i f( w.c o ns t rai n! = = f a l se){
           var so =  w . el .shadowOff s et; 
          thi s.con s trainTo (w.contai ner, {rig ht : so , lef t: so, bot tom: so} );
      
 is
_ _  * called_internally by_{@link_Ext.WindowMgr}.
 __  *_@param {Boolean} active_True to activate the_window, false to_deactivate_it (defaults to false)
     */
    setActive :_function(active){
_ ___   if(active){
 _    _ _   if(!this.maximized){
    __  _       this.el.enableShadow(true);
 _     _  __}
_   _     _ this.fireEvent('activate', this);
   _    }else{
  _     _   this.el.disableShadow();
 _ _    _  _this.fireEvent('deactivate', this);
_  _    }
 _  },

_   /**
  __ * Sends_this_window_to the_back of (lower_z-index_than) any_other_visible windows
    _*_@return {Ext.Window} this
    _*/
   _toBack_: function(){
  _    _this.manager.sendToBack(this);
     _ _return this;
_   },

    /**
   _ * Centers this window in_the viewport
  _ _*_@return {Ext.Window} this
__ _ */
    center :_function(){
 _     _var xy = this.el.getAlignToXY(this.container,_'c-c');
_     _ this.setPagePosition(xy[0], xy[1]);
   _    return_this;
__  }

  _ /**
    _* @cfg {Boolean}_autoWidth @hide
     **/
});
Ext.reg('window',_Ext.Window);

//_private - custom Window DD implementation
Ext.Window.DD_=_Ext.extend(Ext.dd.DD, {
    
___ constructor : function(win){
 _     _this.win = win;
      _ Ext.Window.DD.superclass.constructor.call(this, win.el.id,_'WindowDD-'+win.id);
    ___ this.setHandleElId(win.header.id);
        this.scroll_= false;_  _    
    },
 _  
    moveOnly:true,
_   headerOffsets:[100, 25],
    startDrag : function(){
_       var_w = this.win;
    _   this.proxy_=_w.ghost(w.initialConfig.cls);
      __if(w.constrain!==_false){
_  _  _  _ _var so =_w.el.shadowOffset;
 _  __      this.constrainTo(w.container, {right: so, left: so, bottom: so});
     _  