public enum DebouncePhase extends Enum<DebouncePhase>
DomListenerRegistration.debounce(int)
or
DomListenerRegistration.throttle(int)
should be used instead.DomListenerRegistration.debounce(int, DebouncePhase, DebouncePhase...)
,
DomEvent.getPhase()
Enum Constant and Description |
---|
INTERMEDIATE
Debounce phase for events that are periodically sent to the server while
events are being fired in rapid succession.
|
LEADING
Debounce phase that happens immediately when the event is first
triggered.
|
TRAILING
Debounce phase that is sent to the server once there have been at least
one debounce timeout period since the last event of the same type.
|
Modifier and Type | Method and Description |
---|---|
static DebouncePhase |
forIdentifier(String identifier)
Gets the phase that corresponds to the given identifier character.
|
String |
getIdentifier()
Gets the string that is used to identify this phase.
|
static DebouncePhase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DebouncePhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DebouncePhase LEADING
public static final DebouncePhase INTERMEDIATE
LEADING
so that the first event is sent
immediately. Can also be combined with TRAILING
to get a
separate event when the input has stopped.public static final DebouncePhase TRAILING
public static DebouncePhase[] values()
for (DebouncePhase c : DebouncePhase.values()) System.out.println(c);
public static DebouncePhase 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 String getIdentifier()
forIdentifier(String)
public static DebouncePhase forIdentifier(String identifier)
identifier
- the identifier character to look forIllegalArgumentException
- if there is no corresponding charactergetIdentifier()
Copyright © 2020. All rights reserved.