org.fest.swing.query
Class ComponentHasFocusQuery
java.lang.Object
org.fest.swing.query.ComponentHasFocusQuery
public final class ComponentHasFocusQuery
- extends Object
Understands an action, executed in the event dispatch thread, that indicates whether a Component
has focus or not.
- Author:
- Yvonne Wang
- See Also:
Component.hasFocus()
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hasFocus
@RunsInEDT
public static boolean hasFocus(Component component)
- Indicates whether the given
Component has input focus or not. This action is executed in the
event dispatch thread.
- Parameters:
component - the given Component.
- Returns:
true if the given Component has input focus, false otherwise.- See Also:
Component.hasFocus()
Copyright © 2007-2010 FEST (Fixtures for Easy Software Testing). All Rights Reserved.