Package de.willuhn.jameica.gui.util

Examples of de.willuhn.jameica.gui.util.SimpleContainer


    ColumnLayout cols = new ColumnLayout(getParent(),2);
   
    // Linke Seite
    {
      Container container = new SimpleContainer(cols.getComposite());
      container.addHeadline(i18n.tr("Zahlungspflichtiger"));
      container.addLabelPair(i18n.tr("Name"), control.getEmpfaengerName());
      container.addLabelPair(i18n.tr("IBAN"), control.getEmpfaengerKonto());   
      container.addLabelPair(i18n.tr("BIC"),  control.getEmpfaengerBic());
      container.addCheckbox(control.getStoreEmpfaenger(),i18n.tr("In Adressbuch �bernehmen"));
    }
   
    // Rechte Seite
    {
      Container container = new SimpleContainer(cols.getComposite());
      container.addHeadline(i18n.tr("Mandat"));
      container.addInput(control.getCreditorId());
      container.addInput(control.getMandateId());
      container.addInput(control.getSignatureDate());
      container.addHeadline(i18n.tr("SEPA"));
      container.addInput(control.getEndToEndId());
    }

    Container container = new SimpleContainer(getParent());
    container.addHeadline(i18n.tr("Details"));
    container.addLabelPair(i18n.tr("Verwendungszweck"), control.getZweck());
    container.addLabelPair(i18n.tr("Betrag"),           control.getBetrag());
   
    ButtonArea buttonArea = new ButtonArea();
    Button delete = new Button(i18n.tr("L�schen"), new DBObjectDelete(),control.getBuchung(),false,"user-trash-full.png");
    delete.setEnabled(!l.ausgefuehrt());
    buttonArea.addButton(delete);
View Full Code Here


        close();
      }
    };   


    Container c1 = new SimpleContainer(parent,true,1);
    final EmpfaengerList empf = new EmpfaengerList(a,this.filter);
    empf.setContextMenu(null);
    empf.setMulti(false);
    empf.setSummary(false);
   
    final Button apply = new Button(i18n.tr("�bernehmen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        Object o = empf.getSelection();
        if (o == null || !(o instanceof Address))
          return;

        choosen = (Address) o;
        close();
      }
    },null,true,"ok.png");
    apply.setEnabled(false);
    empf.addSelectionListener(new Listener() {
      public void handleEvent(Event event)
      {
        apply.setEnabled(empf.getSelection() != null);
      }
    });
   
    empf.paint(c1.getComposite());

    ButtonArea b = new ButtonArea();
    b.addButton(apply);
    b.addButton(i18n.tr("Abbrechen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        throw new OperationCanceledException();
      }
    },null,false,"process-stop.png");
   
    Container c2 = new SimpleContainer(parent);
    c2.addButtonArea(b);
  }
View Full Code Here

    this.transfer = control.getTransfer();

    GUI.getView().setTitle(i18n.tr("SEPA-Sammellastschrift bearbeiten"));
    GUI.getView().addPanelButton(new PanelButtonPrint(new PrintSupportSepaSammelLastschrift(transfer)));
   
    Container group = new SimpleContainer(getParent());
    group.addHeadline(i18n.tr("Eigenschaften"));
    group.addLabelPair(i18n.tr("Gutschriftskonto"),control.getKontoAuswahl());
    group.addLabelPair(i18n.tr("Bezeichnung"),control.getName());

    ColumnLayout cols = new ColumnLayout(getParent(),2);

    // Linke Seite
    {
      Container container = new SimpleContainer(cols.getComposite());
      container.addHeadline(i18n.tr("SEPA"));
      container.addText(i18n.tr("Bitte beachten Sie die Vorlauffristen."),true);
      container.addInput(control.getType());
      container.addInput(control.getSequenceType());
      container.addInput(control.getTargetDate());
      container.addInput(control.getBatchBook());
      container.addInput(control.getPmtInfId());
    }
   
    // Rechte Seite
    {
      Container container = new SimpleContainer(cols.getComposite());
      container.addHeadline(i18n.tr("Sonstige Informationen (nur Hibiscus-intern)"));
      container.addText(i18n.tr("Diese Daten werden nicht an die Bank �bertragen."),true);
      container.addInput(control.getTermin());
      container.addInput(control.getReminderInterval());
    }

    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("Sammelauftrag l�schen"),new Action() {
      public void handleAction(Object context) throws ApplicationException
View Full Code Here

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container group = new SimpleContainer(parent);
    group.addText(i18n.tr("Bitte w�hlen Sie die zu verwendende HBCI-Version"),true);
   
    final HBCIVersionInput input = new HBCIVersionInput();
    group.addInput(input);
   
    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("�bernehmen"), new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        version = (String) input.getValue();
        close();
      }
    },null,true,"ok.png");
    buttons.addButton(i18n.tr("Abbrechen"), new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        throw new OperationCanceledException("cancelled while choosing hbci version");
      }
   
    },null,false,"process-stop.png");
    group.addButtonArea(buttons);
  }
