All Packages Class Hierarchy This Package Previous Next Index
Class vnr.awt.HTMLViewer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----vnr.awt.HTMLViewer
- public class HTMLViewer
- extends JPanel
- implements HyperlinkListener
A JPanel subclass that has as its only child a JEditorPane to
view HTML URLs.
This class takes care of loading of new pages when links are selected
-
HTMLViewer(URL)
- Create a HTMLViewer, viewing a given URL
-
getStatus()
-
-
getViewer()
-
-
hyperlinkUpdate(HyperlinkEvent)
- if they've pressed a link, and it's activated, then call the linkActivated method
-
linkActivated(URL)
- Follows the reference in a link.
-
setStatus(StatusBar)
-
-
setViewer(JEditorPane)
-
HTMLViewer
public HTMLViewer(URL u)
- Create a HTMLViewer, viewing a given URL
hyperlinkUpdate
public void hyperlinkUpdate(HyperlinkEvent e)
- if they've pressed a link, and it's activated, then call the linkActivated method
linkActivated
public void linkActivated(URL u)
- Follows the reference in a link. The given url is the requested reference.
By default this calls setPage,
and if an exception is thrown the original previous
document is restored and a beep sounded. If an
attempt was made to follow a link, but it represented
a malformed url, this method will be called with a
null argument.
- Parameters:
- u - the URL to follow
getViewer
public JEditorPane getViewer()
setViewer
public void setViewer(JEditorPane $3)
getStatus
public StatusBar getStatus()
setStatus
public void setStatus(StatusBar $4)
All Packages Class Hierarchy This Package Previous Next Index