public class ErrorWindowI18n extends Object
createDefault().| Modifier and Type | Method and Description |
|---|---|
static ErrorWindowI18n |
create(com.vaadin.flow.function.SerializableFunction<String,String> i18nTranslator)
Creates a new instance with the provided message translation function.
|
static ErrorWindowI18n |
createDefault()
Creates a new instance with the default messages.
|
String |
getCaption() |
String |
getClipboard() |
String |
getClose() |
String |
getDefaultErrorMessage() |
String |
getDetails() |
String |
getInstructions() |
void |
setCaption(String caption)
Sets the caption of the error window.
|
void |
setClipboard(String clipboard)
Sets the text for the "Copy details to clipboard" button.
|
void |
setClose(String close)
Sets the text of the "Close"-Button.
|
void |
setDefaultErrorMessage(String defaultErrorMessage)
Sets the default error message shown if the message passed to the error window is
null
. |
void |
setDetails(String details)
Sets the text of the "Details"-Button.
|
void |
setInstructions(String instructions)
Sets the instructions for the user if the UUID is displayed in production mode.
|
public static ErrorWindowI18n createDefault()
public static ErrorWindowI18n create(com.vaadin.flow.function.SerializableFunction<String,String> i18nTranslator)
i18nTranslator - a message translation functionpublic void setCaption(String caption)
public String getCaption()
public void setInstructions(String instructions)
public String getInstructions()
public void setClose(String close)
public String getClose()
public void setDetails(String details)
public String getDetails()
public void setDefaultErrorMessage(String defaultErrorMessage)
null
.public String getDefaultErrorMessage()
nullpublic String getClipboard()
public void setClipboard(String clipboard)
Copyright © 2017–2023 Flowing Code. All rights reserved.