Class PdfViewer.SidebarOpenedChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<PdfViewer>
com.vaadin.flow.component.pdfviewer.PdfViewer.SidebarOpenedChangeEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
PdfViewer
public static class PdfViewer.SidebarOpenedChangeEvent
extends com.vaadin.flow.component.ComponentEvent<PdfViewer>
Event fired when the sidebar is shown or hidden.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSidebarOpenedChangeEvent(PdfViewer source, boolean fromClient, boolean sidebarOpened) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the sidebar is now shown.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
SidebarOpenedChangeEvent
Creates a new event.- Parameters:
source- the source componentfromClient-trueif the event originated from the clientsidebarOpened-trueif the sidebar is now shown,falseif it is now hidden
-
-
Method Details
-
isSidebarOpened
public boolean isSidebarOpened()Gets whether the sidebar is now shown.- Returns:
trueif the sidebar is shown,falseif it is hidden
-