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

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


      selected = RessRess.getRessFile(project, folder, object.getInstanceVariable("@name").toString());
    }

    // add subelements
    FormBuilder f = new FormBuilder("music.ele");
    f.addElement("basic.vol", RubyForm.getNumber(I18N.t("Volume"), object, "@volume").setMinMax(0, 100, 1));
    f.addElement("basic.pitch", RubyForm.getNumber(I18N.t("Pitch"), object, "@pitch").setMinMax(50, 150, 1));

    f.setColumn(04);

    subElements = f.getPanel(true);
View Full Code Here


    }

    // add subelements
    FormBuilder f = new FormBuilder("music.ele");
    f.addElement("basic.vol", RubyForm.getNumber(I18N.t("Volume"), object, "@volume").setMinMax(0, 100, 1));
    f.addElement("basic.pitch", RubyForm.getNumber(I18N.t("Pitch"), object, "@pitch").setMinMax(50, 150, 1));

    f.setColumn(04);

    subElements = f.getPanel(true);
    // loadImage((String) graph.toJava(String.class));
View Full Code Here

      String s = "";
      if (o != null) {
        try {
          if (o instanceof Object[]) {
            s = Arrays.toString((Object[]) o);
            f.addElement("basic." + i + "a", new FormTextField("Arylength", Integer.toString(((Object[]) o).length)));
          } else if (o instanceof ArrayList) {
            s = o.toString();
            f.addElement("basic." + i + "a", new FormTextField("Arylength", Integer.toString(((ArrayList<?>) o).size())));
          } else {
            s = o.toString();
View Full Code Here

          if (o instanceof Object[]) {
            s = Arrays.toString((Object[]) o);
            f.addElement("basic." + i + "a", new FormTextField("Arylength", Integer.toString(((Object[]) o).length)));
          } else if (o instanceof ArrayList) {
            s = o.toString();
            f.addElement("basic." + i + "a", new FormTextField("Arylength", Integer.toString(((ArrayList<?>) o).size())));
          } else {
            s = o.toString();
          }
        } catch (Throwable t) {
          s = YEx.toString("toString", t, false);
View Full Code Here

        } catch (Throwable t) {
          clas = YEx.toString("getClass", t, false);
        }
      }

      f.addElement("basic." + i, new FormTextArea(clas, s));
      Log.ger.debug(clas + ": " + s);
      i++;
    }

    // show it
View Full Code Here

    ExtentionManagement.add(OptionsTab.OPTIONS_INFO, new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        FormBuilder f = (FormBuilder) objects.get("form");
        f.addElement("thx.jruby", new FormLink("JRuby", "http://www.jruby.org"));

      }
    });
  }
View Full Code Here

            form.addElement("basic.att", RubyForm.getString(I18N.t("Attack Power"), "@atk", words));
            form.addElement("basic.phy", RubyForm.getString(I18N.t("Physical Defense"), "@pdef", words));
            form.addElement("basic.mag", RubyForm.getString(I18N.t("Magic Defense"), "@mdef", words));

            form.addHeader("fight", new FormHeader(I18N.t("Fight"), "weapon"));
            form.addElement("fight.weapon", RubyForm.getString(I18N.t("Weapon"), "@weapon", words));
            form.addElement("fight.armor", RubyForm.getString(I18N.t("Shield"), "@armor1", words));
            form.addElement("fight.helm", RubyForm.getString(I18N.t("Helmet"), "@armor2", words));
            form.addElement("fight.body", RubyForm.getString(I18N.t("Body armor"), "@armor3", words));
            form.addElement("fight.acc", RubyForm.getString(I18N.t("Accessory"), "@armor4", words));
            form.addElement("fight.att", RubyForm.getString(I18N.t("Attack"), "@attack", words));
View Full Code Here

            form.addElement("basic.phy", RubyForm.getString(I18N.t("Physical Defense"), "@pdef", words));
            form.addElement("basic.mag", RubyForm.getString(I18N.t("Magic Defense"), "@mdef", words));

            form.addHeader("fight", new FormHeader(I18N.t("Fight"), "weapon"));
            form.addElement("fight.weapon", RubyForm.getString(I18N.t("Weapon"), "@weapon", words));
            form.addElement("fight.armor", RubyForm.getString(I18N.t("Shield"), "@armor1", words));
            form.addElement("fight.helm", RubyForm.getString(I18N.t("Helmet"), "@armor2", words));
            form.addElement("fight.body", RubyForm.getString(I18N.t("Body armor"), "@armor3", words));
            form.addElement("fight.acc", RubyForm.getString(I18N.t("Accessory"), "@armor4", words));
            form.addElement("fight.att", RubyForm.getString(I18N.t("Attack"), "@attack", words));
            form.addElement("fight.skill", RubyForm.getString(I18N.t("Skill"), "@skill", words));
View Full Code Here

            form.addElement("basic.mag", RubyForm.getString(I18N.t("Magic Defense"), "@mdef", words));

            form.addHeader("fight", new FormHeader(I18N.t("Fight"), "weapon"));
            form.addElement("fight.weapon", RubyForm.getString(I18N.t("Weapon"), "@weapon", words));
            form.addElement("fight.armor", RubyForm.getString(I18N.t("Shield"), "@armor1", words));
            form.addElement("fight.helm", RubyForm.getString(I18N.t("Helmet"), "@armor2", words));
            form.addElement("fight.body", RubyForm.getString(I18N.t("Body armor"), "@armor3", words));
            form.addElement("fight.acc", RubyForm.getString(I18N.t("Accessory"), "@armor4", words));
            form.addElement("fight.att", RubyForm.getString(I18N.t("Attack"), "@attack", words));
            form.addElement("fight.skill", RubyForm.getString(I18N.t("Skill"), "@skill", words));
            form.addElement("fight.def", RubyForm.getString(I18N.t("Defense"), "@guard", words));
View Full Code Here

            form.addHeader("fight", new FormHeader(I18N.t("Fight"), "weapon"));
            form.addElement("fight.weapon", RubyForm.getString(I18N.t("Weapon"), "@weapon", words));
            form.addElement("fight.armor", RubyForm.getString(I18N.t("Shield"), "@armor1", words));
            form.addElement("fight.helm", RubyForm.getString(I18N.t("Helmet"), "@armor2", words));
            form.addElement("fight.body", RubyForm.getString(I18N.t("Body armor"), "@armor3", words));
            form.addElement("fight.acc", RubyForm.getString(I18N.t("Accessory"), "@armor4", words));
            form.addElement("fight.att", RubyForm.getString(I18N.t("Attack"), "@attack", words));
            form.addElement("fight.skill", RubyForm.getString(I18N.t("Skill"), "@skill", words));
            form.addElement("fight.def", RubyForm.getString(I18N.t("Defense"), "@guard", words));
            form.addElement("fight.item", RubyForm.getString(I18N.t("Item"), "@item", words));
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.