|
||||||||||
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 String |
ENVIRONMENT_DESKTOP
the name for desktop environment. |
static String |
ENVIRONMENT_HEADLESS
the name for headless environment. |
static String |
ENVIRONMENT_MOBILE
the name for mobile environment. |
static String |
ENVIRONMENT_WEB
the name for web environment. |
static String |
PARAM_APPLICATIONLANGUAGE
the parameter name for the application language. |
static String |
PARAM_APPLICATIONNAME
the parameter name for the application name. |
static String |
PARAM_CODEBASE
the parameter name for the codebase. |
static String |
PARAM_ENVIRONMENT
the parameter name for the launcher environment. |
static String |
PARAM_LOGFACTORY
the parameter name for the full qualified class name of the logfactory. |
static String |
PARAM_SERVERBASE
the parameter name for the server base. |
static 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. |
String |
getEnvironmentName()
Gets the name of the environment for this launcher. |
void |
getFileHandle(IFileHandleReceiver pFileHandleReceiver,
String pTitle)
Technology independent getFileHandle. |
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 |
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 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 |
Methods inherited from interface javax.rad.util.event.IExceptionListener |
---|
handleException |
Field Detail |
---|
static final String ENVIRONMENT_HEADLESS
static final String ENVIRONMENT_DESKTOP
static final String ENVIRONMENT_WEB
static final String ENVIRONMENT_MOBILE
static final String PARAM_SERVERBASE
static final String PARAM_CODEBASE
static final String PARAM_APPLICATIONNAME
static final String PARAM_APPLICATIONLANGUAGE
static final String PARAM_LOGFACTORY
static final String PARAM_UIFACTORY
static final String PARAM_ENVIRONMENT
Method Detail |
---|
String getParameter(String pName)
pName
- the parameter name
null
if the parameter does not existvoid setParameter(String pName, String pValue)
pName
- the parameter namepValue
- the value for the parameter or null
to delete the parametervoid 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.
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.
Throwable
- if the document couldn't opened/shownvoid showFileHandle(IFileHandle pFileHandle, IRectangle pBounds, String pTarget) throws 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.
Throwable
- if an error occurs during saving the file.void showFileHandle(IFileHandle pFileHandle) throws Throwable
pFileHandle
- the IFileHandle to save.
Throwable
- if an error occurs during saving the file.void saveFileHandle(IFileHandle pFileHandle, String pTitle) throws Throwable
pFileHandle
- 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.void getFileHandle(IFileHandleReceiver pFileHandleReceiver, String pTitle) throws Throwable
pFileHandleReceiver
- 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.void cancelPendingThreads()
void setRegistryKey(String pKey, String pValue)
pKey
- the key to setpValue
- the value to set or null
to remove the key from the registryString getRegistryKey(String pKey)
pKey
- the key to get
null
if the key is not availableString getEnvironmentName()
ENVIRONMENT_HEADLESS
,
ENVIRONMENT_DESKTOP
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |