javax.help.plaf.basic
Class BasicGlossaryNavigatorUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.help.plaf.HelpNavigatorUI
          extended by javax.help.plaf.basic.BasicGlossaryNavigatorUI
All Implemented Interfaces:
java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, HelpModelListener, javax.swing.event.TreeSelectionListener

public class BasicGlossaryNavigatorUI
extends HelpNavigatorUI
implements HelpModelListener, javax.swing.event.TreeSelectionListener, java.beans.PropertyChangeListener, java.awt.event.ActionListener, java.io.Serializable

The default UI for JHelpNavigator of type Glossary.

See Also:
Serialized Form

Field Summary
protected  javax.swing.tree.DefaultMutableTreeNode currentFindNode
           
protected  JHelpGlossaryNavigator glossary
           
protected  java.lang.String oldText
           
protected  java.text.RuleBasedCollator rbc
           
protected  javax.swing.JTextField searchField
           
protected  javax.swing.JScrollPane sp
           
protected  javax.swing.tree.DefaultMutableTreeNode topNode
           
protected  javax.swing.JTree tree
           
protected  JHelpContentViewer viewer
           
 
Constructor Summary
BasicGlossaryNavigatorUI(JHelpGlossaryNavigator b)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Handles Action from the JTextField component for searching.
protected  void addSubHelpSets(HelpSet hs)
          Adds subhelpsets
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
          Creates UI
 void doMerge(NavigatorView view)
          Merges in the navigational data from another IndexView.
protected  JHelpContentViewer getContentViewer()
           
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)
          Tells the listener that the current ID in the HelpModel has changed.
 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 from another GlossaryView.
protected  void setCellRenderer(NavigatorView view, javax.swing.JTree tree)
          Sets the desired cell renderer on this tree.
 void uninstallUI(javax.swing.JComponent c)
          Uninstalls UI
 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

glossary

protected JHelpGlossaryNavigator glossary

sp

protected javax.swing.JScrollPane sp

topNode

protected javax.swing.tree.DefaultMutableTreeNode topNode

tree

protected javax.swing.JTree tree

searchField

protected javax.swing.JTextField searchField

rbc

protected java.text.RuleBasedCollator rbc

oldText

protected java.lang.String oldText

currentFindNode

protected javax.swing.tree.DefaultMutableTreeNode currentFindNode

viewer

protected JHelpContentViewer viewer
Constructor Detail

BasicGlossaryNavigatorUI

public BasicGlossaryNavigatorUI(JHelpGlossaryNavigator b)
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
Creates UI


installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

setCellRenderer

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


uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Uninstalls UI

Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Overrides:
getPreferredSize in class javax.swing.plaf.ComponentUI

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
Overrides:
getMinimumSize in class javax.swing.plaf.ComponentUI

getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
Overrides:
getMaximumSize in class javax.swing.plaf.ComponentUI

addSubHelpSets

protected void addSubHelpSets(HelpSet hs)
Adds subhelpsets

Parameters:
hs - The HelpSet which subhelpsets will be added

doMerge

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


merge

public void merge(NavigatorView view)
Merges in the navigational data from another TOCView.

Overrides:
merge in class HelpNavigatorUI
Parameters:
view - A GlossaryView. Note the actual argument is a NavigatorView type so it replaces the correct NavigatorUI method.

remove

public void remove(NavigatorView view)
Removes the navigational data from another GlossaryView.

Overrides:
remove in class HelpNavigatorUI
Parameters:
view - An GlossaryView. Note the actual argument is a NavigatorView type so it replaces the correct NavigatorUI method.

idChanged

public void idChanged(HelpModelEvent e)
Description copied from interface: HelpModelListener
Tells the listener that the current ID in the HelpModel has changed. All highlights from the previous location change at this point.

Specified by:
idChanged in interface HelpModelListener
Parameters:
e - The event

getContentViewer

protected JHelpContentViewer getContentViewer()

getHelpNavigator

protected JHelpNavigator getHelpNavigator()

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

actionPerformed

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

Specified by:
actionPerformed in interface java.awt.event.ActionListener