Package org.eclipse.rap.rwt.application
Class AbstractEntryPoint
java.lang.Object
org.eclipse.rap.rwt.application.AbstractEntryPoint
- All Implemented Interfaces:
- Serializable,- EntryPoint,- ClientService,- StartupParameters
This class provides a skeletal implementation of the 
EntryPoint interface, to
 minimize the effort required to implement this interface.
 
 By default, this implementation creates a maximized main shell without any trimmings. Subclasses
 must implement createContents to create the contents of the main shell. In case a
 different type of main shell is required, subclasses may also override createShell.
 
This class is compatible with all operation modes of RWT. It is recommended to extend this base class rather than to implement the EntryPoint interface itself.
- Since:
- 2.0
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voidcreateContents(Composite parent) Creates the controls that constitute the UI for this entrypoint.protected ShellcreateShell(Display display) Creates the main shell for this entrypoint.intcreateUI()This method is called by the framework to initialize the UI.getParameter(String name) Returns the value of a named entrypoint startup parameter.Returns the names of the entrypoint startup parameters.getParameterValues(String name) Returns a list with values of a named entrypoint startup parameter.protected ShellgetShell()Returns the main shell for this entrypoint.
- 
Constructor Details- 
AbstractEntryPointpublic AbstractEntryPoint()
 
- 
- 
Method Details- 
createUIpublic int createUI()This method is called by the framework to initialize the UI. Subclasses should implementcreateContents(Composite)instead of overriding this method.- Specified by:
- createUIin interface- EntryPoint
- Returns:
- exit status, reserved for future use
 
- 
getParameterNamesReturns the names of the entrypoint startup parameters.- Specified by:
- getParameterNamesin interface- StartupParameters
- Returns:
- a (possibly empty) collection of parameter names
- Since:
- 3.0
 
- 
getParameterReturns the value of a named entrypoint startup parameter. You should only use this method when you are sure the parameter has only one value. If the parameter might have more than one value, usegetParameterValues(java.lang.String). If you use this method with a multivalued parameter, the value returned is equal to the first value in the list returned bygetParameterValues.- Specified by:
- getParameterin interface- StartupParameters
- Parameters:
- name- the name of the parameter
- Returns:
- the value of the parameter, or nullif the parameter does not exist
- Since:
- 3.0
 
- 
getParameterValuesReturns a list with values of a named entrypoint startup parameter. If the parameter has a single value, the list has a size of 1.- Specified by:
- getParameterValuesin interface- StartupParameters
- Parameters:
- name- the name of the parameter
- Returns:
- the values of the parameter, or nullif the parameter does not exist
- Since:
- 3.0
 
- 
getShellReturns the main shell for this entrypoint.- Returns:
- the main shell, or nullif the shell is not created yet
 
- 
createContentsCreates the controls that constitute the UI for this entrypoint. Subclasses must implement this method and set the parent's layout as needed.An implementation must not create an SWT event loop. This is done by the base class as needed. - Parameters:
- parent- the parent composite to contain the content
 
- 
createShellCreates the main shell for this entrypoint. The default implementation creates a maximized shell without any trimmings. Subclasses may override this method in order to create a different kind of shell.- Parameters:
- display- the display to create the shell on
- Returns:
- the created shell
 
 
-