|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILauncher
The ILauncher
defines a platform and technology
independent IApplication
launcher.
It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
Field Summary | |
---|---|
static java.lang.String |
ENVIRONMENT_DESKTOP
the name for desktop environment. |
static java.lang.String |
ENVIRONMENT_HEADLESS
the name for headless environment. |
static java.lang.String |
ENVIRONMENT_MOBILE
the name for mobile environment. |
static java.lang.String |
ENVIRONMENT_WEB
the name for web environment. |
static java.lang.String |
PARAM_APPLICATIONLANGUAGE
the parameter name for the application language. |
static java.lang.String |
PARAM_APPLICATIONNAME
the parameter name for the application name. |
static java.lang.String |
PARAM_CODEBASE
the parameter name for the codebase. |
static java.lang.String |
PARAM_ENVIRONMENT
the parameter name for the launcher environment. |
static java.lang.String |
PARAM_LOGFACTORY
the parameter name for the full qualified class name of the logfactory. |
static java.lang.String |
PARAM_SERVERBASE
the parameter name for the server base. |
static java.lang.String |
PARAM_UIFACTORY
the parameter name for the full qualified class name of the UI factory. |
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 |
Method Summary | |
---|---|
void |
cancelPendingThreads()
Cancel/Interrupts all pending threads. |
java.lang.String |
getEnvironmentName()
Gets the name of the environment for this launcher. |
void |
getFileHandle(IFileHandleReceiver pFileHandleReceiver,
java.lang.String pTitle)
Technology independent getFileHandle. |
java.lang.String |
getParameter(java.lang.String pName)
Gets a configuration parameter of the application. |
java.lang.String |
getRegistryKey(java.lang.String pKey)
Gets the value for a specific key from the applications registry. |
void |
saveFileHandle(IFileHandle pFileHandle,
java.lang.String pTitle)
Technology independent saveFileHandle. |
void |
setParameter(java.lang.String pName,
java.lang.String pValue)
Sets a configuration parameter of the application. |
void |
setRegistryKey(java.lang.String pKey,
java.lang.String pValue)
Sets the value for a specific key to the applications registry. |
void |
showDocument(java.lang.String pDocumentName,
IRectangle pBounds,
java.lang.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,
java.lang.String pTarget)
Technology independent showFileHandle. |
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, getTranslation, isActive, isDisposed, pack, setTranslation, 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 |
Methods inherited from interface javax.rad.util.event.IExceptionListener |
---|
handleException |
Field Detail |
---|
static final java.lang.String ENVIRONMENT_HEADLESS
static final java.lang.String ENVIRONMENT_DESKTOP
static final java.lang.String ENVIRONMENT_WEB
static final java.lang.String ENVIRONMENT_MOBILE
static final java.lang.String PARAM_SERVERBASE
static final java.lang.String PARAM_CODEBASE
static final java.lang.String PARAM_APPLICATIONNAME
static final java.lang.String PARAM_APPLICATIONLANGUAGE
static final java.lang.String PARAM_LOGFACTORY
static final java.lang.String PARAM_UIFACTORY
static final java.lang.String PARAM_ENVIRONMENT
Method Detail |
---|
java.lang.String getParameter(java.lang.String pName)
pName
- the parameter name
null
if the parameter does not existvoid setParameter(java.lang.String pName, java.lang.String pValue)
pName
- the parameter namepValue
- the value for the parameter or null
to delete the parametervoid showDocument(java.lang.String pDocumentName, IRectangle pBounds, java.lang.String pTarget) throws java.lang.Throwable
pDocumentname
argument. The
target
argument indicates where the document should be displayed.
Applications can also ignore the target
information.
pDocumentName
- 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.
java.lang.Throwable
- if the document couldn't opened/shownvoid showFileHandle(IFileHandle pFileHandle, IRectangle pBounds, java.lang.String pTarget) throws java.lang.Throwable
pFileHandle
- the IFileHandle to save.pBounds
- the bounds for the document, if supported from the implementationpTarget
- a String
indicating where to display the document.
java.lang.Throwable
- if an error occurs during saving the file.void showFileHandle(IFileHandle pFileHandle) throws java.lang.Throwable
pFileHandle
- the IFileHandle to save.
java.lang.Throwable
- if an error occurs during saving the file.void saveFileHandle(IFileHandle pFileHandle, java.lang.String pTitle) throws java.lang.Throwable
pFileHandle
- the IFileHandle to save.pTitle
- the title for the dialog or null
to set a default title
java.lang.Throwable
- if an error occurs during saving the file.void getFileHandle(IFileHandleReceiver pFileHandleReceiver, java.lang.String pTitle) throws java.lang.Throwable
pFileHandleReceiver
- the IFileHandle receiver that should receive the file.pTitle
- the title for the dialog or null
to set a default title
java.lang.Throwable
- if an error occurs during getting the file.void cancelPendingThreads()
void setRegistryKey(java.lang.String pKey, java.lang.String pValue)
pKey
- the key to setpValue
- the value to set or null
to remove the key from the registryjava.lang.String getRegistryKey(java.lang.String pKey)
pKey
- the key to get
null
if the key is not availablejava.lang.String getEnvironmentName()
ENVIRONMENT_HEADLESS
,
ENVIRONMENT_DESKTOP
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |