|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.UIContainer<C>
javax.rad.genui.container.AbstractWindow<C>
javax.rad.genui.container.AbstractFrame<ILauncher>
javax.rad.application.genui.UILauncher
public class UILauncher
The UILauncher is an AbstractFrame extension. It will be
used for platform and technology dependent ILauncher implementations.
| Field Summary |
|---|
| Fields inherited from class javax.rad.genui.container.AbstractFrame |
|---|
iconImage, menuBar |
| Fields inherited from class javax.rad.genui.UIContainer |
|---|
components |
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
lLastTranslationModified, parent |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Fields inherited from interface javax.rad.application.ILauncher |
|---|
ENVIRONMENT_DESKTOP, ENVIRONMENT_HEADLESS, ENVIRONMENT_MOBILE, ENVIRONMENT_WEB, PARAM_APPLICATIONLANGUAGE, PARAM_APPLICATIONNAME, PARAM_CODEBASE, PARAM_ENVIRONMENT, PARAM_LOGFACTORY, PARAM_SERVERBASE, PARAM_UIFACTORY |
| Fields inherited from interface javax.rad.ui.container.IFrame |
|---|
ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, NORMAL |
| Fields inherited from interface javax.rad.ui.container.IToolBarPanel |
|---|
AREA_BOTTOM, AREA_LEFT, AREA_RIGHT, AREA_TOP |
| Constructor Summary | |
|---|---|
UILauncher(ILauncher pLauncher)
Creates a new instance of UILauncher with an ILauncher implementation. |
|
| Method Summary | |
|---|---|
void |
cancelPendingThreads()
Cancel/Interrupts all pending threads. |
static IFileHandleReceiver |
createFileHandleReceiver(Object pFileHandleReceiver,
String pMethodName)
Creates a file handle receiver instance with the given object and method name. |
String |
getEnvironmentName()
Gets the name of the environment for this launcher. |
void |
getFileHandle(IFileHandleReceiver pFileHandleReceiver)
Technology independent getFileHandle. |
void |
getFileHandle(IFileHandleReceiver pFileHandleReceiver,
String pTitle)
Technology independent getFileHandle. |
void |
getFileHandle(Object pFileHandleReceiver,
String pMethodName)
Technology independent getFileHandle. |
void |
getFileHandle(Object pFileHandleReceiver,
String pMethodName,
String pTitle)
Technology independent getFileHandle. |
Object |
getObject(String pName)
Gets an external object from the internal object store. |
String |
getParameter(String pName)
Gets a configuration parameter of the application. |
String |
getRegistryKey(String pKey)
Gets the value for a specific key from the applications registry. |
void |
handleException(Throwable pThrowable)
Notification for the listener to handle an exception occured in another part of the program. |
boolean |
isDesktopEnvironment()
Gets whether the launcher was started in a desktop environment. |
boolean |
isHeadlessEnvironment()
Gets whether the launcher was started in a headless (without GUI) environment. |
boolean |
isMobileEnvironment()
Gets whether the launcher was started in a mobile environment. |
boolean |
isWebEnvironment()
Gets whether the launcher was started in a web environment. |
void |
putObject(String pName,
Object pObject)
Puts an external object in the internal object store. |
void |
saveFileHandle(IFileHandle pFileHandle)
Technology independent saveFileHandle. |
void |
saveFileHandle(IFileHandle pFileHandle,
String pTitle)
Technology independent saveFileHandle. |
void |
setParameter(String pName,
String pValue)
Sets a configuration parameter of the application. |
void |
setRegistryKey(String pKey,
String pValue)
Sets the value for a specific key to the applications registry. |
void |
showDocument(String pDocumentName,
IRectangle pBounds,
String pTarget)
Requests that external application shows a document indicated by the pDocumentname argument. |
void |
showFileHandle(IFileHandle pFileHandle)
Technology independent showFileHandle. |
void |
showFileHandle(IFileHandle pFileHandle,
IRectangle pBounds,
String pTarget)
Technology independent showFileHandle. |
| Methods inherited from class javax.rad.genui.container.AbstractFrame |
|---|
addNotify, addToolBar, addToolBar, beforeAddNotify, getIconImage, getMenuBar, getState, getTitle, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, isResizable, isToolBarMovable, removeAllToolBars, removeNotify, removeToolBar, removeToolBar, setIconImage, setMenuBar, setResizable, setState, setTitle, setToolBarArea, setToolBarMovable, updateTranslation |
| Methods inherited from class javax.rad.genui.container.AbstractWindow |
|---|
centerRelativeTo, dispose, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isActive, isDisposed, pack, setVisible, toBack, toFront, topLevelAddNotify |
| Methods inherited from class javax.rad.genui.UIContainer |
|---|
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout, setZOrder |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
equals, getUIResource, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.container.IFrame |
|---|
getIconImage, getMenuBar, getState, getTitle, isResizable, setIconImage, setMenuBar, setResizable, setState, setTitle |
| Methods inherited from interface javax.rad.ui.container.IWindow |
|---|
centerRelativeTo, dispose, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isActive, isDisposed, pack, toBack, toFront |
| Methods inherited from interface javax.rad.ui.container.IToolBarPanel |
|---|
addToolBar, addToolBar, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, removeAllToolBars, removeToolBar, removeToolBar, setToolBarArea |
| Methods inherited from interface javax.rad.ui.IContainer |
|---|
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public UILauncher(ILauncher pLauncher)
ILauncher implementation.
pLauncher - the ILauncher| Method Detail |
|---|
public void getFileHandle(IFileHandleReceiver pFileHandleReceiver,
String pTitle)
throws Throwable
getFileHandle in interface ILauncherpFileHandleReceiver - the IFileHandle receiver that should receive the file.pTitle - the title for the dialog or null to set a default title
Throwable - if an error occurs during getting the file.public String getParameter(String pName)
getParameter in interface ILauncherpName - the parameter name
null if the parameter does not exist
public void saveFileHandle(IFileHandle pFileHandle,
String pTitle)
throws Throwable
saveFileHandle in interface ILauncherpFileHandle - the IFileHandle to save.pTitle - the title for the dialog or null to set a default title
Throwable - if an error occurs during saving the file.
public void setParameter(String pName,
String pValue)
setParameter in interface ILauncherpName - the parameter namepValue - the value for the parameter or null to delete the parameter
public void showDocument(String pDocumentName,
IRectangle pBounds,
String pTarget)
throws Throwable
pDocumentname argument. The
target argument indicates where the document should be displayed.
Applications can also ignore the target information.
showDocument in interface ILauncherpDocumentName - the location/filename of the document. (local or network adress)pBounds - the bounds for the document, if supported from the implementationpTarget - a String indicating where to display the document.
Throwable - if the document couldn't opened/shown
public void showFileHandle(IFileHandle pFileHandle,
IRectangle pBounds,
String pTarget)
throws Throwable
showFileHandle in interface ILauncherpFileHandle - the IFileHandle to save.pBounds - the bounds for the document, if supported from the implementationpTarget - a String indicating where to display the document.
Throwable - if an error occurs during saving the file.
public void showFileHandle(IFileHandle pFileHandle)
throws Throwable
showFileHandle in interface ILauncherpFileHandle - the IFileHandle to save.
Throwable - if an error occurs during saving the file.public void cancelPendingThreads()
cancelPendingThreads in interface ILauncherpublic void handleException(Throwable pThrowable)
handleException in interface IExceptionListenerpThrowable - the occured exception
public void setRegistryKey(String pKey,
String pValue)
setRegistryKey in interface ILauncherpKey - the key to setpValue - the value to set or null to remove the key from the registrypublic String getRegistryKey(String pKey)
getRegistryKey in interface ILauncherpKey - the key to get
null if the key is not availablepublic String getEnvironmentName()
getEnvironmentName in interface ILauncherILauncher.ENVIRONMENT_HEADLESS,
ILauncher.ENVIRONMENT_DESKTOP
public void putObject(String pName,
Object pObject)
pName - the name of the objectpObject - the object or null to remove the object from the storepublic Object getObject(String pName)
pName - the name of the object
null if no object was found with the given name
public void saveFileHandle(IFileHandle pFileHandle)
throws Throwable
pFileHandle - the IFileHandle to save.
Throwable - if an error occurs during saving the file.
public void getFileHandle(IFileHandleReceiver pFileHandleReceiver)
throws Throwable
pFileHandleReceiver - the IFileHandle receiver that should receive the file.
Throwable - if an error occurs during getting the file.
public void getFileHandle(Object pFileHandleReceiver,
String pMethodName,
String pTitle)
throws Throwable
pFileHandleReceiver - the IFileHandle receiver that should receive the file.pMethodName - the method that is invoked.pTitle - the title.
Throwable - if an error occurs during getting the file.
public void getFileHandle(Object pFileHandleReceiver,
String pMethodName)
throws Throwable
pFileHandleReceiver - the IFileHandle receiver that should receive the file.pMethodName - the method that is invoked.
Throwable - if an error occurs during getting the file.
public static IFileHandleReceiver createFileHandleReceiver(Object pFileHandleReceiver,
String pMethodName)
pFileHandleReceiver - the object.pMethodName - the method name.
public boolean isMobileEnvironment()
true if the launcher runs in a mobile environmentpublic boolean isWebEnvironment()
true if the launcher runs in a web environmentpublic boolean isDesktopEnvironment()
true if the launcher runs in a desktop environmentpublic boolean isHeadlessEnvironment()
true if the launcher runs in a headless (without GUI) environment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||