Class PromptTextUI.FocusHandler

  • All Implemented Interfaces:
    java.awt.event.FocusListener, java.util.EventListener
    Enclosing class:
    PromptTextUI

    private static final class PromptTextUI.FocusHandler
    extends java.awt.event.FocusAdapter
    Repaint the TextComponent when it loses or gains the focus.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FocusHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void focusGained​(java.awt.event.FocusEvent e)  
      void focusLost​(java.awt.event.FocusEvent e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FocusHandler

        private FocusHandler()
    • Method Detail

      • focusGained

        public void focusGained​(java.awt.event.FocusEvent e)
        Specified by:
        focusGained in interface java.awt.event.FocusListener
        Overrides:
        focusGained in class java.awt.event.FocusAdapter
      • focusLost

        public void focusLost​(java.awt.event.FocusEvent e)
        Specified by:
        focusLost in interface java.awt.event.FocusListener
        Overrides:
        focusLost in class java.awt.event.FocusAdapter