public virtual void windowClosing(WindowEvent @event) { if (@event.getWindow() != this) return; ((Window) this).dispose(); System.exit(0); }
public void RaiseFormClosing(WindowEvent e) { var args = new FormClosingEventArgs(CloseReason.None, false); if (this.FormClosing != null) this.FormClosing(this, args); if (args.Cancel) return; // If the program does not explicitly hide or dispose the window while // processing this event, the window close operation will be cancelled. this.Dispose(); }
public void windowActivated(WindowEvent e) { }
public void RaiseFormClosed(WindowEvent e) { if (this.FormClosed != null) this.FormClosed(this, new FormClosedEventArgs(CloseReason.None)); }
public void windowOpened(WindowEvent e) { }
public void windowIconified(WindowEvent e) { }
public void windowClosing(WindowEvent e) { if (Closing != null) Closing(e); }
public void windowClosed(WindowEvent e) { if (Closed != null) Closed(e); }
/// <summary> /// Processes window state event occuring on this window by /// dispatching them to any registered <code>WindowStateListener</code> /// objects. /// </summary> protected void processWindowStateEvent(WindowEvent @e) { }
/// <summary> /// Processes window focus event occuring on this window by /// dispatching them to any registered WindowFocusListener objects. /// </summary> protected void processWindowFocusEvent(WindowEvent @e) { }
public virtual void windowOpened(WindowEvent @event) { }
public virtual void windowIconified(WindowEvent @event) { }
public virtual void windowDeactivated(WindowEvent @event) { }
public virtual void windowClosed(WindowEvent @event) { }