com.openindex.openestate.tool.agency.utils
Class PdfExposeDetailedBuilder

java.lang.Object
  extended by com.openindex.openestate.tool.agency.utils.PdfBuilder
      extended by com.openindex.openestate.tool.agency.utils.PdfExposeDetailedBuilder

public class PdfExposeDetailedBuilder
extends PdfBuilder

PdfExposeDetailedBuilder.
$Id: PdfExposeDetailedBuilder.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Nested Class Summary
static class PdfExposeDetailedBuilder.Area
           
 
Field Summary
static int GALLERY_1_IMAGE_PER_ROW
           
static int GALLERY_1_IMAGE_PER_SITE
           
static int GALLERY_2_IMAGES_PER_ROW
           
static int GALLERY_2_IMAGES_PER_SITE
           
static int GALLERY_3_IMAGES_PER_ROW
           
static int GALLERY_4_IMAGES_PER_ROW
           
static int GALLERY_DEFAULT
           
static int GALLERY_WITHOUT_IMAGES
           
static String NAME
           
 
Fields inherited from class com.openindex.openestate.tool.agency.utils.PdfBuilder
agent, bodyFontBold, bodyFontH1, bodyFontH2, bodyFontH3, bodyFontNormal, bodyFontSmall, bodyHeadBgColor, bodyHeadFgColor, bodyTextBgColor, bodyTextFgColor, borderColor, encryptionAccessibilityAllowed, encryptionCopyingAllowed, encryptionEnabled, encryptionPassword, encryptionPrintingAllowed, footerTextFgColor, headerTextFgColor, MARGIN_BOTTOM, MARGIN_LEFT, MARGIN_RIGHT, MARGIN_TOP, now, pageBreakBeforeRow, pageBreakIfNextRowNotFits, pdfSetup
 
Constructor Summary
PdfExposeDetailedBuilder()
           
 
Method Summary
protected  com.lowagie.text.pdf.PdfPTable buildTable(AgencyEstate estate, com.lowagie.text.Rectangle pageSize)
          Erzeugt die PDF-Tabelle für eine Immobilie.
 AgencySetupPdfFormPanel createSetupPanel()
           
 ImmoToolTask<File> createTask(AgencyEstate estate, File destFile, boolean silent)
          Erzeugt einen Task zur PDF-Erzeugung.
 void generatePdf(AgencyEstate estate, InputStream template, OutputStream output)
          PDF-Erzeugung mit Template starten.
 void generatePdf(AgencyEstate estate, OutputStream output)
          PDF-Erzeugung starten.
protected  void generatePdf(AgencyEstate estate, com.lowagie.text.pdf.PdfReader templateReader, com.lowagie.text.Rectangle pageSize, OutputStream output)
          PDF-Erzeugung.
 void generatePdf(AgencyEstate estate, com.lowagie.text.Rectangle pageSize, OutputStream output)
          PDF-Erzeugung ohne Template starten.
 String getName()
           
 String getTitle()
           
 void load(PdfSetup setup)
           
 
Methods inherited from class com.openindex.openestate.tool.agency.utils.PdfBuilder
buildTableHead, buildTableHead2, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTemplate, createTask, createTask, generateTable, getMatchingFont, getMatchingFont, getMatchingFont, getOpenEstateLocale, isFooterPageNumberPrinted, isFooterTimestampPrinted, isFooterWebsitePrinted, listAvailableBuilders, registeredFont, registeredFont, registerFonts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

GALLERY_DEFAULT

public static final int GALLERY_DEFAULT
See Also:
Constant Field Values

GALLERY_1_IMAGE_PER_ROW

public static final int GALLERY_1_IMAGE_PER_ROW
See Also:
Constant Field Values

GALLERY_2_IMAGES_PER_ROW

public static final int GALLERY_2_IMAGES_PER_ROW
See Also:
Constant Field Values

GALLERY_3_IMAGES_PER_ROW

public static final int GALLERY_3_IMAGES_PER_ROW
See Also:
Constant Field Values

GALLERY_4_IMAGES_PER_ROW

public static final int GALLERY_4_IMAGES_PER_ROW
See Also:
Constant Field Values

GALLERY_1_IMAGE_PER_SITE

public static final int GALLERY_1_IMAGE_PER_SITE
See Also:
Constant Field Values

GALLERY_2_IMAGES_PER_SITE

public static final int GALLERY_2_IMAGES_PER_SITE
See Also:
Constant Field Values

GALLERY_WITHOUT_IMAGES

public static final int GALLERY_WITHOUT_IMAGES
See Also:
Constant Field Values
Constructor Detail

PdfExposeDetailedBuilder

public PdfExposeDetailedBuilder()
Method Detail

buildTable

protected com.lowagie.text.pdf.PdfPTable buildTable(AgencyEstate estate,
                                                    com.lowagie.text.Rectangle pageSize)
                                             throws ImmoToolException
Erzeugt die PDF-Tabelle für eine Immobilie.

Parameters:
estate - Immobilie
pageSize - Seitenformat
Returns:
PDF-Tabelle
Throws:
ImmoToolException - interner Fehler

createSetupPanel

public AgencySetupPdfFormPanel createSetupPanel()
Specified by:
createSetupPanel in class PdfBuilder

createTask

public ImmoToolTask<File> createTask(AgencyEstate estate,
                                     File destFile,
                                     boolean silent)
Description copied from class: PdfBuilder
Erzeugt einen Task zur PDF-Erzeugung.

Specified by:
createTask in class PdfBuilder
Parameters:
estate - Immobilie
destFile - Speicherdatei, wenn null angegegben wurde, öffnet sich ein Dialogfenster zur Wahl des Speicherortes
silent - stille Ausführung
Returns:
Task

generatePdf

public final void generatePdf(AgencyEstate estate,
                              OutputStream output)
                       throws ImmoToolException
PDF-Erzeugung starten.

Specified by:
generatePdf in class PdfBuilder
Parameters:
estate - Immobilie
output - PDF-Ausgabe
Throws:
ImmoToolException - interner Fehler

generatePdf

public final void generatePdf(AgencyEstate estate,
                              InputStream template,
                              OutputStream output)
                       throws IOException,
                              ImmoToolException
PDF-Erzeugung mit Template starten.

Parameters:
estate - Immobilie
template - Template-Eingabe
output - PDF-Ausgabe
Throws:
IOException - IO-Fehler beim Lesen des Templates
ImmoToolException - interner Fehler

generatePdf

public final void generatePdf(AgencyEstate estate,
                              com.lowagie.text.Rectangle pageSize,
                              OutputStream output)
                       throws ImmoToolException
PDF-Erzeugung ohne Template starten.

Parameters:
estate - Immobilie
pageSize - Seitenformat
output - PDF-Ausgabe
Throws:
ImmoToolException - interner Fehler

generatePdf

protected void generatePdf(AgencyEstate estate,
                           com.lowagie.text.pdf.PdfReader templateReader,
                           com.lowagie.text.Rectangle pageSize,
                           OutputStream output)
                    throws ImmoToolException
PDF-Erzeugung.

Parameters:
estate - Immobilie
templateReader - Template-Eingabe
pageSize - Seitenformat
output - PDF-Ausgabe
Throws:
ImmoToolException - interner Fehler

getName

public String getName()
Specified by:
getName in class PdfBuilder

getTitle

public String getTitle()
Specified by:
getTitle in class PdfBuilder

load

public void load(PdfSetup setup)
Overrides:
load in class PdfBuilder


Copyright © 2012 OpenEstate. All Rights Reserved.