com.openindex.openestate.tool
Class ImmoToolLanguagePack

java.lang.Object
  extended by com.openindex.openestate.tool.ImmoToolPlugin
      extended by com.openindex.openestate.tool.ImmoToolLanguagePack
All Implemented Interfaces:
Pluggable
Direct Known Subclasses:
ImmoToolLanguagePack_de

public abstract class ImmoToolLanguagePack
extends ImmoToolPlugin

Allgemeine Implementierung eines Sprachpaketes.
$Id: ImmoToolLanguagePack.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Field Summary
 
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
protected ImmoToolLanguagePack(Locale locale, String uri, String flagResource, String version, String author, String website)
           
protected ImmoToolLanguagePack(Locale locale, URI uri, String iconResource, String version, String author, String website)
           
 
Method Summary
 void destroy()
          this method will be called when this plugin is deleted, so you can free ressources, or restore some settings etc ...
 String getAuthor()
           
 String getDescription()
           
 BufferedImage getFlag()
           
 BufferedImage getIcon()
           
 String getLicense()
           
 Locale getLocale()
           
 int getMinimalVersion()
           
 String getName()
           
 String getTitle()
           
 URI getURI()
           
 String getVersion()
           
 String getWebsite()
           
 boolean hasOptions()
           
 void init(Object... args)
          this method will be called when the main program start if this plugin is installed
static Map<String,ImmoToolLanguagePack> listAvailableLanguagePacks()
           
static Map<String,ImmoToolLanguagePack> listAvailableLanguagePacks(boolean all)
           
 void openOptions()
          if hasOptions() return true, this method will be called when the user want to edit the options from this plugin.
 
Methods inherited from class com.openindex.openestate.tool.ImmoToolPlugin
clearResources, createException, createException, createHelpSet, createMenu, createMenuItem, createSetupPanels, createTaskPane, exportDatabase, exportSchema, exportSchemas, getActionMap, getExportDatabaseSettings, getResourceMap, initDatabase, installOrUpdate, listAvailablePlugins, load, rebuildDatabase, save, uninstall, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmoToolLanguagePack

protected ImmoToolLanguagePack(Locale locale,
                               String uri,
                               String flagResource,
                               String version,
                               String author,
                               String website)
                        throws MalformedURLException,
                               URISyntaxException
Throws:
MalformedURLException
URISyntaxException

ImmoToolLanguagePack

protected ImmoToolLanguagePack(Locale locale,
                               URI uri,
                               String iconResource,
                               String version,
                               String author,
                               String website)
Method Detail

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)


getAuthor

public String getAuthor()
Overrides:
getAuthor in class ImmoToolPlugin

getDescription

public String getDescription()
Specified by:
getDescription in interface Pluggable
Overrides:
getDescription in class ImmoToolPlugin
Returns:
the description for this plugin

getFlag

public BufferedImage getFlag()

getIcon

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

getLicense

public String getLicense()
Overrides:
getLicense in class ImmoToolPlugin

getLocale

public Locale getLocale()

getMinimalVersion

public int getMinimalVersion()
Specified by:
getMinimalVersion in interface Pluggable
Overrides:
getMinimalVersion in class ImmoToolPlugin
Returns:
the minimal version of the main application for which this plugin can work

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

getTitle

public String getTitle()
Overrides:
getTitle in class ImmoToolPlugin

getURI

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

getVersion

public String getVersion()
Specified by:
getVersion in interface Pluggable
Overrides:
getVersion in class ImmoToolPlugin
Returns:
the version for this plugin

getWebsite

public String getWebsite()
Overrides:
getWebsite in class ImmoToolPlugin

hasOptions

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

init

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

Parameters:
args - arguments given by the main program

listAvailableLanguagePacks

public static Map<String,ImmoToolLanguagePack> listAvailableLanguagePacks()

listAvailableLanguagePacks

public static Map<String,ImmoToolLanguagePack> listAvailableLanguagePacks(boolean all)

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.



Copyright © 2012 OpenEstate. All Rights Reserved.