com.openindex.openestate.tool
Class ImmoToolApp

java.lang.Object
  extended by org.jdesktop.application.AbstractBean
      extended by org.jdesktop.application.Application
          extended by org.jdesktop.application.SingleFrameApplication
              extended by com.openindex.openestate.tool.ImmoToolApp

public class ImmoToolApp
extends org.jdesktop.application.SingleFrameApplication

Hauptklasse des Programmes.
$Id: ImmoToolApp.java 1855 2012-10-20 18:33:47Z andy $

Author:
Andreas Rudolph

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.application.Application
org.jdesktop.application.Application.ExitListener
 
Field Summary
static String APP_LOG_DIR
          Pfad zum Log-Verzeichnis
static String APP_PROJECT_DIR
          Pfad zum Projekt-Verzeichnis
static String APP_PROPERTIES
           
static String APP_RES_PATH
          Resource-Classpath
static String CUSTOMER_WEBSITE
           
static String MEDIA_WEBSITE
           
static String PROJECT_WEBSITE
           
static String USER_LANGUAGE_CODE
           
static String USER_LAST_PROJECT
           
static String USER_LAST_STARTUP
           
static String USER_PROPERTIES
           
static String USER_RECENT_PROJECTS
           
 
Fields inherited from class org.jdesktop.application.Application
KEY_APPLICATION_ICON, KEY_APPLICATION_TITLE, KEY_APPLICATION_VENDOR_ID, ready
 
Constructor Summary
protected ImmoToolApp()
           
 
Method Summary
protected  void configureWindow(Window root)
          This method is to initialize the specified window by injecting resources.
 void forceExit()
           
static ImmoToolApp getApplication()
          A convenient static getter for the application instance.
static int getApplicationApiVersion()
           
static long getApplicationAutoUpdateStamp()
           
static SyndicationFeed getApplicationFeed()
           
static String getApplicationFtpActiveHost()
           
static String getApplicationFtpActivePortRange()
           
static String getApplicationFtpProxyHost()
           
static Integer getApplicationFtpProxyPort()
           
static String getApplicationHttpProxyHost()
           
static Integer getApplicationHttpProxyPort()
           
static File getApplicationJar()
           
static File getApplicationJarForMacApp()
           
static String getApplicationLicenseKey()
           
static long getApplicationLicenseRemindStamp()
           
static String getApplicationName()
          Deprecated. 
static String getApplicationPathToPdfReader()
           
static String getApplicationPathToWebBrowser()
           
static Properties getApplicationProperties()
           
 org.jdesktop.application.ResourceMap getApplicationResources()
           
static String getApplicationTitle()
           
static String getApplicationVersion()
           
 ImmoToolDb getDatabase()
           
 ImmoToolView getFrameView()
           
 javax.help.HelpSet getHelpSet()
           
 ImmoToolProject getProject()
           
 Properties getUserProperties()
           
static boolean isApplicationAutoUpdateAddons()
           
static boolean isApplicationAutoUpdateProgram()
           
static boolean isApplicationBetaVersion()
           
static boolean isApplicationStartedFromMacApp()
           
static boolean isApplicationUpdateDisabled()
           
 void loadHelpSet()
           
 void loadProject(ImmoToolProject project, ImmoToolDb db, ImmoToolTask.Callback callback)
           
 void loadProject(ImmoToolProject project, ImmoToolTask.Callback callback)
           
static void main(String[] args)
          Main method launching the application.
 void openCustomerWebsite()
           
 void openProjectWebsite()
           
 boolean removePanel(String title)
          Deprecated. 
 boolean removePanel(String title, boolean force)
          Deprecated. 
 void saveAppSettings()
           
 void saveSettings()
           
 void saveUserSettings()
           
 boolean selectPanel(String title)
          Deprecated. 
static void setApplicationAutoUpdateAddons(boolean enabled)
           
static void setApplicationAutoUpdateProgram(boolean enabled)
           
static void setApplicationAutoUpdateStamp(Date date)
           
