com.openindex.openestate.tool.contacts
Class ContactsPlugin

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

public final class ContactsPlugin
extends ImmoToolPlugin

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

Author:
Andreas Rudolph

Field Summary
static String DB_SEQUENCE_CONTACT
          DB-sequences
static String DB_SEQUENCE_GROUP
           
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
ContactsPlugin()
           
 
Method Summary
 javax.help.HelpSet createHelpSet()
          Erzeugt den Handbuch-Eintrag des Plugins.
 JMenu createMenu()
          Erzeugt den Hauptmen├╝-Eintrag des Plugins.
 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 ...
 org.jdesktop.application.Task doExport()
           
 void doImportFromCsv()
           
 void doImportFromVcard()
           
 org.jdesktop.application.Task doShowContacts()
           
 org.jdesktop.application.Task doShowGroups()
           
 void exportDatabase(File dir, ImmoToolDb db, ImmoToolProject project, JOptionFileChooser dlg, ImmoToolTask.Callback callback)
           
 BufferedImage getIcon()
           
static ContactsPlugin getInstance()
           
static File getLastExportLocation()
           
 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)
           
 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 setLastExportLocation(File lastExportLocation)
           
 void update(ImmoToolProject project, ImmoToolDb db, String oldVersion, String newVersion)
           
 
Methods inherited from class com.openindex.openestate.tool.ImmoToolPlugin
clearResources, createException, createException, createMenuItem, createSetupPanels, exportSchema, exportSchemas, getActionMap, getAuthor, getDescription, getExportDatabaseSettings, 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_SEQUENCE_CONTACT

public static final String DB_SEQUENCE_CONTACT
DB-sequences

See Also:
Constant Field Values

DB_SEQUENCE_GROUP

public static final String DB_SEQUENCE_GROUP
See Also:
Constant Field Values
Constructor Detail

ContactsPlugin

public ContactsPlugin()
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

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)


doImportFromCsv

@Action
public void doImportFromCsv()

doImportFromVcard

@Action
public void doImportFromVcard()

doExport

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

doShowContacts

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

doShowGroups

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

exportDatabase

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

getIcon

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

getInstance

public static ContactsPlugin getInstance()

getLastExportLocation

public static File getLastExportLocation()

getName

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

getURI

public final URI getURI()
Returns:
the place where the XML descriptor for this plugin can be found, 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

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

setLastExportLocation

public static void setLastExportLocation(File lastExportLocation)

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.