public enum DisabledUpdateMode extends Enum<DisabledUpdateMode>
Element.setEnabled(boolean),
Element.isEnabled(),
HasEnabled.setEnabled(boolean),
HasEnabled.isEnabled()| Enum Constant and Description |
|---|
ALWAYS
If used then updates from the client side are allowed even for disabled
element.
|
ONLY_WHEN_ENABLED
If used then updates from the client side are allowed only if element is
enabled.
|
| Modifier and Type | Method and Description |
|---|---|
static DisabledUpdateMode |
mostPermissive(DisabledUpdateMode mode1,
DisabledUpdateMode mode2)
Gets the most permissive out of two update modes.
|
static DisabledUpdateMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DisabledUpdateMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisabledUpdateMode ALWAYS
public static final DisabledUpdateMode ONLY_WHEN_ENABLED
public static DisabledUpdateMode[] values()
for (DisabledUpdateMode c : DisabledUpdateMode.values()) System.out.println(c);
public static DisabledUpdateMode 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 static DisabledUpdateMode mostPermissive(DisabledUpdateMode mode1, DisabledUpdateMode mode2)
mode1 - the first mode, or nullmode2 - the second mode, or nullnull if both parameters
are nullCopyright © 2025. All rights reserved.