Enum Class PdfViewerElement.ZoomMode
java.lang.Object
java.lang.Enum<PdfViewerElement.ZoomMode>
com.vaadin.flow.component.pdfviewer.testbench.PdfViewerElement.ZoomMode
- All Implemented Interfaces:
Serializable,Comparable<PdfViewerElement.ZoomMode>,Constable
- Enclosing class:
PdfViewerElement
The zoom modes that fit the pages to the viewer, see
PdfViewerElement.setZoom(ZoomMode).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFits the whole current page into the viewer.Fits the width of the current page to the viewer. -
Method Summary
Modifier and TypeMethodDescriptionstatic PdfViewerElement.ZoomModeReturns the enum constant of this class with the specified name.static PdfViewerElement.ZoomMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PAGE_WIDTH
Fits the width of the current page to the viewer. The default zoom. -
PAGE_FIT
Fits the whole current page into the viewer.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-