Package de.yaams.maker.helper.gui.form

Examples of de.yaams.maker.helper.gui.form.FormInfo


   *
   * @return
   */
  public FormBuilder getMoreInfo() {
    FormBuilder b = new FormBuilder("plugin.moreinfo");
    b.addElement("basic.name", new FormInfo(I18N.t("Info"), getDesc()).setSorting(-1));
    b.addElement("basic.author", new FormInfo(I18N.t("Autor"), getElement("author", "unknown")));
    if (YLevel.IS_ADVANCED) {
      b.addElement("basic.folder", new FormTextField(I18N.t("Path"), path.getAbsolutePath()));
    }
    b.addElement("basic.status", new FormSwing(I18N.t("Status"), status));
    b.addElement("basic.hp", new FormTextField(I18N.t("Homepage"), getElement("homepage", "-")));
    b.addElement("basic.version", new FormInfo(I18N.t("Inst. Version"), getElement("version", "0")));
    b.addElement("basic.versiono", new FormInfo(I18N.t("Online Version"), getOnlineElement("version", "0")));
    return b;
  }
View Full Code Here


    final FormBuilder f = new FormBuilder("plugins.details");
    f.getHeader("basic").setColumn(6);

    // has plugins?
    if (PluginLoader.getPlugins().size() == 0) {
      f.addElement("basic.error", new FormInfo("", I18N.t("Kein Plugin gefunden. Wählen Online prüfen aus, um die Liste "
          + "zu aktualisieren, oder füge manuell Plugins hinzu.")).setIcon("plugin_error", 32));
    }

    // run over all
    for (final String id : PluginLoader.getPlugins().keySet()) {
View Full Code Here

    ExtentionManagement.add("form.options.info", new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        FormBuilder form = (FormBuilder) objects.get("form");
        form.addElement("basic.lang", new FormInfo(T.r("lang"), locale.getDisplayName()));

      }
    });

    // add setting
