Class ErrorWindowI18n
java.lang.Object
com.flowingcode.vaadin.addons.errorwindow.ErrorWindowI18n
- All Implemented Interfaces:
Serializable
Internationalization object for customizing the component UI texts. An instance with the default
messages can be obtained using
createDefault().- Author:
- michael.knigge@gmx.de
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorWindowI18ncreate(SerializableFunction<String, String> i18nTranslator) Creates a new instance with the provided message translation function.static ErrorWindowI18nCreates a new instance with the default messages.getClose()voidsetCaption(String caption) Sets the caption of the error window.voidsetClipboard(String clipboard) Sets the text for the "Copy details to clipboard" button.voidSets the text of the "Close"-Button.voidsetDefaultErrorMessage(String defaultErrorMessage) Sets the default error message shown if the message passed to the error window isnull.voidsetDetails(String details) Sets the text of the "Details"-Button.voidsetInstructions(String instructions) Sets the instructions for the user if the UUID is displayed in production mode.
-
Method Details
-
createDefault
Creates a new instance with the default messages.- Returns:
- a new instance with the default messages
-
create
Creates a new instance with the provided message translation function.- Parameters:
i18nTranslator- a message translation function- Returns:
- a new instance with the provided message translation function
-
setCaption
Sets the caption of the error window. -
getCaption
- Returns:
- returns the caption of the error window
-
setInstructions
Sets the instructions for the user if the UUID is displayed in production mode. -
getInstructions
- Returns:
- returns the instructions for the user if the UUID is displayed in production mode
-
setClose
Sets the text of the "Close"-Button. -
getClose
- Returns:
- returns the text of the "Close"-Button
-
setDetails
Sets the text of the "Details"-Button. -
getDetails
- Returns:
- returns the text of the "Details"-Button
-
setDefaultErrorMessage
Sets the default error message shown if the message passed to the error window isnull. -
getDefaultErrorMessage
- Returns:
- returns the default error message shown if the message passed to the error window is
null
-
getClipboard
- Returns:
- returns the text for the "Copy details to clipboard" button
-
setClipboard
Sets the text for the "Copy details to clipboard" button.
-