Class TranslatableList
java.lang.Object
velox.gui.utils.localization.translatable.TranslatableList
- All Implemented Interfaces:
TranslatableComponent
Creates localized listing from its components with line breaks.
Make sense to use it only in conjunction with other TranslatableComponents
-
Constructor Summary
ConstructorsConstructorDescriptionTranslatableList(boolean isHtml) TranslatableList(boolean isHtml, Object... lines) TranslatableList(boolean isHtml, List<?> lines) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLineObject(Object line) Adds new line to the listingvoidAdds line break to the listingtoLocalizedString(com.ibm.icu.util.ULocale locale) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface velox.gui.utils.localization.translatable.TranslatableComponent
toDefaultString, toLocalizedString
-
Constructor Details
-
TranslatableList
public TranslatableList(boolean isHtml) - Parameters:
isHtml- true if should use'<br>'instead of'\n'for line break
-
TranslatableList
- Parameters:
isHtml- true if should use'<br>'instead of'\n'for line breaklines- from which should create listing
-
TranslatableList
- Parameters:
isHtml- true if should use'<br>'instead of'\n'for line breaklines- from which should create listing
-
-
Method Details
-
addLineObject
Adds new line to the listing- Parameters:
line-
-
addNewLine
public void addNewLine()Adds line break to the listing -
toLocalizedString
- Specified by:
toLocalizedStringin interfaceTranslatableComponent- Parameters:
locale-- Returns:
- localized string in specific locale
-