Class CompletionWindowImpl

  • All Implemented Interfaces:
    CompletionWindow, java.awt.event.FocusListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

    public class CompletionWindowImpl
    extends java.lang.Object
    implements CompletionWindow, java.awt.event.KeyListener, java.awt.event.FocusListener, java.awt.event.MouseMotionListener, java.awt.event.MouseListener
    • Field Detail

      • listUI

        private javax.swing.JList listUI
      • scrollPane

        private javax.swing.JScrollPane scrollPane
      • window

        private javax.swing.JWindow window
      • focusOutComponent

        private javax.swing.JComponent focusOutComponent
    • Constructor Detail

      • CompletionWindowImpl

        public CompletionWindowImpl()
    • Method Detail

      • setFocusOut

        public void setFocusOut​(javax.swing.JComponent component)
        Specified by:
        setFocusOut in interface CompletionWindow
      • setGraphicalContext

        public void setGraphicalContext​(java.awt.Component component)
        Caution, the component shouldn't be null otherwise the completion window will never get the focus
        Specified by:
        setGraphicalContext in interface CompletionWindow
      • keyPressed

        public void keyPressed​(java.awt.event.KeyEvent e)
        Management of the key typing for the filtering
        Specified by:
        keyPressed in interface java.awt.event.KeyListener
      • keyReleased

        public void keyReleased​(java.awt.event.KeyEvent e)
        Specified by:
        keyReleased in interface java.awt.event.KeyListener
      • keyTyped

        public void keyTyped​(java.awt.event.KeyEvent e)
        Specified by:
        keyTyped in interface java.awt.event.KeyListener
      • focusGained

        public void focusGained​(java.awt.event.FocusEvent e)
        To support the auto hide when focus is lost
        Specified by:
        focusGained in interface java.awt.event.FocusListener
      • focusLost

        public void focusLost​(java.awt.event.FocusEvent e)
        Specified by:
        focusLost in interface java.awt.event.FocusListener
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent e)
        To support the completion window resize
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener
      • mouseMoved

        public void mouseMoved​(java.awt.event.MouseEvent e)
        Specified by:
        mouseMoved in interface java.awt.event.MouseMotionListener
      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent e)
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent e)
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
      • mouseExited

        public void mouseExited​(java.awt.event.MouseEvent e)
        Specified by:
        mouseExited in interface java.awt.event.MouseListener
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener