|
||||||||||
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.HelpNavigatorUI
javax.help.plaf.basic.BasicTOCNavigatorUI
public class BasicTOCNavigatorUI
The default UI for JHelpNavigator of type TOC.
Field Summary | |
---|---|
protected static boolean |
debug
For printf debugging. |
protected javax.swing.JScrollPane |
sp
|
protected JHelpTOCNavigator |
toc
|
protected javax.swing.tree.DefaultMutableTreeNode |
topNode
|
protected javax.swing.JTree |
tree
|
Constructor Summary | |
---|---|
BasicTOCNavigatorUI(JHelpTOCNavigator b)
|
Method Summary | |
---|---|
protected void |
addSubHelpSets(HelpSet hs)
Adds subhelpsets |
void |
componentHidden(java.awt.event.ComponentEvent e)
Invoked when the component has been made invisible. |
void |
componentMoved(java.awt.event.ComponentEvent e)
Invoked when the component's position changes. |
void |
componentResized(java.awt.event.ComponentEvent e)
Invoked when the component's size changes. |
void |
componentShown(java.awt.event.ComponentEvent e)
Invoked when the component has been made visible. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent x)
|
protected static void |
debug(java.lang.String str)
|
void |
doMerge(NavigatorView view)
Merges in the navigational data from another IndexView. |
protected JHelpNavigator |
getHelpNavigator()
|
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 |
idChanged(HelpModelEvent e)
Processes an idChanged event. |
void |
installUI(javax.swing.JComponent c)
|
void |
merge(NavigatorView view)
Merges in the navigational data from another TOCView. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
|
void |
remove(NavigatorView view)
Removes the navigational data. |
protected void |
setCellRenderer(NavigatorView view,
javax.swing.JTree tree)
Sets the desired cell renderer on this tree. |
void |
uninstallUI(javax.swing.JComponent c)
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent e)
|
Methods inherited from class javax.help.plaf.HelpNavigatorUI |
---|
getAddAction, getIcon, getImageIcon, setIcon |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, paint, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JHelpTOCNavigator toc
protected javax.swing.JScrollPane sp
protected javax.swing.tree.DefaultMutableTreeNode topNode
protected javax.swing.JTree tree
protected static final boolean debug
Constructor Detail |
---|
public BasicTOCNavigatorUI(JHelpTOCNavigator b)
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
protected void setCellRenderer(NavigatorView view, javax.swing.JTree tree)
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class javax.swing.plaf.ComponentUI
protected void addSubHelpSets(HelpSet hs)
hs
- The HelpSet which subhelpsets will be addedpublic void doMerge(NavigatorView view)
public void merge(NavigatorView view)
merge
in class HelpNavigatorUI
view
- A TOCView. Note the actual argument is of a NavigatorView type
so it replaces the correct NavigatorUI method.public void remove(NavigatorView view)
remove
in class HelpNavigatorUI
view
- A TOCView. Note the actual argument is of a NavigatorView type
so it replaces the correct NavigatorUI method.public void idChanged(HelpModelEvent e)
idChanged
in interface HelpModelListener
e
- The eventprotected JHelpNavigator getHelpNavigator()
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
protected static void debug(java.lang.String str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |