Class CroppedImageEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<ImageCrop>
com.flowingcode.vaadin.addons.imagecrop.CroppedImageEvent
- All Implemented Interfaces:
Serializable
Represents an event triggered when an image is cropped and encoded.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionCroppedImageEvent(ImageCrop source, boolean fromClient, String croppedImageDataUri) Constructs a new CroppedImageEvent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the cropped image data URL.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
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 eventfromClient-trueif the event originated from the client-side,falseotherwisecroppedImageDataUri- the data URL of the cropped image
-
-
Method Details
-
getCroppedImageDataUri
Returns the cropped image data URL.- Returns:
- the cropped image data URL
-