Package javax.help.plaf.basic
Class BasicIndexNavigatorUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.help.plaf.HelpNavigatorUI
javax.help.plaf.basic.BasicIndexNavigatorUI
- All Implemented Interfaces:
ActionListener
,ComponentListener
,PropertyChangeListener
,Serializable
,EventListener
,HelpModelListener
,TreeSelectionListener
public class BasicIndexNavigatorUI
extends HelpNavigatorUI
implements HelpModelListener, TreeSelectionListener, PropertyChangeListener, ActionListener, ComponentListener, Serializable
The default UI for JHelpNavigator of type Index.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DefaultMutableTreeNode
protected JHelpIndexNavigator
protected String
protected RuleBasedCollator
protected JTextField
protected JScrollPane
protected DefaultMutableTreeNode
protected JTree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Handles Action from the JTextField component for searching.protected 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
void
doMerge
(NavigatorView view) Merges in the navigational data from another IndexView.protected JHelpNavigator
void
Tells the listener that the current ID in the HelpModel has changed.void
void
merge
(NavigatorView view) Merges in the navigational data from another IndexView.void
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
void
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
-
index
-
sp
-
topNode
-
tree
-
searchField
-
rbc
-
oldText
-
currentFindNode
-
-
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
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 interfaceHelpModelListener
- Parameters:
e
- The event
-
valueChanged
- 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
-
actionPerformed
Handles Action from the JTextField component for searching.- Specified by:
actionPerformed
in interfaceActionListener
-