Class OtpCompleteEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<OtpField>
com.flowingcode.vaadin.addons.otpfield.OtpCompleteEvent
- All Implemented Interfaces:
Serializable
Fired when the code entered in an
OtpField becomes complete, that is, when its length
reaches OtpField.getLength().
The event is fired regardless of the ValueChangeMode of the
field, and it is fired again if the code becomes incomplete and then complete once more. It is
not fired for a programmatic OtpField.setValue(String).
- Since:
- 1.0.0
- Author:
- Flowing Code
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionOtpCompleteEvent(OtpField source, boolean fromClient, String value) Creates a new complete event. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
OtpCompleteEvent
public OtpCompleteEvent(OtpField source, boolean fromClient, @EventData("event.detail.value") String value) Creates a new complete event.- Parameters:
source- the field that fired the eventfromClient-trueif the event originated from the client sidevalue- the complete code
-