Package org.jcsp.awt

Class AdjustmentEventHandler

java.lang.Object
org.jcsp.awt.AdjustmentEventHandler
All Implemented Interfaces:
AdjustmentListener, EventListener

class AdjustmentEventHandler extends Object implements AdjustmentListener
  • Field Details

    • event

      private ChannelOutputInt event
      The Channel AdjustmentEvent notifications are sent down.
  • Constructor Details

    • AdjustmentEventHandler

      public AdjustmentEventHandler(ChannelOutputInt event)
      Constructs a new AdjustmentEventHandler with the specified event Channel.
      Parameters:
      event - The Channel AdjustmentEvent notifications are sent down.
  • Method Details

    • adjustmentValueChanged

      public void adjustmentValueChanged(AdjustmentEvent e)
      Invoked when an adjustment occurs on the component the event handler is listening to. Notifies the event process that an AdjustmentEvent has occurred. Some notifications will be lost so there are no guarantees that all events generated will be processed. Sets the value to the current value of the component.
      Specified by:
      adjustmentValueChanged in interface AdjustmentListener
      Parameters:
      e - The parameters associated with this event