|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.help.plaf.HelpContentViewerUI
fedora.swing.jhelp.SimpleContentViewerUI
public class SimpleContentViewerUI
Title: SimpleContentViewerUI.java
Description: Based on SimpleContentViewerUI in javax.help.plaf.basic,
which comes with JavaHelp, which comes with Java1.4, and is written by Sun
Microsystems. More information on JavaHelp can be found at
http://java.sun.com/products/javahelp/faq.html
But this version doesn't call setBackingStoreEnable(true),
which is a deprecated method (as of java1.4) anyway.
This simple modification has the net effect of allowing images displayed in help content windows to not be mangled (actually, they mysteriously disappear) when the scrollbar is first used.
----------------------------------------------------------------------------- Portions created by Sun Microsystems are Copyright © Sun Microsystems, originally made available at java.sun.com
-----------------------------------------------------------------------------
| Nested Class Summary | |
|---|---|
class |
SimpleContentViewerUI.JHEditorPane
Subclass of JEditorPane that uses the JHelpContentViewer type registry. |
| Field Summary | |
|---|---|
protected javax.help.JHelpContentViewer |
theViewer
|
| Constructor Summary | |
|---|---|
SimpleContentViewerUI(javax.help.JHelpContentViewer b)
|
|
| Method Summary | |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent x)
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
void |
highlightsChanged(javax.help.event.TextHelpModelEvent e)
Determines if highlights have changed. |
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Notification of a change relative to a hyperlink. |
void |
idChanged(javax.help.event.HelpModelEvent e)
|
void |
installUI(javax.swing.JComponent c)
|
protected void |
linkActivated(java.net.URL u)
Follows the reference in an link. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
|
void |
setEditorKit(java.lang.String type,
javax.swing.text.EditorKit kit)
|
void |
uninstallUI(javax.swing.JComponent c)
|
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.help.JHelpContentViewer theViewer
| Constructor Detail |
|---|
public SimpleContentViewerUI(javax.help.JHelpContentViewer b)
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
public void setEditorKit(java.lang.String type,
javax.swing.text.EditorKit kit)
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.ComponentUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.ComponentUIpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.ComponentUIpublic java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize in class javax.swing.plaf.ComponentUIpublic java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize in class javax.swing.plaf.ComponentUIpublic void idChanged(javax.help.event.HelpModelEvent e)
idChanged in interface javax.help.event.HelpModelListenerpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerpublic void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
hyperlinkUpdate in interface javax.swing.event.HyperlinkListenerprotected void linkActivated(java.net.URL u)
u - the URL to followpublic void highlightsChanged(javax.help.event.TextHelpModelEvent e)
highlightsChanged in interface javax.help.event.TextHelpModelListenere - The TextHelpModelEvent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||