Package de.yaams.core.helper.gui

Examples of de.yaams.core.helper.gui.YActionDialog


   *
   * @param title
   * @param dlMan
   */
  protected static Object showMessage(String title, String link, boolean ignore, boolean dlMan, boolean isText) {
    YActionDialog y = new YActionDialog("net.download", title);

    // add ignore?
    if (ignore) {
      y.addLink("web_ok", I18N.t("Ignorieren und Trotzdem runterladen"), I18N.t("Ignoriert diesmal die Option"));
    }

    // download manually?
    if (dlMan) {
      y.addLink("open_web", I18N.t("Manuell runterladen"), I18N.t("Es öffnet sich ein Fenster mit den Link und der Anleitung"));
    }

    y.addLink("cancel", I18N.t("Abbrechen"), "");

    int id = y.show();

    // cancel?
    if (id == -1 || y.getIcon(id).equals("cancel")) {
      return null;
    }

    // ignore?
    if (y.getIcon(id).equals("web_ok")) {
      return 1;
    }

    // download manually?
    if (y.getIcon(id).equals("open_web")) {
      if (isText) {
        // build form
        FormBuilder f = new FormBuilder("net.string");
        f.addElement("basic.help", new FormInfo("", I18N.t("Im 1. Feld steht der Link zur Seite. Den Link kopieren und mit einem "
            + "geeigneten Programm/Pc öffnen, danach im 2. Feld den Inhalt der  " + "Seite einfügen und Ok drücken"))
View Full Code Here


      int erg = 0;

      if (!first) {
        // ask for install
        YActionDialog y = new YActionDialog("rtp.install", I18N.t("RTP {0} wurde nicht gefunden.", name));
        y.addLink("setup_rtp", I18N.t("Installieren (empfohlen)"),
            I18N.t("Überprüft online, ob die Version existiert und installiert Sie."));
        y.addLink("folder_search", I18N.t("Ordner auswählen"), I18N.t("Ermöglicht selbst manuell den RTP Ordner auswählen"));
        y.addLink("cancel", I18N.CANCEL,
            I18N.t("Bindet kein RTP ein. Kann zu Nebeneffekten führen, wenn Ressourcen verwendet werden."));

        erg = y.show();
      }

      // get it
      if (erg == 0) {
View Full Code Here

TOP

Related Classes of de.yaams.core.helper.gui.YActionDialog

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.