Class 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 Detail

      • 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
      • lastTOCnode

        protected javax.swing.tree.DefaultMutableTreeNode lastTOCnode
    • 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 class javax.swing.plaf.ComponentUI
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class javax.swing.plaf.ComponentUI
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.ComponentUI
      • getMinimumSize

        public java.awt.Dimension getMinimumSize​(javax.swing.JComponent c)
        Overrides:
        getMinimumSize in class javax.swing.plaf.ComponentUI
      • getMaximumSize

        public java.awt.Dimension getMaximumSize​(javax.swing.JComponent c)
        Overrides:
        getMaximumSize in class javax.swing.plaf.ComponentUI
      • addSubHelpSets

        protected void addSubHelpSets​(HelpSet hs)
        Adds subhelpsets
        Parameters:
        hs - The HelpSet which subhelpsets will be added
      • 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:
        idChanged in interface HelpModelListener
        Parameters:
        e - The event
      • valueChanged

        public void valueChanged​(javax.swing.event.TreeSelectionEvent e)
        A value has changed. This is used as a TreeSelectionListener.
        Specified by:
        valueChanged in interface javax.swing.event.TreeSelectionListener
      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent event)
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
      • componentResized

        public void componentResized​(java.awt.event.ComponentEvent e)
        Invoked when the component's size changes.
        Specified by:
        componentResized in interface java.awt.event.ComponentListener
      • componentMoved

        public void componentMoved​(java.awt.event.ComponentEvent e)
        Invoked when the component's position changes.
        Specified by:
        componentMoved in interface java.awt.event.ComponentListener
      • componentShown

        public void componentShown​(java.awt.event.ComponentEvent e)
        Invoked when the component has been made visible.
        Specified by:
        componentShown in interface java.awt.event.ComponentListener
      • componentHidden

        public void componentHidden​(java.awt.event.ComponentEvent e)
        Invoked when the component has been made invisible.
        Specified by:
        componentHidden in interface java.awt.event.ComponentListener