public final class IdeEventQueue
extends java.awt.EventQueue
Modifier and Type | Class and Description |
---|---|
static class |
IdeEventQueue.BlockMode |
static interface |
IdeEventQueue.EventDispatcher |
static interface |
IdeEventQueue.PostEventHook
An absolutely guru API, please avoid using it at all cost.
|
Modifier and Type | Method and Description |
---|---|
void |
addActivityListener(java.lang.Runnable runnable,
Disposable parentDisposable) |
void |
addDispatcher(IdeEventQueue.EventDispatcher dispatcher,
Disposable parent) |
void |
addIdleListener(java.lang.Runnable runnable,
int timeoutMillis) |
void |
addPostEventListener(IdeEventQueue.PostEventHook listener,
Disposable parentDisposable) |
void |
addPostprocessor(IdeEventQueue.EventDispatcher dispatcher,
Disposable parent) |
static void |
applicationClose() |
void |
blockNextEvents(java.awt.event.MouseEvent e)
|
void |
blockNextEvents(java.awt.event.MouseEvent e,
IdeEventQueue.BlockMode blockMode)
When
blockMode is COMPLETE , blocks following related mouse events completely, when blockMode is
ACTIONS only blocks performing actions bound to corresponding mouse shortcuts. |
boolean |
containsDispatcher(IdeEventQueue.EventDispatcher dispatcher) |
void |
disableInputMethods(Disposable parentDisposable) |
void |
dispatchEvent(java.awt.AWTEvent e) |
void |
doWhenReady(java.lang.Runnable runnable) |
void |
executeWhenAllFocusEventsLeftTheQueue(java.lang.Runnable runnable) |
void |
flushDelayedKeyEvents() |
void |
flushQueue() |
int |
getEventCount() |
long |
getIdleTime() |
static IdeEventQueue |
getInstance() |
IdeKeyEventDispatcher |
getKeyEventDispatcher() |
java.awt.AWTEvent |
getNextEvent() |
IdePopupManager |
getPopupManager() |
java.awt.AWTEvent |
getTrueCurrentEvent() |
boolean |
isInputMethodEnabled() |
boolean |
isPopupActive() |
void |
maybeReady() |
void |
onActionInvoked(java.awt.event.KeyEvent e) |
java.awt.AWTEvent |
peekEvent() |
void |
postEvent(java.awt.AWTEvent event) |
void |
pumpEventsForHierarchy(java.awt.Component modalComponent,
Condition<? super java.awt.AWTEvent> exitCondition) |
void |
removeDispatcher(IdeEventQueue.EventDispatcher dispatcher) |
void |
removeIdleListener(java.lang.Runnable runnable) |
void |
removePostprocessor(IdeEventQueue.EventDispatcher dispatcher) |
java.lang.String |
runnablesWaitingForFocusChangeState() |
void |
setEventCount(int evCount) |
void |
setWindowManager(WindowManagerEx windowManager) |
static void |
unsafeNonblockingExecute(java.lang.Runnable r)
Must be called on the Event Dispatching thread.
|
public void executeWhenAllFocusEventsLeftTheQueue(java.lang.Runnable runnable)
public java.lang.String runnablesWaitingForFocusChangeState()
public static IdeEventQueue getInstance()
public void setWindowManager(WindowManagerEx windowManager)
public void addIdleListener(java.lang.Runnable runnable, int timeoutMillis)
public void removeIdleListener(java.lang.Runnable runnable)
public void addActivityListener(java.lang.Runnable runnable, Disposable parentDisposable)
public void addDispatcher(IdeEventQueue.EventDispatcher dispatcher, Disposable parent)
public void removeDispatcher(IdeEventQueue.EventDispatcher dispatcher)
public boolean containsDispatcher(IdeEventQueue.EventDispatcher dispatcher)
public void addPostprocessor(IdeEventQueue.EventDispatcher dispatcher, Disposable parent)
public void removePostprocessor(IdeEventQueue.EventDispatcher dispatcher)
public int getEventCount()
public void setEventCount(int evCount)
public java.awt.AWTEvent getTrueCurrentEvent()
public static void applicationClose()
public void dispatchEvent(java.awt.AWTEvent e)
dispatchEvent
in class java.awt.EventQueue
public void onActionInvoked(java.awt.event.KeyEvent e)
public java.awt.AWTEvent getNextEvent() throws java.lang.InterruptedException
getNextEvent
in class java.awt.EventQueue
java.lang.InterruptedException
public void flushQueue()
public void pumpEventsForHierarchy(java.awt.Component modalComponent, Condition<? super java.awt.AWTEvent> exitCondition)
public long getIdleTime()
public IdePopupManager getPopupManager()
public IdeKeyEventDispatcher getKeyEventDispatcher()
public void blockNextEvents(java.awt.event.MouseEvent e)
public void blockNextEvents(java.awt.event.MouseEvent e, IdeEventQueue.BlockMode blockMode)
blockMode
is COMPLETE
, blocks following related mouse events completely, when blockMode
is
ACTIONS
only blocks performing actions bound to corresponding mouse shortcuts.public void maybeReady()
public void doWhenReady(java.lang.Runnable runnable)
public boolean isPopupActive()
public boolean isInputMethodEnabled()
public void disableInputMethods(Disposable parentDisposable)
public void postEvent(java.awt.AWTEvent event)
postEvent
in class java.awt.EventQueue
public void flushDelayedKeyEvents()
public java.awt.AWTEvent peekEvent()
peekEvent
in class java.awt.EventQueue
public void addPostEventListener(IdeEventQueue.PostEventHook listener, Disposable parentDisposable)
public static void unsafeNonblockingExecute(java.lang.Runnable r)
r
- the runnable to execute