View Full Code Here

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container group = new SimpleContainer(parent);
    group.addHeadline(i18n.tr("Details der Lastschrift"));
     
    Input kto = new LabelInput(ueb.getKonto().getKontonummer());
    kto.setComment(ueb.getKonto().getBezeichnung());
    group.addLabelPair(i18n.tr("Eigenes Konto (Empf�nger)"),kto);

    Input empfName = new LabelInput(ueb.getGegenkontoName());
    group.addLabelPair(i18n.tr("Names des Zahlungspflichtigen"),empfName);

    Input empfKto = new LabelInput(ueb.getGegenkontoNummer());
    empfKto.setComment(ueb.getGegenkontoBLZ() + "/" + HBCIProperties.getNameForBank(ueb.getGegenkontoBLZ()));
    group.addLabelPair(i18n.tr("Zu belastendes Konto"),empfKto);

    LabelInput betrag = new LabelInput(HBCI.DECIMALFORMAT.format(ueb.getBetrag()) + " " + ueb.getKonto().getWaehrung());
    betrag.setColor(Color.ERROR);
    group.addLabelPair(i18n.tr("Betrag"),betrag);

    group.addHeadline(i18n.tr("Verwendungszweck"));
    group.addText(VerwendungszweckUtil.toString(ueb,"\n"),false);
   
    super.paint(parent);
    getShell().setMinimumSize(getShell().computeSize(SWT.DEFAULT,SWT.DEFAULT));
  }
View Full Code Here

    TablePart table = new TablePart(entries,null);
    table.addColumn(i18n.tr("Name"),"name");
    table.addColumn(i18n.tr("Wert"),"value");
    table.setSummary(false);

    Container container = new SimpleContainer(parent);
    container.addText(i18n.tr("Inhalt der Wallet-Datei"),true);
   
    table.paint(parent);

    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("Schlie�en"),new Action() {
View Full Code Here

      }
    });
  
    turnusList.setContextMenu(c);
   
    Container container = new SimpleContainer(parent);
    container.addPart(turnusList);

    // und noch die Abschicken-Knoepfe
    ButtonArea buttonArea = new ButtonArea();
    buttonArea.addButton(i18n.tr("Neu"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        handleEdit(null);
      }
    },null,false,"document-new.png");
    buttonArea.addButton(i18n.tr("�bernehmen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        try
        {
          // aktuell markierten Turnus nehmen
          turnus = (Turnus) turnusList.getSelection();
        }
        catch (Exception e)
        {
          Logger.error("error while choosing turnus",e);
        }
        // und Dialog schliessen
        close();
      }
    },null,true,"ok.png");
    buttonArea.addButton(i18n.tr("Abbrechen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        // Turnus entfernen
        turnus = null;
       
        // und schliessen
        close();
      }
    },null,false,"process-stop.png");
   
    container.addButtonArea(buttonArea);
  }
