Package org.jcsp.awt

Class ComponentEventHandler

java.lang.Object
org.jcsp.awt.ComponentEventHandler
All Implemented Interfaces:
ComponentListener, EventListener

class ComponentEventHandler extends Object implements ComponentListener
  • Field Details

    • event

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

    • ComponentEventHandler

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

    • componentResized

      public void componentResized(ComponentEvent e)
      Invoked when the component the event handler is listening to is resized. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.
      Specified by:
      componentResized in interface ComponentListener
      Parameters:
      e - The parameters associated with this event
    • componentMoved

      public void componentMoved(ComponentEvent e)
      Invoked when the component the event handler is listening to is moved. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.
      Specified by:
      componentMoved in interface ComponentListener
      Parameters:
      e - The parameters associated with this event
    • componentShown

      public void componentShown(ComponentEvent e)
      Invoked when the component the event handler is listening to is shown. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.
      Specified by:
      componentShown in interface ComponentListener
      Parameters:
      e - The parameters associated with this event
    • componentHidden

      public void componentHidden(ComponentEvent e)
      Invoked when the component the event handler is listening to is hidden. Notifies the event process that an ComponentEvent has occurred by sending the ComponentEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.
      Specified by:
      componentHidden in interface ComponentListener
      Parameters:
      e - The parameters associated with this event