Package javax.help.plaf.basic
Class BasicSearchNavigatorUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.help.plaf.HelpNavigatorUI
-
- javax.help.plaf.basic.BasicSearchNavigatorUI
-
- All Implemented Interfaces:
java.awt.event.ComponentListener,java.beans.PropertyChangeListener,java.util.EventListener,HelpModelListener,SearchListener,javax.swing.event.TreeSelectionListener
public class BasicSearchNavigatorUI extends HelpNavigatorUI implements HelpModelListener, SearchListener, java.beans.PropertyChangeListener, javax.swing.event.TreeSelectionListener, java.awt.event.ComponentListener
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandisplayOptionsprotected SearchEnginehelpsearchprotected javax.swing.tree.DefaultMutableTreeNodelastTOCnodeprotected JHelpSearchNavigatorsearchnavprotected javax.swing.JTextFieldsearchparamsprotected SearchQuerysearchqueryprotected javax.swing.JScrollPanespprotected javax.swing.tree.DefaultMutableTreeNodetopNodeprotected javax.swing.JTreetree
-
Constructor Summary
Constructors Constructor Description BasicSearchNavigatorUI(JHelpSearchNavigator b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSubHelpSets(HelpSet hs)Adds subhelpsetsvoidcomponentHidden(java.awt.event.ComponentEvent e)Invoked when the component has been made invisible.voidcomponentMoved(java.awt.event.ComponentEvent e)Invoked when the component's position changes.voidcomponentResized(java.awt.event.ComponentEvent e)Invoked when the component's size changes.voidcomponentShown(java.awt.event.ComponentEvent e)Invoked when the component has been made visible.static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent x)protected JHelpNavigatorgetHelpNavigator()java.awt.DimensiongetMaximumSize(javax.swing.JComponent c)java.awt.DimensiongetMinimumSize(javax.swing.JComponent c)java.awt.DimensiongetPreferredSize(javax.swing.JComponent c)voididChanged(HelpModelEvent e)Processes an idChanged event.voidinstallUI(javax.swing.JComponent c)voiditemsFound(SearchEvent e)Tells the listener that matching SearchItems have been found.voidmerge(NavigatorView view)Merges in the navigational data from another NavigatorView.voidpropertyChange(java.beans.PropertyChangeEvent event)voidremove(NavigatorView view)Removes the navigational data from another NavigatorView.voidsearchFinished(SearchEvent e)Tells the listener that the search has finishedvoidsearchStarted(SearchEvent e)Tells the listener that the search has started.protected voidsetCellRenderer(NavigatorView view, javax.swing.JTree tree)Setd the desired cell renderer on this tree.voiduninstallUI(javax.swing.JComponent c)voidvalueChanged(javax.swing.event.TreeSelectionEvent e)A value has changed.-
Methods inherited from class javax.help.plaf.HelpNavigatorUI
getAddAction, getIcon, getImageIcon, setIcon
-
-
-
-
Field Detail
-
searchnav
protected JHelpSearchNavigator searchnav
-
sp
protected javax.swing.JScrollPane sp
-
tree
protected javax.swing.JTree tree
-
topNode
protected javax.swing.tree.DefaultMutableTreeNode topNode
-
searchparams
protected javax.swing.JTextField searchparams
-
displayOptions
protected boolean displayOptions
-
helpsearch
protected SearchEngine helpsearch
-
searchquery
protected SearchQuery searchquery
-
lastTOCnode
protected javax.swing.tree.DefaultMutableTreeNode lastTOCnode
-
-
Constructor Detail
-
BasicSearchNavigatorUI
public BasicSearchNavigatorUI(JHelpSearchNavigator b)
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.ComponentUI
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSizein classjavax.swing.plaf.ComponentUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSizein classjavax.swing.plaf.ComponentUI
-
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- Overrides:
getMaximumSizein classjavax.swing.plaf.ComponentUI
-
addSubHelpSets
protected void addSubHelpSets(HelpSet hs)
Adds subhelpsets- Parameters:
hs- The HelpSet which subhelpsets will be added
-
merge
public void merge(NavigatorView view)
Merges in the navigational data from another NavigatorView.- Overrides:
mergein classHelpNavigatorUI
-
remove
public void remove(NavigatorView view)
Removes the navigational data from another NavigatorView.- Overrides:
removein classHelpNavigatorUI
-
setCellRenderer
protected void setCellRenderer(NavigatorView view, javax.swing.JTree tree)
Setd the desired cell renderer on this tree. This is exposed for redefinition by subclases.
-
idChanged
public void idChanged(HelpModelEvent e)
Processes an idChanged event. Search is different from all other navigators in that you while search tree is synchronized the highlighting doesn't occur unless selected from the search navigator.- Specified by:
idChangedin interfaceHelpModelListener- Parameters:
e- The event
-
getHelpNavigator
protected JHelpNavigator getHelpNavigator()
-
valueChanged
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
A value has changed. This is used as a TreeSelectionListener.- Specified by:
valueChangedin interfacejavax.swing.event.TreeSelectionListener
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
componentResized
public void componentResized(java.awt.event.ComponentEvent e)
Invoked when the component's size changes.- Specified by:
componentResizedin interfacejava.awt.event.ComponentListener
-
componentMoved
public void componentMoved(java.awt.event.ComponentEvent e)
Invoked when the component's position changes.- Specified by:
componentMovedin interfacejava.awt.event.ComponentListener
-
componentShown
public void componentShown(java.awt.event.ComponentEvent e)
Invoked when the component has been made visible.- Specified by:
componentShownin interfacejava.awt.event.ComponentListener
-
componentHidden
public void componentHidden(java.awt.event.ComponentEvent e)
Invoked when the component has been made invisible.- Specified by:
componentHiddenin interfacejava.awt.event.ComponentListener
-
itemsFound
public void itemsFound(SearchEvent e)
Description copied from interface:SearchListenerTells the listener that matching SearchItems have been found.- Specified by:
itemsFoundin interfaceSearchListener
-
searchStarted
public void searchStarted(SearchEvent e)
Description copied from interface:SearchListenerTells the listener that the search has started.- Specified by:
searchStartedin interfaceSearchListener
-
searchFinished
public void searchFinished(SearchEvent e)
Description copied from interface:SearchListenerTells the listener that the search has finished- Specified by:
searchFinishedin interfaceSearchListener
-
-