Class PdfViewerI18n
java.lang.Object
com.vaadin.flow.component.pdfviewer.PdfViewerI18n
- All Implemented Interfaces:
Serializable
Translatable texts of
PdfViewer.- Since:
- 25.4
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the header title of a document without a file name.Gets the tooltip of the download button.Gets the accessible name of a link that opens in a new tab.Gets the accessible name of a link in the document that has no text and goes to another page.getLink()Gets the accessible name of a link in the document that has no text and no known destination.Gets the accessible name of the loading indicator.Gets the tooltip of the next page button.getPage()Gets the accessible name of the page number field.Gets the error message of the page number field, shown when the user enters a page that does not exist.Gets the text of the zoom option that fits the whole page.Gets the accessible name of a page in the document.Gets the text of the zoom option that fits the page width.Gets the tooltip of the previous page button.getZoom()Gets the accessible name of the zoom select.Gets the tooltip of the zoom in button.Gets the tooltip of the zoom out button.setDocument(String document) Sets the header title of a document without a file name.setDownload(String download) Sets the tooltip of the download button.setExternalLink(String externalLink) Sets the accessible name of a link that opens in a new tab.setGoToPage(String goToPage) Sets the accessible name of a link in the document that has no text and goes to another page.Sets the accessible name of a link in the document that has no text and no known destination.setLoading(String loading) Sets the accessible name of the loading indicator.setNextPage(String nextPage) Sets the tooltip of the next page button.Sets the accessible name of the page number field.setPageError(String pageError) Sets the error message of the page number field, shown when the user enters a page that does not exist.setPageFit(String pageFit) Sets the text of the zoom option that fits the whole page.setPageLabel(String pageLabel) Sets the accessible name of a page in the document.setPageWidth(String pageWidth) Sets the text of the zoom option that fits the page width.setPreviousPage(String previousPage) Sets the tooltip of the previous page button.Sets the accessible name of the zoom select.Sets the tooltip of the zoom in button.setZoomOut(String zoomOut) Sets the tooltip of the zoom out button.
-
Constructor Details
-
PdfViewerI18n
public PdfViewerI18n()
-
-
Method Details
-
getPreviousPage
Gets the tooltip of the previous page button.- Returns:
- the tooltip
-
setPreviousPage
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
Gets the tooltip of the next page button.- Returns:
- the tooltip
-
setNextPage
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
Gets the accessible name of the page number field.- Returns:
- the accessible name
-
setPage
Sets the accessible name of the page number field.- Parameters:
page- the accessible name- Returns:
- this instance for method chaining
-
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
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
Gets the tooltip of the zoom in button.- Returns:
- the tooltip
-
setZoomIn
Sets the tooltip of the zoom in button.- Parameters:
zoomIn- the tooltip- Returns:
- this instance for method chaining
-
getZoomOut
Gets the tooltip of the zoom out button.- Returns:
- the tooltip
-
setZoomOut
Sets the tooltip of the zoom out button.- Parameters:
zoomOut- the tooltip- Returns:
- this instance for method chaining
-
getZoom
Gets the accessible name of the zoom select.- Returns:
- the accessible name
-
setZoom
Sets the accessible name of the zoom select.- Parameters:
zoom- the accessible name- Returns:
- this instance for method chaining
-
getPageWidth
Gets the text of the zoom option that fits the page width.- Returns:
- the text
-
setPageWidth
Sets the text of the zoom option that fits the page width.- Parameters:
pageWidth- the text- Returns:
- this instance for method chaining
-
getPageFit
Gets the text of the zoom option that fits the whole page.- Returns:
- the text
-
setPageFit
Sets the text of the zoom option that fits the whole page.- Parameters:
pageFit- the text- Returns:
- this instance for method chaining
-
getDocument
Gets the header title of a document without a file name.- Returns:
- the title
-
setDocument
Sets the header title of a document without a file name.- Parameters:
document- the title- Returns:
- this instance for method chaining
-
getPageLabel
Gets the accessible name of a page in the document.- Returns:
- the accessible name
-
setPageLabel
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
Gets the accessible name of the loading indicator.- Returns:
- the accessible name
-
setLoading
Sets the accessible name of the loading indicator.- Parameters:
loading- the accessible name- Returns:
- this instance for method chaining
-
getLink
Gets the accessible name of a link in the document that has no text and no known destination.- Returns:
- the accessible name
-
setLink
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
Gets the accessible name of a link in the document that has no text and goes to another page.- Returns:
- the accessible name
-
setGoToPage
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
Gets the accessible name of a link that opens in a new tab.- Returns:
- the accessible name
-
setExternalLink
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
Gets the tooltip of the download button.- Returns:
- the tooltip
-
setDownload
Sets the tooltip of the download button.- Parameters:
download- the tooltip- Returns:
- this instance for method chaining
-