Class PdfViewer.PageChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<PdfViewer>
com.vaadin.flow.component.pdfviewer.PdfViewer.PageChangeEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
PdfViewer
Event fired when the current page changes.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPageChangeEvent(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
-
PageChangeEvent
Creates a new event.- Parameters:
source- the source componentfromClient-trueif the event originated from the clientpage- the new current page, starting from1
-
-
Method Details
-
getPage
public int getPage()Gets the new current page.- Returns:
- the new current page, starting from
1
-