Package org.jcsp.awt

Class FocusEventHandler

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

    class FocusEventHandler
    extends java.lang.Object
    implements java.awt.event.FocusListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ChannelOutput event
      The Channel action event notifications are sent down.
    • Constructor Summary

      Constructors 
      Constructor Description
      FocusEventHandler​(ChannelOutput event)
      constructs a new FocusEventHandler with the specified output Channel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void focusGained​(java.awt.event.FocusEvent e)
      Invoked when the Component the event handler is listening to Gains the input Focus.
      void focusLost​(java.awt.event.FocusEvent e)
      Invoked when the Component the event handler is listening to Gains the input Focus.
      • Methods inherited from class java.lang.Object

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

      • event

        private ChannelOutput event
        The Channel action event notifications are sent down.
    • Constructor Detail

      • FocusEventHandler

        public FocusEventHandler​(ChannelOutput event)
        constructs a new FocusEventHandler with the specified output Channel.
        Parameters:
        event - The Channel to send the event notification down
    • Method Detail

      • focusGained

        public void focusGained​(java.awt.event.FocusEvent e)
        Invoked when the Component the event handler is listening to Gains the input Focus. Notifies the event process that a FocusEvent has occurred by sending the FocusEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.
        Specified by:
        focusGained in interface java.awt.event.FocusListener
        Parameters:
        e - The parameters associated with this event
      • focusLost

        public void focusLost​(java.awt.event.FocusEvent e)
        Invoked when the Component the event handler is listening to Gains the input Focus. Notifies the event process that a FocusEvent has occurred by sending the FocusEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.
        Specified by:
        focusLost in interface java.awt.event.FocusListener
        Parameters:
        e - The parameters associated with this event