|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.XNap
public class XNap
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 |
---|
public static final java.lang.String FILE_REVISION
public static final java.lang.String REQUIRED_CMDL_JDK
public static final java.lang.String REQUIRED_GUI_JDK
public static final java.util.Locale[] LANGUAGES
public static final java.lang.String[] TRUSTED_KEYS
public static final long START_TIME
public static boolean clearPackageInfos
public static java.lang.String lastLaunchVersion
Constructor Detail |
---|
public XNap()
Method Detail |
---|
public static void exit()
public static void main(java.lang.String[] argv)
args
- parameterspublic static void initLocale(java.lang.String language)
public static final XNapThreadGroup getThreadGroup()
public static boolean isRunFromCvs()
public static final void checkJDK(java.lang.String reqVer)
reqVer
is smaller than the
current jdk version.
public static final void showHelp()
public static final void startGUI()
public static final void stopGUI()
public static final java.lang.String tr(java.lang.String text)
text
translated into the currently selected
language. Every user-visible string in the program must be wrapped
into this function.
public static final java.lang.String tr(java.lang.String text, java.lang.Object o1)
text
translated into the currently selected
language.
The first occurence of {0} is replaced by o1.toString()
.
public static final java.lang.String tr(java.lang.String text, java.lang.Object o1, java.lang.Object o2)
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()
.
public static final java.lang.String tr(java.lang.String text, java.lang.Object o1, java.lang.Object o2, java.lang.Object o3)
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()
.
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)
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()
.
public static final java.lang.String tr(java.lang.String text, int padding)
text
translated into the currently selected
language. Prepends and appends padding
whitespaces.
public static final java.lang.String tr(java.lang.String text, int lpadding, int rpadding)
text
translated into the currently selected
language. Prepends lpadding
whitespaces. Appends
rpadding
whitespaces.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |