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

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

public class PdfExposeShortBuilder
extends PdfBuilder

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

Author:
Andreas Rudolph

Field Summary
static int CONTACT_FAX
           
static int CONTACT_MAIL
           
static int CONTACT_NAME
           
static int CONTACT_PHONE
           
static int GALLERY_1x1_IMAGE
           
static int GALLERY_1x1_PLAN
           
static int GALLERY_2x1_IMAGE_PLAN
           
static int GALLERY_2x1_IMAGES
           
static int GALLERY_2x1_PLAN_IMAGE
           
static int GALLERY_2x2_IMAGES
           
static int GALLERY_3x1_IMAGES
           
static int GALLERY_3x2_IMAGES
           
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
PdfExposeShortBuilder()
           
 
Method Summary
protected  com.lowagie.text.pdf.PdfPTable buildTable(AgencyEstate estate, com.lowagie.text.Rectangle pageSize)
          Erzeugt die PDF-Tabelle für eine Immobilie.
protected  com.lowagie.text.pdf.PdfPTable createExposeAttribsBottomTable(AgencyEstate estate, List<String> estateTypePath, Color textColor, float totalWidth, float totalHeight)
           
protected  com.lowagie.text.pdf.PdfPTable createExposeAttribsTopTable(AgencyEstate estate, List<String> estateTypePath, Color textColor, float totalWidth, float totalHeight)
           
protected  com.lowagie.text.pdf.PdfPTable createExposeContactTable(AgencyContact contact, AgencyAgent agent, Color textColor, float totalWidth, float totalHeight)
           
protected  com.lowagie.text.pdf.PdfPTable createExpsoseAttribsPriceTable(AgencyEstate estate, Color textColor, float totalWidth, float totalHeight)
           
protected  com.lowagie.text.pdf.PdfPTable createExpsoseDescriptionTable(AgencyEstate estate, Color textColor, float totalWidth, float totalHeight)
           
protected  com.lowagie.text.pdf.PdfPTable createExpsoseHeadCityTable(AgencyEstate estate, Color textColor)
           
protected  com.lowagie.text.pdf.PdfPTable createExpsoseHeadTable(AgencyEstate estate, Color textColor, float totalWidth, float totalHeight)
           
protected  com.lowagie.text.pdf.PdfPTable createExpsoseProvisionTable(AgencyEstate estate, Color textColor, float totalWidth, float totalHeight)
           
protected  com.lowagie.text.pdf.PdfPTable createExpsoseTypeTable(AgencyEstate estate, Color textColor)
           
 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()
           
protected  boolean isFooterPageNumberPrinted()
           
 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, 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_1x1_IMAGE

public static final int GALLERY_1x1_IMAGE
See Also:
Constant Field Values

GALLERY_1x1_PLAN

public static final int GALLERY_1x1_PLAN
See Also:
Constant Field Values

GALLERY_2x1_IMAGE_PLAN

public static final int GALLERY_2x1_IMAGE_PLAN
See Also:
Constant Field Values

GALLERY_2x1_PLAN_IMAGE

public static final int GALLERY_2x1_PLAN_IMAGE
See Also:
Constant Field Values

GALLERY_2x1_IMAGES

public static final int GALLERY_2x1_IMAGES
See Also:
Constant Field Values

GALLERY_3x1_IMAGES

public static final int GALLERY_3x1_IMAGES
See Also:
Constant Field Values

GALLERY_2x2_IMAGES

public static final int GALLERY_2x2_IMAGES
See Also:
Constant Field Values

GALLERY_3x2_IMAGES

public static final int GALLERY_3x2_IMAGES
See Also:
Constant Field Values

GALLERY_WITHOUT_IMAGES

public static final int GALLERY_WITHOUT_IMAGES
See Also:
Constant Field Values

CONTACT_NAME

public static final int CONTACT_NAME
See Also:
Constant Field Values

CONTACT_PHONE

public static final int CONTACT_PHONE
See Also:
Constant Field Values

CONTACT_FAX

public static final int CONTACT_FAX
See Also:
Constant Field Values

CONTACT_MAIL

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

PdfExposeShortBuilder

public PdfExposeShortBuilder()
Method Detail

buildTable

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

Parameters:
estate - Immobilie
pageSize - Seitenformat
Returns:
PDF-Tabelle
Throws:
ImmoToolException - interner Fehler
com.lowagie.text.DocumentException
OpenEstateException

createExposeAttribsBottomTable

protected com.lowagie.text.pdf.PdfPTable createExposeAttribsBottomTable(AgencyEstate estate,
                                                                        List<String> estateTypePath,
                                                                        Color textColor,
                                                                        float totalWidth,
                                                                        float totalHeight)

createExpsoseAttribsPriceTable

protected com.lowagie.text.pdf.PdfPTable createExpsoseAttribsPriceTable(AgencyEstate estate,
                                                                        Color textColor,
                                                                        float totalWidth,
                                                                        float totalHeight)
                                                                 throws ImmoToolException
Throws:
ImmoToolException

createExposeAttribsTopTable

protected com.lowagie.text.pdf.PdfPTable createExposeAttribsTopTable(AgencyEstate estate,
                                                                     List<String> estateTypePath,
                                                                     Color textColor,
                                                                     float totalWidth,
                                                                     float totalHeight)

createExposeContactTable

protected com.lowagie.text.pdf.PdfPTable createExposeContactTable(AgencyContact contact,
                                                                  AgencyAgent agent,
                                                                  Color textColor,
                                                                  float totalWidth,
                                                                  float totalHeight)

createExpsoseDescriptionTable

protected com.lowagie.text.pdf.PdfPTable createExpsoseDescriptionTable(AgencyEstate estate,
                                                                       Color textColor,
                                                                       float totalWidth,
                                                                       float totalHeight)

createExpsoseHeadTable

protected com.lowagie.text.pdf.PdfPTable createExpsoseHeadTable(AgencyEstate estate,
                                                                Color textColor,
                                                                float totalWidth,
                                                                float totalHeight)
                                                         throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException

createExpsoseHeadCityTable

protected com.lowagie.text.pdf.PdfPTable createExpsoseHeadCityTable(AgencyEstate estate,
                                                                    Color textColor)
                                                             throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException

createExpsoseProvisionTable

protected com.lowagie.text.pdf.PdfPTable createExpsoseProvisionTable(AgencyEstate estate,
                                                                     Color textColor,
                                                                     float totalWidth,
                                                                     float totalHeight)
                                                              throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException

createExpsoseTypeTable

protected com.lowagie.text.pdf.PdfPTable createExpsoseTypeTable(AgencyEstate estate,
                                                                Color textColor)
                                                         throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException

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

isFooterPageNumberPrinted

protected boolean isFooterPageNumberPrinted()
Overrides:
isFooterPageNumberPrinted in class PdfBuilder

load

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


Copyright © 2012 OpenEstate. All Rights Reserved.