javax.help.plaf.basic

Class BasicContentViewerUI

Implemented Interfaces:
java.util.EventListener, HelpModelListener, HyperlinkListener, PropertyChangeListener, Serializable, TextHelpModelListener

public class BasicContentViewerUI
extends HelpContentViewerUI
implements HelpModelListener, TextHelpModelListener, HyperlinkListener, PropertyChangeListener, Serializable

The default UI for JHelpContentViewer.

Field Summary

protected JHelpContentViewer
theViewer

Constructor Summary

BasicContentViewerUI(JHelpContentViewer b)

Method Summary

static ComponentUI
createUI(JComponent x)
Dimension
getMaximumSize(JComponent c)
Dimension
getMinimumSize(JComponent c)
Dimension
getPreferredSize(JComponent c)
void
highlightsChanged(TextHelpModelEvent e)
Determines if highlights have changed.
void
hyperlinkUpdate(HyperlinkEvent e)
Notification of a change relative to a hyperlink.
void
idChanged(HelpModelEvent e)
void
installUI(JComponent c)
protected void
linkActivated(URL u)
Follows the reference in an link.
void
propertyChange(PropertyChangeEvent event)
void
setEditorKit(String type, EditorKit kit)
void
uninstallUI(JComponent c)

Field Details

theViewer

protected JHelpContentViewer theViewer

Constructor Details

BasicContentViewerUI

public BasicContentViewerUI(JHelpContentViewer b)

Method Details

createUI

public static ComponentUI createUI(JComponent x)

getMaximumSize

public Dimension getMaximumSize(JComponent c)

getMinimumSize

public Dimension getMinimumSize(JComponent c)

getPreferredSize

public Dimension getPreferredSize(JComponent c)

highlightsChanged

public void highlightsChanged(TextHelpModelEvent e)
Determines if highlights have changed. Collects all the highlights and marks the presentation.
Specified by:
highlightsChanged in interface TextHelpModelListener
Parameters:
e - The TextHelpModelEvent.

hyperlinkUpdate

public void hyperlinkUpdate(HyperlinkEvent e)
Notification of a change relative to a hyperlink.

idChanged

public void idChanged(HelpModelEvent e)
Specified by:
idChanged in interface HelpModelListener

installUI

public void installUI(JComponent c)

linkActivated

protected void linkActivated(URL u)
Follows the reference in an 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

propertyChange

public void propertyChange(PropertyChangeEvent event)

setEditorKit

public void setEditorKit(String type,
                         EditorKit kit)

uninstallUI

public void uninstallUI(JComponent c)