Class CropperImageEncodeEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Cropper>
de.f0rce.cropper.events.CropperImageEncodeEvent
All Implemented Interfaces:
java.io.Serializable

@DomEvent("cropper-image-encode")
public class CropperImageEncodeEvent
extends com.vaadin.flow.component.ComponentEvent<Cropper>
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    CropperImageEncodeEvent​(Cropper source, boolean fromClient, java.lang.String imageUri, java.lang.String mimeType, double encoderQuality)  
  • Method Summary

    Modifier and Type Method Description
    double getEncoderQuality()
    Returns the encoder quality the image has been encoded with.
    java.lang.String getImageUri()
    Returns the encoded image uri.
    java.lang.String getMimeType()
    Returns the MIME-Type the image has been encoded with.

    Methods inherited from class com.vaadin.flow.component.ComponentEvent

    getSource, isFromClient, unregisterListener

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CropperImageEncodeEvent

      public CropperImageEncodeEvent​(Cropper source, boolean fromClient, @EventData("event.detail.imageUri") java.lang.String imageUri, @EventData("event.detail.mimeType") java.lang.String mimeType, @EventData("event.detail.encoderQuality") double encoderQuality)
  • Method Details

    • getImageUri

      public java.lang.String getImageUri()
      Returns the encoded image uri.
      Returns:
      String
    • getMimeType

      public java.lang.String getMimeType()
      Returns the MIME-Type the image has been encoded with.
      Returns:
      String
    • getEncoderQuality

      public double getEncoderQuality()
      Returns the encoder quality the image has been encoded with.
      Returns:
      double