public abstract class AbstractPdfExpose extends AbstractExpose
AbstractExpose.HorizontalAlign, AbstractExpose.Orientation
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected static String |
BASE_FONT |
protected com.lowagie.text.pdf.BaseFont |
baseFont |
protected com.lowagie.text.Font |
bodyFontBold |
protected com.lowagie.text.Font |
bodyFontH1 |
protected com.lowagie.text.Font |
bodyFontH2 |
protected com.lowagie.text.Font |
bodyFontH3 |
protected com.lowagie.text.Font |
bodyFontNormal |
protected com.lowagie.text.Font |
bodyFontSmall |
protected Color |
bodyHeadBgColor |
protected Color |
bodyHeadFgColor |
protected Color |
bodyTextBgColor |
protected Color |
bodyTextFgColor |
protected Color |
borderColor |
protected DateFormat |
dateFormat |
protected static float |
DEFAULT_MARGIN_BOTTOM |
protected static float |
DEFAULT_MARGIN_LEFT |
protected static float |
DEFAULT_MARGIN_RIGHT |
protected static float |
DEFAULT_MARGIN_TOP |
protected Color |
footerTextFgColor |
protected Color |
headerTextFgColor |
protected List<Integer> |
pageBreakBeforeRow |
protected List<Integer> |
pageBreakIfNextRowNotFits |
dbConnection, dbExtension, dbLanguageMap, locale, now, orientation
Constructor and Description |
---|
AbstractPdfExpose() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildDocument(com.lowagie.text.Document document,
com.lowagie.text.pdf.PdfPTable table,
com.lowagie.text.pdf.PdfReader templateReader,
com.lowagie.text.Rectangle pageSize,
OutputStream output) |
protected void |
buildTableHead(com.lowagie.text.pdf.PdfPTable table,
int index,
String headline) |
protected void |
buildTableHead2(com.lowagie.text.pdf.PdfPTable table,
int index,
int pos,
String headline) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
com.lowagie.text.Paragraph paragraph) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
String txt) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
String txt,
float size) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
String txt,
float size,
int align) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
String txt,
int style) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
String txt,
int style,
float size) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
String txt,
int style,
float size,
int align) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
String txt,
int style,
int align) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
String key,
com.lowagie.text.Paragraph value) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
String key,
com.lowagie.text.pdf.PdfPCell value) |
protected void |
buildTableRow(com.lowagie.text.pdf.PdfPTable table,
String key,
String value) |
protected void |
buildTemplate(com.lowagie.text.pdf.PdfTemplate tpl,
float width,
float height,
int page,
int pageCount,
int currentRow) |
protected com.lowagie.text.pdf.PdfWriter |
createWriter(com.lowagie.text.Document document,
OutputStream output) |
Color |
getBodyHeadBgColor() |
Color |
getBodyHeadFgColor() |
AbstractExpose.HorizontalAlign |
getBodyTextAlignment() |
Color |
getBodyTextBgColor() |
Color |
getBodyTextFgColor() |
Color |
getBorderColor() |
String |
getEncryptionPassword() |
AbstractExpose.HorizontalAlign |
getFooterTextAlignment() |
Color |
getFooterTextFgColor() |
String |
getHeaderTextCustomLine1() |
String |
getHeaderTextCustomLine2() |
String |
getHeaderTextCustomLine3() |
Color |
getHeaderTextFgColor() |
protected float |
getMarginBottom(int page) |
protected float |
getMarginLeft(int page) |
protected float |
getMarginRight(int page) |
protected float |
getMarginTop(int page) |
static com.lowagie.text.Font |
getMatchingFont(String txt,
float maxWidth,
float maxHeight,
com.lowagie.text.Font baseFont,
float multipliedLeading) |
static com.lowagie.text.Font |
getMatchingFont(String txt,
float maxWidth,
float maxHeight,
com.lowagie.text.Font baseFont,
float multipliedLeading,
char[] separators) |
static com.lowagie.text.Font |
getMatchingFont(String txt,
float maxWidth,
com.lowagie.text.Font baseFont) |
protected int |
getPageNumber(int row) |
protected static com.lowagie.text.Font |
getRegisteredFont() |
protected static com.lowagie.text.Font |
getRegisteredFont(float size,
int style) |
protected static com.lowagie.text.Font |
getRegisteredFont(float size,
int style,
Color color) |
protected static com.lowagie.text.Font |
getRegisteredFont(String name) |
protected static com.lowagie.text.Font |
getRegisteredFont(String name,
float size,
int style) |
protected static com.lowagie.text.Font |
getRegisteredFont(String name,
float size,
int style,
Color color) |
protected void |
init(ImmoToolProject project,
Connection dbConnection) |
void |
initDefaults() |
boolean |
isBodyHeadNumbered() |
boolean |
isEncryption() |
boolean |
isEncryptionAccessibilityAllowed() |
boolean |
isEncryptionCopyingAllowed() |
boolean |
isEncryptionPrintingAllowed() |
boolean |
isFooter() |
boolean |
isFooterPageNumber() |
boolean |
isFooterTimestamp() |
boolean |
isFooterWebsite() |
boolean |
isHeader() |
boolean |
isHeaderLogo() |
boolean |
isHeaderTextCustom() |
protected void |
registerFonts() |
void |
setBodyHeadBgColor(Color val) |
void |
setBodyHeadFgColor(Color val) |
void |
setBodyHeadNumbered(boolean val) |
void |
setBodyTextAlignment(AbstractExpose.HorizontalAlign val) |
void |
setBodyTextBgColor(Color val) |
void |
setBodyTextFgColor(Color val) |
void |
setBorderColor(Color val) |
void |
setEncryption(boolean val) |
void |
setEncryptionAccessibilityAllowed(boolean val) |
void |
setEncryptionCopyingAllowed(boolean val) |
void |
setEncryptionPassword(String val) |
void |
setEncryptionPrintingAllowed(boolean val) |
void |
setFooter(boolean val) |
void |
setFooterPageNumber(boolean val) |
void |
setFooterTextAlignment(AbstractExpose.HorizontalAlign val) |
void |
setFooterTextFgColor(Color val) |
void |
setFooterTimestamp(boolean val) |
void |
setFooterWebsite(boolean val) |
void |
setHeader(boolean val) |
void |
setHeaderLogo(boolean val) |
void |
setHeaderTextCustom(boolean val) |
void |
setHeaderTextCustomLine1(String val) |
void |
setHeaderTextCustomLine2(String val) |
void |
setHeaderTextCustomLine3(String val) |
void |
setHeaderTextFgColor(Color val) |
build, createForm, finish, generate, generate, generate, generate, getAgent, getAgentLogo, getAgentLogoImage, getEstateContact, getEstateFileDownload, getEstateFiles, getEstateObject, getExpose, getExposeFile, getExposes, getLocale, getName, getOrientation, getPublishAddress, getPublishFiles, getPublishPrices, getResolution, getSupportedLocales, getTemplateFile, getTemplateId, getTemporaryTemplateFile, getTitle, isShowContact, isTemplate, saveToDatabase, setLocale, setOrientation, setPublishAddress, setPublishFiles, setPublishPrices, setResolution, setShowContact, setTemplate, setTemplateId, setTemporaryTemplate
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
protected static final String BASE_FONT
protected static final float DEFAULT_MARGIN_TOP
protected static final float DEFAULT_MARGIN_BOTTOM
protected static final float DEFAULT_MARGIN_LEFT
protected static final float DEFAULT_MARGIN_RIGHT
protected DateFormat dateFormat
protected com.lowagie.text.pdf.BaseFont baseFont
protected com.lowagie.text.Font bodyFontH1
protected com.lowagie.text.Font bodyFontH2
protected com.lowagie.text.Font bodyFontH3
protected com.lowagie.text.Font bodyFontBold
protected com.lowagie.text.Font bodyFontNormal
protected com.lowagie.text.Font bodyFontSmall
protected Color borderColor
protected Color bodyHeadBgColor
protected Color bodyHeadFgColor
protected Color bodyTextBgColor
protected Color bodyTextFgColor
protected Color headerTextFgColor
protected Color footerTextFgColor
protected void buildDocument(com.lowagie.text.Document document, com.lowagie.text.pdf.PdfPTable table, com.lowagie.text.pdf.PdfReader templateReader, com.lowagie.text.Rectangle pageSize, OutputStream output) throws IOException, com.lowagie.text.DocumentException
IOException
com.lowagie.text.DocumentException
protected void buildTableHead(com.lowagie.text.pdf.PdfPTable table, int index, String headline)
protected void buildTableHead2(com.lowagie.text.pdf.PdfPTable table, int index, int pos, String headline)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, String txt)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, String txt, int style)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, String txt, int style, int align)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, String txt, float size)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, String txt, float size, int align)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, String txt, int style, float size)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, String txt, int style, float size, int align)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, com.lowagie.text.Paragraph paragraph)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, String key, String value)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, String key, com.lowagie.text.Paragraph value)
protected void buildTableRow(com.lowagie.text.pdf.PdfPTable table, String key, com.lowagie.text.pdf.PdfPCell value)
protected void buildTemplate(com.lowagie.text.pdf.PdfTemplate tpl, float width, float height, int page, int pageCount, int currentRow) throws IOException, com.lowagie.text.DocumentException
IOException
com.lowagie.text.DocumentException
protected com.lowagie.text.pdf.PdfWriter createWriter(com.lowagie.text.Document document, OutputStream output) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
public Color getBodyHeadBgColor()
public Color getBodyHeadFgColor()
public AbstractExpose.HorizontalAlign getBodyTextAlignment()
public Color getBodyTextBgColor()
public Color getBodyTextFgColor()
public Color getBorderColor()
public String getEncryptionPassword()
public AbstractExpose.HorizontalAlign getFooterTextAlignment()
public Color getFooterTextFgColor()
public String getHeaderTextCustomLine1()
public String getHeaderTextCustomLine2()
public String getHeaderTextCustomLine3()
public Color getHeaderTextFgColor()
protected float getMarginBottom(int page)
protected float getMarginLeft(int page)
protected float getMarginRight(int page)
protected float getMarginTop(int page)
public static com.lowagie.text.Font getMatchingFont(String txt, float maxWidth, com.lowagie.text.Font baseFont)
public static com.lowagie.text.Font getMatchingFont(String txt, float maxWidth, float maxHeight, com.lowagie.text.Font baseFont, float multipliedLeading)
public static com.lowagie.text.Font getMatchingFont(String txt, float maxWidth, float maxHeight, com.lowagie.text.Font baseFont, float multipliedLeading, char[] separators)
protected int getPageNumber(int row)
protected static com.lowagie.text.Font getRegisteredFont()
protected static com.lowagie.text.Font getRegisteredFont(String name)
protected static com.lowagie.text.Font getRegisteredFont(float size, int style)
protected static com.lowagie.text.Font getRegisteredFont(String name, float size, int style)
protected static com.lowagie.text.Font getRegisteredFont(float size, int style, Color color)
protected static com.lowagie.text.Font getRegisteredFont(String name, float size, int style, Color color)
protected void init(ImmoToolProject project, Connection dbConnection) throws SQLException
init
in class AbstractExpose
SQLException
public void initDefaults()
initDefaults
in class AbstractExpose
public boolean isBodyHeadNumbered()
public boolean isEncryption()
public boolean isEncryptionAccessibilityAllowed()
public boolean isEncryptionCopyingAllowed()
public boolean isEncryptionPrintingAllowed()
public boolean isFooter()
public boolean isFooterPageNumber()
public boolean isFooterTimestamp()
public boolean isFooterWebsite()
public boolean isHeader()
public boolean isHeaderLogo()
public boolean isHeaderTextCustom()
protected void registerFonts()
public void setBodyHeadBgColor(Color val)
public void setBodyHeadFgColor(Color val)
public void setBodyHeadNumbered(boolean val)
public void setBodyTextAlignment(AbstractExpose.HorizontalAlign val)
public void setBodyTextBgColor(Color val)
public void setBodyTextFgColor(Color val)
public void setBorderColor(Color val)
public void setEncryption(boolean val)
public void setEncryptionAccessibilityAllowed(boolean val)
public void setEncryptionCopyingAllowed(boolean val)
public void setEncryptionPassword(String val)
public void setEncryptionPrintingAllowed(boolean val)
public void setFooter(boolean val)
public void setFooterPageNumber(boolean val)
public void setFooterTextAlignment(AbstractExpose.HorizontalAlign val)
public void setFooterTextFgColor(Color val)
public void setFooterTimestamp(boolean val)
public void setFooterWebsite(boolean val)
public void setHeader(boolean val)
public void setHeaderLogo(boolean val)
public void setHeaderTextCustom(boolean val)
public void setHeaderTextCustomLine1(String val)
public void setHeaderTextCustomLine2(String val)
public void setHeaderTextCustomLine3(String val)
public void setHeaderTextFgColor(Color val)
Copyright © 2015 OpenEstate. All rights reserved.