static void setApplicationAutoUpdateStamp(long time)
           
static void setApplicationFeed(SyndicationFeed feed)
           
static void setApplicationFtpActive(String host, String portRange)
           
static void setApplicationFtpProxy(String host, Integer port)
           
static void setApplicationHttpProxy(String host, Integer port)
           
static void setApplicationLicenseKey(String key)
           
static void setApplicationLicenseRemindStamp(Date date)
           
static void setApplicationLicenseRemindStamp(long time)
           
static void setApplicationPathToPdfReader(String path)
           
static void setApplicationPathToWebBrowser(String path)
           
 void showPanel(TabComponent component)
          Deprecated. 
protected  void startup()
          At startup create and show the main frame of the application.
 void unloadProject()
           
 
Methods inherited from class org.jdesktop.application.SingleFrameApplication
end, getMainFrame, getMainView, setMainFrame, show, show, show, show, shutdown
 
Methods inherited from class org.jdesktop.application.Application
addExitListener, exit, exit, getContext, getExitListeners, getInstance, getInstance, handleQuit, hide, initialize, isReady, launch, quit, ready, removeExitListener
 
Methods inherited from class org.jdesktop.application.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP_LOG_DIR

public static final String APP_LOG_DIR
Pfad zum Log-Verzeichnis


APP_PROJECT_DIR

public static final String APP_PROJECT_DIR
Pfad zum Projekt-Verzeichnis


APP_RES_PATH

public static final String APP_RES_PATH
Resource-Classpath

See Also:
Constant Field Values

APP_PROPERTIES

public static final String APP_PROPERTIES
See Also:
Constant Field Values

PROJECT_WEBSITE

public static final String PROJECT_WEBSITE
See Also:
Constant Field Values

CUSTOMER_WEBSITE

public static final String CUSTOMER_WEBSITE
See Also:
Constant Field Values

MEDIA_WEBSITE

public static final String MEDIA_WEBSITE
See Also:
Constant Field Values

USER_PROPERTIES

public static final String USER_PROPERTIES
See Also:
Constant Field Values

USER_LAST_STARTUP

public static final String USER_LAST_STARTUP
See Also:
Constant Field Values

USER_LAST_PROJECT

public static final String USER_LAST_PROJECT
See Also:
Constant Field Values

USER_RECENT_PROJECTS

public static final String USER_RECENT_PROJECTS
See Also:
Constant Field Values

USER_LANGUAGE_CODE

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

ImmoToolApp

protected ImmoToolApp()
Method Detail

configureWindow

protected void configureWindow(Window root)
This method is to initialize the specified window by injecting resources. Windows shown in our application come fully initialized from the GUI builder, so this additional configuration is not needed.

Overrides:
configureWindow in class org.jdesktop.application.SingleFrameApplication
Parameters:
root - window

forceExit

public void forceExit()

getApplication

public static ImmoToolApp getApplication()
A convenient static getter for the application instance.

Returns:
the instance of ImmoToolApp

getApplicationApiVersion

public static int getApplicationApiVersion()

getApplicationFeed

public static SyndicationFeed getApplicationFeed()

getApplicationAutoUpdateStamp

public static long getApplicationAutoUpdateStamp()

getApplicationFtpActiveHost

public static String getApplicationFtpActiveHost()

getApplicationFtpActivePortRange

public static String getApplicationFtpActivePortRange()

getApplicationFtpProxyHost

public static String getApplicationFtpProxyHost()

getApplicationFtpProxyPort

public static Integer getApplicationFtpProxyPort()

getApplicationHttpProxyHost

public static String getApplicationHttpProxyHost()

getApplicationHttpProxyPort

public static Integer getApplicationHttpProxyPort()

getApplicationLicenseKey

public static String getApplicationLicenseKey()

getApplicationLicenseRemindStamp

public static long getApplicationLicenseRemindStamp()

getApplicationName

@Deprecated
public static String getApplicationName()
Deprecated. 


getApplicationPathToPdfReader

public static String getApplicationPathToPdfReader()

