Class RequestFocusListener

  • All Implemented Interfaces:
    java.util.EventListener, javax.swing.event.AncestorListener

    final class RequestFocusListener
    extends java.lang.Object
    implements javax.swing.event.AncestorListener
    Clase para dar el foco a un componente determinado.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean removeListener  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ancestorAdded​(javax.swing.event.AncestorEvent e)
      Asigna el foco al componente que ha lanzado el evento.
      void ancestorMoved​(javax.swing.event.AncestorEvent e)  
      void ancestorRemoved​(javax.swing.event.AncestorEvent e)  
      • Methods inherited from class java.lang.Object

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

      • removeListener

        private final transient boolean removeListener
    • Constructor Detail

      • RequestFocusListener

        RequestFocusListener()
        Constructor por defecto.
      • RequestFocusListener

        RequestFocusListener​(boolean rmvListener)
        Constructor.
        Parameters:
        rmvListener - Clase a la que se notifica la pérdida de foco.
    • Method Detail

      • ancestorAdded

        public void ancestorAdded​(javax.swing.event.AncestorEvent e)
        Asigna el foco al componente que ha lanzado el evento.
        Specified by:
        ancestorAdded in interface javax.swing.event.AncestorListener
      • ancestorMoved

        public void ancestorMoved​(javax.swing.event.AncestorEvent e)
        Specified by:
        ancestorMoved in interface javax.swing.event.AncestorListener
      • ancestorRemoved

        public void ancestorRemoved​(javax.swing.event.AncestorEvent e)
        Specified by:
        ancestorRemoved in interface javax.swing.event.AncestorListener