public abstract class AbstractHasText extends Object implements IHasText
IHasText that has default
implementations for the formatting things.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHasText() |
| Modifier and Type | Method and Description |
|---|---|
String |
getText(Locale aContentLocale)
Get the text specific for the passed locale.
|
protected Locale |
internalGetLocaleToUseWithFallback(Locale aContentLocale)
Determine the locale to use.
|
protected abstract String |
internalGetText(Locale aContentLocale)
Main text resolving.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsHasDisplayText, getComparatorCollating@Nullable protected Locale internalGetLocaleToUseWithFallback(@Nonnull Locale aContentLocale)
aContentLocale - Requested locale. Never null.null.@Nullable protected abstract String internalGetText(@Nonnull Locale aContentLocale)
aContentLocale - Locale to use. This is the locale resolved internally. Never
null.null if no such text present in the passed localeCopyright © 2014–2022 Philip Helger. All rights reserved.