|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcafe.gui.Language
public class Language
This class contains strings for UI for a given language.
Constructor Summary | |
---|---|
Language(java.util.Hashtable<java.lang.String,java.lang.String> uiStringTable,
javax.swing.ImageIcon picture)
Constructs a new language from given parameters. |
Method Summary | |
---|---|
javax.swing.ImageIcon |
getLangPicture()
Returns the icon for the language. |
java.lang.String |
getText(java.lang.String id)
Returns the string matching the id. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Language(java.util.Hashtable<java.lang.String,java.lang.String> uiStringTable, javax.swing.ImageIcon picture)
uiStringTable
- contains two tables of strings
idlist Table containing the id strings for the language.
textlist Table containing the strings shown in the GUI, in the same order
as in idlist
.picture
- Icon for the picture, to be shown in language button.Method Detail |
---|
public java.lang.String getText(java.lang.String id)
id
- The string id to be searched from the hashtable.
id
not found"
if no matching string is found.
java.lang.NullPointerException
- if the id is null
.public javax.swing.ImageIcon getLangPicture()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |