Examples of SelectInput


Examples of com.compomics.mslims.util.http.forms.inputs.SelectInput

          lInput.setValue("Mascot generic");
        } else if (lInput.getName().equals("REPORT")) {
          // set REPORT to AUTO (the first entry)
          lInput.setValue(((SelectInput) lInput).getElements()[0]);
        } else {
          SelectInput input = (SelectInput) lInput;
          String[] elements = ((SelectInput) lInput).getElements();

          if (input.getMultiple()) {
            UserParameter p = new MultiChoiceParameter<String>(
                lInput.getComment(), lInput.getName(), elements);
            para.add(p);

          } else {
            UserParameter p = new ComboParameter<String>(
                lInput.getComment(), lInput.getName(), elements);
            para.add(p);
          }
        }
      }

      // Checkbox
      if (lInput.getType() == InputInterface.CHECKBOX) {
        if (lInput.getName().equals("OVERVIEW")) {
          lInput.setValue("0");
        } else
          para.add(new BooleanParameter(lInput.getComment(), lInput
              .getName()));
      }

      // Radio
      if (lInput.getType() == InputInterface.RADIOINPUT) {
        RadioInput input = (RadioInput) lInput;
        String[] elements = input.getChoices();
        para.add(new ComboParameter<String>(lInput.getComment(), lInput
            .getName(), elements));

      }
View Full Code Here

Examples of de.willuhn.jameica.gui.input.SelectInput

   */
  protected void paint(Composite parent) throws Exception
  {
    Container c = new SimpleContainer(parent);
   
    final SelectInput version = this.getPainVersionInput();
    final FileInput target    = this.getFileInput();
    final LabelInput msg      = this.getMessage();
   
    c.addInput(version);
    c.addInput(target);
    c.addInput(msg);
   
    ButtonArea buttons = new ButtonArea();
    this.ok = new Button(i18n.tr("Export starten"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        painVersion = (PainVersion) version.getValue();
        if (painVersion == null)
        {
          msg.setValue(i18n.tr("Bitte w�hlen Sie eine Schema-Version aus."));
          return;
        }
View Full Code Here

Examples of de.willuhn.jameica.gui.input.SelectInput

   * @return Auswahlfeld mit der PAIN-Version.
   */
  private SelectInput getPainVersionInput()
  {
    List<PainVersion> list = PainVersion.getKnownVersions(type);
    final SelectInput select = new SelectInput(list,PainVersion.findGreatest(list));
    select.setAttribute("file");
    select.setName(i18n.tr("Schema-Version der SEPA-Datei"));
    select.addListener(new Listener() {
      public void handleEvent(Event event)
      {
        if (ok != null)
          ok.setEnabled(select.getValue() != null);
      }
    });
    return select;
  }
View Full Code Here

Examples of de.willuhn.jameica.gui.input.SelectInput

    }
    else
    {
      Collections.sort(l);
      Exp[] exp = (Exp[]) l.toArray(new Exp[size]);
      this.exporterListe = new SelectInput(PseudoIterator.fromArray(exp),selected);
    }
    this.exporterListe.setName(i18n.tr("Verf�gbare Formate"));
    return this.exporterListe;
  }
View Full Code Here

Examples of de.willuhn.jameica.gui.input.SelectInput

   
    List<String> groups = new LinkedList<String>();
    groups.add(""); // <Keine Kategorie>
    groups.addAll(KontoUtil.getGroups());

    this.kategorie = new SelectInput(groups,this.getKonto().getKategorie());
    this.kategorie.setName(i18n.tr("Gruppe"));
    this.kategorie.setEditable(true);
    return this.kategorie;
  }
View Full Code Here

Examples of de.willuhn.jameica.gui.input.SelectInput

    if (Application.getPlatform().getOS() != Platform.OS_MAC)
      services = PrintServiceLookup.lookupPrintServices(DOCFLAVOR,PRINTPROPS);

    if (services != null && services.length > 0)
    {
      this.printerList = new SelectInput(services,null);
      ((SelectInput)this.printerList).setAttribute("name");
    }
    else
    {
      printerList = new LabelInput(i18n.tr("Kein Drucker gefunden"));
View Full Code Here

Examples of de.willuhn.jameica.gui.input.SelectInput

    List<Typ> list = new ArrayList<Typ>();
    list.add(new Typ(false,false));
    list.add(new Typ(true,false));
    list.add(new Typ(false,true));
    // TODO: Bei BZU- oder Spenden-Ueberweisung muss die Box deaktiviert werden und beide Flags duerfen nicht gesetzt sein
    this.typ = new SelectInput(list,new Typ(u.isTerminUeberweisung(),u.isUmbuchung()));
    this.typ.setName(i18n.tr("Auftragstyp"));
    this.typ.setAttribute("name");
    this.typ.setEnabled(!u.ausgefuehrt());
    this.typ.addListener(new Listener() {
      public void handleEvent(Event event)
View Full Code Here

Examples of de.willuhn.jameica.gui.input.SelectInput

  {
    if (textschluessel != null)
      return textschluessel;

    String current = ((BaseUeberweisung)getTransfer()).getTextSchluessel();
    textschluessel = new SelectInput(TextSchluessel.get(TextSchluessel.SET_UEB),TextSchluessel.get(current));
    textschluessel.setName(i18n.tr("Textschl�ssel"));
    textschluessel.setEnabled(!((Terminable)getTransfer()).ausgefuehrt());

    ////////////////////////////////////////////////////////////////////////////
    // BZ� und Spenden-Ueberweisung
View Full Code Here

Examples of de.willuhn.jameica.gui.input.SelectInput

      return importerListe;
    }

    Collections.sort(l);
    Imp[] imp = (Imp[]) l.toArray(new Imp[size]);
    importerListe = new SelectInput(PseudoIterator.fromArray(imp),selected);
    return importerListe;
  }
View Full Code Here

Examples of de.willuhn.jameica.gui.input.SelectInput

   */
  private SelectInput getFilter()
  {
    if (this.filter == null)
    {
      this.filter = new SelectInput(new String[] {"None","Base64"},this.passport.getFilterType());
      this.filter.setComment(i18n.tr("Bei PIN/TAN meist \"Base64\", sonst \"None\""));

      String clazz = this.passport.getClass().getName();
      if (clazz.toUpperCase().indexOf("PINTAN") != -1)
        this.filter.setPreselected("Base64");
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.