View Full Code Here

    lf.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    TabGroup props = new TabGroup(lf,i18n.tr("Eigenschaften"));
    {
      ColumnLayout columns = new ColumnLayout(props.getComposite(),2);
      Container left = new SimpleContainer(columns.getComposite());
      left.addLabelPair(i18n.tr("Gruppe"),                   control.getKategorie());
      left.addLabelPair(i18n.tr("Bezeichnung des Kontos"),   control.getBezeichnung());
      left.addInput(control.getAccountType());
      left.addLabelPair(i18n.tr("Kontoinhaber"),             control.getName());
      left.addLabelPair(i18n.tr("Saldo"),                    control.getSaldo());
     
      Input avail = control.getSaldoAvailable();
      if (avail != null)
        left.addLabelPair(i18n.tr("Verf�gbarer Betrag"),avail);

      Container right = new SimpleContainer(columns.getComposite(),true);
      right.addHeadline(i18n.tr("Notizen"));
      right.addPart(control.getKommentar());
    }


    TabGroup account = new TabGroup(lf,i18n.tr("Zugangsdaten"));
    {
      ColumnLayout columns = new ColumnLayout(account.getComposite(),2);
      Container left = new SimpleContainer(columns.getComposite());
      left.addLabelPair(i18n.tr("Kundenkennung"),              control.getKundennummer());
      left.addLabelPair(i18n.tr("Kontonummer"),                control.getKontonummer());
      left.addLabelPair(i18n.tr("Bankleitzahl"),               control.getBlz());
      left.addLabelPair(i18n.tr("Unterkontonummer"),           control.getUnterkonto());
      left.addLabelPair(i18n.tr("Zugangsverfahren"),           control.getBackendAuswahl());
      left.addLabelPair(i18n.tr("FinTS-Sicherheitsverfahren"), control.getPassportAuswahl());

      Container right = new SimpleContainer(columns.getComposite());
      right.addLabelPair(i18n.tr("IBAN"),                     control.getIban());
      right.addLabelPair(i18n.tr("BIC"),                      control.getBic());
      right.addInput(control.getOffline());
    }
   
    // und noch die Abschicken-Knoepfe
    ButtonArea buttonArea = new ButtonArea();
    buttonArea.addButton(control.getSynchronizeOptions());
View Full Code Here

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    SimpleContainer group = new SimpleContainer(parent);
    group.addText(i18n.tr("Bitte drucken Sie den INI-Brief aus und senden Ihn unterschrieben an Ihre Bank.\n" +
                          "Nach der Freischaltung durch Ihr Geldinstitut kann dieser Schl�ssel verwendet werden."),true);

    group.addHeadline(i18n.tr("Hashwert"));
    group.addText(HBCIUtils.data2hex(iniletter.getKeyHashDisplay()).toUpperCase(),true,Color.ERROR);
   
    group.addHeadline(i18n.tr("Exponent"));
    group.addText(HBCIUtils.data2hex(iniletter.getKeyExponentDisplay()).toUpperCase(),true);

    group.addHeadline(i18n.tr("Modulus"));
    group.addText(HBCIUtils.data2hex(iniletter.getKeyModulusDisplay()).toUpperCase(),true);

    Input printers = getPrinterList();
    group.addText("\n",true);
    group.addInput(printers);
    group.addInput(getError());
   
    ButtonArea buttons = new ButtonArea();
    Button print = new Button(i18n.tr("Drucken"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        print();
        close();
      }
    },null,true,"document-print.png");
    print.setEnabled((printers instanceof SelectInput)); // Drucken nur moeglich, wenn Drucker vorhanden.
    buttons.addButton(print);
   
    buttons.addButton(i18n.tr("Speichern unter..."),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        save();
      }
    },null,false,"document-save.png");
    buttons.addButton(i18n.tr("Abbrechen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        throw new OperationCanceledException("cancelled in ini letter dialog");
      }
    },null,false,"process-stop.png");
    group.addButtonArea(buttons);
   
    getShell().setMinimumSize(getShell().computeSize(WINDOW_WIDTH,SWT.DEFAULT));
  }
View Full Code Here

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    SimpleContainer container = new SimpleContainer(parent);
    if (this.count > 1)
      container.addText(i18n.tr("Die Lastschriften werden zu {0} Sammelauftr�gen zusammengefasst.",String.valueOf(this.count)),true);
    else
      container.addText(i18n.tr("Die Lastschriften werden zu einem Sammelauftrag zusammengefasst."),true);

    if (this.canDelete)
    {
      this.check = new CheckboxInput(false);
      this.check.setName(i18n.tr("Einzelauftr�ge nach �bernahme in die Sammelauftr�ge l�schen"));
      container.addInput(this.check);
    }
    ButtonArea b = new ButtonArea();
    b.addButton(i18n.tr("Fortsetzen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        if (check != null)
          delete = (Boolean) check.getValue();
        close();
      }
    },null,false,"ok.png");
    b.addButton(i18n.tr("Abbrechen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        throw new OperationCanceledException();
      }
    },null,false,"process-stop.png");

    container.addButtonArea(b);
    getShell().setMinimumSize(getShell().computeSize(350,SWT.DEFAULT));
  }
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.gui.util.SimpleContainer

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.