All Packages Class Hierarchy This Package Previous Next Index
Interface tea.util.local.LanguageSpeaker
- public interface interface LanguageSpeaker
This interface defines the methods that a LanguageSpeaker must implement.
- Version:
- 1.0 beta - 31 May 1997
- Author:
- Leonardo Boselli
- See Also:
- LanguageManager, LanguageLearner
-
changeSpokenLanguage(String)
- This is the most important method: it's called by the LanguageManager
when the user wants a change in the language spoken by LanguageSpeakers.
-
getLanguageLearner()
- Returns the LanguageLearner associated with this LanguageSpeaker.
-
getSpokenLanguages()
- Returns an Enumeration of the languages spoken by the LanguageSpeaker.
changeSpokenLanguage
public abstract boolean changeSpokenLanguage(String l)
- This is the most important method: it's called by the LanguageManager
when the user wants a change in the language spoken by LanguageSpeakers.
- Parameters:
- l - the language.
getSpokenLanguages
public abstract Enumeration getSpokenLanguages()
- Returns an Enumeration of the languages spoken by the LanguageSpeaker. It's
the only way the LanguageManager knows the languages spoken by its
LanguageSpeakers.
- Returns:
- the spoken languages (as an Enumeration).
getLanguageLearner
public abstract LanguageLearner getLanguageLearner()
- Returns the LanguageLearner associated with this LanguageSpeaker. A
LanguageLearner (and its methods) is the only way a LanguageSpeaker can
learn new languages. If the LanguageSpeaker can't learn new languages
a null reference is returned.
- Returns:
- the LanguageLearner.
All Packages Class Hierarchy This Package Previous Next Index