foxtrot.pumps
Class QueueEventPump

java.lang.Object
  extended by foxtrot.pumps.QueueEventPump
All Implemented Interfaces:
EventPump, EventFilterable

public class QueueEventPump
extends Object
implements EventPump, EventFilterable

Implementation of an EventPump that should work with JDK 1.2 and 1.3 and only uses the public API of the java.awt.* package.

Version:
$Revision: 259 $

Constructor Summary
QueueEventPump()
           
 
Method Summary
 EventFilter getEventFilter()
          Returns the EventFilter
 void pumpEvents(Task task)
          Pumps AWT events from the standard AWT Event Queue and dispatches the events until the given task is completed; must be called from the Event Dispatch Thread.
 void setEventFilter(EventFilter filter)
          Sets the EventFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueEventPump

public QueueEventPump()
Method Detail

setEventFilter

public void setEventFilter(EventFilter filter)
Description copied from interface: EventFilterable
Sets the EventFilter

Specified by:
setEventFilter in interface EventFilterable
See Also:
EventFilterable.getEventFilter()

getEventFilter

public EventFilter getEventFilter()
Description copied from interface: EventFilterable
Returns the EventFilter

Specified by:
getEventFilter in interface EventFilterable
See Also:
EventFilterable.setEventFilter(foxtrot.pumps.EventFilter)

pumpEvents

public void pumpEvents(Task task)
Description copied from interface: EventPump
Pumps AWT events from the standard AWT Event Queue and dispatches the events until the given task is completed; must be called from the Event Dispatch Thread.
No Exceptions (included RuntimeExceptions) or Errors should escape this method: it must return only when the task is completed.

Specified by:
pumpEvents in interface EventPump


Copyright © 2011 KnowledgePlaza. All Rights Reserved.