Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4218554

Wanted: ActiveEvent.coalesce(AWTEvent) method

XMLWordPrintable

    • Fix Understood
    • generic
    • generic

      Name: vi73552 Date: 03/09/99


      java.awt.Component provides a method called coalesceEvents
      which allows two events of the same type to be coalesced on the
      stack into a single event. The result is a more efficient way
      of handling many types of events.

      I'd like to see a similar functionality added to the ActiveEvent
      interface. This would allow the programmer to create arbitrary
      event types which can be coalesced in the event-queue. For
      compatibility this change will probably require a new
      sub-interface of ActiveEvent (perhaps ActiveEventEx?) with the
      appropriate method. I suggest using the signature:

      public AWTEvent coalesce(AWTEvent existingEvent) { ... }

      I envision that the above method would behave similarly to
      calling myComponent.coalesceEvents(existingEvent, this)
      (Review ID: 53416)
      ======================================================================

            Unassigned Unassigned
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: