|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gui.JAPDll
public final class JAPDll
Nested Class Summary | |
---|---|
private static class |
JAPDll.MyFileFilter
|
Field Summary | |
---|---|
private static java.lang.String |
DLL_LIBRARY_NAME
|
private static java.lang.String |
DLL_LIBRARY_NAME_32bit
|
private static java.lang.String |
DLL_LIBRARY_NAME_64bit
|
private static java.lang.String |
JAP_DLL
|
private static java.lang.String |
JAP_DLL_NEW_32bit
|
private static java.lang.String |
JAP_DLL_NEW_64bit
|
private static java.lang.String |
JAP_DLL_OLD
|
static java.lang.String |
JAP_DLL_REQUIRED_VERSION
|
private static boolean |
m_bStartedAsAdmin
|
private static boolean |
m_sbHasOnTraffic
|
private static boolean |
ms_bInTaskbar
|
private static java.util.Hashtable |
ms_hashOnTop
|
private static SystrayPopupMenu |
ms_popupMenu
|
private static java.awt.Window |
ms_popupWindow
|
private static java.lang.String |
MSG_CONFIRM_OVERWRITE
|
private static java.lang.String |
MSG_COULD_NOT_SAVE
|
private static java.lang.String |
MSG_DLL_UPDATE
Messages |
private static java.lang.String |
MSG_DLL_UPDATE_FAILED
|
private static java.lang.String |
MSG_DLL_UPDATE_SUCCESS_ADMIN
|
static java.lang.String |
MSG_IGNORE_UPDATE
|
private static java.lang.String |
MSG_PERMISSION_PROBLEM
|
static java.lang.String |
START_PARAMETER_ADMIN
|
private static java.lang.String |
STR_HIDDEN_WINDOW
|
private static java.lang.Object |
SYNC_POPUP
|
private static java.lang.String |
UPDATE_PATH
|
Constructor Summary | |
---|---|
JAPDll()
|
Method Summary | |
---|---|
private static void |
askUserWhatToDo()
This method should be invoked if there was no possibility to so a successfull dll update: Reasons can be: - japdll.dll cannot be written (e.g. |
static void |
checkDllVersion(boolean a_bShowDialogAndCloseOnUpdate)
This method should be invoked on every JAP-start: It will check if the existing japdll.dll has the right version to work proper with this JAP version. |
static long |
closePopupMenu()
|
private static boolean |
extractDLL(java.io.File a_file)
Extracts the japdll.dll from the jar-file to the given file |
private static java.lang.String |
getDllFileName_dll()
|
static java.lang.String |
getDllFileName()
Returns the file name of the JAPDll. |
private static java.lang.String |
getDllVersion_dll()
|
static java.lang.String |
getDllVersion()
|
private static java.lang.String |
getUpdatePath()
Returns the path where the dll should be stored into. |
private static void |
hideSystray_dll()
|
private static boolean |
hideWindowInTaskbar_dll(java.lang.String caption)
|
static boolean |
hideWindowInTaskbar(java.lang.String caption)
|
private static void |
informUserAboutJapRestart()
informs the user, that the JAP must be restarted, in order to finish the update |
static void |
init(boolean a_bStartedAsAdmin,
java.lang.String a_username,
java.awt.Window a_window)
|
private static boolean |
isWindowOnTop(java.awt.Window a_window)
Checks if the onTop method of the dll has been used for this window. |
private static void |
loadDll()
|
private static void |
onTraffic_dll()
|
static boolean |
onTraffic()
|
private static void |
popupClosed_dll()
|
private static boolean |
renameDLL(java.lang.String a_oldName,
java.lang.String a_newName)
Renames the existing japdll.dll to japdll.old before the new DLL is extracted from jar-file |
static void |
setSystrayTooltip(java.lang.String a_strTooltipText)
|
private static boolean |
setTooltipText_dll(java.lang.String a_strTooltipText)
|
private static boolean |
setWindowIcon_dll(java.lang.String caption)
|
static boolean |
setWindowIcon(java.lang.String caption)
|
private static void |
setWindowOnTop_dll(java.lang.String caption,
boolean onTop)
|
private static boolean |
setWindowOnTop(java.awt.Window theWindow,
boolean onTop)
|
private static boolean |
shellExecute_dll(java.lang.String a_command,
java.lang.String a_parameters,
boolean a_bAsAdmin)
|
static boolean |
shellExecute(java.lang.String a_command,
java.lang.String a_parameters,
boolean a_bAsAdmin)
|
static long |
showMainWindow()
|
static long |
showPopupMenu(long a_x,
long a_y)
|
private static boolean |
showWindowFromTaskbar_dll()
|
static boolean |
showWindowFromTaskbar()
|
private static boolean |
update(java.awt.Component a_window)
|
static boolean |
xcopy(java.io.File a_file,
java.io.File a_directory,
boolean a_asAdmin)
|
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 MSG_IGNORE_UPDATE
public static final java.lang.String JAP_DLL_REQUIRED_VERSION
public static final java.lang.String START_PARAMETER_ADMIN
private static final java.lang.String UPDATE_PATH
private static final java.lang.String DLL_LIBRARY_NAME
private static final java.lang.String DLL_LIBRARY_NAME_32bit
private static final java.lang.String DLL_LIBRARY_NAME_64bit
private static final java.lang.String JAP_DLL
private static final java.lang.String JAP_DLL_NEW_32bit
private static final java.lang.String JAP_DLL_NEW_64bit
private static final java.lang.String JAP_DLL_OLD
private static final java.lang.String MSG_DLL_UPDATE
private static final java.lang.String MSG_DLL_UPDATE_SUCCESS_ADMIN
private static final java.lang.String MSG_DLL_UPDATE_FAILED
private static final java.lang.String MSG_CONFIRM_OVERWRITE
private static final java.lang.String MSG_PERMISSION_PROBLEM
private static final java.lang.String MSG_COULD_NOT_SAVE
private static java.util.Hashtable ms_hashOnTop
private static boolean ms_bInTaskbar
private static final java.lang.Object SYNC_POPUP
private static SystrayPopupMenu ms_popupMenu
private static java.awt.Window ms_popupWindow
private static boolean m_sbHasOnTraffic
private static boolean m_bStartedAsAdmin
private static final java.lang.String STR_HIDDEN_WINDOW
Constructor Detail |
---|
public JAPDll()
Method Detail |
---|
private static void loadDll()
public static void init(boolean a_bStartedAsAdmin, java.lang.String a_username, java.awt.Window a_window)
public static void checkDllVersion(boolean a_bShowDialogAndCloseOnUpdate)
a_bShowDialogAndCloseOnUpdate
- if, in case of a neccessary update, a dialog is shown and JAP
is closedprivate static boolean update(java.awt.Component a_window)
private static boolean renameDLL(java.lang.String a_oldName, java.lang.String a_newName)
a_oldName
- old name of the filea_newName
- new name of the fileprivate static boolean extractDLL(java.io.File a_file)
a_file
- File
private static void askUserWhatToDo()
private static void informUserAboutJapRestart()
private static boolean isWindowOnTop(java.awt.Window a_window)
a_window
- Window
private static boolean setWindowOnTop(java.awt.Window theWindow, boolean onTop)
public static boolean showWindowFromTaskbar()
public static boolean hideWindowInTaskbar(java.lang.String caption)
public static boolean setWindowIcon(java.lang.String caption)
public static boolean onTraffic()
public static boolean xcopy(java.io.File a_file, java.io.File a_directory, boolean a_asAdmin)
public static java.lang.String getDllVersion()
private static java.lang.String getUpdatePath()
public static java.lang.String getDllFileName()
public static long showMainWindow()
public static long closePopupMenu()
public static long showPopupMenu(long a_x, long a_y)
public static void setSystrayTooltip(java.lang.String a_strTooltipText)
public static boolean shellExecute(java.lang.String a_command, java.lang.String a_parameters, boolean a_bAsAdmin)
private static void setWindowOnTop_dll(java.lang.String caption, boolean onTop)
private static boolean hideWindowInTaskbar_dll(java.lang.String caption)
private static boolean showWindowFromTaskbar_dll()
private static boolean setTooltipText_dll(java.lang.String a_strTooltipText)
private static boolean setWindowIcon_dll(java.lang.String caption)
private static void onTraffic_dll()
private static void popupClosed_dll()
private static void hideSystray_dll()
private static java.lang.String getDllVersion_dll()
private static java.lang.String getDllFileName_dll()
private static boolean shellExecute_dll(java.lang.String a_command, java.lang.String a_parameters, boolean a_bAsAdmin)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |