public abstract class TranslationService extends Object
ResourceBundleService
.Constructor and Description |
---|
TranslationService() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(Runnable listener) |
protected void |
notifyListeners()
Notifies all listeners of a locale change.
|
void |
removeListener(Runnable listener) |
abstract String |
translate(String key)
Looks up a key in the translation service and returns the translate string.
|
public abstract String translate(String key)
key
- The key to use for the lookup.public void addListener(Runnable listener)
public void removeListener(Runnable listener)
protected void notifyListeners()
Copyright © 2017. All rights reserved.