Package de.willuhn.jameica.hbci.io.print

Source Code of de.willuhn.jameica.hbci.io.print.PrintSupportSepaSammelLastschrift

/**********************************************************************
*
* Copyright (c) by Olaf Willuhn
* All rights reserved
*
**********************************************************************/

package de.willuhn.jameica.hbci.io.print;

import java.rmi.RemoteException;
import java.util.Date;

import net.sf.paperclips.GridPrint;
import net.sf.paperclips.TextPrint;
import de.willuhn.jameica.hbci.HBCI;
import de.willuhn.jameica.hbci.rmi.SepaSammelLastschrift;
import de.willuhn.util.ApplicationException;


/**
* Druck-Support fuer SEPA-Sammel-Lastschriften.
*/
public class PrintSupportSepaSammelLastschrift extends AbstractPrintSupportSepaSammelTransfer<SepaSammelLastschrift>
{
  /**
   * ct.
   * @param ctx die zu druckenden Daten.
   */
  public PrintSupportSepaSammelLastschrift(Object ctx)
  {
    super(ctx);
  }

  /**
   * @see de.willuhn.jameica.hbci.io.print.AbstractPrintSupport#getTitle()
   */
  String getTitle() throws ApplicationException
  {
    return i18n.tr("SEPA-Sammellastschrift");
  }
 
  /**
   * @see de.willuhn.jameica.hbci.io.print.AbstractPrintSupportSepaSammelTransfer#createTransferTable(de.willuhn.jameica.hbci.rmi.SepaSammelTransfer)
   */
  GridPrint createTransferTable(SepaSammelLastschrift a) throws RemoteException, ApplicationException
  {
    GridPrint table = super.createTransferTable(a);
   
    // Wir fuegen noch ein paar SEPA-spezifische Sachen hinzu.
    table.add(new TextPrint(i18n.tr("Sequenz-Typ"),fontNormal));
    table.add(new TextPrint(a.getSequenceType().getDescription(),fontNormal));
    table.add(new TextPrint(i18n.tr("Lastschrift-Art"),fontNormal));
    table.add(new TextPrint(a.getType().getDescription(),fontNormal));
    Date faellig = a.getTargetDate();
    table.add(new TextPrint(i18n.tr("Zieltermin"),fontNormal));
    table.add(new TextPrint(faellig == null ? "-" : HBCI.DATEFORMAT.format(faellig),fontNormal));

    return table;
  }
}
TOP

Related Classes of de.willuhn.jameica.hbci.io.print.PrintSupportSepaSammelLastschrift

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.