public abstract class AbstractExpose extends HashMap<String,String>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractExpose.HorizontalAlign |
static class |
AbstractExpose.Orientation |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected Connection |
dbConnection
Holds connection to the project database during expose generation.
|
protected DbAgencyExtension |
dbExtension
Holds extension to agency database during expose generation.
|
protected Map<Long,String> |
dbLanguageMap
Holds current languages during expose generation.
|
protected Locale |
locale
Holds the configured language during expose generation.
|
protected Date |
now
Holds beginning time of expose generation.
|
protected AbstractExpose.Orientation |
orientation
Holds the configured page-orientation during expose generation.
|
Constructor and Description |
---|
AbstractExpose() |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
protected Connection dbConnection
protected DbAgencyExtension dbExtension
protected Map<Long,String> dbLanguageMap
protected Date now
protected Locale locale
protected AbstractExpose.Orientation orientation
protected abstract void build(OutputStream output) throws IOException, com.lowagie.text.DocumentException
IOException
com.lowagie.text.DocumentException
public abstract AbstractExposePanel createForm()
protected void finish()
public final void generate(long estateId, ImmoToolProject project, OutputStream output) throws IOException, com.lowagie.text.DocumentException, SQLException
IOException
com.lowagie.text.DocumentException
SQLException
public final void generate(DbAgencyObject estate, ImmoToolProject project, OutputStream output) throws IOException, com.lowagie.text.DocumentException, SQLException
IOException
com.lowagie.text.DocumentException
SQLException
public final void generate(long estateId, ImmoToolProject project, Connection dbConnection, OutputStream output) throws IOException, com.lowagie.text.DocumentException, SQLException
IOException
com.lowagie.text.DocumentException
SQLException
public final void generate(DbAgencyObject estate, ImmoToolProject project, Connection dbConnection, OutputStream output) throws IOException, com.lowagie.text.DocumentException, SQLException
IOException
com.lowagie.text.DocumentException
SQLException
protected ImmoToolAgent getAgent()
protected File getAgentLogo()
protected BufferedImage getAgentLogoImage()
protected DbAgencyContact getEstateContact()
protected com.openindex.openestate.impl.db.DbFile[] getEstateFiles()
protected File getEstateFileDownload(com.openindex.openestate.impl.db.DbFile file) throws IOException, SQLException
IOException
SQLException
protected DbAgencyObject getEstateObject()
public static AbstractExpose getExpose(String name)
public static Map<String,AbstractExpose> getExposes()
protected File getExposeFile(long fileId)
public Locale getLocale()
public abstract String getName()
public AbstractExpose.Orientation getOrientation()
public PublishingMode getPublishAddress()
public PublishingMode getPublishFiles()
public PublishingMode getPublishPrices()
public int getResolution()
public static Locale[] getSupportedLocales()
protected File getTemplateFile()
public long getTemplateId()
public File getTemporaryTemplateFile()
public abstract String getTitle()
protected void init(ImmoToolProject project, Connection dbConnection) throws SQLException
SQLException
public void initDefaults()
public boolean isShowContact()
public boolean isTemplate()
public void saveToDatabase(DbAgencyExpose expose, Connection c, DbAgencyExposesHandler exposeHandler) throws SQLException, IOException
SQLException
IOException
public void setLocale(Locale val)
public void setOrientation(AbstractExpose.Orientation val)
public void setPublishAddress(PublishingMode val)
public void setPublishFiles(PublishingMode val)
public void setPublishPrices(PublishingMode val)
public void setResolution(int val)
public void setShowContact(boolean val)
public void setTemplate(boolean val)
public void setTemplateId(long val)
public void setTemporaryTemplate(File val)
Copyright © 2015 OpenEstate. All rights reserved.