Package de.f0rce.signaturepad
Class ValueChangedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<SignaturePad>
de.f0rce.signaturepad.ValueChangedEvent
- All Implemented Interfaces:
Serializable
- Author:
- David "F0rce" Dodlek
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionValueChangedEvent(SignaturePad source, boolean fromClient, String image, String type, boolean isEmpty) -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ValueChangedEvent
public ValueChangedEvent(SignaturePad source, boolean fromClient, String image, String type, boolean isEmpty)
-
-
Method Details
-
getImage
Returns the dataUrl of the encoded image.- Returns:
String
-
getImageBase64
public byte[] getImageBase64()Returns the dataurl of the encoded image as Base64 decoded byte array.- Returns:
- byte[]
-
getType
Returns the type, the image has been encoded with.- Returns:
String
-
isEmpty
public boolean isEmpty()Returns if the signature is empty.- Returns:
- boolean
-