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

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


   * @param id
   * @param standard
   * @return
   */
  public static FormTextArea area(final Project p, String title, final String id, String standard) {
    return (FormTextArea) new FormTextArea(title, p == null ? Setting.get(id, standard) : ProjectSett.get(p, id, standard))
        .addChangeListener(new FormElementChangeListener() {

          @Override
          public void stateChanged(FormElement form) {
            if (p == null) {
View Full Code Here


      f.getHeader("basic").setTitle(I18N.t("Weitere Infos (freiwillig)")).setIcon("edit");
      f.addElement(
          "basic.contact",
          YSettingHelper.text(null, I18N.t("eMail"), "reporting.contact", "").setInfoTxt(
              I18N.t("Füge hier deine eMailadresse ein, wenn du eine Antwort wünscht oder Nachfragen erlaubst.")));
      f.addElement("basic.details", new FormTextArea(I18N.t("Ablauf"), "").setInfoTxt(I18N
          .t("Schreibe hier rein, was passiert ist, was du getan hast, wie es zu dem Fehler gekommen ist.")));

      // add details
      f.addHeader("error", new FormHeader(I18N.t("Details"), icon).setCollapsed(true));
      f.addElement("error.class", new FormTextField(I18N.t("Class"), t.getClass().toString()));
      f.addElement("error.mess", new FormTextField(I18N.t("Message"), YEx.toString(title, t, false)));
      f.addElement("error.stack", new FormTextArea(I18N.t("Stack"), Strings.stackStraceAsString(t)));

      task.setInstruction(I18N.t("{0}bericht einsenden", typ));
      task.setText(mess + (YLevel.IS_ADVANCED ? "<br>" + YEx.toString(title, t, false) : ""));
      task.setIcon(IconCache.get(icon, 64));
      task.setResizable(true);
View Full Code Here

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

        "basic.contact",
        createField(data, I18N.t("Kontakt"), "", "contact").setInfoTxt(
            I18N.t("Wie ICQ/E-Mail, nur wichtig, wenn du eine Antwort wünschst.")));

    f.addHeader("mess", new FormHeader(I18N.t("Nachricht"), "mail"));
    f.addElement("mess.mess", new FormTextArea("", "") {

      @Override
      protected JComponent getInternElement() {
        return YFactory.createOverlayTextArea(area, I18N.t("Schreibe die Nachricht hier ein."));
      }
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

      }
    }));

    // add basic
    f.addElement("basic.desc", new FormTextArea(I18N.t("Hilfetext"), q.getDesc()).addChangeListener(new FormElementChangeListener() {

      @Override
      public void stateChanged(FormElement form) {
        q.setDesc(form.getContentAsString());
View Full Code Here

      throw new IllegalArgumentException(selectedObject + " is not a Question");
    }
    final Question q = (Question) selectedObject;

    // add basic
    f.addElement("basic.name", new FormTextArea(I18N.t("Frage"), q.getTitle()).addChangeListener(new FormElementChangeListener() {

      @Override
      public void stateChanged(FormElement form) {
        q.setTitle(form.getContentAsString());
View Full Code Here

      }
      s.append(i.toString());
    }

    // get area
    return (FormTextArea) new FormTextArea(name, s.toString()).addChangeListener(new FormElementChangeListener() {

      @Override
      public void stateChanged(FormElement form) {
        e.getParameters().clear();
        // build list
View Full Code Here

TOP

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

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.