|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DictionaryHelper
This interface provides methods to directly access the correct types of data from a dictionary entry key.
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 formatter)
Sets the string formatter of the dictionary helper. |
void |
setLocale(Locale locale)
Sets the locale of the dictionary helper. |
Method Detail |
---|
void setLocale(Locale locale)
locale
- the locale to setLocale getCurrentLocale()
void loadResourceBundle(String baseName)
baseName
- the base name of the resource bundle file (without the language extension)void setFormatter(Formatter formatter)
formatter
- the string formatter of the helperString getString(String key)
String getString(String key, Object... objects)
Image getImage(String key)
Icon getIcon(String key)
Color getColor(String key)
KeyStroke getKeyStroke(String key)
int getMnemonic(String key)
Date getDate(String key)
Font getFont(String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |