Examples of ConfirmCallback


Examples of com.googlecode.mgwt.ui.client.widget.dialog.ConfirmDialog.ConfirmCallback

    addHandlerRegistration(view.getConfirmButton().addTapHandler(new TapHandler() {

      @Override
      public void onTap(TapEvent event) {
        view.confirmSomeStuff("Confirm this", "Confirm some more stuff", new ConfirmCallback() {

          @Override
          public void onOk() {

          }
View Full Code Here

Examples of com.gwtext.client.widgets.MessageBox.ConfirmCallback

        if (!isAuthorOfNote()) {
            MessageBox.alert("Only the author of a note can delete it.");
            return;
        }

        MessageBox.confirm("Delete note?", "Are you sure you want to delete this note?" , new ConfirmCallback() {
            public void execute(String btnID) {
                if (btnID == null || !btnID.equalsIgnoreCase("yes")) {
                    return;
                }
            }
View Full Code Here

Examples of com.gwtext.client.widgets.MessageBox.ConfirmCallback

            MessageBox.alert("No parent for children", "You have selected the option to move children of retired class(es) under a new parent,<br />" +
                "but no parent was selected. Please select a parent.");
            return;
        }

        MessageBox.confirm("Retire class(es)?", getRetireConfirmMessage(), new ConfirmCallback() {
            public void execute(String btnID) {
                if (btnID.equalsIgnoreCase("yes")) {
                    UIUtil.mask(RetireClassPanel.this.getEl(), "Performing retire...", true, 10);
                    performRetire();
                }
View Full Code Here

Examples of com.gwtext.client.widgets.MessageBox.ConfirmCallback

    public void enquireOpenIdAssociation() {

        MessageBox.confirm("Associate OpenId with an existing user account", "Welcome! " +
                "The first time you sign in with your OpenId, we need to <b>associate it with an existing user account</b>. <br /><br />" +
                "Do you have an existing user account?", new ConfirmCallback() {

            public void execute(final String btnID) {

                final Boolean isLoginWithHttps = Application.get().getClientApplicationProperty(WebProtegePropertyName.HTTPS_ENABLED, false);;
                if (btnID.equalsIgnoreCase("yes")) {
View Full Code Here

Examples of com.gwtext.client.widgets.MessageBox.ConfirmCallback

            MessageBox.alert("No parents","Class " + UIUtil.getDisplayText(clsValue) + " has no parents. Please add at least on parent.");
            return;
        }


        MessageBox.confirm("Confirm", getMoveConfirmMessage(), new ConfirmCallback() {
            public void execute(String btnID) {
                if (btnID.equalsIgnoreCase("yes")) {
                    UIUtil.mask(ChangeParentPanel.this.getEl(), "Performing change in hierarchy", true, 10);
                    performMove(clsName, UIUtil.getStringCollection(parentsToAdd),
                            UIUtil.getStringCollection(parentsToRemove), reasonForChange);
View Full Code Here

Examples of com.gwtmobile.phonegap.client.Notification.ConfirmCallback

    }, "Alert", "Okey-Dokey");
     
    }  

    public void confirm() {
      Notification.confirm("This is a confirmation message", new ConfirmCallback() {
      @Override
      public void onComplete(int result) {
        text.setHTML("You selected " + (result == 1 ? "Yes" : "No"));
      }
    }, "Confirm", "Yes,No");
View Full Code Here

Examples of com.gwtmobile.phonegap.client.Notification.ConfirmCallback

      if (PageHistory.Instance.from() == null) {
        String showed = Storage.LocalStorage.getItem("ShowRatingDialog");
        if (showed == null) {
            Notification.confirm("If you think GWT Mobile PhoneGap is useful, " +
                "do you want to give it a good rating and comment?",
                new ConfirmCallback() {
                @Override
                public void onComplete(int selection) {
                  switch (selection) {
                    case 1//sure
                      App.loadUrl("market://details?id=com.gwtmobile.phonegap",
View Full Code Here

Examples of org.gwtoolbox.widget.client.popup.dialog.ConfirmCallback

        contentPanel.setShowBorder(true);
        contentPanel.setCollapsable(true);
        contentPanel.setClosable(true);
        contentPanel.addCloseHandler(new CloseHandler<ContentPanel>() {
            public void onClose(CloseEvent<ContentPanel> contentPanelCloseEvent) {
                DefaultNotifier.getInstance().confirm("Confirm", "Are you sure you want to close this panel?", new ConfirmCallback() {
                    public void handle(Boolean confirmed) {
                        contentPanel.setVisible(!confirmed);
                    }
                });
            }
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitTemplate.ConfirmCallback

  public BrokerRunning brokerIsRunning = BrokerRunning.isRunningWithEmptyQueues(ROUTE);

  @Test
  public void testPublisherConfirmReceived() throws Exception {
    final CountDownLatch latch = new CountDownLatch(10);
    templateWithConfirmsEnabled.setConfirmCallback(new ConfirmCallback() {

      @Override
      public void confirm(CorrelationData correlationData, boolean ack, String cause) {
        latch.countDown();
      }
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitTemplate.ConfirmCallback

  }

  @Test
  public void testPublisherConfirmReceivedConcurrentThreads() throws Exception {
    final CountDownLatch latch = new CountDownLatch(2);
    templateWithConfirmsEnabled.setConfirmCallback(new ConfirmCallback() {

      @Override
      public void confirm(CorrelationData correlationData, boolean ack, String cause) {
        latch.countDown();
      }
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.