|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.helper.FocusRequester
public class FocusRequester
The sole purpose of this class is to provide a way to request focus on a component after all currently queued Swing events have been processed. This is useful for components that are not eligible to receive focus at the time they request it, for instance when they are not visible yet.
| Method Summary | |
|---|---|
static void |
requestFocus(java.awt.Component c)
Requests focus on the given componentusing Component.requestFocus(), after all currently queued
Swing events have been processed. |
static void |
requestFocusInWindow(java.awt.Component c)
Requests focus on the given componentusing Component.requestFocusInWindow(boolean)}, after all
currently queued Swing events have been processed. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void requestFocus(java.awt.Component c)
Component.requestFocus(), after all currently queued
Swing events have been processed.
This method can typically be used when a component has been added to the screen but is not yet visible.
In that case, calling Component.requestFocus() would have no effect.
c - the component on which to request focusComponent.requestFocus()public static void requestFocusInWindow(java.awt.Component c)
Component.requestFocusInWindow(boolean)}, after all
currently queued Swing events have been processed.
This method can typically be used when a component has been added to the screen but is not yet visible.
In that case, calling Component.requestFocusInWindow() would have no effect.
c - the component on which to request focusComponent.requestFocusInWindow()public void run()
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard