|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.ApplicationUtil
public final class ApplicationUtil
The ApplicationUtil is a utility for application launchers.
| Method Summary | |
|---|---|
static boolean |
configureFrameBounds(Frame pFrame)
Configures the bounds for the given frame, if the System property "framebounds" was set. |
static IApplication |
createApplication(ILauncher pLauncher,
ClassLoader pClassLoader,
String pClassName)
Creates an instance of an IApplication. |
static IApplication |
createApplication(ILauncher pLauncher,
String pClassName)
Creates an instance of an IApplication. |
static XmlNode |
getConfig(ILauncher pLauncher,
String pName)
Gets the parsed xml configuration. |
static String |
getRegistryApplicationName(ILauncher pLauncher)
Gets the application name out of the launcher. |
static String |
getRegistryKey(String pApplication,
String pKey)
Gets the value for an application specific registry key. |
static boolean |
isLinux()
Gets whether the operating system is Linux. |
static boolean |
isMacOS()
Gets whether the operating system is MacOS. |
static boolean |
isWindows()
Gets whether the operating system is Windows. |
static String |
replaceParameter(String pValue,
ILauncher pLauncher)
Replaces a parameter placeholder with the desired parameter. |
static void |
setRegistryKey(String pApplication,
String pKey,
String pValue)
Sets the value for an application specific registry key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static IApplication createApplication(ILauncher pLauncher,
String pClassName)
throws Throwable
IApplication.
pLauncher - the launch configurationpClassName - the full qualified class name of the desired class
IApplication instance
Throwable - if the instance can not be created
public static IApplication createApplication(ILauncher pLauncher,
ClassLoader pClassLoader,
String pClassName)
throws Throwable
IApplication.
pLauncher - the launch configurationpClassLoader - the class loaderpClassName - the full qualified class name of the desired class
IApplication instance
Throwable - if the instance can not be created
public static XmlNode getConfig(ILauncher pLauncher,
String pName)
throws Exception
pLauncher - the launch configurationpName - the configuration name or path
null if the config was not found
Exception - xml parse error
public static String replaceParameter(String pValue,
ILauncher pLauncher)
pValue - the value of an application parameterpLauncher - the launcher
public static void setRegistryKey(String pApplication,
String pKey,
String pValue)
pApplication - the application namepKey - the key to setpValue - the value to set
SecurityException - if a SecurityManager is present and denies the registry access
RuntimeException - if it's not possible to save the registry key
public static String getRegistryKey(String pApplication,
String pKey)
pApplication - the application namepKey - the key to get
pKey or null if the application or key is not visible
SecurityException - if a SecurityManager is present and denies the registry accesspublic static String getRegistryApplicationName(ILauncher pLauncher)
pLauncher - the launcher with properties for the application
public static boolean configureFrameBounds(Frame pFrame)
pFrame - the frame to change
true if bounds were changed, false otherwisepublic static boolean isMacOS()
true if MacOS, false otherwisepublic static boolean isLinux()
true if Linux, false otherwisepublic static boolean isWindows()
true if Windows, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||