Class javax.help.plaf.basic.BasicContentViewerUI

java.lang.Object
    |
    +----javax.swing.plaf.ComponentUI
            |
            +----javax.help.plaf.HelpContentViewerUI
                    |
                    +----javax.help.plaf.basic.BasicContentViewerUI

public class BasicContentViewerUI
extends HelpContentViewerUI
implements HelpModelListener, TextHelpModelListener, javax.swing.event.HyperlinkListener, java.beans.PropertyChangeListener, java.io.Serializable
The default UI for JHelpContentViewer.


theViewer

protected JHelpContentViewer theViewer

BasicContentViewerUI

public BasicContentViewerUI(JHelpContentViewer b)

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)

setEditorKit

public void setEditorKit(java.lang.String type,
                         javax.swing.text.EditorKit kit)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Overrides:
getPreferredSize in class javax.swing.plaf.ComponentUI

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
Overrides:
getMinimumSize in class javax.swing.plaf.ComponentUI

getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
Overrides:
getMaximumSize in class javax.swing.plaf.ComponentUI

idChanged

public void idChanged(HelpModelEvent e)
Implements:
idChanged in interface HelpModelListener

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Implements:
propertyChange in interface java.beans.PropertyChangeListener

hyperlinkUpdate

public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Notification of a change relative to a hyperlink.
Implements:
hyperlinkUpdate in interface javax.swing.event.HyperlinkListener

linkActivated

protected void linkActivated(java.net.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

highlightsChanged

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