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:
java.beans.PropertyChangeListener,java.io.Serializable,java.util.EventListener,HelpModelListener,TextHelpModelListener,javax.swing.event.HyperlinkListener
public class BasicContentViewerUI extends HelpContentViewerUI implements HelpModelListener, TextHelpModelListener, javax.swing.event.HyperlinkListener, java.beans.PropertyChangeListener, java.io.Serializable
The default UI for JHelpContentViewer.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JHelpContentViewertheViewer
-
Constructor Summary
Constructors Constructor Description BasicContentViewerUI(JHelpContentViewer b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent x)java.awt.DimensiongetMaximumSize(javax.swing.JComponent c)java.awt.DimensiongetMinimumSize(javax.swing.JComponent c)java.awt.DimensiongetPreferredSize(javax.swing.JComponent c)voidhighlightsChanged(TextHelpModelEvent e)Determines if highlights have changed.voidhyperlinkUpdate(javax.swing.event.HyperlinkEvent e)Notification of a change relative to a hyperlink.voididChanged(HelpModelEvent e)Tells the listener that the current ID in the HelpModel has changed.voidinstallUI(javax.swing.JComponent c)protected voidlinkActivated(java.net.URL u)Follows the reference in an link.voidpropertyChange(java.beans.PropertyChangeEvent event)voidsetEditorKit(java.lang.String type, javax.swing.text.EditorKit kit)voiduninstallUI(javax.swing.JComponent c)
-
-
-
Field Detail
-
theViewer
protected JHelpContentViewer theViewer
-
-
Constructor Detail
-
BasicContentViewerUI
public BasicContentViewerUI(JHelpContentViewer b)
-
-
Method Detail
-
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:
installUIin classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.ComponentUI
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSizein classjavax.swing.plaf.ComponentUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSizein classjavax.swing.plaf.ComponentUI
-
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- Overrides:
getMaximumSizein classjavax.swing.plaf.ComponentUI
-
idChanged
public void idChanged(HelpModelEvent e)
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
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
hyperlinkUpdate
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Notification of a change relative to a hyperlink.- Specified by:
hyperlinkUpdatein interfacejavax.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.- Specified by:
highlightsChangedin interfaceTextHelpModelListener- Parameters:
e- The TextHelpModelEvent.
-
-