LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app
Class LyMain

java.lang.Object
  extended by leon.app.LyMain

public class LyMain
extends java.lang.Object

This class contains the main method used to create Leonardi applications. It must be used for fat clients (win viewer, swing viewer...). The usage is:

where appname is the name of the application and <project>.ini the path of the ini file.

See Also:
LyApplication, LySession

Field Summary
static java.lang.String __VERSION
          File version
 
Constructor Summary
LyMain()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Main method.
static void startApplication(java.lang.String appname, java.lang.String iniFile)
          Method used to start an application.
static void startApplication(java.lang.String appname, java.lang.String iniFile, java.lang.String perspectiveId)
          Method used to start an application.
static void startApplication(java.lang.String appname, java.lang.String iniFile, java.lang.String perspectiveId, java.lang.ClassLoader classLoader)
          Method used to start an application.
static void startApplication(java.lang.String appname, java.lang.String iniFile, java.lang.String perspectiveId, java.lang.ClassLoader classLoader, java.lang.String chosenLanguage)
          Method used to start an application.
static void startApplicationWithChosenLanguage(java.lang.String appname, java.lang.String iniFile, java.lang.String chosenLanguage)
          Method used to start an application.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyMain

public LyMain()
Method Detail

main

public static void main(java.lang.String[] argv)
Main method. For each LyApplication started it creates a new LySession based on this application.

Parameters:
argv - Parameters that describe applications that must be created (see usage in the class description).
See Also:
LyApplication, LySession

startApplication

public static void startApplication(java.lang.String appname,
                                    java.lang.String iniFile)
Method used to start an application.
Calls startApplication(appname, iniFile, null, null).

Parameters:
appname - Identifier of the application to start.
iniFile - Initialization file of the application (may be null).
See Also:
LyApplication, LySession, startApplication(String, String, String, ClassLoader)

startApplicationWithChosenLanguage

public static void startApplicationWithChosenLanguage(java.lang.String appname,
                                                      java.lang.String iniFile,
                                                      java.lang.String chosenLanguage)
Method used to start an application.
Calls startApplication(appname, iniFile, null, null).

Parameters:
appname - Identifier of the application to start.
iniFile - Initialization file of the application (may be null).
chosenLanguage - the desired language
See Also:
LyApplication, LySession, startApplication(String, String, String, ClassLoader)

startApplication

public static void startApplication(java.lang.String appname,
                                    java.lang.String iniFile,
                                    java.lang.String perspectiveId)
Method used to start an application.
Calls startApplication(appname, iniFile, perspectiveId, null).

Parameters:
appname - Identifier of the application to start.
iniFile - Initialization file of the application (may be null).
perspectiveId - The persectiveId.
See Also:
LyApplication, LySession, startApplication(String, String, String, ClassLoader)

startApplication

public static void startApplication(java.lang.String appname,
                                    java.lang.String iniFile,
                                    java.lang.String perspectiveId,
                                    java.lang.ClassLoader classLoader)
Method used to start an application.

Parameters:
appname - I dentifier of the application to start.
iniFile - Initialization file of the application (may be null).
perspectiveId - The persectiveId.
classLoader - The applicationClassLoader.
See Also:
LyApplication, LySession

startApplication

public static void startApplication(java.lang.String appname,
                                    java.lang.String iniFile,
                                    java.lang.String perspectiveId,
                                    java.lang.ClassLoader classLoader,
                                    java.lang.String chosenLanguage)
Method used to start an application.

Parameters:
appname - Identifier of the application to start.
iniFile - Initialization file of the application (may be null).
perspectiveId - The persectiveId.
classLoader - The applicationClassLoader.
chosenLanguage - Language of the application to start (may be null).
See Also:
LyApplication, LySession

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com