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

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


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

        if (YDialog.showForm(I18N.t("Datei manuell runterladen"), "open_web", f)) {
          return new File(f.getElement("basic.dest").getContentAsString());
        }
        return null;
View Full Code Here


      return null;
    }

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

    form.addElement("basic.usb", c);

    form.addElement(
        "basic.folder",
        FormHelper.addEnableLister(
            new FormFileSelectField(T.r("start.folder.title"), new File(Setting.getSystemPreferences().get("workspace",
                new File(SystemUtils.getUserHome(), "YAams").getAbsolutePath())), JFileChooser.SAVE_DIALOG, true, true), c, "false"))
        .addChangeListener(new FormElementChangeListener() {

          @Override
          public void stateChanged(FormElement form) {
View Full Code Here

  protected FormBuilder getMainPanel() {
    FormBuilder f = new FormBuilder("export." + getIcon());
    f.addHeader("basic", new FormHeader(I18N.t("Generelle Exportoptionen"), "export"));

    // add path
    f.addElement("basic.path", new FormFileSelectField(I18N.t("Pfad"), path, JFileChooser.SAVE_DIALOG, false, true)
        .addChangeListener(new FormElementChangeListener() {

          @Override
          public void stateChanged(FormElement form) {
            path = new File(form.getContentAsString());
View Full Code Here

TOP

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

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.