public enum ComponentLookupScope extends Enum<ComponentLookupScope>
Enum Constant and Description |
---|
ALL
All GUI components participate in a component lookup, regardless if they are being shown on the screen or not.
|
DEFAULT
For most of the cases, only GUI components that are being shown on the screen participate in a component lookup.
|
SHOWING_ONLY
Only components that are being shown on the screen can participate in a component lookup.
|
Modifier and Type | Method and Description |
---|---|
boolean |
requireShowing()
Returns whether showing components are the only ones participating in component 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
JMenuItem
, which participates in a component
lookup regardless if it is showing or not.public static final ComponentLookupScope ALL
public static final ComponentLookupScope SHOWING_ONLY
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()
true
if only showing components participate in component lookups; false
if
any component (showing or not showing) can participate in component lookup.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.