getApplicationPathToWebBrowser

public static String getApplicationPathToWebBrowser()

getApplicationProperties

public static Properties getApplicationProperties()

getApplicationResources

public org.jdesktop.application.ResourceMap getApplicationResources()

getApplicationJar

public static File getApplicationJar()

getApplicationJarForMacApp

public static File getApplicationJarForMacApp()

getApplicationTitle

public static String getApplicationTitle()

getApplicationVersion

public static String getApplicationVersion()

getDatabase

public ImmoToolDb getDatabase()

getFrameView

public ImmoToolView getFrameView()

getHelpSet

public javax.help.HelpSet getHelpSet()

getProject

public ImmoToolProject getProject()

getUserProperties

public Properties getUserProperties()

isApplicationAutoUpdateAddons

public static boolean isApplicationAutoUpdateAddons()

isApplicationBetaVersion

public static boolean isApplicationBetaVersion()

isApplicationAutoUpdateProgram

public static boolean isApplicationAutoUpdateProgram()

isApplicationStartedFromMacApp

public static boolean isApplicationStartedFromMacApp()

isApplicationUpdateDisabled

public static boolean isApplicationUpdateDisabled()

loadHelpSet

public void loadHelpSet()

loadProject

public void loadProject(ImmoToolProject project,
                        ImmoToolTask.Callback callback)
                 throws ImmoToolException
Throws:
ImmoToolException

loadProject

public void loadProject(ImmoToolProject project,
                        ImmoToolDb db,
                        ImmoToolTask.Callback callback)
                 throws ImmoToolException
Throws:
ImmoToolException

main

public static void main(String[] args)
Main method launching the application.

Parameters:
args - arguments

openCustomerWebsite

@Action
public void openCustomerWebsite()

openProjectWebsite

@Action
public void openProjectWebsite()

removePanel

@Deprecated
public boolean removePanel(String title)
Deprecated. 


removePanel

@Deprecated
public boolean removePanel(String title,
                                      boolean force)
Deprecated. 


saveSettings

public void saveSettings()

saveAppSettings

public void saveAppSettings()
                     throws IOException
Throws:
IOException

saveUserSettings

public void saveUserSettings()
                      throws IOException
Throws:
IOException

selectPanel

@Deprecated
public boolean selectPanel(String title)
Deprecated. 


setApplicationAutoUpdateAddons

public static void setApplicationAutoUpdateAddons(boolean enabled)

setApplicationAutoUpdateProgram

public static void setApplicationAutoUpdateProgram(boolean enabled)

setApplicationAutoUpdateStamp

public static void setApplicationAutoUpdateStamp(Date date)

setApplicationAutoUpdateStamp

public static void setApplicationAutoUpdateStamp(long time)

setApplicationLicenseKey

public static void setApplicationLicenseKey(String key)
                                     throws NoSuchAlgorithmException,
                                            IOException
Throws:
NoSuchAlgorithmException
IOException

setApplicationLicenseRemindStamp

public static void setApplicationLicenseRemindStamp(Date date)

setApplicationLicenseRemindStamp

public static void setApplicationLicenseRemindStamp(long time)

setApplicationFtpActive

public static void setApplicationFtpActive(String host,
                                           String portRange)

setApplicationFtpProxy

public static void setApplicationFtpProxy(String host,
                                          Integer port)

setApplicationHttpProxy

public static void setApplicationHttpProxy(String host,
                                           Integer port)

setApplicationFeed

public static void setApplicationFeed(SyndicationFeed feed)

setApplicationPathToPdfReader

public static void setApplicationPathToPdfReader(String path)

setApplicationPathToWebBrowser

public static void setApplicationPathToWebBrowser(String path)

showPanel

@Deprecated
public void showPanel(TabComponent component)
Deprecated. 


startup

protected void startup()
At startup create and show the main frame of the application.

Specified by:
startup in class org.jdesktop.application.Application

unloadProject

public void unloadProject()


Copyright © 2012 OpenEstate. All Rights Reserved.