public interface IMultiLingualText extends IReadonlyMultiLingualText, IClearable
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeNotifier(IChangeNotify<IMultiLingualText> aCallback)
Add a notification callback that is called, when the object is changed.
|
EChange |
addText(Locale aContentLocale,
String sText)
Add a text in the specified locale.
|
EChange |
assignFrom(IReadonlyMultiLingualText aMLT)
Assign all fields from the passed object.
|
EChange |
removeText(Locale aContentLocale)
Remove the text with the specified locale.
|
EChange |
setText(Locale aContentLocale,
String sText)
Set a text in the specified locale.
|
getMapgetTextWithArgs, getTextWithLocaleFallbackAndArgsgetText, getTextWithLocaleFallbackcontainsLocale, containsLocaleWithFallback, getAllLocales, getLocaleCountclear@Nonnull EChange addText(@Nonnull Locale aContentLocale, @Nullable String sText)
false is returned.aContentLocale - The locale in which the text should be set. May not be
null.sText - The text to be set. May be null.EChange.CHANGED if the text was added,
EChange.UNCHANGED otherwise.@Nonnull EChange setText(@Nonnull Locale aContentLocale, @Nullable String sText)
aContentLocale - The locale in which the text should be set. May not be
null .sText - The text to be set. May be null.EChange.CHANGED if the text was set,
EChange.UNCHANGED otherwise.@Nonnull EChange removeText(@Nonnull Locale aContentLocale)
aContentLocale - The locale to be removed. May not be null.EChange.CHANGED if the text was remove,
EChange.UNCHANGED otherwise.@Nonnull EChange assignFrom(@Nonnull IReadonlyMultiLingualText aMLT)
aMLT - The object to read the content from. May not be null.EChange.CHANGED if the assignment changed anything,
EChange.UNCHANGED otherwise.void addChangeNotifier(@Nonnull IChangeNotify<IMultiLingualText> aCallback)
aCallback - The callback to add. May not be null.Copyright © 2006–2015 phloc systems. All rights reserved.