com.izforge.izpack.frontend
Class Frontend

java.lang.Object
  extended bycom.izforge.izpack.frontend.Frontend

public class Frontend
extends java.lang.Object

The IzPack frontend class.

Author:
Julien Ponge

Field Summary
static java.util.ArrayList bookmarks
          The 'recent files' list.
static XMLElement config
          The configuration XML tree.
static java.lang.String curLocale
          The current locale ISO3 code.
static java.lang.String IZPACK_HOME
          IzPack home directory.
private  LocaleDatabase langpack
          The language pack.
static java.lang.String lastDir
          The last directory entered.
static int MAX_SPLASHES_PICS
          The number of splash screens.
static java.util.Random random
          Randomizer.
static FrontendSplashWindow splashWindow
          The splash window.
 
Constructor Summary
Frontend()
          The constructor.
 
Method Summary
static XMLElement createBlankInstallation()
          Creates a blank installation XML tree.
private  void loadConfig()
          Loads the configuration.
private  void loadLocalisation()
          Loads the localisation.
static void main(java.lang.String[] args)
          The main method (program entry-point).
static void saveConfig()
          Saves the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

langpack

private LocaleDatabase langpack
The language pack.


MAX_SPLASHES_PICS

public static final int MAX_SPLASHES_PICS
The number of splash screens.

See Also:
Constant Field Values

config

public static XMLElement config
The configuration XML tree.


curLocale

public static java.lang.String curLocale
The current locale ISO3 code.


lastDir

public static java.lang.String lastDir
The last directory entered.


bookmarks

public static java.util.ArrayList bookmarks
The 'recent files' list.


random

public static java.util.Random random
Randomizer.


splashWindow

public static FrontendSplashWindow splashWindow
The splash window.


IZPACK_HOME

public static java.lang.String IZPACK_HOME
IzPack home directory.

Constructor Detail

Frontend

public Frontend()
         throws java.lang.Exception
The constructor.

Throws:
java.lang.Exception - Description of the Exception
Method Detail

loadLocalisation

private void loadLocalisation()
                       throws java.lang.Exception
Loads the localisation.

Throws:
java.lang.Exception - Description of the Exception

loadConfig

private void loadConfig()
                 throws java.lang.Exception
Loads the configuration.

Throws:
java.lang.Exception - Description of the Exception

main

public static void main(java.lang.String[] args)
The main method (program entry-point).

Parameters:
args - The arguments passed on the command-line.

createBlankInstallation

public static XMLElement createBlankInstallation()
Creates a blank installation XML tree.

Returns:
A blank XML tree.

saveConfig

public static void saveConfig()
Saves the configuration.