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

Examples of de.yaams.maker.helper.gui.form.core.FormBuilder.addElement()


    // create Form
    final FormBuilder f = new FormBuilder("project");
    f.addElement("basic.folder", new FormFileSelectField(I18N.t("Ordner"), p == null ? null : p.getPath(), JFileChooser.OPEN_DIALOG, true, true))
        .addValidator(new ValidatorUmlaut());
    f.addElement("basic.name", new FormTextField(I18N.t("Name"), p == null ? "Project" : p.getTitle()));
    f.addElement("basic.icon", new FormIcon(I18N.t("Icon"), p == null ? IconCache.games[0] : p.getIcon(), IconCache.games));

    // build list for types
    String[] key = ProjectManagement.types.keySet().toArray(new String[ProjectManagement.types.size()]);
    String[] title = new String[key.length];
View Full Code Here


    // create Form
    final FormBuilder f = new FormBuilder("project");
    f.addElement("basic.folder", new FormFileSelectField(I18N.t("Ordner"), p == null ? null : p.getPath(), JFileChooser.OPEN_DIALOG, true, true))
        .addValidator(new ValidatorUmlaut());
    f.addElement("basic.name", new FormTextField(I18N.t("Name"), p == null ? "Project" : p.getTitle()));
    f.addElement("basic.icon", new FormIcon(I18N.t("Icon"), p == null ? IconCache.games[0] : p.getIcon(), IconCache.games));

    // build list for types
    String[] key = ProjectManagement.types.keySet().toArray(new String[ProjectManagement.types.size()]);
    String[] title = new String[key.length];
    for (int i = 0, l = key.length; i < l; i++) {
View Full Code Here

    String[] title = new String[key.length];
    for (int i = 0, l = key.length; i < l; i++) {
      title[i] = ProjectManagement.getType(key[i]).getTitle();
    }

    f.addElement("basic.type", new FormComboBox(I18N.t("Typ"), key, title).selectField(p == null ? null : p.getType().getType()));

    // add crypto
    if (YLevel.IS_ADVANCED) {
      f.addHeader("sec", new FormHeader(I18N.t("Sicherheit"), "lock").setCollapsed(true));
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

      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",
          new FormCheckbox(I18N.t("Projekt verschlüsseln"), cryp)
              .setInfoTxt(
                  "<html><strong>Vorgehen</strong><br>"
                      + "Wenn die Verschlüssungsfunktion aktiviert wurde, muss im nächsten Dialog der Name und das Password gewählt werden.<br>"
View Full Code Here

                    // crypto it
                    if (ncryp) {

                      // ask for data
                      FormBuilder formb = new FormBuilder("project.sec");
                      formb.addElement("basic.name", new FormTextField(I18N.t("Name"), SystemUtils.USER_NAME));
                      formb.addElement("basic.pw", new FormTextField(I18N.t("Password"), p.getTitle()));

                      YDialog.showForm(I18N.t("Name & Password"), p.getIcon() + "_lock", formb);

                      // setit
View Full Code Here

                    if (ncryp) {

                      // ask for data
                      FormBuilder formb = new FormBuilder("project.sec");
                      formb.addElement("basic.name", new FormTextField(I18N.t("Name"), SystemUtils.USER_NAME));
                      formb.addElement("basic.pw", new FormTextField(I18N.t("Password"), p.getTitle()));

                      YDialog.showForm(I18N.t("Name & Password"), p.getIcon() + "_lock", formb);

                      // setit
                      p.getCache().put("projecttype", f.getElement("sec.typ").getContentAsString());
View Full Code Here

   *
   * @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));
View Full Code Here

   * @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", "-")));
View Full Code Here

  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")));
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.