-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
1.2.0
-
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)
======================================================================
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)
======================================================================