|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.EventQueue
org.tentackle.ui.FormEventQueue
public class FormEventQueue
A replacement for the standard event queue providing support for dropping key events a given amount of time.
| Field Summary | |
|---|---|
static long |
dropKeyEventDefaultTime
default milliseconds to drop keyevents for FormError, etc... |
| Constructor Summary | |
|---|---|
FormEventQueue()
Creates an event queue. |
|
| Method Summary | |
|---|---|
void |
dropKeyEvents()
Drops all key events so far up to a given time from now. |
void |
dropKeyEvents(long millis)
Drops all key events so far up to a given time from now. Useful for dialogs to prevent accidently ack (usually ENTER) by user. |
AWTEvent |
getNextEvent()
Removes an event from the EventQueue and
returns it. |
| Methods inherited from class java.awt.EventQueue |
|---|
dispatchEvent, getCurrentEvent, getMostRecentEventTime, invokeAndWait, invokeLater, isDispatchThread, peekEvent, peekEvent, pop, postEvent, push |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static long dropKeyEventDefaultTime
| Constructor Detail |
|---|
public FormEventQueue()
| Method Detail |
|---|
public void dropKeyEvents(long millis)
millis - the time in milliseconds to add the current system timepublic void dropKeyEvents()
dropKeyEventDefaultTime
public AWTEvent getNextEvent()
throws InterruptedException
EventQueue and
returns it. This method will block until an event has
been posted by another thread.
Overridden to drop keyboard events.
getNextEvent in class EventQueueAWTEvent
InterruptedException - if any thread has interrupted this thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||