Package com.ezware.dialog.task

Examples of com.ezware.dialog.task.TaskDialog.show()


      task.setIcon(IconCache.get(icon, 64));
      task.setResizable(true);
      task.setFixedComponent(f.getPanel(true));
      task.setCommands(StandardCommand.OK.derive(I18N.t("{0} einsenden", typ), "mail"),
          StandardCommand.CANCEL.derive(I18N.t(exit ? "Programm beenden" : "Ignorieren"), "cancel"));
      TaskDialog.Command erg = task.show();
      if (erg != null && erg.getTitle().equals(I18N.t("{0} einsenden", typ))) {
        // send feedback
        sendError(t, title, f.getElement("basic.contact").getContentAsString(), f.getElement("basic.details").getContentAsString());
      } else {
        // close?
View Full Code Here


        dlg.setCommands(StandardCommand.OK.derive(T.r("dialog.ok"), "ok"), StandardCommand.HELP.derive(T.r("show.stack"), "opts"));
      }

      // check boxes
      dlg.getFooter().setCheckBoxText(T.r("dialog.ignore"));
      Command erg = dlg.show();
      Setting.set(mid, !dlg.getFooter().isCheckBoxSelected());

      if (erg.equals(StandardCommand.HELP)) {
        Log.ger.info("", new Throwable("Ok stack"));
        TaskDialogs.showException(new Throwable("Ok stack"));
View Full Code Here

        dlg.setCommands(StandardCommand.OK.derive(yesno[0], yesnoIcon[0]), StandardCommand.CANCEL.derive(yesno[1], yesnoIcon[1]));
      }

      // check boxes
      dlg.getFooter().setCheckBoxText(T.r("dialog.ignore"));
      Command erg = dlg.show();
      Setting.set(mid, !dlg.getFooter().isCheckBoxSelected());

      if (erg.equals(StandardCommand.HELP)) {
        Log.ger.info("", new Throwable("Question stack"));
        TaskDialogs.showException(new Throwable("Question stack"));
View Full Code Here

      task.setIcon(IconCache.get(icon, 64));
      task.setResizable(true);
      task.setFixedComponent(f.getPanel(true));
      task.setCommands(StandardCommand.OK.derive(I18N.t("Send {0}", typ)),
          StandardCommand.CANCEL.derive(I18N.t(exit ? "Close program" : "Ignore")));
      TaskDialog.Command erg = task.show();
      if (erg != null && erg.getTitle().equals(I18N.t("Send {0}", typ))) {
        // send feedback
        sendError(t, title, f.getElement("basic.contact").getContentAsString(), f.getElement("basic.details").getContentAsString());
      } else {
        // close?
View Full Code Here

            new File("").getAbsolutePath(), YrgssCore.TITLE));
        dlg.setIcon(IconCache.get("yrgss", 32));
        dlg.setCommands(new TaskDialog.Command[] { TaskDialog.StandardCommand.OK.derive(I18N.t("Select manually")),
            TaskDialog.StandardCommand.CANCEL.derive(I18N.t("Close it")) });

        if (dlg.show().equals(TaskDialog.StandardCommand.CANCEL)) {
          System.exit(0);
        }

        FileDialog f = new FileDialog(new JDialog());
        f.setVisible(true);
View Full Code Here

      dlg.setText(cont);
      dlg.setIcon(getIcon());

      // check boxes
      // dlg.getFooter().setCheckBoxText(I18N.t("Diesen Dialog nicht mehr anzeigen."));
      dlg.show();
      // Setting.set(mid, !dlg.getFooter().isCheckBoxSelected());
    }
    return true;

  }
View Full Code Here

      dlg.setIcon(getIcon());
      dlg.setCommands(StandardCommand.OK.derive(yesno[0]), StandardCommand.CANCEL.derive(yesno[1]));

      // check boxes
      // dlg.getFooter().setCheckBoxText(I18N.t("Diesen Dialog nicht mehr anzeigen."));
      Command erg = dlg.show();
      // Setting.set(mid, !dlg.getFooter().isCheckBoxSelected());

      // get it
      return erg.equals(StandardCommand.OK);
View Full Code Here

                           TaskDialog.StandardCommand.CANCEL.derive(TaskDialog.makeKey("No")) );

                       dlg.getFooter().setCheckBoxText( "don't ask me again" );
                       dlg.getFooter().setCheckBoxSelected(false);

                       final TaskDialog.Command result = dlg.show();

                       boolean exit = result.equals(TaskDialog.StandardCommand.OK);
                       final boolean disableConfirm = dlg.getFooter().isCheckBoxSelected();

                       System.out.println("exit = " + exit);
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.