Class ErrorWindowI18n

java.lang.Object
com.flowingcode.vaadin.addons.errorwindow.ErrorWindowI18n
All Implemented Interfaces:
Serializable

public class ErrorWindowI18n extends Object implements 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 Details

    • createDefault

      public static ErrorWindowI18n createDefault()
      Creates a new instance with the default messages.
      Returns:
      a new instance with the default messages
    • create

      public static ErrorWindowI18n create(SerializableFunction<String,String> i18nTranslator)
      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

      public void setCaption(String caption)
      Sets the caption of the error window.
    • getCaption

      public String getCaption()
      Returns:
      returns the caption of the error window
    • setInstructions

      public void setInstructions(String instructions)
      Sets the instructions for the user if the UUID is displayed in production mode.
    • getInstructions

      public String getInstructions()
      Returns:
      returns the instructions for the user if the UUID is displayed in production mode
    • setClose

      public void setClose(String close)
      Sets the text of the "Close"-Button.
    • getClose

      public String getClose()
      Returns:
      returns the text of the "Close"-Button
    • setDetails

      public void setDetails(String details)
      Sets the text of the "Details"-Button.
    • getDetails

      public String getDetails()
      Returns:
      returns the text of the "Details"-Button
    • setDefaultErrorMessage

      public void setDefaultErrorMessage(String defaultErrorMessage)
      Sets the default error message shown if the message passed to the error window is null .
    • getDefaultErrorMessage

      public String getDefaultErrorMessage()
      Returns:
      returns the default error message shown if the message passed to the error window is null
    • getClipboard

      public String getClipboard()
      Returns:
      returns the text for the "Copy details to clipboard" button
    • setClipboard

      public void setClipboard(String clipboard)
      Sets the text for the "Copy details to clipboard" button.