Package de.yaams.maker.helper.gui.icons

Examples of de.yaams.maker.helper.gui.icons.FormIcon


    // 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


        fav.setTitle(form.getContentAsString());

      }
    }));
    f.addElement("basic.icon",
        new FormIcon(I18N.t("Icon"), fav.getIcon(), IconCache.games).addChangeListener(new FormElementChangeListener() {

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

          @Override
          protected Component getComponent(final Project p) {
            FormBuilder f = new FormBuilder("options.dev");

            // add it
            f.addElement("basic.icon", new FormIcon(I18N.t("Icon"), "", null));

            return f.getPanel(true);
          }
        });
      }
View Full Code Here

TOP

Related Classes of de.yaams.maker.helper.gui.icons.FormIcon

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.