javax.help.plaf.basic

Class BasicTOCNavigatorUI

Implemented Interfaces:
ComponentListener, java.util.EventListener, HelpModelListener, PropertyChangeListener, Serializable, TreeSelectionListener

public class BasicTOCNavigatorUI
extends HelpNavigatorUI
implements HelpModelListener, TreeSelectionListener, PropertyChangeListener, ComponentListener, Serializable

The default UI for JHelpNavigator of type TOC.

Field Summary

protected static boolean
debug
For printf debugging.
protected JScrollPane
sp
protected JHelpTOCNavigator
toc
protected DefaultMutableTreeNode
topNode
protected JTree
tree

Constructor Summary

BasicTOCNavigatorUI(JHelpTOCNavigator b)

Method Summary

protected void
addSubHelpSets(HelpSet hs)
Adds subhelpsets
void
componentHidden(ComponentEvent e)
Invoked when the component has been made invisible.
void
componentMoved(ComponentEvent e)
Invoked when the component's position changes.
void
componentResized(ComponentEvent e)
Invoked when the component's size changes.
void
componentShown(ComponentEvent e)
Invoked when the component has been made visible.
static ComponentUI
createUI(JComponent x)
protected static void
debug(String str)
void
doMerge(NavigatorView view)
Merges in the navigational data from another IndexView.
protected JHelpNavigator
getHelpNavigator()
Dimension
getMaximumSize(JComponent c)
Dimension
getMinimumSize(JComponent c)
Dimension
getPreferredSize(JComponent c)
void
idChanged(HelpModelEvent e)
Processes an idChanged event.
void
installUI(JComponent c)
void
merge(NavigatorView view)
Merges in the navigational data from another TOCView.
void
propertyChange(PropertyChangeEvent event)
void
remove(NavigatorView view)
Removes the navigational data.
protected void
setCellRenderer(NavigatorView view, JTree tree)
Sets the desired cell renderer on this tree.
void
uninstallUI(JComponent c)
void
valueChanged(TreeSelectionEvent e)

Methods inherited from class javax.help.plaf.HelpNavigatorUI

getAddAction, getIcon, getImageIcon, merge, remove, setIcon

Field Details

debug

protected static final boolean debug
For printf debugging.
Field Value:
false

sp

protected JScrollPane sp

toc

protected JHelpTOCNavigator toc

topNode

protected DefaultMutableTreeNode topNode

tree

protected JTree tree

Constructor Details

BasicTOCNavigatorUI

public BasicTOCNavigatorUI(JHelpTOCNavigator b)

Method Details

addSubHelpSets

protected void addSubHelpSets(HelpSet hs)
Adds subhelpsets
Parameters:
hs - The HelpSet which subhelpsets will be added

componentHidden

public void componentHidden(ComponentEvent e)
Invoked when the component has been made invisible.

componentMoved

public void componentMoved(ComponentEvent e)
Invoked when the component's position changes.

componentResized

public void componentResized(ComponentEvent e)
Invoked when the component's size changes.

componentShown

public void componentShown(ComponentEvent e)
Invoked when the component has been made visible.

createUI

public static ComponentUI createUI(JComponent x)

debug

protected static void debug(String str)

doMerge

public void doMerge(NavigatorView view)
Merges in the navigational data from another IndexView.

getHelpNavigator

protected JHelpNavigator getHelpNavigator()

getMaximumSize

public Dimension getMaximumSize(JComponent c)

getMinimumSize

public Dimension getMinimumSize(JComponent c)

getPreferredSize

public Dimension getPreferredSize(JComponent c)

idChanged

public void idChanged(HelpModelEvent e)
Processes an idChanged event.
Specified by:
idChanged in interface HelpModelListener

installUI

public void installUI(JComponent c)

merge

public void merge(NavigatorView view)
Merges in the navigational data from another TOCView.
Overrides:
merge in interface HelpNavigatorUI
Parameters:
view - A TOCView. Note the actual argument is of a NavigatorView type so it replaces the correct NavigatorUI method.

propertyChange

public void propertyChange(PropertyChangeEvent event)

remove

public void remove(NavigatorView view)
Removes the navigational data.
Overrides:
remove in interface HelpNavigatorUI
Parameters:
view - A TOCView. Note the actual argument is of a NavigatorView type so it replaces the correct NavigatorUI method.

setCellRenderer

protected void setCellRenderer(NavigatorView view,
                               JTree tree)
Sets the desired cell renderer on this tree. This is exposed for redefinition by subclases.

uninstallUI

public void uninstallUI(JComponent c)

valueChanged

public void valueChanged(TreeSelectionEvent e)