protected void onDetach() {
   super.onDetach();
   Window.removeWindowResizeListener(this.windowListener);
   this.lowerTarget.removeMouseListener(this.getLowerListener());
   this.higherTarget.removeMouseListener(this.getHigherListener());
   this.barTarget.removeMouseListener(this.getBarListener());
   target.removeScrollListener(this.scrollListener);
 }
Ejemplo n.º 2
0
 /** Hide lightbox */
 public void hide() {
   /** @author Luis Faria check if png is null before removing from parent */
   if (GWT.isScript()) {
     if (png != null) {
       png.removeFromParent();
     }
     png = null;
   }
   showSelects();
   child.hide();
   background.hide();
   Window.removeWindowResizeListener(windowResizeListener);
 }