public enum ComponentLookupScope extends Enum<ComponentLookupScope>
Component
lookups.Enum Constant and Description |
---|
ALL
All AWT or Swing
Component s 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
Component s that are being shown on the screen participate in a
lookup. |
SHOWING_ONLY
Only AWT or Swing
Component s 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
Component s 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
Component
s 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
Component
s participate in a lookup, regardless if they are being shown on the screen or
not.public static final ComponentLookupScope SHOWING_ONLY
Component
s 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()
Component
s are the only ones participating in lookups.true
if only showing Component
s participate in lookups; false
if any
Component
(showing or not showing) can participate in lookup.Copyright © 2014–2019 AssertJ. All rights reserved.