Package javax.help.plaf.basic
Class BasicContentViewerUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.help.plaf.HelpContentViewerUI
javax.help.plaf.basic.BasicContentViewerUI
- All Implemented Interfaces:
PropertyChangeListener
,Serializable
,EventListener
,HelpModelListener
,TextHelpModelListener
,HyperlinkListener
public class BasicContentViewerUI
extends HelpContentViewerUI
implements HelpModelListener, TextHelpModelListener, HyperlinkListener, PropertyChangeListener, Serializable
The default UI for JHelpContentViewer.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
void
Determines if highlights have changed.void
Notification of a change relative to a hyperlink.void
Tells the listener that the current ID in the HelpModel has changed.void
protected void
linkActivated
(URL u) Follows the reference in an link.void
void
setEditorKit
(String type, EditorKit kit) void
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
-
Field Details
-
theViewer
-
-
Constructor Details
-
BasicContentViewerUI
-
-
Method Details
-
createUI
-
setEditorKit
-
installUI
- Overrides:
installUI
in classComponentUI
-
uninstallUI
- Overrides:
uninstallUI
in classComponentUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classComponentUI
-
getMinimumSize
- Overrides:
getMinimumSize
in classComponentUI
-
getMaximumSize
- Overrides:
getMaximumSize
in classComponentUI
-
idChanged
Description copied from interface:HelpModelListener
Tells the listener that the current ID in the HelpModel has changed. All highlights from the previous location change at this point.- Specified by:
idChanged
in interfaceHelpModelListener
- Parameters:
e
- The event
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
hyperlinkUpdate
Notification of a change relative to a hyperlink.- Specified by:
hyperlinkUpdate
in interfaceHyperlinkListener
-
linkActivated
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
Determines if highlights have changed. Collects all the highlights and marks the presentation.- Specified by:
highlightsChanged
in interfaceTextHelpModelListener
- Parameters:
e
- The TextHelpModelEvent.
-