public void addCloseListener(CloseListener listener){
  closeListeners.add(listener);
}

public void addCloseListener ( CloseListener listener ) { closeListeners . add ( listener ) ; }
add a close listener to the window . all the listeners will be notified when this window is closed .
