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

public static enum PdfViewerElement.ZoomMode extends Enum<PdfViewerElement.ZoomMode>
The zoom modes that fit the pages to the viewer, see PdfViewerElement.setZoom(ZoomMode).
  • Enum Constant Details

    • PAGE_WIDTH

      public static final PdfViewerElement.ZoomMode PAGE_WIDTH
      Fits the width of the current page to the viewer. The default zoom.
    • PAGE_FIT

      public static final PdfViewerElement.ZoomMode PAGE_FIT
      Fits the whole current page into the viewer.
  • Method Details

    • values

      public static PdfViewerElement.ZoomMode[] 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

      public static PdfViewerElement.ZoomMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null