Class PdfViewer.ThumbnailClickEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<PdfViewer>
com.vaadin.flow.component.pdfviewer.PdfViewer.ThumbnailClickEvent
All Implemented Interfaces:
Serializable
Enclosing class:
PdfViewer

@DomEvent("thumbnail-click") public static class PdfViewer.ThumbnailClickEvent extends com.vaadin.flow.component.ComponentEvent<PdfViewer>
Event fired when the user chooses a page thumbnail in the sidebar, with a click or with Enter or Space.
See Also:
  • Constructor Details

    • ThumbnailClickEvent

      public ThumbnailClickEvent(PdfViewer source, boolean fromClient, @EventData("event.detail.page") int page)
      Creates a new event.
      Parameters:
      source - the source component
      fromClient - true if the event originated from the client
      page - the page number of the thumbnail, starting from 1
  • Method Details

    • getPage

      public int getPage()
      Gets the page number of the chosen thumbnail.
      Returns:
      the page number, starting from 1