Package de.willuhn.jameica.hbci.gui.controller

Examples of de.willuhn.jameica.hbci.gui.controller.SammelLastBuchungControl


   * @see de.willuhn.jameica.gui.AbstractView#bind()
   */
  public void bind() throws Exception
  {

    final SammelLastBuchungControl control = new SammelLastBuchungControl(this);

    SammelTransfer l = control.getBuchung().getSammelTransfer();
    GUI.getView().setTitle(i18n.tr("Sammel-Lastschrift {0}: Buchung bearbeiten",l.getBezeichnung()));
   
    SimpleContainer group = new SimpleContainer(getParent());
    group.addHeadline(i18n.tr("Zahlungspflichtiger"));
    group.addLabelPair(i18n.tr("Name"),                       control.getGegenkontoName());
    group.addLabelPair(i18n.tr("Kontonummer"),                control.getGegenKonto());
    group.addLabelPair(i18n.tr("BLZ"),                        control.getGegenkontoBLZ());
    group.addCheckbox(control.getStoreAddress(),i18n.tr("In Adressbuch �bernehmen"));

    SimpleContainer details = new SimpleContainer(getParent());
    details.addHeadline(i18n.tr("Details"));
    details.addLabelPair(i18n.tr("Verwendungszweck"),          control.getZweck());
    details.addLabelPair(i18n.tr("weiterer Verwendungszweck"),control.getZweck2());
    details.addLabelPair(i18n.tr("Betrag"),                    control.getBetrag());
    details.addLabelPair(i18n.tr("Textschl�ssel"),            control.getTextSchluessel());

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

    Button store = new Button(i18n.tr("Speichern"), new Action() {
      public void handleAction(Object context) throws ApplicationException {
        control.handleStore(false);
      }
    },null,false,"document-save.png");
    store.setEnabled(!l.ausgefuehrt());
    buttonArea.addButton(store);
   
    // BUGZILLA 116 http://www.willuhn.de/bugzilla/show_bug.cgi?id=116
    Button store2 = new Button(i18n.tr("Speichern und n�chste Buchung"), new Action() {
      public void handleAction(Object context) throws ApplicationException {
        control.handleStore(true);
      }
    },null,!l.ausgefuehrt(),"go-next.png");
    store2.setEnabled(!l.ausgefuehrt());
    buttonArea.addButton(store2);
   
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.hbci.gui.controller.SammelLastBuchungControl

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.