Package org.jcsp.awt

Class FocusEventHandler

java.lang.Object
org.jcsp.awt.FocusEventHandler
All Implemented Interfaces:
FocusListener, EventListener

class FocusEventHandler extends Object implements FocusListener
  • Field Details

    • event

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

    • 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 Details

    • focusGained

      public void focusGained(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 FocusListener
      Parameters:
      e - The parameters associated with this event
    • focusLost

      public void focusLost(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 FocusListener
      Parameters:
      e - The parameters associated with this event