com.openindex.openestate.tool.agency
Class AgencyPlugin

java.lang.Object
  extended by com.openindex.openestate.tool.ImmoToolPlugin
      extended by com.openindex.openestate.tool.agency.AgencyPlugin
All Implemented Interfaces:
Pluggable

public final class AgencyPlugin
extends ImmoToolPlugin

Hauptklasse des Add-Ons, basierend auf ImmoToolPlugin.
$Id: AgencyPlugin.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Field Summary
static String DB_COLLECTION_CONTACTS
          DB-Collections
static String DB_COLLECTION_ESTATE_FILES
           
static String DB_COLLECTION_ESTATES
           
static String DB_COLLECTION_EXPORT_SUMMARIES
           
static String DB_COLLECTION_EXPORTS
           
static String DB_COLLECTION_GEO
           
static String DB_COLLECTION_PDF
           
static String DB_RESOURCE_AGENT
          DB-Resources
static String DB_RESOURCE_AGENT_LOGO
           
static String DB_SEQUENCE_AGENT
          DB-sequences
static String DB_SEQUENCE_CONTACT
           
static String DB_SEQUENCE_ESTATE
           
static String DB_SEQUENCE_EXPORT_INTERFACE
           
static String DB_SEQUENCE_EXPORT_SUMMARY
           
static String DB_SEQUENCE_PDF_SETUP
           
static String KEY_IMG_DEFAULT_FORMAT
           
static String KEY_IMG_FORCE_FORMAT
           
static String KEY_IMG_MAXHEIGHT
          Parameter zur Bildskalierung
static String KEY_IMG_MAXWIDTH
           
static String KEY_LAST_IMPORT_LOCATION
          Speicherorte
static String KEY_LOCALES
          Parameter zur Sprachauswahl
static String PLUGIN_DB_PATH
           
static String PLUGIN_NAME
           
static String PLUGIN_RES_PATH
           
static String PLUGIN_URL
           
 
Fields inherited from class com.openindex.openestate.tool.ImmoToolPlugin
RES_PLUGIN_APIVERSION, RES_PLUGIN_AUTHOR, RES_PLUGIN_DESCRIPTION, RES_PLUGIN_LICENSE, RES_PLUGIN_TITLE, RES_PLUGIN_VERSION, RES_PLUGIN_WEBSITE
 
Constructor Summary
AgencyPlugin()
           
 
Method Summary
 javax.help.HelpSet createHelpSet()
          Erzeugt den Handbuch-Eintrag des Plugins.
 JMenu createMenu()
          Erzeugt den Hauptmenü-Eintrag des Plugins.
 List<ImmoToolSetupPanel> createSetupPanels()
          Erzeugt eine Liste mit Konfigurations-Formularen für das Plugin im Einstellungsdialog.
 org.jdesktop.swingx.JXTaskPane createTaskPane()
          Erzeugt den Sidebar-Eintrag des Plugins.
 void destroy()
          this method will be called when this plugin is deleted, so you can free ressources, or restore some settings etc ...
 void doImportIDXCsv()
           
 void doImportImmobiliare()
           
 void doImportImmoXml()
           
 void doImportIS24Csv()
           
 void doImportIS24Xml()
           
 void doImportKyero()
           
 void doImportOpenEstateXml()
           
 void doImportOpenImmoXml()
           
 void doImportViaLocalFtp()
           
 org.jdesktop.application.Task doShowAgencyContacts()
           
 org.jdesktop.application.Task doShowAgencyEstates()
           
 org.jdesktop.application.Task doShowAgencyExport()
           
 org.jdesktop.application.Task doShowAgencyProfile()
           
 org.jdesktop.application.Task doTableExport()
           
 void exportDatabase(File dir, ImmoToolDb db, ImmoToolProject project, JOptionFileChooser dlg, ImmoToolTask.Callback callback)
           
 Map<String,JOptionFileChooser.OptionField> getExportDatabaseSettings()
           
 BufferedImage getIcon()
           
static String getImgDefaultFormat()
           
static int getImgMaxHeight()
           
static int getImgMaxWidth()
           
static AgencyPlugin getInstance()
           
static File getLastExportLocation()
           
static File getLastImageLocation()
           
static File getLastImportLocation()
           
static Locale[] getLocales()
           
 String getName()
           
 URI getURI()
           
 boolean hasOptions()
           
 void init(Object... arg0)
          this method will be called when the main program start if this plugin is installed
 void initDatabase(ImmoToolDb db, ImmoToolProject project, ImmoToolTask.Callback callback)
           
static boolean isImgFormatForced()
           
 void load()
           
 void openOptions()
          if hasOptions() return true, this method will be called when the user want to edit the options from this plugin.
 void rebuildDatabase(ImmoToolDb db, ImmoToolProject project, ImmoToolTask.Callback callback)
           
static void setImgDefaultFormat(String value)
           
static void setImgFormatForced(Boolean value)
           
static void setImgMaxHeight(Integer value)
           
