Class CroppedImageEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<ImageCrop>
com.flowingcode.vaadin.addons.imagecrop.CroppedImageEvent
All Implemented Interfaces:
Serializable

@DomEvent("cropped-image") public class CroppedImageEvent extends ComponentEvent<ImageCrop>
Represents an event triggered when an image is cropped and encoded.
See Also:
  • Constructor Details

    • CroppedImageEvent

      public CroppedImageEvent(ImageCrop source, boolean fromClient, @EventData("event.detail.croppedImageDataUri") String croppedImageDataUri)
      Constructs a new CroppedImageEvent.
      Parameters:
      source - the source of the event
      fromClient - true if the event originated from the client-side, false otherwise
      croppedImageDataUri - the data URL of the cropped image
  • Method Details

    • getCroppedImageDataUri

      public String getCroppedImageDataUri()
      Returns the cropped image data URL.
      Returns:
      the cropped image data URL