|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcafe.gui.GUISettings
public class GUISettings
This class contains settings for user interface. It is created by Settings component and passed on to the gui.
Constructor Summary | |
---|---|
GUISettings(Language[] languages,
int idletimeout,
int paytimeout,
int errortimeout)
Construcs GUISettings with the specified parameters. |
Method Summary | |
---|---|
int |
getErrorTimeout()
Returns the timeout for error messages. |
int |
getIdleTimeout()
Returns logout timeout in seconds. |
javax.swing.ImageIcon |
getLangPicture(LanguageEnum language)
Returns an icon for a given language. |
int |
getPayTimeout()
Returns timeout for product debit. |
java.lang.String |
getString(java.lang.String stringid,
LanguageEnum language)
Returns a given string in a given language based on its id. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GUISettings(Language[] languages, int idletimeout, int paytimeout, int errortimeout)
languages
- GUI texts in different languages.idletimeout
- Timeout for automatic user logout in case of no activity in seconds.paytimeout
- Timeout for automatic debit of product price from user account in seconds.errortimeout
- Timeout for error messages shown by GUI in seconds.Method Detail |
---|
public java.lang.String getString(java.lang.String stringid, LanguageEnum language)
stringid
- ID of the string to be returned. This is defined in language files.language
- Identifier number of the language.
public javax.swing.ImageIcon getLangPicture(LanguageEnum language)
language
- Identifier of the language.
public int getIdleTimeout()
public int getPayTimeout()
public int getErrorTimeout()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |