Examples of ConfirmationDialog


Examples of com.google.gerrit.client.ConfirmationDialog

      b.closeElement("p");
      if (ids.isEmpty()) {
        return;
      }

      ConfirmationDialog confirmationDialog =
          new ConfirmationDialog(Gerrit.C.branchDeletionDialogTitle(),
              b.toSafeHtml(), new ConfirmationCallback() {
        @Override
        public void onOk() {
          deleteBranches(ids);
        }
      });
      confirmationDialog.center();
    }
View Full Code Here

Examples of com.google.gerrit.client.ConfirmationDialog

            final SafeHtmlBuilder b = new SafeHtmlBuilder();
            b.openElement("b");
            b.append(Util.M
                .groupManyMembersConfirmation(groupName, memberCount));
            b.closeElement("b");
            final ConfirmationDialog confirmationDialog =
                new ConfirmationDialog(Util.C
                    .approvalTableAddManyReviewersConfirmationDialogTitle(),
                    b.toSafeHtml(), new ConfirmationCallback() {
                      @Override
                      public void onOk() {
                        addReviewers(reviewers, true);
                      }
                    });
            confirmationDialog.center();
          }

          @Override
          public void onFailure(final Throwable caught) {
            addMemberBox.setEnabled(true);
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.util.ConfirmationDialog

  protected int createShowTextDialog(final String title, final String text,
      final String confirmationText, final boolean query_or_n3) {
    final JPanel panel = new JPanel();

    final ConfirmationDialog dialog = new ConfirmationDialog(null, panel, title, confirmationText);
    dialog.addKeyListener(this.getKeyListener(dialog));

    final LuposDocument document = new LuposDocument();
    final JTextPane tp = new LuposJTextPane(document);
    document.init((query_or_n3) ? SPARQLParser.createILuposParser(new LuposDocumentReader(document)):TurtleParser.createILuposParser(new LuposDocumentReader(document)), false);

    tp.addKeyListener(this.getKeyListener(dialog));
    tp.setFont(new Font("Courier New", Font.PLAIN, 12));
    tp.setEditable(false);
    tp.setText(text);

    new LinePainter(tp, new Color(202, 223, 245));

    final JScrollPane scroll = new JScrollPane(tp);

    // create main panel and add components to it...
    panel.setLayout(new BorderLayout());
    panel.add(scroll, BorderLayout.CENTER);

    dialog.setVisible(true);

    return dialog.getReturnValue();
  }
View Full Code Here

Examples of org.pokenet.client.ui.base.ConfirmationDialog

              m_confirm.setVisible(false);
              getDisplay().remove(m_confirm);
              m_confirm = null;
            }
          };
          m_confirm = new ConfirmationDialog("Are you sure you want to exit?",yes,no);
          getUi().getDisplay().add(m_confirm);
        }else{
          System.exit(0);
        }
      }
View Full Code Here

Examples of org.pokenet.client.ui.base.ConfirmationDialog

          getDisplay().remove(m_confirm);
          m_confirm = null;
          m_close = false;
        }
      };
      m_confirm = new ConfirmationDialog("Are you sure you want to exit?",yes,no);
      getUi().getDisplay().add(m_confirm);
    }   
    return m_close;
  }
View Full Code Here

Examples of org.pokenet.client.ui.base.ConfirmationDialog

          public void actionPerformed(ActionEvent evt) {
            GameClient.getInstance().getDisplay().remove(m_confirm);
            m_confirm = null;
          }
        };
        m_confirm = new ConfirmationDialog("Are you sure you want to remove " + m_name.getText() + " from your friends?");
        m_confirm.addYesListener(m_yes);
        m_confirm.addNoListener(m_no);
      }
    });
    m_cancel.addActionListener(new ActionListener(){
View Full Code Here

Examples of org.pokenet.client.ui.base.ConfirmationDialog

      public void actionPerformed(ActionEvent evt) {
        getDisplay().remove(m_confirm);
        m_confirm = null;
      }
    };
    m_confirm = new ConfirmationDialog("Are you sure you want to cancel the trade?", yes, no);
  }
View Full Code Here

Examples of org.pokenet.client.ui.base.ConfirmationDialog

            m_confirm = null;
            setVisible(true);
          }
       
        };
        m_confirm = new ConfirmationDialog("Are you sure you want to trade?", yes, no);
        setVisible(false);
      }
    });
    getContentPane().add(m_tradeBtn);
   
View Full Code Here

Examples of org.pokenet.client.ui.base.ConfirmationDialog

    use.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        GameClient.getInstance().getDisplay().remove(thisDialog);

        final ConfirmationDialog confirm = new ConfirmationDialog("Are you sure you want to change sprites?\nIt'll cost you P500!");
        confirm.addYesListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            confirm.setVisible(false);
            GameClient.getInstance().getDisplay().remove(confirm);

            GameClient.getInstance().getPacketGenerator().writeTcpMessage(
                "S" + m_spriteList.getSelectedName());
          }
        });
        confirm.addNoListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            confirm.setVisible(false);
            GameClient.getInstance().getDisplay().remove(confirm);
          }
        });

        GameClient.getInstance().getDisplay().add(confirm);
View Full Code Here

Examples of org.pokenet.client.ui.base.ConfirmationDialog

        GameClient.getInstance().getPacketGenerator().writeTcpMessage(
            "Pm" + m_pokeIndex + i + m_move);
        MoveLearningManager.getInstance().removeMoveLearning();
      } else {
        setAlwaysOnTop(false);
        m_replace = new ConfirmationDialog(
            "Are you sure you want to forget "
            + m_moveButtons.get(i).getText() + " to learn "
            + m_move + "?");
        m_replace.setAlwaysOnTop(true);
        ActionListener yes = new ActionListener() {
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.