public enum ComponentLookupScope extends Enum<ComponentLookupScope>
Component lookups.| Enum Constant and Description |
|---|
ALL
All AWT or Swing
Components participate in a lookup, regardless if they are being shown on the screen or
not. |
DEFAULT
For most of the cases, only AWT or Swing
Components that are being shown on the screen participate in a
lookup. |
SHOWING_ONLY
Only AWT or Swing
Components that are being shown on the screen can participate in a lookup. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
requireShowing()
Returns whether showing AWT or Swing
Components are the only ones participating in lookups. |
static ComponentLookupScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentLookupScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentLookupScope DEFAULT
Components that are being shown on the screen participate in a
lookup. Currently, the only exception is JMenuItem, which participates in a lookup regardless if it is
showing or not.public static final ComponentLookupScope ALL
Components participate in a lookup, regardless if they are being shown on the screen or
not.public static final ComponentLookupScope SHOWING_ONLY
Components that are being shown on the screen can participate in a lookup.public static ComponentLookupScope[] values()
for (ComponentLookupScope c : ComponentLookupScope.values()) System.out.println(c);
public static ComponentLookupScope valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic boolean requireShowing()
Components are the only ones participating in lookups.true if only showing Components participate in lookups; false if any
Component (showing or not showing) can participate in lookup.Copyright © 2014 AssertJ. All rights reserved.