Package library.impl

Class BookSearchBar.BookSearchBarFocusListener

java.lang.Object
library.impl.BookSearchBar.BookSearchBarFocusListener
All Implemented Interfaces:
java.awt.event.FocusListener, java.util.EventListener
Enclosing class:
BookSearchBar

private class BookSearchBar.BookSearchBarFocusListener
extends java.lang.Object
implements java.awt.event.FocusListener
A keresési mező fókuszba kerülését vagy a fókusz elvesztését kezelő osztály. Ha a mező üres, és kikerül a fókuszból, akkor beállítjuk a placeholder szöveget, ha a mező fókuszba kerül, akkor pedig eltávolítjuk azt. A felhasználó által bevitt szöveget nem írja felül.
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    private BookSearchBarFocusListener()  
  • Method Summary

    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 Details

  • Method Details

    • focusGained

      public void focusGained​(java.awt.event.FocusEvent e)
      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