Package org.jcsp.awt

Class TextEventHandler

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

    class TextEventHandler
    extends java.lang.Object
    implements java.awt.event.TextListener
    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void textValueChanged​(java.awt.event.TextEvent e)
      Invoked when an Text change occurs on the component the event handler is listening to.
      • 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 TextEvent notifications are sent down.
    • Constructor Detail

      • TextEventHandler

        public TextEventHandler​(ChannelOutput event)
        constructs a new TextEventHandler with the specified event Channel.
        Parameters:
        event - The Channel TextEvent notifications are sent down.
    • Method Detail

      • textValueChanged

        public void textValueChanged​(java.awt.event.TextEvent e)
        Invoked when an Text change occurs on the component the event handler is listening to. Notifies the event process that an TextEvent has occurred. Some notifications will be lost so there are no guarantees that all events generated will be processed.
        Specified by:
        textValueChanged in interface java.awt.event.TextListener
        Parameters:
        e - The parameters associated with this event