Class PdfViewer.ToolbarCollapsedChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<PdfViewer>
com.vaadin.flow.component.pdfviewer.PdfViewer.ToolbarCollapsedChangeEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
PdfViewer
Event fired when the toolbar is collapsed or expanded.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionToolbarCollapsedChangeEvent(PdfViewer source, boolean fromClient, boolean toolbarCollapsed) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the toolbar is now collapsed.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ToolbarCollapsedChangeEvent
Creates a new event.- Parameters:
source- the source componentfromClient-trueif the event originated from the clienttoolbarCollapsed-trueif the toolbar is now collapsed,falseif it is now expanded
-
-
Method Details
-
isToolbarCollapsed
public boolean isToolbarCollapsed()Gets whether the toolbar is now collapsed.- Returns:
trueif the toolbar is collapsed,falseif it is expanded
-