|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfoxtrot.pumps.ConditionalEventPump
public class ConditionalEventPump
This implementation of EventPump calls the package protected method java.awt.EventDispatchThread.pumpEvents(Conditional) to pump events while a Task is executed.
| Nested Class Summary | |
|---|---|
static class |
ConditionalEventPump.ThrowableHandler
Handler for RuntimeExceptions or Errors thrown during dispatching of AWT events. |
| Constructor Summary | |
|---|---|
ConditionalEventPump()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConditionalEventPump()
| Method Detail |
|---|
public void setEventFilter(EventFilter filter)
EventFilterable
setEventFilter in interface EventFilterableEventFilterable.getEventFilter()public EventFilter getEventFilter()
EventFilterable
getEventFilter 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||