Package javax.help.plaf.basic
Class BasicTOCNavigatorUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.help.plaf.HelpNavigatorUI
-
- javax.help.plaf.basic.BasicTOCNavigatorUI
-
- All Implemented Interfaces:
java.awt.event.ComponentListener
,java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,HelpModelListener
,javax.swing.event.TreeSelectionListener
public class BasicTOCNavigatorUI extends HelpNavigatorUI implements HelpModelListener, javax.swing.event.TreeSelectionListener, java.beans.PropertyChangeListener, java.awt.event.ComponentListener, java.io.Serializable
The default UI for JHelpNavigator of type TOC.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicTOCNavigatorUI(JHelpTOCNavigator b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSubHelpSets(HelpSet hs)
Adds subhelpsetsvoid
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)
protected static void
debug(java.lang.String str)
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)
Processes an idChanged event.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.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)
-
Methods inherited from class javax.help.plaf.HelpNavigatorUI
getAddAction, getIcon, getImageIcon, setIcon
-
-
-
-
Field Detail
-
toc
protected JHelpTOCNavigator toc
-
sp
protected javax.swing.JScrollPane sp
-
topNode
protected javax.swing.tree.DefaultMutableTreeNode topNode
-
tree
protected javax.swing.JTree tree
-
debug
protected static final boolean debug
For printf debugging.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BasicTOCNavigatorUI
public BasicTOCNavigatorUI(JHelpTOCNavigator b)
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in classjavax.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)
- Overrides:
uninstallUI
in classjavax.swing.plaf.ComponentUI
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in classjavax.swing.plaf.ComponentUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSize
in classjavax.swing.plaf.ComponentUI
-
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- Overrides:
getMaximumSize
in classjavax.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 classHelpNavigatorUI
- Parameters:
view
- A TOCView. Note the actual argument is of a NavigatorView type so it replaces the correct NavigatorUI method.
-
remove
public void remove(NavigatorView view)
Removes the navigational data.- Overrides:
remove
in classHelpNavigatorUI
- Parameters:
view
- A TOCView. Note the actual argument is of a NavigatorView type so it replaces the correct NavigatorUI method.
-
idChanged
public void idChanged(HelpModelEvent e)
Processes an idChanged event.- Specified by:
idChanged
in interfaceHelpModelListener
- Parameters:
e
- The event
-
getHelpNavigator
protected JHelpNavigator getHelpNavigator()
-
valueChanged
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
- Specified by:
valueChanged
in interfacejavax.swing.event.TreeSelectionListener
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
componentResized
public void componentResized(java.awt.event.ComponentEvent e)
Invoked when the component's size changes.- Specified by:
componentResized
in interfacejava.awt.event.ComponentListener
-
componentMoved
public void componentMoved(java.awt.event.ComponentEvent e)
Invoked when the component's position changes.- Specified by:
componentMoved
in interfacejava.awt.event.ComponentListener
-
componentShown
public void componentShown(java.awt.event.ComponentEvent e)
Invoked when the component has been made visible.- Specified by:
componentShown
in interfacejava.awt.event.ComponentListener
-
componentHidden
public void componentHidden(java.awt.event.ComponentEvent e)
Invoked when the component has been made invisible.- Specified by:
componentHidden
in interfacejava.awt.event.ComponentListener
-
debug
protected static void debug(java.lang.String str)
-
-