301302303304305306307308309310311
* */ public boolean tryToClose() { if (_listenerManager.countListeners() > 0) { _listenerManager.handleEvent(new WindowEvent(this, WindowEvent.CLOSING)); return isClosed(); } else { close(); return true; }
681682683684685686687
/** * The method is called, if the window gets focus. */ protected void activate() { _listenerManager.handleEvent(new WindowEvent(this, WindowEvent.ACTIVATED)); }
689690691692693694695
/** * The method is called, if the window loses focus. */ protected void deactivate() { _listenerManager.handleEvent(new WindowEvent(this, WindowEvent.DEACTIVATED)); }
697698699700701702703
/** * The method is called, if the window is closed. */ protected void closed() { _closed = true; _listenerManager.handleEvent(new WindowEvent(this, WindowEvent.CLOSED)); }