org.vishia.gral.swt

## Class SwtGraphicThread.WindowsCloseListener

- java.lang.Object
- - org.vishia.gral.swt.SwtGraphicThread.WindowsCloseListener

- All Implemented Interfaces:
    org.eclipse.swt.widgets.Listener
  Enclosing class:
    SwtGraphicThread

      public final class SwtGraphicThread.WindowsCloseListener
      extends java.lang.Object
      implements org.eclipse.swt.widgets.Listener

  The windows-closing event handler. It is used private only, but public set because documentation. The close event will be fired also when a SubWindow is closed. Therefore test the Shell instance. Only if the main window is closed, bExit should be set to true.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `WindowsCloseListener()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handleEvent(org.eclipse.swt.widgets.Event event)` Invoked when the window is closed; it sets `GralGraphicThread.bExit`, able to get with `GralGraphicThread.isRunning()`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### WindowsCloseListener

          public WindowsCloseListener()

  - ### Method Detail

    - #### handleEvent

          public void handleEvent(org.eclipse.swt.widgets.Event event)

      Invoked when the window is closed; it sets `GralGraphicThread.bExit`, able to get with `GralGraphicThread.isRunning()`.
      Specified by:
        `handleEvent` in interface `org.eclipse.swt.widgets.Listener`
      See Also:
        `Listener.handleEvent(org.eclipse.swt.widgets.Event)`