Examples of ModalDialog


Examples of org.jfx4ee.adm4ee.presentation.controls.ModalDialog

    public ViewContext() {
        init();
    }

    private void init() {
        modalDialog = new ModalDialog();
        resourceBundle = ResourceBundle.
                getBundle("i18n/messages");
        uiConfiguration = ConfigurationManager.getInstance().getUIConfiguration();
        domainDataModel = new DomainDataModel();
        domainDataModel.setConfiguredDomains(ConfigurationManager.getInstance().getDomains());
View Full Code Here

Examples of org.projectforge.web.dialog.ModalDialog

  }

  @SuppressWarnings("serial")
  private void addCloseToDoDialog()
  {
    closeToDoDialog = new ModalDialog(parentPage.newModalDialogId()) {

      @Override
      public void init()
      {
        setTitle(getString("plugins.todo.closeDialog.heading"));
View Full Code Here

Examples of org.projectforge.web.dialog.ModalDialog

  protected void onInitialize()
  {
    super.onInitialize();
    if (showModalDialog == true && getPage() != null && getPage() instanceof AbstractSecuredPage) {
      final AbstractSecuredPage parentPage = (AbstractSecuredPage) getPage();
      modalDialog = new ModalDialog(parentPage.newModalDialogId()) {
        @Override
        public void init()
        {
          setTitle(getString("changes"));
          init(new Form<String>(getFormId()));
View Full Code Here

Examples of shag.dialog.ModalDialog

                        return false;
                    }
                }

                ActionCommand[] list = { lefty, save };
                ModalDialog md = ModalDialog.createCustomDialog("Custom Test", list);

                final Action action = md.getNamedAction("Lefty");
   
                JButton button = new JButton("Toggle Lefty");
                button.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent evt) {
                        action.setEnabled(!action.isEnabled());
                    }
                });
               
                md.showDialog(button);
            }
        });
        p.add(testButton);
       
        testButton = new JButton("createCustomDialog w/ ActionCommands, No Cancel");
        testButton.setToolTipText("Create dialog with optional cancel, then set an array of action commands.");
        testButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                ModalDialog.showWarningDialog("To be implemented.");
            }
        });
        p.add(testButton);
       
        // Placeholder to skip a cell.
        p.add(new JLabel());

        testButton = new JButton("createCustomDialog w/ Strings, Cancel");
        testButton.setToolTipText("Create dialog with an array of strings.");
        testButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                ModalDialog.showWarningDialog("To be implemented.");
            }
        });
        p.add(testButton);
       
        testButton = new JButton("createCustomDialog w/ Strings, No Cancel");
        testButton.setToolTipText("Create dialog with optional cancel and an array of strings.");
        testButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                ModalDialog.showWarningDialog("To be implemented.");
            }
        });
        p.add(testButton);
       
        testButton = new JButton("createOKDialog w/ ActionCommand");
        testButton.setToolTipText("Create dialog then set an action command.");
        testButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                final JTextField p = new JTextField("(enter a number)");
                ActionCommand okPassword = new ActionCommand("Enter") {
                    boolean successful = true;
                    public void run() {
                        try {
                            Integer.parseInt(p.getText());
                            successful = true;
                            ModalDialog.showPlainDialog(p.getText());
                        } catch(NumberFormatException e) {
                            successful = false;
                            ModalDialog.showErrorDialog(e.toString());
                        }
                    }
                   
                    public boolean isSuccessful() {
                        return(successful);
                    }
                };
               
                ModalDialog md = ModalDialog.createOKDialog("ActionCommand Test");
                md.getDefaultAction().setCommand(okPassword);
                md.showDialog(p);
            }
        });
        p.add(testButton);
       
        // Install the window's menu bar.
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.