Package com.ezware.dialog.task.TaskDialog

Examples of com.ezware.dialog.task.TaskDialog.Command


        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"));
        showOk();
      }
    }
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"));
        showQuestion();
      }

      // get it
      return erg.equals(StandardCommand.OK);

    }
    return true;
  }
View Full Code Here

      dlg.setIcon(getIcon(TaskDialog.StandardIcon.QUESTION));
      dlg.setFixedComponent(p);
      dlg.setCommandsVisible(false);

      // add listener
      Command erg;
      if (action != null) {
        dlg.getCommands().clear();
        dlg.setCommandsVisible(true);
        dlg.getFooter().setCheckBoxText("Diesen Dialog nicht mehr anzeigen.");
        erg = dlg.show();
      } else {
        erg = dlg.show();
      }

      int id = erg.equals(StandardCommand.CANCEL) ? -1 : models.indexOf(bGroup.getSelection());

      // save it
      if (action != null && dlg.getFooter().isCheckBoxSelected()) {
        Setting.set(action, id);
      }
View Full Code Here

      dlg.setIcon(getIcon(TaskDialog.StandardIcon.QUESTION));
      dlg.setFixedComponent(p);
      dlg.setCommandsVisible(false);

      // add listener
      Command erg;
      if (action != null) {
        dlg.getCommands().clear();
        dlg.setCommandsVisible(true);
        dlg.getFooter().setCheckBoxText("Diesen Dialog nicht mehr anzeigen.");
        erg = dlg.show();
      } else {
        erg = dlg.show();
      }

      int id = erg.equals(StandardCommand.CANCEL) ? -1 : models.indexOf(bGroup.getSelection());

      // save it
      if (action != null && dlg.getFooter().isCheckBoxSelected()) {
        // Setting.set(action, id);
      }
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);

    }
    return true;
  }
View Full Code Here

TOP

Related Classes of com.ezware.dialog.task.TaskDialog.Command

Copyright © 2018 www.massapicom. 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.