@JsType(namespace="xgl") public enum LayoutLock extends Enum<LayoutLock>
LayoutLock is the allowed interactions with the DOM.
Enum Constant and Description |
---|
NONE
Presto is between two consecutive animation frames.
|
READ_ONLY
Presto is in its measuring phase, DOM interaction is limited to reading.
|
UNLOCKED
Presto is executing a synchronous action (
Presto.now(Immediate) ), all DOM interactions are allowed. |
WRITE_ONLY
Presto is in its mutating phase, DOM interaction is limited to writing.
|
Modifier and Type | Method and Description |
---|---|
static LayoutLock |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LayoutLock[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LayoutLock NONE
Presto is between two consecutive animation frames. All measures and mutations will throw an @link{java.lang.IllegalStateException}, if Presto is in Strict Lock Mode (Presto.setStrictLockMode(boolean)
)
Note: Presto is in Strict Lock Mode by default.
public static final LayoutLock READ_ONLY
public static final LayoutLock WRITE_ONLY
public static final LayoutLock UNLOCKED
Presto.now(Immediate)
), all DOM interactions are allowed.public static LayoutLock[] values()
for (LayoutLock c : LayoutLock.values()) System.out.println(c);
public static LayoutLock 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 © 2018 Xalys. All rights reserved.