javax.help.plaf.basic

Class BasicIndexNavigatorUI

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

public class BasicIndexNavigatorUI
extends HelpNavigatorUI
implements HelpModelListener, TreeSelectionListener, PropertyChangeListener, ActionListener, ComponentListener, Serializable

The default UI for JHelpNavigator of type Index.

Field Summary

protected DefaultMutableTreeNode
currentFindNode
protected JHelpIndexNavigator
index
protected String
oldText
protected RuleBasedCollator
rbc
protected JTextField
searchField
protected JScrollPane
sp
protected DefaultMutableTreeNode
topNode
protected JTree
tree

Constructor Summary

BasicIndexNavigatorUI(JHelpIndexNavigator b)

Method Summary

void
actionPerformed(ActionEvent evt)
Handles Action from the JTextField component for searching.
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)
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)
void
installUI(JComponent c)
void
merge(NavigatorView view)
Merges in the navigational data from another IndexView.
void
propertyChange(PropertyChangeEvent event)
void
remove(NavigatorView view)
Removes the navigational data from another IndexView.
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

currentFindNode

protected DefaultMutableTreeNode currentFindNode

index

protected JHelpIndexNavigator index

oldText

protected String oldText

rbc

protected RuleBasedCollator rbc

searchField

protected JTextField searchField

sp

protected JScrollPane sp

topNode

protected DefaultMutableTreeNode topNode

tree

protected JTree tree

Constructor Details

BasicIndexNavigatorUI

public BasicIndexNavigatorUI(JHelpIndexNavigator b)

Method Details

actionPerformed

public void actionPerformed(ActionEvent evt)
Handles Action from the JTextField component for searching.

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)

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)
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 IndexView.
Overrides:
merge in interface HelpNavigatorUI
Parameters:
view - A IndexView. Note the actual argument is 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 from another IndexView.
Overrides:
remove in interface HelpNavigatorUI
Parameters:
view - An IndexView. Note the actual argument is 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)