Class ValueChangedEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<SignaturePad>
de.f0rce.signaturepad.ValueChangedEvent
All Implemented Interfaces:
Serializable

public class ValueChangedEvent extends com.vaadin.flow.component.ComponentEvent<SignaturePad>
Author:
David "F0rce" Dodlek
See Also:
  • Constructor Details

    • ValueChangedEvent

      public ValueChangedEvent(SignaturePad source, boolean fromClient, String image, String type, boolean isEmpty)
  • Method Details

    • getImage

      public String 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

      public String getType()
      Returns the type, the image has been encoded with.
      Returns:
      String
    • isEmpty

      public boolean isEmpty()
      Returns if the signature is empty.
      Returns:
      boolean