com.openindex.openestate.tool.calendar
Class CalendarPlugin

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

public final class CalendarPlugin
extends ImmoToolPlugin

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

Author:
Andreas Rudolph

Field Summary
static String DB_SEQUENCE_CALENDAR
          DB-sequences
static Color EVENT_BG_COLOR
           
static ImageIcon EVENT_ICON
           
static ImageIcon EVENT_ICON_DISABLED
           
static Color JOURNAL_BG_COLOR
           
static ImageIcon JOURNAL_ICON
           
static ImageIcon JOURNAL_ICON_DISABLED
           
static String KEY_WORKTIME_BEGIN
           
static String KEY_WORKTIME_END
           
static String PLUGIN_DB_PATH
           
static String PLUGIN_NAME
           
static String PLUGIN_RES_PATH
           
static String PLUGIN_URL
           
static Color TODO_BG_COLOR
           
static ImageIcon TODO_ICON
           
static ImageIcon TODO_ICON_DISABLED
           
 
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
CalendarPlugin()
           
 
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 ...
 org.jdesktop.application.Task doShowDayView()
           
 org.jdesktop.application.Task doShowMonthView()
           
 org.jdesktop.application.Task doShowSources()
           
 org.jdesktop.application.Task doShowTableView()
           
 org.jdesktop.application.Task doShowWeekView()
           
 org.jdesktop.application.Task doSync()
           
 void exportDatabase(File dir, ImmoToolDb db, ImmoToolProject project, JOptionFileChooser dlg, ImmoToolTask.Callback callback)
           
 BufferedImage getIcon()
           
static CalendarPlugin getInstance()
           
 String getName()
           
 URI getURI()
           
static Calendar getWorkTimeBegin()
           
static Calendar getWorkTimeEnd()
           
 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 setWorkTimeBegin(Calendar time)
           
static void setWorkTimeBegin(Date time)
           
static void setWorkTimeEnd(Calendar time)
           
static void setWorkTimeEnd(Date time)
           
 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, 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

KEY_WORKTIME_BEGIN

public static final String KEY_WORKTIME_BEGIN
See Also:
Constant Field Values

KEY_WORKTIME_END

public static final String KEY_WORKTIME_END
See Also:
Constant Field Values

DB_SEQUENCE_CALENDAR

public static final String DB_SEQUENCE_CALENDAR
DB-sequences

See Also:
Constant Field Values

JOURNAL_BG_COLOR

public static final Color JOURNAL_BG_COLOR

JOURNAL_ICON

public static final ImageIcon JOURNAL_ICON

JOURNAL_ICON_DISABLED

public static final ImageIcon JOURNAL_ICON_DISABLED

TODO_BG_COLOR

public static final Color TODO_BG_COLOR

TODO_ICON

public static final ImageIcon TODO_ICON

TODO_ICON_DISABLED

public static final ImageIcon TODO_ICON_DISABLED

EVENT_BG_COLOR

public static final Color EVENT_BG_COLOR

EVENT_ICON

public static final ImageIcon EVENT_ICON

EVENT_ICON_DISABLED

public static final ImageIcon EVENT_ICON_DISABLED
Constructor Detail

CalendarPlugin

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


doShowDayView

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

doShowMonthView

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

doShowSources

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

doShowTableView

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

doShowWeekView

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

doSync

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

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 CalendarPlugin getInstance()

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

getWorkTimeBegin

public static Calendar getWorkTimeBegin()

getWorkTimeEnd

public static Calendar getWorkTimeEnd()

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

setWorkTimeBegin

public static void setWorkTimeBegin(Date time)

setWorkTimeBegin

public static void setWorkTimeBegin(Calendar time)

setWorkTimeEnd

public static void setWorkTimeEnd(Date time)

setWorkTimeEnd

public static void setWorkTimeEnd(Calendar time)

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.