static void setImgMaxWidth(Integer value)
           
static void setLastExportLocation(File lastExportLocation)
           
static void setLastImageLocation(File lastImageLocation)
           
static void setLastImportLocation(File file)
           
static void setLocales(Locale[] locales)
           
 void update(ImmoToolProject project, ImmoToolDb db, String oldVersion, String newVersion)
           
 
Methods inherited from class com.openindex.openestate.tool.ImmoToolPlugin
clearResources, createException, createException, createMenuItem, exportSchema, exportSchemas, getActionMap, getAuthor, getDescription, getLicense, getMinimalVersion, getResourceMap, getTitle, getVersion, getWebsite, installOrUpdate, listAvailablePlugins, save, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_NAME

public static final String PLUGIN_NAME
See Also:
Constant Field Values

PLUGIN_URL

public static final String PLUGIN_URL
See Also:
Constant Field Values

PLUGIN_DB_PATH

public static final String PLUGIN_DB_PATH
See Also:
Constant Field Values

PLUGIN_RES_PATH

public static final String PLUGIN_RES_PATH
See Also:
Constant Field Values

DB_COLLECTION_CONTACTS

public static final String DB_COLLECTION_CONTACTS
DB-Collections

See Also:
Constant Field Values

DB_COLLECTION_ESTATES

public static final String DB_COLLECTION_ESTATES
See Also:
Constant Field Values

DB_COLLECTION_ESTATE_FILES

public static final String DB_COLLECTION_ESTATE_FILES
See Also:
Constant Field Values

DB_COLLECTION_EXPORTS

public static final String DB_COLLECTION_EXPORTS
See Also:
Constant Field Values

DB_COLLECTION_EXPORT_SUMMARIES

public static final String DB_COLLECTION_EXPORT_SUMMARIES
See Also:
Constant Field Values

DB_COLLECTION_PDF

public static final String DB_COLLECTION_PDF
See Also:
Constant Field Values

DB_COLLECTION_GEO

public static final String DB_COLLECTION_GEO
See Also:
Constant Field Values

DB_RESOURCE_AGENT

public static final String DB_RESOURCE_AGENT
DB-Resources

See Also:
Constant Field Values

DB_RESOURCE_AGENT_LOGO

public static final String DB_RESOURCE_AGENT_LOGO
See Also:
Constant Field Values

DB_SEQUENCE_AGENT

public static final String DB_SEQUENCE_AGENT
DB-sequences

See Also:
Constant Field Values

DB_SEQUENCE_CONTACT

public static final String DB_SEQUENCE_CONTACT
See Also:
Constant Field Values

DB_SEQUENCE_ESTATE

public static final String DB_SEQUENCE_ESTATE
See Also:
Constant Field Values

DB_SEQUENCE_EXPORT_INTERFACE

public static final String DB_SEQUENCE_EXPORT_INTERFACE
See Also:
Constant Field Values

DB_SEQUENCE_EXPORT_SUMMARY

public static final String DB_SEQUENCE_EXPORT_SUMMARY
See Also:
Constant Field Values

DB_SEQUENCE_PDF_SETUP

public static final String DB_SEQUENCE_PDF_SETUP
See Also:
Constant Field Values

KEY_IMG_MAXHEIGHT

public static final String KEY_IMG_MAXHEIGHT
Parameter zur Bildskalierung

See Also:
Constant Field Values

KEY_IMG_MAXWIDTH

public static final String KEY_IMG_MAXWIDTH
See Also:
Constant Field Values

KEY_IMG_DEFAULT_FORMAT

public static final String KEY_IMG_DEFAULT_FORMAT
See Also:
Constant Field Values

KEY_IMG_FORCE_FORMAT

public static final String KEY_IMG_FORCE_FORMAT
See Also:
Constant Field Values

KEY_LOCALES

public static final String KEY_LOCALES
Parameter zur Sprachauswahl

See Also:
Constant Field Values

KEY_LAST_IMPORT_LOCATION

public static final String KEY_LAST_IMPORT_LOCATION
Speicherorte

See Also:
Constant Field Values
Constructor Detail

AgencyPlugin

public AgencyPlugin()
Method Detail

createHelpSet

public javax.help.HelpSet createHelpSet()
                                 throws javax.help.HelpSetException
Description copied from class: ImmoToolPlugin
Erzeugt den Handbuch-Eintrag des Plugins.

Overrides:
createHelpSet in class ImmoToolPlugin
Returns:
Handbuch-Instanz
Throws:
javax.help.HelpSetException - interner Fehler

createMenu

public JMenu createMenu()
Description copied from class: ImmoToolPlugin
Erzeugt den Hauptmenü-Eintrag des Plugins.

Overrides:
createMenu in class ImmoToolPlugin
Returns:
Hauptmenü-Eintrag

createSetupPanels

public List<ImmoToolSetupPanel> createSetupPanels()
Description copied from class: ImmoToolPlugin
Erzeugt eine Liste mit Konfigurations-Formularen für das Plugin im Einstellungsdialog.

