Interface MTLanguageListener
- All Superinterfaces:
EventListener
Listens to changes to the current language.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
languageAdded
(MTLanguage language) Called when a new language has been added to the repository.void
languageChanged
(MTLanguage oldLanguage, MTLanguage newLanguage) Called when the current language changes fromoldLanguage
tonewLanguage
void
languageEdited
(MTLanguage language) Called when changes have been made to a language.void
languageRemoved
(MTLanguage language) Called when a language has been removed from the repository.
-
Method Details
-
languageAdded
Called when a new language has been added to the repository.- Parameters:
language
- The new language.
-
languageEdited
Called when changes have been made to a language.- Parameters:
language
- The edited language.
-
languageRemoved
Called when a language has been removed from the repository.- Parameters:
language
- The removed language.
-
languageChanged
Called when the current language changes fromoldLanguage
tonewLanguage
- Parameters:
oldLanguage
- the old current language (previous language)newLanguage
- the new current language (actual current language)
-