View Full Code Here

    // 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"))
            .setSorting(-1));
        f.addElement("basic.source", new FormTextField("", link));
        f.addElement("basic.dest", new FormTextArea("", "").addValidator(new ValidatorNotEmpty()).setSorting(1));

        if (YDialog.showForm(I18N.t("Seite manuell anzeigen"), "open_web", f)) {
          return f.getElement("basic.dest").getContentAsString();
        }
        return null;
      } else {
        // build form
        FormBuilder f = new FormBuilder("net.download");
        f.addElement("basic.help",
            new FormInfo("", I18N.t("Im 1. Feld steht der Link zur Datei. Den Link kopieren und mit einem "
                + "geeigneten Programm/Pc runterladen, danach im 2. Feld die runtergeladene "
                + "Datei auswählen und Ok drücken")).setSorting(-1));
        f.addElement("basic.source", new FormTextField("", link));
        f.addElement("basic.dest", new FormFileSelectField("", null, JFileChooser.OPEN_DIALOG, false, false).setSorting(1));
View Full Code Here

        get(id).checkOnline(ini.get(id), f);
      }

      // found it?
      if (f.getHeader("basic").getElements().size() > 0) {
        f.addElement("basic.desc", new FormInfo("", I18N.t("Wähle die Plugins aus, die geupdatet werden sollen.")).setSorting(-1));
        YDialog.showForm(I18N.t("Es sind Updates verfügbar"), "plugin_web", f);
        SystemHelper.restart();
      }

    } catch (Throwable t) {
View Full Code Here

      // load infos
      final boolean cryp = p != null && p.getCache() != null && p.getCache().containsKey("projecttype");

      // add info
      if (p == null) {
        f.addElement("sec.info", new FormInfo("", I18N.t("Das Projekt kann erst verschlüsselt werden, wenn es erstellt wurde.")).setIcon("warn", 16));
      }

      // set it
      f.addElement(
          "sec.sec",
View Full Code Here

    // has project?
    if (p != null) {

      // main elements
      f.getHeader("basic").setTitle(p.getTitle()).setIcon(p.getIcon()).setCollapsed(true).setSorting(-1);
      f.addElement("basic.type", new FormInfo(I18N.t("Typ"), p.getType().getTitle()));

      // aktions
      f.addHeader("action", new FormHeader(I18N.t("Aktionen"), "mouse"));
      f.addElement("action.tab", new FormButton(I18N.t("Im Tab öffnen"), "tab_arrow", new AE() {
View Full Code Here

    // e.getParameters().get(1), "@skippable")
    // .setSorting(1));

    // unsupported
    f.addHeader("unsupported", new FormHeader(I18N.t("Nicht unterstützt"), "error").setCollapsed(true));
    f.addElement("unsupported.ele", new FormInfo("", I18N.t("Movement route")));
  }
View Full Code Here

  public static Component addInfo() {
    // build form
    final FormBuilder f = new FormBuilder(OPTIONS_INFO);
    f.addHeader("basic", new FormHeader(I18N.t("Basics"), "info").setColumn(4));

    f.addElement("basic.yaams", new FormInfo("", YAamsCore.TITLE));

    if (YLevel.IS_ADVANCED) {
      f.addElement("basic.path", new FormTextField(I18N.t("Optionen"), YAamsCore.programPath.getAbsolutePath()));
      f.addElement("basic.temp", new FormTextField(I18N.t("Temp"), YAamsCore.tmpFolder.getAbsolutePath()));
      f.addElement("basic.system", new FormInfo(I18N.t("System"), SystemUtils.OS_NAME + " " + SystemUtils.OS_VERSION + " "
          + SystemUtils.OS_ARCH));
      f.addElement("basic.log", new FormInfo(I18N.t("Log level"), Log.ger.getLevel().toString()));
      f.addElement("basic.ylevel", new FormInfo(I18N.t("Program level"), YLevel.getName(YLevel.TYP)));
      f.addElement("basic.java", new FormInfo(I18N.t("Java"), SystemUtils.JAVA_RUNTIME_NAME + " " + SystemUtils.JAVA_VENDOR + " "
          + SystemUtils.JAVA_VERSION));
      f.addElement(
          "basic.ram",
          new FormInfo(I18N.t("RAM"), FileHelper.humanReadableByteCount(Runtime.getRuntime().freeMemory(), false) + " / "
              + FileHelper.humanReadableByteCount(Runtime.getRuntime().totalMemory(), false) + " ("
              + FileHelper.humanReadableByteCount(Runtime.getRuntime().maxMemory(), false) + ")"));
    }

    // add plugins
    f.addHeader("plugins", new FormHeader(I18N.t("Plugins"), "plugin").setColumn(8));
    for (String key : PluginLoader.getPlugins().keySet()) {
      f.addElement("plugins." + key, new FormInfo("", PluginLoader.get(key).getTitle()));
    }
    if (PluginLoader.getPlugins().keySet().size() <= 1) {
      f.addElement("plugins.znone", new FormInfo("", I18N.t("Keine Plugins gefunden. Installiere zuerst welche")).setInfoTxt(I18N
          .t("Öffne zur Installation den Katalog vom Starttab und wähle die Plugins aus. Danach musst du YAams neustarten.")));
    }
    // add special thanks
    f.addHeader("thankuser", new FormHeader(I18N.t("Speziellen Dank an"), "user").setColumn(4));
    f.addElement("thankuser.studio", new FormInfo("rpg-studio.de", "fürs Hosting, den Server und vieles mehr"));
    f.addElement("thankuser.steve", new FormInfo("Steve", "fürs Entwickeln"));
    f.addElement("thankuser.wolfsmutter", new FormInfo("Wolfsmutter", "fürs Testen und vieles mehr :)"));
    f.addElement("thankuser.evrey", new FormInfo("Evrey", "fürs Testen und ganz viel anderes"));
    f.addElement("thankuser.you", new FormInfo("Du?", "Wenn du willst, entwickle YAams mit! Mitarbeiter immer gesucht!"));

    // add thanks
    f.addHeader("thx", new FormHeader(I18N.t("Vielen Dank an"), "java").setColumn(8));
    f.addElement("thx.apachecommon", new FormLink("Apache Commons", "http://commons.apache.org"));
    f.addElement("thx.jidesoft", new FormLink("Jidesoft", "http://www.jidesoft.com"));
View Full Code Here

   * de.yaams.extensions.map.nevent.core.EventCode)
   */
  @Override
  public void buildPanel(FormBuilder f, final EventCode e) {
    // add all
    f.addElement("basic.info", new FormInfo("", I18N.t("Create a new Eventcode")));

    // build new form
    // add elements
    for (final EventCommand c : EventCommandManagement.getCommands()) {
      // has header?
View Full Code Here

TOP

Related Classes of de.yaams.maker.helper.gui.form.FormInfo

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.