public class BasicIndexNavigatorUI extends HelpNavigatorUI implements HelpModelListener, javax.swing.event.TreeSelectionListener, java.beans.PropertyChangeListener, java.awt.event.ActionListener, java.awt.event.ComponentListener, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected javax.swing.tree.DefaultMutableTreeNode |
currentFindNode |
protected JHelpIndexNavigator |
index |
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 |
Constructor and Description |
---|
BasicIndexNavigatorUI(JHelpIndexNavigator b) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Handles Action from the JTextField component for searching.
|
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) |
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)
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 IndexView.
|
void |
propertyChange(java.beans.PropertyChangeEvent event) |
void |
remove(NavigatorView view)
Removes the navigational data from another IndexView.
|
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) |
getAddAction, getIcon, getImageIcon, setIcon
protected JHelpIndexNavigator index
protected javax.swing.JScrollPane sp
protected javax.swing.tree.DefaultMutableTreeNode topNode
protected javax.swing.JTree tree
protected javax.swing.JTextField searchField
protected java.text.RuleBasedCollator rbc
protected java.lang.String oldText
protected javax.swing.tree.DefaultMutableTreeNode currentFindNode
public BasicIndexNavigatorUI(JHelpIndexNavigator b)
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 IndexView. Note the actual argument is a NavigatorView type
so it replaces the correct NavigatorUI method.public void remove(NavigatorView view)
remove
in class HelpNavigatorUI
view
- An IndexView. Note the actual argument is a NavigatorView type
so it replaces the correct NavigatorUI method.public void idChanged(HelpModelEvent e)
HelpModelListener
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
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener