|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.util.HtmlPane
public class HtmlPane
Constructor Summary | |
---|---|
HtmlPane()
Construct a HtmlPane with default size and position. |
|
HtmlPane(Position position,
Size size)
Construct a HtmlPane with given position and size. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlPane()
public HtmlPane(Position position, Size size)
position
- a reference to a Position objectsize
- a reference to a Size objectPosition
,
Size
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |