Class TranslatableList

java.lang.Object
velox.gui.utils.localization.translatable.TranslatableList
All Implemented Interfaces:
TranslatableComponent

public class TranslatableList extends Object implements TranslatableComponent
Creates localized listing from its components with line breaks. Make sense to use it only in conjunction with other TranslatableComponents
  • Constructor Details

    • TranslatableList

      public TranslatableList(boolean isHtml)
      Parameters:
      isHtml - true if should use '<br>' instead of '\n' for line break
    • TranslatableList

      public TranslatableList(boolean isHtml, List<?> lines)
      Parameters:
      isHtml - true if should use '<br>' instead of '\n' for line break
      lines - from which should create listing
    • TranslatableList

      public TranslatableList(boolean isHtml, Object... lines)
      Parameters:
      isHtml - true if should use '<br>' instead of '\n' for line break
      lines - from which should create listing
  • Method Details

    • addLineObject

      public void addLineObject(Object line)
      Adds new line to the listing
      Parameters:
      line -
    • addNewLine

      public void addNewLine()
      Adds line break to the listing
    • toLocalizedString

      public String toLocalizedString(com.ibm.icu.util.ULocale locale)
      Specified by:
      toLocalizedString in interface TranslatableComponent
      Parameters:
      locale -
      Returns:
      localized string in specific locale