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:
ComponentListener
,PropertyChangeListener
,EventListener
,HelpModelListener
,SearchListener
,TreeSelectionListener
public class BasicSearchNavigatorUI
extends HelpNavigatorUI
implements HelpModelListener, SearchListener, PropertyChangeListener, TreeSelectionListener, ComponentListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected SearchEngine
protected DefaultMutableTreeNode
protected JHelpSearchNavigator
protected JTextField
protected SearchQuery
protected JScrollPane
protected DefaultMutableTreeNode
protected JTree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds subhelpsetsvoid
Invoked when the component has been made invisible.void
Invoked when the component's position changes.void
Invoked when the component's size changes.void
Invoked when the component has been made visible.static ComponentUI
protected JHelpNavigator
void
Processes an idChanged event.void
void
Tells the listener that matching SearchItems have been found.void
merge
(NavigatorView view) Merges in the navigational data from another NavigatorView.void
void
remove
(NavigatorView view) Removes the navigational data from another NavigatorView.void
Tells the listener that the search has finishedvoid
Tells the listener that the search has started.protected void
setCellRenderer
(NavigatorView view, JTree tree) Setd the desired cell renderer on this tree.void
void
A value has changed.Methods inherited from class javax.help.plaf.HelpNavigatorUI
getAddAction, getIcon, getImageIcon, setIcon
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
-
Field Details
-
sp
-
tree
-
topNode
-
searchparams
-
displayOptions
protected boolean displayOptions -
helpsearch
-
searchquery
-
lastTOCnode
-
Constructor Details
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classComponentUI
-
uninstallUI
- Overrides:
uninstallUI
in classComponentUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classComponentUI
-
getMinimumSize
- Overrides:
getMinimumSize
in classComponentUI
-
getMaximumSize
- Overrides:
getMaximumSize
in classComponentUI
-
addSubHelpSets
Adds subhelpsets- Parameters:
hs
- The HelpSet which subhelpsets will be added
-
idChanged
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:
idChanged
in interfaceHelpModelListener
- Parameters:
e
- The event
-
valueChanged
A value has changed. This is used as a TreeSelectionListener.- Specified by:
valueChanged
in interfaceTreeSelectionListener
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
componentResized
Invoked when the component's size changes.- Specified by:
componentResized
in interfaceComponentListener
-
componentMoved
Invoked when the component's position changes.- Specified by:
componentMoved
in interfaceComponentListener
-
componentShown
Invoked when the component has been made visible.- Specified by:
componentShown
in interfaceComponentListener
-
componentHidden
Invoked when the component has been made invisible.- Specified by:
componentHidden
in interfaceComponentListener
-
itemsFound
Description copied from interface:SearchListener
Tells the listener that matching SearchItems have been found.- Specified by:
itemsFound
in interfaceSearchListener
-
searchStarted
Description copied from interface:SearchListener
Tells the listener that the search has started.- Specified by:
searchStarted
in interfaceSearchListener
-
searchFinished
Description copied from interface:SearchListener
Tells the listener that the search has finished- Specified by:
searchFinished
in interfaceSearchListener
-