|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Application
This interface represents an RWT application before it is started. It's used to configure the various aspects that form an application such as entrypoints, URL mapping, styling, etc.
An instance of this interface is provided by the framework to the
configure
method of an ApplicationConfiguration
.
ApplicationConfiguration
Nested Class Summary | |
---|---|
static class |
Application.OperationMode
Instances of this class represent a mode of operation for an RWT application. |
Method Summary | |
---|---|
void |
addEntryPoint(java.lang.String path,
java.lang.Class<? extends IEntryPoint> entryPointType,
java.util.Map<java.lang.String,java.lang.String> properties)
Registers an entry point at the given servlet path. |
void |
addEntryPoint(java.lang.String path,
IEntryPointFactory entryPointFactory,
java.util.Map<java.lang.String,java.lang.String> properties)
Registers an entry point factory at the given servlet path. |
void |
addPhaseListener(PhaseListener phaseListener)
|
void |
addResource(IResource resource)
|
void |
addServiceHandler(java.lang.String serviceHandlerId,
IServiceHandler serviceHandler)
|
void |
addStyleSheet(java.lang.String themeId,
java.lang.String styleSheetLocation)
Adds a stylesheet that contains a theme or a theme contribution to the application. |
void |
addStyleSheet(java.lang.String themeId,
java.lang.String styleSheetLocation,
ResourceLoader resourceLoader)
Adds a stylesheet that contains a theme or a theme contribution to the application. |
void |
addThemableWidget(java.lang.Class<? extends Widget> widget)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setOperationMode(Application.OperationMode operationMode)
The operation mode in which the application will be running. |
void |
setSettingStoreFactory(ISettingStoreFactory settingStoreFactory)
|
Method Detail |
---|
void setOperationMode(Application.OperationMode operationMode)
JEE_COMPATIBILITY
.
operationMode
- the operation mode to be used, must not be
null
Application.OperationMode
void addEntryPoint(java.lang.String path, java.lang.Class<? extends IEntryPoint> entryPointType, java.util.Map<java.lang.String,java.lang.String> properties)
WebClient
provides constants for the default RAP client.
path
- a valid path to register the entry point atentryPointType
- the entry point class to be registered, must not be
null
properties
- properties that control client-specific aspects of the
application, such as theme, icons, etc., may be null
void addEntryPoint(java.lang.String path, IEntryPointFactory entryPointFactory, java.util.Map<java.lang.String,java.lang.String> properties)
WebClient
provides constants for the default RAP client.
path
- a valid path to register the entry point atentryPointFactory
- the entry point factory to be registered, must not
be null
properties
- properties that control client-specific aspects of the
application, such as theme, icons, etc., may be null
void addStyleSheet(java.lang.String themeId, java.lang.String styleSheetLocation)
ApplicationConfiguration
.
themeId
- the id of the theme to register or to contribute tostyleSheetLocation
- the location of the CSS file in the format
accepted by ClassLoader.getResource(String)
ApplicationConfiguration
,
RWT.DEFAULT_THEME_ID
void addStyleSheet(java.lang.String themeId, java.lang.String styleSheetLocation, ResourceLoader resourceLoader)
themeId
- the id of the theme to register or to contribute tostyleSheetLocation
- the location of the CSS file in the format
accepted by the given resource loaderresourceLoader
- the resource loader that is able to load the style
sheet from the given locationRWT.DEFAULT_THEME_ID
void addPhaseListener(PhaseListener phaseListener)
void setAttribute(java.lang.String name, java.lang.Object value)
void setSettingStoreFactory(ISettingStoreFactory settingStoreFactory)
void addThemableWidget(java.lang.Class<? extends Widget> widget)
void addServiceHandler(java.lang.String serviceHandlerId, IServiceHandler serviceHandler)
void addResource(IResource resource)
|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.