public final class IdeFocusManagerImpl extends IdeFocusManager
Disposable.Parent| Constructor and Description |
|---|
IdeFocusManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
doWhenFocusSettlesDown(ExpirableRunnable runnable)
Executes given runnable after all focus activities are finished.
|
void |
doWhenFocusSettlesDown(java.lang.Runnable runnable)
Executes given runnable after all focus activities are finished.
|
void |
doWhenFocusSettlesDown(java.lang.Runnable runnable,
ModalityState modality)
Executes given runnable after all focus activities are finished, immediately or later with the given modality state.
|
java.awt.Component |
getFocusedDescendantFor(java.awt.Component comp)
Finds focused component among descendants of the given component.
|
java.awt.Component |
getFocusOwner()
Computes effective focus owner.
|
javax.swing.JComponent |
getFocusTargetFor(javax.swing.JComponent comp)
Finds most suitable component to request focus to.
|
java.awt.Component |
getLastFocusedFor(java.awt.Window frame)
Returns last focused component for the given IDE
Window. |
IdeFrame |
getLastFocusedFrame()
Returns last focused
IdeFrame. |
java.awt.Window |
getLastFocusedIdeWindow() |
boolean |
isFocusTransferEnabled()
Reports of focus transfer is enabled right now.
|
ActionCallback |
requestFocus(java.awt.Component c,
boolean forced)
Requests focus on a component
|
ActionCallback |
requestFocusInProject(java.awt.Component c,
Project project) |
void |
runOnOwnContext(DataContext context,
java.lang.Runnable runnable)
Runs runnable for which
DataContext will not be computed from the current focus owner,
but using given one. |
void |
setTypeaheadEnabled(boolean enabled)
Enables or disables typeahead.
|
void |
toFront(javax.swing.JComponent c)
Put the container window to front.
|
void |
typeAheadUntil(ActionCallback callback,
java.lang.String cause)
Aggregates all key events until given callback object is processed.
|
dispose, findInstance, findInstanceByComponent, findInstanceByContext, getFurtherRequestor, getGlobalInstance, getInstance, requestDefaultFocus, typeAheadUntilpublic ActionCallback requestFocus(java.awt.Component c, boolean forced)
FocusRequestorc - - component to request focus toforced - - if true - focus request is explicit, must be fulfilled, if false - can be droppedpublic ActionCallback requestFocusInProject(java.awt.Component c, Project project)
requestFocusInProject in class IdeFocusManagerpublic javax.swing.JComponent getFocusTargetFor(javax.swing.JComponent comp)
IdeFocusManagergetFocusTargetFor in class IdeFocusManagerpublic void doWhenFocusSettlesDown(java.lang.Runnable runnable)
IdeFocusManagerdoWhenFocusSettlesDown in class IdeFocusManagerpublic void doWhenFocusSettlesDown(java.lang.Runnable runnable,
ModalityState modality)
IdeFocusManagerdoWhenFocusSettlesDown in class IdeFocusManagerpublic void doWhenFocusSettlesDown(ExpirableRunnable runnable)
IdeFocusManagerdoWhenFocusSettlesDown in class IdeFocusManagerpublic java.awt.Component getFocusedDescendantFor(java.awt.Component comp)
IdeFocusManagergetFocusedDescendantFor in class IdeFocusManagerpublic void typeAheadUntil(ActionCallback callback, java.lang.String cause)
IdeFocusManagertypeAheadUntil in class IdeFocusManagercallback - action callbackpublic boolean isFocusTransferEnabled()
IdeFocusManagerFocusCommand can be executed on an inactive app.isFocusTransferEnabled in class IdeFocusManagerpublic void setTypeaheadEnabled(boolean enabled)
IdeFocusManagersetTypeaheadEnabled in class IdeFocusManagerIdeFocusManager.typeAheadUntil(ActionCallback)public java.awt.Component getFocusOwner()
IdeFocusManagergetFocusOwner in class IdeFocusManagerpublic void runOnOwnContext(DataContext context, java.lang.Runnable runnable)
IdeFocusManagerDataContext will not be computed from the current focus owner,
but using given one.runOnOwnContext in class IdeFocusManagerpublic java.awt.Component getLastFocusedFor(java.awt.Window frame)
IdeFocusManagerWindow.
Only IDE window (that's implementing IdeFrame).getLastFocusedFor in class IdeFocusManagerpublic IdeFrame getLastFocusedFrame()
IdeFocusManagerIdeFrame.getLastFocusedFrame in class IdeFocusManagerpublic java.awt.Window getLastFocusedIdeWindow()
getLastFocusedIdeWindow in class IdeFocusManagerpublic void toFront(javax.swing.JComponent c)
IdeFocusManagerwindow.toFront().toFront in class IdeFocusManager