public class SwtUrlContext extends java.lang.Object implements URLContext
GUIContext provides a browser widget in SWT for a specific
URL based on a parent context. Closing will be forwarded to the parent
context.| Modifier and Type | Field and Description |
|---|---|
protected java.net.URL |
baseUrl
The base URL providing the HTML to be displayed in this context.
|
protected Browser |
browser
Browser widget for displaying content in the template
|
protected SWTContext |
parentSwtContext
The parent SWT-context containing the Eclipse-Editor.
|
| Constructor and Description |
|---|
SwtUrlContext(java.net.URL baseURL,
SWTContext parentSWTContext)
Creates a new URL context based on the Eclipse-Browser-widget.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the GUI for this context.
|
protected void |
createBrowser()
Creates and initialises the browser with the base URL of this context.
|
java.net.URL |
getURL()
Gets the URL of the (remote)
HTMLContext which provides the
GUI. |
protected final java.net.URL baseUrl
protected final SWTContext parentSwtContext
protected Browser browser
public SwtUrlContext(java.net.URL baseURL,
SWTContext parentSWTContext)
baseURL - The base URL providing the HTML to be displayed in the
created context.parentSWTContext - The parent SWT-context containing the
Eclipse-Editor.protected void createBrowser()
public void close()
GUIContextclose in interface GUIContextpublic java.net.URL getURL()
URLContextHTMLContext which provides the
GUI.getURL in interface URLContextHTMLContext which provides the
GUI.