Class PdfViewerI18n

java.lang.Object
com.vaadin.flow.component.pdfviewer.PdfViewerI18n
All Implemented Interfaces:
Serializable

public class PdfViewerI18n extends Object implements Serializable
Translatable texts of PdfViewer.
Since:
25.4
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • PdfViewerI18n

      public PdfViewerI18n()
  • Method Details

    • getPreviousPage

      public String getPreviousPage()
      Gets the tooltip of the previous page button.
      Returns:
      the tooltip
    • setPreviousPage

      public PdfViewerI18n setPreviousPage(String previousPage)
      Sets the tooltip of the previous page button. The viewer also uses it as the accessible name of links in the document that go to the previous page.
      Parameters:
      previousPage - the tooltip
      Returns:
      this instance for method chaining
    • getNextPage

      public String getNextPage()
      Gets the tooltip of the next page button.
      Returns:
      the tooltip
    • setNextPage

      public PdfViewerI18n setNextPage(String nextPage)
      Sets the tooltip of the next page button. The viewer also uses it as the accessible name of links in the document that go to the next page.
      Parameters:
      nextPage - the tooltip
      Returns:
      this instance for method chaining
    • getPage

      public String getPage()
      Gets the accessible name of the page number field.
      Returns:
      the accessible name
    • setPage

      public PdfViewerI18n setPage(String page)
      Sets the accessible name of the page number field.
      Parameters:
      page - the accessible name
      Returns:
      this instance for method chaining
    • getPageError

      public String getPageError()
      Gets the error message of the page number field, shown when the user enters a page that does not exist.
      Returns:
      the error message
    • setPageError

      public PdfViewerI18n setPageError(String pageError)
      Sets the error message of the page number field, shown when the user enters a page that does not exist. {pageCount} is replaced with the page count, for example "Enter 1?{pageCount}".
      Parameters:
      pageError - the error message
      Returns:
      this instance for method chaining
    • getZoomIn

      public String getZoomIn()
      Gets the tooltip of the zoom in button.
      Returns:
      the tooltip
    • setZoomIn

      public PdfViewerI18n setZoomIn(String zoomIn)
      Sets the tooltip of the zoom in button.
      Parameters:
      zoomIn - the tooltip
      Returns:
      this instance for method chaining
    • getZoomOut

      public String getZoomOut()
      Gets the tooltip of the zoom out button.
      Returns:
      the tooltip
    • setZoomOut

      public PdfViewerI18n setZoomOut(String zoomOut)
      Sets the tooltip of the zoom out button.
      Parameters:
      zoomOut - the tooltip
      Returns:
      this instance for method chaining
    • getZoom

      public String getZoom()
      Gets the accessible name of the zoom select.
      Returns:
      the accessible name
    • setZoom

      public PdfViewerI18n setZoom(String zoom)
      Sets the accessible name of the zoom select.
      Parameters:
      zoom - the accessible name
      Returns:
      this instance for method chaining
    • getPageWidth

      public String getPageWidth()
      Gets the text of the zoom option that fits the page width.
      Returns:
      the text
    • setPageWidth

      public PdfViewerI18n setPageWidth(String pageWidth)
      Sets the text of the zoom option that fits the page width.
      Parameters:
      pageWidth - the text
      Returns:
      this instance for method chaining
    • getPageFit

      public String getPageFit()
      Gets the text of the zoom option that fits the whole page.
      Returns:
      the text
    • setPageFit

      public PdfViewerI18n setPageFit(String pageFit)
      Sets the text of the zoom option that fits the whole page.
      Parameters:
      pageFit - the text
      Returns:
      this instance for method chaining
    • getDocument

      public String getDocument()
      Gets the header title of a document without a file name.
      Returns:
      the title
    • setDocument

      public PdfViewerI18n setDocument(String document)
      Sets the header title of a document without a file name.
      Parameters:
      document - the title
      Returns:
      this instance for method chaining
    • getPageLabel

      public String getPageLabel()
      Gets the accessible name of a page in the document.
      Returns:
      the accessible name
    • setPageLabel

      public PdfViewerI18n setPageLabel(String pageLabel)
      Sets the accessible name of a page in the document. {page} is replaced with the page number, for example "Page {page}".
      Parameters:
      pageLabel - the accessible name
      Returns:
      this instance for method chaining
    • getLoading

      public String getLoading()
      Gets the accessible name of the loading indicator.
      Returns:
      the accessible name
    • setLoading

      public PdfViewerI18n setLoading(String loading)
      Sets the accessible name of the loading indicator.
      Parameters:
      loading - the accessible name
      Returns:
      this instance for method chaining
    • getLink

      public String getLink()
      Gets the accessible name of a link in the document that has no text and no known destination.
      Returns:
      the accessible name
    • setLink

      public PdfViewerI18n setLink(String link)
      Sets the accessible name of a link in the document that has no text and no known destination.
      Parameters:
      link - the accessible name
      Returns:
      this instance for method chaining
    • getGoToPage

      public String getGoToPage()
      Gets the accessible name of a link in the document that has no text and goes to another page.
      Returns:
      the accessible name
    • setGoToPage

      public PdfViewerI18n setGoToPage(String goToPage)
      Sets the accessible name of a link in the document that has no text and goes to another page. {page} is replaced with the page number, for example "Go to page {page}".
      Parameters:
      goToPage - the accessible name
      Returns:
      this instance for method chaining
    • getExternalLink

      public String getExternalLink()
      Gets the accessible name of a link that opens in a new tab.
      Returns:
      the accessible name
    • setExternalLink

      public PdfViewerI18n setExternalLink(String externalLink)
      Sets the accessible name of a link that opens in a new tab. {text} is replaced with the link text or URL, for example "{text} (opens in a new tab)".
      Parameters:
      externalLink - the accessible name
      Returns:
      this instance for method chaining
    • getDownload

      public String getDownload()
      Gets the tooltip of the download button.
      Returns:
      the tooltip
    • setDownload

      public PdfViewerI18n setDownload(String download)
      Sets the tooltip of the download button.
      Parameters:
      download - the tooltip
      Returns:
      this instance for method chaining