public class HtmlPane
extends java.lang.Object
Constructor and Description |
---|
HtmlPane()
Construct a HtmlPane with default size and position.
|
HtmlPane(Position position,
Size size)
Construct a HtmlPane with given position and size.
|
Modifier and Type | Method and Description |
---|---|
void |
addExitListener(ExitListener exitListener)
Register an ExitListener to get a notification when the
close button is clicked.
|
void |
addLinkListener(LinkListener listener)
Registers a LinkListener to get events when clicked
on a hyperlink.
|
static void |
browse(java.lang.String url)
Calls the standard system browser
|
void |
clear()
Erase all text.
|
void |
hide()
Hide the console window.
|
void |
insertText(java.lang.String text)
Insert HTML formatted text.
|
void |
insertUrl(java.lang.String htmlUrl)
Insert HTML from given URL.
|
boolean |
isDisposed()
Return true, if the HtmlPane window was disposed.
|
public void insertUrl(java.lang.String htmlUrl)
htmlUrl
- must be a valid URL string like http://www.aplu.ch/index.html"public void clear()
public void addExitListener(ExitListener exitListener)
public void hide()
public boolean isDisposed()
public void insertText(java.lang.String text)
public static void browse(java.lang.String url)
url
- the URL of the WEB site, prefixed with http:// or notpublic void addLinkListener(LinkListener listener)
listener
- the listener to register