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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionThumbnailClickEvent(PdfViewer source, boolean fromClient, int page) Creates a new event. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ThumbnailClickEvent
public ThumbnailClickEvent(PdfViewer source, boolean fromClient, @EventData("event.detail.page") int page) Creates a new event.- Parameters:
source- the source componentfromClient-trueif the event originated from the clientpage- 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
-