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 ComponentUIvoidDetermines if highlights have changed.voidNotification of a change relative to a hyperlink.voidTells the listener that the current ID in the HelpModel has changed.voidprotected voidlinkActivated(URL u) Follows the reference in an link.voidvoidsetEditorKit(String type, EditorKit kit) voidMethods 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:
installUIin classComponentUI
-
uninstallUI
- Overrides:
uninstallUIin classComponentUI
-
getPreferredSize
- Overrides:
getPreferredSizein classComponentUI
-
getMinimumSize
- Overrides:
getMinimumSizein classComponentUI
-
getMaximumSize
- Overrides:
getMaximumSizein classComponentUI
-
idChanged
Description copied from interface:HelpModelListenerTells the listener that the current ID in the HelpModel has changed. All highlights from the previous location change at this point.- Specified by:
idChangedin interfaceHelpModelListener- Parameters:
e- The event
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
hyperlinkUpdate
Notification of a change relative to a hyperlink.- Specified by:
hyperlinkUpdatein 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:
highlightsChangedin interfaceTextHelpModelListener- Parameters:
e- The TextHelpModelEvent.
-