public class ConditionalEventPump extends Object implements EventPump, EventFilterable
| Modifier and Type | Class and Description |
|---|---|
static class |
ConditionalEventPump.ThrowableHandler
Handler for RuntimeExceptions or Errors thrown during dispatching of AWT events.
|
| Constructor and Description |
|---|
ConditionalEventPump() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canPumpEvent(AWTEvent event)
Returns whether this event can be pumped from the EventQueue.
|
EventFilter |
getEventFilter()
Returns the EventFilter
|
protected EventQueue |
getEventQueue() |
protected AWTEvent |
peekEvent(EventQueue queue)
Peeks the EventQueue for the next event, without removing it.
|
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
|
protected AWTEvent |
waitForEvent()
Waits until an event is available on the EventQueue.
|
public void setEventFilter(EventFilter filter)
EventFilterablesetEventFilter in interface EventFilterableEventFilterable.getEventFilter()public EventFilter getEventFilter()
EventFilterablegetEventFilter in interface EventFilterableEventFilterable.setEventFilter(foxtrot.pumps.EventFilter)public void pumpEvents(Task task)
EventPumpcompleted; must be
called from the Event Dispatch Thread. pumpEvents in interface EventPumpprotected boolean canPumpEvent(AWTEvent event)
protected EventQueue getEventQueue()
protected AWTEvent waitForEvent()
peekEvent(java.awt.EventQueue) returns null).protected AWTEvent peekEvent(EventQueue queue)
Copyright © 2002-2011. All Rights Reserved.