rem: bx.addEventListener(qx.constant.Event.CLICK, this._onmaximizebuttonclick, this); 
add: bx.addEventListener(qx.constant.Event.EXECUTE, this._onmaximizebuttonclick, this); 
context: function(vCaption, vIcon, vWindowManager){  qx.ui.popup.Popup.call(this);  // ************************************************************************  //   FUNCTIONAL STYLE  // ************************************************************************  this.setMinWidth(qx.constant.Core.AUTO);  this.setMinHeight(qx.constant.Core.AUTO);  this.setAutoHide(false);  // ************************************************************************  //   MANAGER  // ************************************************************************  // Init Focus Manager  this.activateFocusRoot();  // Init Window Manager  this.setWindowManager(vWindowManager || qx.ui.window.Window.getDefaultWindowManager());  // ************************************************************************  //   RESIZE AND MOVE FRAME  // ************************************************************************  var f = this._frame = new qx.ui.basic.Terminator;  f.setAppearance("window-resize-frame");  // ************************************************************************  //   LAYOUT  // ************************************************************************  var l = this._layout = new qx.ui.layout.VerticalBoxLayout;  l.setEdge(0);  this.add(l);  // ************************************************************************  //   CAPTIONBAR  // ************************************************************************  var cb = this._captionBar = new qx.ui.layout.HorizontalBoxLayout;  cb.setAppearance("window-captionbar");  l.add(cb);  // ************************************************************************  //   CAPTIONICON  // ************************************************************************  if (qx.util.Validation.isValidString(vIcon))  {    var ci = this._captionIcon = new qx.ui.basic.Image(vIcon);    ci.setAppearance("window-captionbar-icon");    cb.add(ci);  }  // ************************************************************************  //   CAPTIONTITLE  // ************************************************************************  var ct = this._captionTitle = new qx.ui.basic.Label(vCaption);  ct.setAppearance("window-captionbar-title");  ct.setSelectable(false);  cb.add(ct);  // ************************************************************************  //   CAPTIONFLEX  // ************************************************************************  var cf = this._captionFlex = new qx.ui.basic.HorizontalSpacer;  cb.add(cf);  // ************************************************************************  //   CAPTIONBUTTONS: MINIMIZE  // ************************************************************************  var bm = this._minimizeButton = new qx.ui.form.Button(null, "widget/window/minimize.gif");  bm.setAppearance("window-captionbar-minimize-button");  bm.setTabIndex(-1);  bm.addEventListener(qx.constant.Event.CLICK, this._onminimizebuttonclick, this);  bm.addEventListener(qx.constant.Event.MOUSEDOWN, this._onbuttonmousedown, this);  cb.add(bm);  // ************************************************************************  //   CAPTIONBUTTONS: RESTORE  // ************************************************************************  var br = this._restoreButton = new qx.ui.form.Button(null, "widget/window/restore.gif");  br.setAppearance("window-captionbar-restore-button");  br.setTabIndex(-1);  br.addEventListener(qx.constant.Event.CLICK, this._onrestorebuttonclick, this);  br.addEventListener(qx.constant.Event.MOUSEDOWN, this._onbuttonmousedown, this);  // don't add initially  // cb.add(br);  // ************************************************************************  //   CAPTIONBUTTONS: MAXIMIZE  // ************************************************************************  var bx = this._maximizeButton = new qx.ui.form.Button(null, "widget/window/maximize.gif");  bx.setAppearance("window-captionbar-maximize-button");  bx.setTabIndex(-1);  bx.addEventListener(qx.constant.Event.CLICK, this._onmaximizebuttonclick, this);  bx.addEventListener(qx.constant.Event.MOUSEDOWN, this._onbuttonmousedown, this);  cb.add(bx);  // ************************************************************************  //   CAPTIONBUTTONS: CLOSE  // ************************************************************************  var bc = this._closeButton = new qx.ui.form.Button(null, "widget/window/close.gif");  bc.setAppearance("window-captionbar-close-button");  bc.setTabIndex(-1);  bc.addEventListener(qx.constant.Event.CLICK, this._onclosebuttonclick, this);  bc.addEventListener(qx.constant.Event.MOUSEDOWN, this._onbuttonmousedown, this);  cb.add(bc);  // ************************************************************************  //   PANE  // ************************************************************************  var p = this._pane = new qx.ui.layout.CanvasLayout;  p.setHeight(qx.constant.Core.FLEX);  p.setOverflow(qx.constant.Style.OVERFLOW_HIDDEN);  l.add(p);  // ************************************************************************  //   STATUSBAR  // ************************************************************************  var sb = this._statusBar = new qx.ui.layout.HorizontalBoxLayout;  sb.setAppearance("window-statusbar");  // ************************************************************************  //   STATUSTEXT  // ************************************************************************  var st = this._statusText = new qx.ui.basic.Label("Ready");  st.setAppearance("window-statusbar-text");  st.setSelectable(false);  sb.add(st);  // ************************************************************************  //   INIT  // ************************************************************************  this.setCaption(vCaption);  this.setIcon(vIcon);  // ************************************************************************  //   EVENTS: WINDOW  // ************************************************************************  this.addEventListener(qx.constant.Event.MOUSEDOWN, this._onwindowmousedown, this);  this.addEventListener(qx.constant.Event.MOUSEUP, this._onwindowmouseup, this);  this.addEventListener(qx.constant.Event.MOUSEMOVE, this._onwindowmousemove, this);  // ************************************************************************  //   EVENTS: CAPTIONBAR  // ************************************************************************  cb.addEventListener(qx.constant.Event.MOUSEDOWN, this._oncaptionmousedown, this);  cb.addEventListener(qx.constant.Event.MOUSEUP, this._oncaptionmouseup, this);  cb.addEventListener(qx.constant.Event.MOUSEMOVE, this._oncaptionmousemove, this);  cb.addEventListener(qx.constant.Event.DBLCLICK, this._oncaptiondblblick, this);  // ************************************************************************  //   REMAPPING  // ************************************************************************  this.remapChildrenHandlingTo(this._pane);});
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/5c722409aed190aa6a7ef6fbb48f92feae607d19/Window.js/buggy/qooxdoo/frontend/framework/source/class/qx/ui/window/Window.js