public static enum XdevKeyAction.Condition extends Enum<XdevKeyAction.Condition>
Enum Constant and Description |
---|
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Means that the command should be invoked when the receiving component
is an ancestor of the focused component or is itself the focused
component.
|
WHEN_FOCUSED
Means that the command should be invoked when the component has the
focus.
|
WHEN_IN_FOCUSED_WINDOW
Means that the command should be invoked when the receiving component
is in the window that has the focus or is itself the focused
component.
|
Modifier and Type | Method and Description |
---|---|
static XdevKeyAction.Condition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XdevKeyAction.Condition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XdevKeyAction.Condition WHEN_FOCUSED
public static final XdevKeyAction.Condition WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
public static final XdevKeyAction.Condition WHEN_IN_FOCUSED_WINDOW
public static XdevKeyAction.Condition[] values()
for (XdevKeyAction.Condition c : XdevKeyAction.Condition.values()) System.out.println(c);
public static XdevKeyAction.Condition 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 nullCopyright © 2003–2021 XDEV Software. All rights reserved.