org.xnap
Class XNap

java.lang.Object
  extended by org.xnap.XNap

public class XNap
extends java.lang.Object

Starts the main application.


Field Summary
static boolean clearPackageInfos
           
static java.lang.String FILE_REVISION
           
static java.util.Locale[] LANGUAGES
          This list contains all languages the XNap interface has been translated into.
static java.lang.String lastLaunchVersion
          The version that was last launched.
static java.lang.String REQUIRED_CMDL_JDK
          The minimal JDK version required to run the commandline version
static java.lang.String REQUIRED_GUI_JDK
          The minimal JDK version required to run the gui version
static long START_TIME
           
static java.lang.String[] TRUSTED_KEYS
          This list contains all public keys automatically accepted by xnap.
 
Constructor Summary
XNap()
           
 
Method Summary
static void checkJDK(java.lang.String reqVer)
          Prints a warning message if reqVer is smaller than the current jdk version.
static void exit()
          Cleanly exits the applicaton.
static XNapThreadGroup getThreadGroup()
           
static void initLocale(java.lang.String language)
          Sets default locale and loads resources.
static boolean isRunFromCvs()
           
static void main(java.lang.String[] argv)
          Brings up the Command Line (Cmdl) or Graphic User Interface (GUI).
static void showHelp()
          Print a help message to stdout.
static void startGUI()
           
static void stopGUI()
           
static java.lang.String tr(java.lang.String text)
          Returns text translated into the currently selected language.
static java.lang.String tr(java.lang.String text, int padding)
          Returns text translated into the currently selected language.
static java.lang.String tr(java.lang.String text, int lpadding, int rpadding)
          Returns text translated into the currently selected language.
static java.lang.String tr(java.lang.String text, java.lang.Object o1)
          Returns text translated into the currently selected language.
static java.lang.String tr(java.lang.String text, java.lang.Object o1, java.lang.Object o2)
          Returns text translated into the currently selected language.
static java.lang.String tr(java.lang.String text, java.lang.Object o1, java.lang.Object o2, java.lang.Object o3)
          Returns text translated into the currently selected language.
static java.lang.String tr(java.lang.String text, java.lang.Object o1, java.lang.Object o2, java.lang.Object o3, java.lang.Object o4)
          Returns text translated into the currently selected language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_REVISION

public static final java.lang.String FILE_REVISION
See Also:
Constant Field Values

REQUIRED_CMDL_JDK

public static final java.lang.String REQUIRED_CMDL_JDK
The minimal JDK version required to run the commandline version

See Also:
Constant Field Values

REQUIRED_GUI_JDK

public static final java.lang.String REQUIRED_GUI_JDK
The minimal JDK version required to run the gui version

See Also:
Constant Field Values

LANGUAGES

public static final java.util.Locale[] LANGUAGES
This list contains all languages the XNap interface has been translated into. Add new languages here (see TRANSLATION file).


TRUSTED_KEYS

public static final java.lang.String[] TRUSTED_KEYS
This list contains all public keys automatically accepted by xnap.


START_TIME

public static final long START_TIME

clearPackageInfos

public static boolean clearPackageInfos

lastLaunchVersion

public static java.lang.String lastLaunchVersion
The version that was last launched.

Constructor Detail

XNap

public XNap()
Method Detail

exit

public static void exit()
Cleanly exits the applicaton.


main

public static void main(java.lang.String[] argv)
Brings up the Command Line (Cmdl) or Graphic User Interface (GUI).

Parameters:
args - parameters

initLocale

public static void initLocale(java.lang.String language)
Sets default locale and loads resources.


getThreadGroup

public static final XNapThreadGroup getThreadGroup()

isRunFromCvs

public static boolean isRunFromCvs()

checkJDK

public static final void checkJDK(java.lang.String reqVer)
Prints a warning message if reqVer is smaller than the current jdk version.


showHelp

public static final void showHelp()
Print a help message to stdout.


startGUI

public static final void startGUI()

stopGUI

public static final void stopGUI()

tr

public static final java.lang.String tr(java.lang.String text)
Returns text translated into the currently selected language. Every user-visible string in the program must be wrapped into this function.


tr

public static final java.lang.String tr(java.lang.String text,
                                        java.lang.Object o1)
Returns text translated into the currently selected language.

The first occurence of {0} is replaced by o1.toString().


tr

public static final java.lang.String tr(java.lang.String text,
                                        java.lang.Object o1,
                                        java.lang.Object o2)
Returns text translated into the currently selected language.

The first occurence of {0} is replaced by o1.toString(). The first occurence of {1} is replaced by o2.toString().


tr

public static final java.lang.String tr(java.lang.String text,
                                        java.lang.Object o1,
                                        java.lang.Object o2,
                                        java.lang.Object o3)
Returns text translated into the currently selected language.

The first occurence of {0} is replaced by o1.toString(). The first occurence of {1} is replaced by o2.toString(). The first occurence of {2} is replaced by o3.toString().


tr

public static final java.lang.String tr(java.lang.String text,
                                        java.lang.Object o1,
                                        java.lang.Object o2,
                                        java.lang.Object o3,
                                        java.lang.Object o4)
Returns text translated into the currently selected language.

The first occurence of {0} is replaced by o1.toString(). The first occurence of {1} is replaced by o2.toString(). The first occurence of {2} is replaced by o3.toString(). The first occurence of {3} is replaced by o4.toString().


tr

public static final java.lang.String tr(java.lang.String text,
                                        int padding)
Returns text translated into the currently selected language. Prepends and appends padding whitespaces.


tr

public static final java.lang.String tr(java.lang.String text,
                                        int lpadding,
                                        int rpadding)
Returns text translated into the currently selected language. Prepends lpadding whitespaces. Appends rpadding whitespaces.



Copyright © 2001-2005 XNap Team. All Rights Reserved.