|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.scheisseichfindemalkeinen.BH
public class BH
Class which contains the main-Method
| Field Summary | |
|---|---|
static boolean |
developerTest
Developer-Flag Changes Update URL and other things for testing purposes |
static java.lang.String |
FILE_SEPERATOR
Path-Seperator for the actual operating system |
static java.lang.String |
JAR_FILENAME
Filename of jarfile of BH |
static java.lang.String[][] |
libs
Required Libs |
static int |
MODE_WITH_TRAY
SystemTray is used |
static int |
MODE_WITHOUT_TRAY
SystemTray is not used |
static int |
modeSystemTray
SystemTray is used or not 0 = not used 1 = used |
static java.lang.String |
NAME
Name of the program |
static java.lang.String |
PATH_DATABASE
Path to the database directory |
static java.lang.String |
PATH_DOWNLOADLOGS
Path to the download log directory |
static java.lang.String |
PATH_DOWNLOADS
Path to the download directory |
static java.lang.String |
PATH_LOGS
Path to the log directory |
static java.lang.String |
PATH_SETTINGS
Path to the settings directory |
static java.lang.String |
ROOT_PATH
Program directory |
static java.lang.String |
VERSION
Version of the program |
| Constructor Summary | |
|---|---|
BH()
Constructor |
|
| Method Summary | |
|---|---|
void |
exitApp(boolean restart)
Exit program |
void |
exitBH(int mode,
boolean restart)
Exits program Mode must be 0 normally! Only the Shutdown-Thread should use Mode 1 |
static java.lang.String |
getString(java.lang.String key)
Returns the localized String for a key |
static java.lang.String |
getVersion()
Returns the version of BH |
void |
hideWindow()
Hide Main-Window |
void |
keywordsChanged()
KeywordsChanged |
static void |
main(java.lang.String[] args)
Main-Method |
void |
showWindow(java.lang.Class cl)
Show Window |
void |
splashProgressBarChanged(int min,
int max,
int val)
Progressbar changed |
void |
splashProgressBarTextChanged(java.lang.String text)
Progressbar text changed |
void |
splashProgressBarVisibilityChanged(boolean visible)
Progressbar visibility changed |
void |
splashTextChanged(java.lang.String text)
Splashscreen text changed |
void |
startDownloads()
Starts downloads |
void |
stopDownloads()
Stops downloads |
void |
updateWindowClosed(boolean updateRunned,
boolean updateSuccessfull)
Update-Window was closed If an update was downloaded and installed updateRunned is true otherwise false. |
void |
updateWindowOpened()
Update-Window was opened and will be open until updateWindowClosed-Method is called |
| 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 NAME
public static final java.lang.String VERSION
public static java.lang.String[][] libs
public static final java.lang.String FILE_SEPERATOR
public static final int MODE_WITHOUT_TRAY
public static final int MODE_WITH_TRAY
public static int modeSystemTray
public static java.lang.String ROOT_PATH
public static java.lang.String JAR_FILENAME
public static java.lang.String PATH_DATABASE
public static java.lang.String PATH_SETTINGS
public static java.lang.String PATH_DOWNLOADLOGS
public static java.lang.String PATH_LOGS
public static java.lang.String PATH_DOWNLOADS
public static boolean developerTest
| Constructor Detail |
|---|
public BH()
| Method Detail |
|---|
public void exitBH(int mode,
boolean restart)
ISystemTrayListener
exitBH in interface ISystemTrayListenermode - Moderestart - Restartpublic void startDownloads()
ISystemTrayListener
startDownloads in interface ISystemTrayListenerpublic void stopDownloads()
ISystemTrayListener
stopDownloads in interface ISystemTrayListenerpublic static java.lang.String getString(java.lang.String key)
key - Key
public void exitApp(boolean restart)
IGuiEventListener
exitApp in interface IGuiEventListenerrestart - Restartpublic void hideWindow()
IGuiEventListener
hideWindow in interface IGuiEventListenerpublic void showWindow(java.lang.Class cl)
IGuiEventListener
showWindow in interface IGuiEventListenercl - Class of window to showpublic void keywordsChanged()
IGuiEventListener
keywordsChanged in interface IGuiEventListenerpublic void splashTextChanged(java.lang.String text)
IGuiEventListener
splashTextChanged in interface IGuiEventListenertext - Text
public void splashProgressBarChanged(int min,
int max,
int val)
IGuiEventListener
splashProgressBarChanged in interface IGuiEventListenermin - Minimummax - Maximumval - Valuepublic void splashProgressBarTextChanged(java.lang.String text)
IGuiEventListener
splashProgressBarTextChanged in interface IGuiEventListenertext - Textpublic void splashProgressBarVisibilityChanged(boolean visible)
IGuiEventListener
splashProgressBarVisibilityChanged in interface IGuiEventListenervisible - Visible
public void updateWindowClosed(boolean updateRunned,
boolean updateSuccessfull)
IGuiEventListener
updateWindowClosed in interface IGuiEventListenerupdateRunned - Update runnedupdateSuccessfull - Update successfullpublic void updateWindowOpened()
IGuiEventListener
updateWindowOpened in interface IGuiEventListenerpublic static java.lang.String getVersion()
public static void main(java.lang.String[] args)
args - Arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||