Class PdfVitrineExpose
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,String>
-
- com.openindex.openestate.tool.agency.expose.AbstractExpose
-
- com.openindex.openestate.tool.agency.expose.AbstractPdfExpose
-
- com.openindex.openestate.tool.agency.expose.PdfVitrineExpose
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
public class PdfVitrineExpose extends AbstractPdfExpose
PdfVitrineExpose.- Author:
- Andreas Rudolph
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openindex.openestate.tool.agency.expose.AbstractExpose
AbstractExpose.HorizontalAlign, AbstractExpose.Orientation
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected static floatMARGIN_BOTTOMprotected static floatMARGIN_LEFTprotected static floatMARGIN_RIGHTprotected static floatMARGIN_TOPstatic StringNAMEprotected LocalesecondaryLocaleHolds the configured secondary language for expose generation.-
Fields inherited from class com.openindex.openestate.tool.agency.expose.AbstractPdfExpose
BASE_FONT, baseFont, bodyFontBold, bodyFontH1, bodyFontH2, bodyFontH3, bodyFontNormal, bodyFontSmall, bodyHeadBgColor, bodyHeadFgColor, bodyTextBgColor, bodyTextFgColor, borderColor, dateFormat, DEFAULT_MARGIN_BOTTOM, DEFAULT_MARGIN_LEFT, DEFAULT_MARGIN_RIGHT, DEFAULT_MARGIN_TOP, footerTextFgColor, headerTextFgColor, pageBreakBeforeRow, pageBreakIfNextRowNotFits
-
Fields inherited from class com.openindex.openestate.tool.agency.expose.AbstractExpose
dbConnection, dbExtension, dbLanguageMap, locale, now, orientation
-
-
Constructor Summary
Constructors Constructor Description PdfVitrineExpose()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuild(OutputStream output)protected voidbuildTemplate(com.lowagie.text.pdf.PdfTemplate tpl, float width, float height, int page, int pageCount, int currentRow)AbstractExposePanelcreateForm()protected com.lowagie.text.pdf.PdfPTablecreateTable(com.lowagie.text.Rectangle pageSize)Erzeugt die PDF-Tabelle für eine Immobilie.EstateAttachmentTypegetBigImageType()protected AbstractAttribImplgetInfo1stValue(DbAgencyObject estate, List<OpenEstateType> types)protected AbstractAttribImplgetInfo2ndValue(DbAgencyObject estate, List<OpenEstateType> types)protected String[][]getInfoBooleanStrings(DbAgencyObject estate, List<OpenEstateType> types)protected floatgetMarginBottom(int page)protected floatgetMarginLeft(int page)protected floatgetMarginRight(int page)protected floatgetMarginTop(int page)StringgetName()protected AbstractAttribImplgetPrice1stValue(DbAgencyObject estate, List<OpenEstateType> types)protected AbstractAttribImplgetPrice2ndValue(DbAgencyObject estate, List<OpenEstateType> types)protected AbstractAttribImplgetPriceCommissionValue(DbAgencyObject estate, List<OpenEstateType> types)LocalegetSecondaryLocale()EstateAttachmentTypegetSmallImage1Type()EstateAttachmentTypegetSmallImage2Type()protected AbstractAttribImplgetTextValue(DbAgencyObject estate)StringgetTitle()protected voidinit(ImmoToolProject project, Connection dbConnection)voidsetBigImageType(EstateAttachmentType val)voidsetSecondaryLocale(Locale val)voidsetSmallImage1Type(EstateAttachmentType val)voidsetSmallImage2Type(EstateAttachmentType val)protected com.lowagie.text.pdf.PdfPTablewriteImageTable(float width)protected com.lowagie.text.pdf.PdfPTablewriteInfoTable(float width)protected com.lowagie.text.pdf.PdfPTablewritePriceTable(float width)protected com.lowagie.text.pdf.PdfPTablewriteTextTable(float width, float height)protected com.lowagie.text.pdf.PdfPTablewriteTitleTable(float width)-
Methods inherited from class com.openindex.openestate.tool.agency.expose.AbstractPdfExpose
buildDocument, buildTableHead, buildTableHead2, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, buildTableRow, createWriter, getBodyHeadBgColor, getBodyHeadFgColor, getBodyTextAlignment, getBodyTextBgColor, getBodyTextFgColor, getBorderColor, getEncryptionPassword, getFooterTextAlignment, getFooterTextFgColor, getHeaderTextCustomLine1, getHeaderTextCustomLine2, getHeaderTextCustomLine3, getHeaderTextFgColor, getMatchingFont, getMatchingFont, getMatchingFont, getPageNumber, getRegisteredFont, getRegisteredFont, getRegisteredFont, getRegisteredFont, getRegisteredFont, getRegisteredFont, initDefaults, isBodyHeadNumbered, isEncryption, isEncryptionAccessibilityAllowed, isEncryptionCopyingAllowed, isEncryptionPrintingAllowed, isFooter, isFooterPageNumber, isFooterTimestamp, isFooterWebsite, isHeader, isHeaderLogo, isHeaderTextCustom, registerFont, registerFont, registerFonts, setBodyHeadBgColor, setBodyHeadFgColor, setBodyHeadNumbered, setBodyTextAlignment, setBodyTextBgColor, setBodyTextFgColor, setBorderColor, setEncryption, setEncryptionAccessibilityAllowed, setEncryptionCopyingAllowed, setEncryptionPassword, setEncryptionPrintingAllowed, setFooter, setFooterPageNumber, setFooterTextAlignment, setFooterTextFgColor, setFooterTimestamp, setFooterWebsite, setHeader, setHeaderLogo, setHeaderTextCustom, setHeaderTextCustomLine1, setHeaderTextCustomLine2, setHeaderTextCustomLine3, setHeaderTextFgColor
-
Methods inherited from class com.openindex.openestate.tool.agency.expose.AbstractExpose
finish, generate, generate, generate, generate, getAgent, getAgentLogo, getAgentLogoImage, getEstateContact, getEstateFileDownload, getEstateFiles, getEstateLinks, getEstateObject, getExpose, getExposeFile, getExposes, getLocale, getOrientation, getPublishAddress, getPublishFiles, getPublishLinks, getPublishPrices, getResolution, getSupportedLocales, getTemplateFile, getTemplateId, getTemporaryTemplateFile, isShowContact, isTemplate, saveToDatabase, setLocale, setOrientation, setPublishAddress, setPublishFiles, setPublishLinks, setPublishPrices, setResolution, setShowContact, setTemplate, setTemplateId, setTemporaryTemplate
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
MARGIN_TOP
protected static final float MARGIN_TOP
- See Also:
- Constant Field Values
-
MARGIN_BOTTOM
protected static final float MARGIN_BOTTOM
- See Also:
- Constant Field Values
-
MARGIN_LEFT
protected static final float MARGIN_LEFT
- See Also:
- Constant Field Values
-
MARGIN_RIGHT
protected static final float MARGIN_RIGHT
- See Also:
- Constant Field Values
-
secondaryLocale
protected Locale secondaryLocale
Holds the configured secondary language for expose generation.
-
-
Method Detail
-
build
protected void build(OutputStream output) throws IOException, com.lowagie.text.DocumentException
- Specified by:
buildin classAbstractExpose- Throws:
IOExceptioncom.lowagie.text.DocumentException
-
buildTemplate
protected void buildTemplate(com.lowagie.text.pdf.PdfTemplate tpl, float width, float height, int page, int pageCount, int currentRow) throws com.lowagie.text.DocumentException- Overrides:
buildTemplatein classAbstractPdfExpose- Throws:
com.lowagie.text.DocumentException
-
createForm
public AbstractExposePanel createForm()
- Specified by:
createFormin classAbstractExpose
-
createTable
protected com.lowagie.text.pdf.PdfPTable createTable(com.lowagie.text.Rectangle pageSize) throws com.lowagie.text.DocumentExceptionErzeugt die PDF-Tabelle für eine Immobilie.- Parameters:
pageSize- Seitenformat- Returns:
- PDF-Tabelle
- Throws:
com.lowagie.text.DocumentException
-
getBigImageType
public EstateAttachmentType getBigImageType()
-
getInfo1stValue
protected AbstractAttribImpl getInfo1stValue(DbAgencyObject estate, List<OpenEstateType> types)
-
getInfo2ndValue
protected AbstractAttribImpl getInfo2ndValue(DbAgencyObject estate, List<OpenEstateType> types)
-
getInfoBooleanStrings
protected String[][] getInfoBooleanStrings(DbAgencyObject estate, List<OpenEstateType> types)
-
getMarginBottom
protected float getMarginBottom(int page)
- Overrides:
getMarginBottomin classAbstractPdfExpose
-
getMarginLeft
protected float getMarginLeft(int page)
- Overrides:
getMarginLeftin classAbstractPdfExpose
-
getMarginRight
protected float getMarginRight(int page)
- Overrides:
getMarginRightin classAbstractPdfExpose
-
getMarginTop
protected float getMarginTop(int page)
- Overrides:
getMarginTopin classAbstractPdfExpose
-
getName
public String getName()
- Specified by:
getNamein classAbstractExpose
-
getPrice1stValue
protected AbstractAttribImpl getPrice1stValue(DbAgencyObject estate, List<OpenEstateType> types)
-
getPrice2ndValue
protected AbstractAttribImpl getPrice2ndValue(DbAgencyObject estate, List<OpenEstateType> types)
-
getPriceCommissionValue
protected AbstractAttribImpl getPriceCommissionValue(DbAgencyObject estate, List<OpenEstateType> types)
-
getSecondaryLocale
public Locale getSecondaryLocale()
-
getSmallImage1Type
public EstateAttachmentType getSmallImage1Type()
-
getSmallImage2Type
public EstateAttachmentType getSmallImage2Type()
-
getTextValue
protected AbstractAttribImpl getTextValue(DbAgencyObject estate)
-
getTitle
public String getTitle()
- Specified by:
getTitlein classAbstractExpose
-
init
protected void init(ImmoToolProject project, Connection dbConnection) throws SQLException
- Overrides:
initin classAbstractPdfExpose- Throws:
SQLException
-
setBigImageType
public void setBigImageType(EstateAttachmentType val)
-
setSecondaryLocale
public void setSecondaryLocale(Locale val)
-
setSmallImage1Type
public void setSmallImage1Type(EstateAttachmentType val)
-
setSmallImage2Type
public void setSmallImage2Type(EstateAttachmentType val)
-
writeImageTable
protected com.lowagie.text.pdf.PdfPTable writeImageTable(float width) throws com.lowagie.text.DocumentException- Throws:
com.lowagie.text.DocumentException
-
writeInfoTable
protected com.lowagie.text.pdf.PdfPTable writeInfoTable(float width) throws com.lowagie.text.DocumentException- Throws:
com.lowagie.text.DocumentException
-
writePriceTable
protected com.lowagie.text.pdf.PdfPTable writePriceTable(float width) throws com.lowagie.text.DocumentException- Throws:
com.lowagie.text.DocumentException
-
writeTextTable
protected com.lowagie.text.pdf.PdfPTable writeTextTable(float width, float height) throws com.lowagie.text.DocumentException- Throws:
com.lowagie.text.DocumentException
-
writeTitleTable
protected com.lowagie.text.pdf.PdfPTable writeTitleTable(float width) throws com.lowagie.text.DocumentException- Throws:
com.lowagie.text.DocumentException
-
-