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

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

/**********************************************************************
* $Source: /cvsroot/hibiscus/hibiscus/src/de/willuhn/jameica/hbci/io/print/PrintSupportUeberweisung.java,v $
* $Revision: 1.6 $
* $Date: 2011/04/13 17:35:46 $
* $Author: willuhn $
*
* Copyright (c) by willuhn - software & services
* All rights reserved
*
**********************************************************************/

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

import java.rmi.RemoteException;

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

/**
* Druck-Support fuer einzelne Ueberweisungen.
*/
public class PrintSupportUeberweisung extends AbstractPrintSupportBaseUeberweisung
{
  private Ueberweisung u = null;
 
  /**
   * ct.
   * @param u die zu druckende Ueberweisung.
   */
  public PrintSupportUeberweisung(Ueberweisung u)
  {
    super(u);
    this.u = u;
  }

  /**
   * @see de.willuhn.jameica.hbci.io.print.AbstractPrintSupport#getTitle()
   */
  String getTitle() throws ApplicationException
  {
    return i18n.tr("�berweisung");
  }

  /**
   * @see de.willuhn.jameica.hbci.io.print.AbstractPrintSupportBaseUeberweisung#customize(net.sf.paperclips.GridPrint)
   */
  void customize(GridPrint grid) throws RemoteException, ApplicationException
  {
    super.customize(grid);

    if (this.u == null)
      return;
   
    String typ = i18n.tr("�berweisung");
    if (u.isTerminUeberweisung())
      typ = "Termin-�berweisung";
    else if (u.isUmbuchung())
      typ = "Umbuchung";
    grid.add(new TextPrint(i18n.tr("Auftragstyp"),fontNormal));
    grid.add(new TextPrint(typ,fontNormal));
  }
}



/**********************************************************************
* $Log: PrintSupportUeberweisung.java,v $
* Revision 1.6  2011/04/13 17:35:46  willuhn
* @N Druck-Support fuer Kontoauszuege fehlte noch
*
* Revision 1.5  2011-04-11 14:36:37  willuhn
* @N Druck-Support fuer Lastschriften und SEPA-Ueberweisungen
*
**********************************************************************/
TOP

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

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.