org.assertj.swing.query
Class ComponentEnabledQuery
java.lang.Object
org.assertj.swing.query.ComponentEnabledQuery
public final class ComponentEnabledQuery
- extends Object
Indicates whether an AWT or Swing Component
is enabled or not. This query is executed in the event dispatch
thread (EDT.)
- Author:
- Alex Ruiz, Yvonne Wang
- See Also:
Component.isEnabled()
Method Summary |
static boolean |
isEnabled(Component component)
Indicates whether the given AWT or Swing Component is enabled or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isEnabled
public static boolean isEnabled(@Nonnull
Component component)
- Indicates whether the given AWT or Swing
Component
is enabled or not. This query is executed in the event
dispatch thread (EDT.)
- Parameters:
component
- the given Component
.
- Returns:
true
if the given Component
is enabled, false
otherwise.- See Also:
Component.isEnabled()
Copyright © 2014–2015 AssertJ. All rights reserved.