Overrides:
createSetupPanels in class ImmoToolPlugin
Returns:
Liste mit Formularen

createTaskPane

public org.jdesktop.swingx.JXTaskPane createTaskPane()
Description copied from class: ImmoToolPlugin
Erzeugt den Sidebar-Eintrag des Plugins.

Overrides:
createTaskPane in class ImmoToolPlugin
Returns:
Sidebar-Eintrag

destroy

public void destroy()
Description copied from interface: Pluggable
this method will be called when this plugin is deleted, so you can free ressources, or restore some settings etc ... (the files insides the plugin directory are automatically deleted, so you don't have to take care of this)


doImportIDXCsv

@Action
public void doImportIDXCsv()

doImportImmobiliare

@Action
public void doImportImmobiliare()

doImportImmoXml

@Action
public void doImportImmoXml()

doImportIS24Csv

@Action
public void doImportIS24Csv()

doImportIS24Xml

@Action
public void doImportIS24Xml()

doImportKyero

@Action
public void doImportKyero()

doImportOpenEstateXml

@Action
public void doImportOpenEstateXml()

doImportOpenImmoXml

@Action
public void doImportOpenImmoXml()

doImportViaLocalFtp

@Action
public void doImportViaLocalFtp()

doShowAgencyContacts

@Action
public org.jdesktop.application.Task doShowAgencyContacts()

doShowAgencyEstates

@Action
public org.jdesktop.application.Task doShowAgencyEstates()

doShowAgencyExport

@Action
public org.jdesktop.application.Task doShowAgencyExport()

doShowAgencyProfile

@Action
public org.jdesktop.application.Task doShowAgencyProfile()

doTableExport

@Action
public org.jdesktop.application.Task doTableExport()

exportDatabase

public void exportDatabase(File dir,
                           ImmoToolDb db,
                           ImmoToolProject project,
                           JOptionFileChooser dlg,
                           ImmoToolTask.Callback callback)
                    throws ImmoToolException
Overrides:
exportDatabase in class ImmoToolPlugin
Throws:
ImmoToolException

getExportDatabaseSettings

public Map<String,JOptionFileChooser.OptionField> getExportDatabaseSettings()
Overrides:
getExportDatabaseSettings in class ImmoToolPlugin

getIcon

public BufferedImage getIcon()
Returns:
the icon for this plugin

getImgDefaultFormat

public static String getImgDefaultFormat()

getImgMaxHeight

public static int getImgMaxHeight()

getImgMaxWidth

public static int getImgMaxWidth()

getInstance

public static AgencyPlugin getInstance()

getLastExportLocation

public static File getLastExportLocation()

getLastImageLocation

public static File getLastImageLocation()

getLastImportLocation

public static File getLastImportLocation()

getLocales

public static Locale[] getLocales()

getURI

public final URI getURI()
Returns:
the place where the XML descriptor for this plugin can be found, should not be null

getName

public final String getName()
Specified by:
getName in interface Pluggable
Specified by:
getName in class ImmoToolPlugin
Returns:
the name for this plugin, should not be null

hasOptions

public boolean hasOptions()
Returns:
true if has some options to configure by the user

init

public void init(Object... arg0)
Description copied from interface: Pluggable
this method will be called when the main program start if this plugin is installed

Parameters:
arg0 - arguments given by the main program

initDatabase

public void initDatabase(ImmoToolDb db,
                         ImmoToolProject project,
                         ImmoToolTask.Callback callback)
                  throws ImmoToolException
Overrides:
initDatabase in class ImmoToolPlugin
Throws:
ImmoToolException

isImgFormatForced

public static boolean isImgFormatForced()

load

public void load()
Overrides:
load in class ImmoToolPlugin

openOptions

public void openOptions()
Description copied from interface: Pluggable
if hasOptions() return true, this method will be called when the user want to edit the options from this plugin.


rebuildDatabase

public void rebuildDatabase(ImmoToolDb db,
                            ImmoToolProject project,
                            ImmoToolTask.Callback callback)
Overrides:
rebuildDatabase in class ImmoToolPlugin

setImgDefaultFormat

public static void setImgDefaultFormat(String value)

setImgFormatForced

public static void setImgFormatForced(Boolean value)

setImgMaxHeight

public static void setImgMaxHeight(Integer value)

setImgMaxWidth

public static void setImgMaxWidth(Integer value)

setLastExportLocation

public static void setLastExportLocation(File lastExportLocation)

setLastImageLocation

public static void setLastImageLocation(File lastImageLocation)

setLastImportLocation

public static void setLastImportLocation(File file)

setLocales

public static void setLocales(Locale[] locales)

update

public void update(ImmoToolProject project,
                   ImmoToolDb db,
                   String oldVersion,
                   String newVersion)
            throws ImmoToolException
Overrides:
update in class ImmoToolPlugin
Throws:
ImmoToolException


Copyright © 2012 OpenEstate. All Rights Reserved.