Examples of addCloseListener()


Examples of com.vaadin.ui.Window.addCloseListener()

                final Window window = new Window("Simple Window");
                window.setModal(true);
                window.setHeight("200px");
                window.setWidth("200px");
                UI.getCurrent().addWindow(window);
                window.addCloseListener(new CloseListener() {
                    @Override
                    public void windowClose(final CloseEvent e) {
                        UI.getCurrent().removeWindow(window);
                    }
                });
View Full Code Here

Examples of com.vaadin.ui.Window.addCloseListener()

                .asList(ContainerEventProvider.CAPTION_PROPERTY,
                        ContainerEventProvider.DESCRIPTION_PROPERTY,
                        ContainerEventProvider.STARTDATE_PROPERTY,
                        ContainerEventProvider.ENDDATE_PROPERTY)));
        modal.setContent(formLayout);
        modal.addCloseListener(new Window.CloseListener() {
            @Override
            public void windowClose(CloseEvent e) {
                // Commit changes to bean
                try {
                    fieldGroup.commit();
View Full Code Here

Examples of com.vaadin.ui.Window.addCloseListener()

                        win.setVisible(!hidden.getValue());
                    }
                });
                addComponent(hidden);

                win.addCloseListener(new CloseListener() {
                    @Override
                    public void windowClose(CloseEvent e) {
                        show.setEnabled(true);
                    }
                });
View Full Code Here

Examples of de.willuhn.jameica.gui.dialogs.CalendarDialog.addCloseListener()

    group.addCheckbox(box,i18n.tr("Zum n�chstm�glichen Zeitpunkt"));

    CalendarDialog cd = new CalendarDialog(CalendarDialog.POSITION_MOUSE);
    cd.setTitle(i18n.tr("Zieldatum"));
    cd.addCloseListener(new Listener() {
      public void handleEvent(Event event) {
        if (event == null || event.data == null || !(event.data instanceof Date))
          return;

        date = (Date) event.data;
View Full Code Here

Examples of de.willuhn.jameica.hbci.gui.dialogs.AdresseAuswahlDialog.addCloseListener()

  {
    if (this.gegenkontoNummer != null)
      return this.gegenkontoNummer;

    AdresseAuswahlDialog d = new AdresseAuswahlDialog(AdresseAuswahlDialog.POSITION_MOUSE);
    d.addCloseListener(new AddressListener());
    this.gegenkontoNummer = new DialogInput((String) cache.get("kontoauszug.list.gegenkonto.nummer"),d);
    this.gegenkontoNummer.setValidChars(HBCIProperties.HBCI_KTO_VALIDCHARS);
    this.gegenkontoNummer.addListener(this.listener);
    return this.gegenkontoNummer;
  }
View Full Code Here

Examples of de.willuhn.jameica.hbci.gui.dialogs.TurnusDialog.addCloseListener()

  {
    if (turnus != null)
      return turnus;

    TurnusDialog td = new TurnusDialog(TurnusDialog.POSITION_MOUSE);
    td.addCloseListener(new Listener() {
      public void handleEvent(Event event) {
        if (event == null || event.data == null)
          return;
        Turnus choosen = (Turnus) event.data;
        try
View Full Code Here

Examples of games.stendhal.client.gui.SlotWindow.addCloseListener()

       * Register a listener for window closing so that we can
       * drop the reference to the closed window and let the
       * garbage collector claim it.
       */
      if (addListener && (window != null)) {
        window.addCloseListener(new CloseListener() {
          public void windowClosed(InternalWindow window) {
            slotWindow = null;
          }
        });
      }
View Full Code Here

Examples of games.stendhal.client.gui.SlotWindow.addCloseListener()

     * Register a listener for window closing so that we can
     * drop the reference to the closed window and let the
     * garbage collector claim it.
     */
    if (addListener && (window != null)) {
      window.addCloseListener(new CloseListener() {
        public void windowClosed(InternalWindow window) {
          slotWindow = null;
        }
      });
    }
View Full Code Here

Examples of io.undertow.server.HttpServerConnection.addCloseListener()

            final HttpServerConnection serverConnection = exchange.getConnection();
            final SimpleProxyClient simpleProxyClient = new SimpleProxyClient(connection);
            //we attach to the connection so it can be re-used
            serverConnection.putAttachment(clientAttachmentKey, simpleProxyClient);
            exchange.putAttachment(CLIENT, simpleProxyClient);
            serverConnection.addCloseListener(new HttpServerConnection.CloseListener() {
                @Override
                public void closed(HttpServerConnection connection) {
                    IoUtils.safeClose(serverConnection);
                }
            });
View Full Code Here

Examples of io.undertow.server.ServerConnection.addCloseListener()

                        } else {
                            final ExclusiveConnectionHolder newHolder = new ExclusiveConnectionHolder();
                            newHolder.connection = result;
                            ServerConnection connection = exchange.getConnection();
                            connection.putAttachment(exclusiveConnectionKey, newHolder);
                            connection.addCloseListener(new ServerConnection.CloseListener() {

                                @Override
                                public void closed(ServerConnection connection) {
                                    ClientConnection clientConnection = newHolder.connection.getConnection();
                                    if (clientConnection.isOpen()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.