|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.core.i18n.DefaultDictionaryHelper
public class DefaultDictionaryHelper
Default implementation of the dictionary helper interface.
Constructor Summary | |
---|---|
DefaultDictionaryHelper(Dictionary<?>... aDictionaryEntry)
Default constructor. |
Method Summary | |
---|---|
Color |
getColor(String key)
Gets the color associated with the dictionary entry |
Locale |
getCurrentLocale()
Gets the locale currently used by the helper. |
Date |
getDate(String key)
Gets the date associated with the dictionary entry |
Font |
getFont(String key)
Gets the font associated with the dictionary entry |
Icon |
getIcon(String key)
Gets the icon associated with the dictionary entry |
Image |
getImage(String key)
Gets the image associated with the dictionary entry |
KeyStroke |
getKeyStroke(String key)
Gets the key stroke associated with the dictionary entry |
int |
getMnemonic(String key)
Gets the integer mnemonic associated with the dictionary entry |
String |
getString(String key)
Gets the localized string associated with the dictionary entry. |
String |
getString(String key,
Object... objects)
Gets the localized string associated with the dictionary entry and replaces the arguments in the string using the printf syntax. |
void |
loadResourceBundle(String baseName)
Loads the resource bundle file at the given path with the given base name. |
void |
setFormatter(Formatter formatterToSet)
Sets the string formatter of the dictionary helper. |
void |
setLocale(Locale aLocale)
Sets the locale of the dictionary helper. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDictionaryHelper(Dictionary<?>... aDictionaryEntry)
Method Detail |
---|
public void setLocale(Locale aLocale)
DictionaryHelper
setLocale
in interface DictionaryHelper
aLocale
- the locale to setpublic Locale getCurrentLocale()
DictionaryHelper
getCurrentLocale
in interface DictionaryHelper
public void loadResourceBundle(String baseName)
DictionaryHelper
loadResourceBundle
in interface DictionaryHelper
baseName
- the base name of the resource bundle file (without the language extension)public void setFormatter(Formatter formatterToSet)
DictionaryHelper
setFormatter
in interface DictionaryHelper
formatterToSet
- the string formatter of the helperpublic String getString(String key)
DictionaryHelper
getString
in interface DictionaryHelper
public String getString(String key, Object... objects)
DictionaryHelper
getString
in interface DictionaryHelper
public Image getImage(String key)
DictionaryHelper
getImage
in interface DictionaryHelper
public Icon getIcon(String key)
DictionaryHelper
getIcon
in interface DictionaryHelper
public Color getColor(String key)
DictionaryHelper
getColor
in interface DictionaryHelper
public KeyStroke getKeyStroke(String key)
DictionaryHelper
getKeyStroke
in interface DictionaryHelper
public int getMnemonic(String key)
DictionaryHelper
getMnemonic
in interface DictionaryHelper
public Date getDate(String key)
DictionaryHelper
getDate
in interface DictionaryHelper
public Font getFont(String key)
DictionaryHelper
getFont
in interface DictionaryHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |