code: @Override
      public void handle(final WindowEvent windowEvent) {
  
          final EventType<?> type = windowEvent.getEventType();
  
          if (WindowEvent.WINDOW_CLOSE_REQUEST == type) {
              adapter().windowCloseRequest(windowEvent);
          } else if (WindowEvent.WINDOW_HIDDEN == type) {
              adapter().windowHidden(windowEvent);
          } else if (WindowEvent.WINDOW_HIDING == type) {
              adapter().windowHiding(windowEvent);
          } else if (WindowEvent.WINDOW_SHOWING == type) {
              adapter().windowShowing(windowEvent);
          } else if (WindowEvent.WINDOW_SHOWN == type) {
              adapter().windowShown(windowEvent);
          } else {
              adapter().window(windowEvent);
          }
  
      }
docs: {@inheritDoc}