|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.digi.config.util.ConfigResource
This class provides static helper methods for accessing the various resource bundles available in the config system.
| Field Summary | |
static java.lang.String |
DFT_HELP_TEXT_BUNDLE_NAME
|
static java.lang.String |
DFT_MSG_TEXT_BUNDLE_NAME
The default resource files |
static java.lang.String |
DFT_UI_IMAGE_BUNDLE_NAME
|
static java.lang.String |
DFT_UI_TEXT_BUNDLE_NAME
|
(package private) java.util.Vector |
helpTextRbList
|
(package private) java.util.Vector |
msgTextRbList
|
(package private) static ConfigResource |
theInstance
Singleton reference |
(package private) java.util.Vector |
uiImageRbList
|
(package private) java.util.Vector |
uiTextRbList
|
| Constructor Summary | |
protected |
ConfigResource()
|
| Method Summary | |
void |
_loadHelpTextRb(java.lang.String bundleName)
load the specified resource bundle and push it onto the help text resource stack. |
void |
_loadMsgTextRb(java.lang.String bundleName)
load the specified resource bundle and push it onto the message text resource stack. |
void |
_loadUiImageRb(java.lang.String bundleName)
load the specified resource bundle and push it onto the UI image resource stack. |
void |
_loadUiTextRb(java.lang.String bundleName)
load the specified resource bundle and push it onto the UI text resource stack. |
static java.lang.String |
getHelpRbString(java.lang.String key)
Fetches a string from a help text resource bundle. |
static javax.swing.ImageIcon |
getImageRbIcon(java.lang.String key)
Fetches a image from a ui image resource bundle. |
static ConfigResource |
getInstance()
Singleton accessor method |
static java.lang.String |
getMsgRbString(java.lang.String key)
Fetches a string from a message text resource bundle. |
static java.lang.String |
getMsgRbString(java.lang.String key,
java.lang.Object[] replacementValues)
Fetches a string from a message text resource bundle. |
static java.lang.String |
getMsgRbStringForce(java.lang.String key)
Fetches a string from a message text resource bundle. |
static java.lang.String |
getUiRbString(java.lang.String key)
Fetches a string from a ui text resource bundle. |
static java.lang.String |
getUiRbString(java.lang.String key,
java.lang.Object[] replacementValues)
Fetches a string from a ui text resource bundle. |
static void |
loadHelpTextRb(java.lang.String bundleName)
load the specified resource bundle and push it onto the help text resource stack. |
static void |
loadMsgTextRb(java.lang.String bundleName)
load the specified resource bundle and push it onto the message text resource stack. |
static void |
loadUiImageRb(java.lang.String bundleName)
load the specified resource bundle and push it onto the UI image resource stack. |
static void |
loadUiTextRb(java.lang.String bundleName)
load the specified resource bundle and push it onto the UI text resource stack. |
static void |
setImagesDirectory(java.lang.String directory)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static ConfigResource theInstance
public static final java.lang.String DFT_MSG_TEXT_BUNDLE_NAME
public static final java.lang.String DFT_UI_TEXT_BUNDLE_NAME
public static final java.lang.String DFT_UI_IMAGE_BUNDLE_NAME
public static final java.lang.String DFT_HELP_TEXT_BUNDLE_NAME
java.util.Vector msgTextRbList
java.util.Vector uiTextRbList
java.util.Vector uiImageRbList
java.util.Vector helpTextRbList
| Constructor Detail |
protected ConfigResource()
| Method Detail |
public static ConfigResource getInstance()
public static void setImagesDirectory(java.lang.String directory)
public void _loadMsgTextRb(java.lang.String bundleName)
public void _loadUiTextRb(java.lang.String bundleName)
public void _loadUiImageRb(java.lang.String bundleName)
public void _loadHelpTextRb(java.lang.String bundleName)
public static void loadMsgTextRb(java.lang.String bundleName)
public static void loadUiTextRb(java.lang.String bundleName)
public static void loadUiImageRb(java.lang.String bundleName)
public static void loadHelpTextRb(java.lang.String bundleName)
public static java.lang.String getMsgRbString(java.lang.String key)
key - to use to get text from the resource bundle
public static java.lang.String getMsgRbStringForce(java.lang.String key)
throws java.util.MissingResourceException
key - to use to get text from the resource bundle
java.util.MissingResourceException
public static java.lang.String getMsgRbString(java.lang.String key,
java.lang.Object[] replacementValues)
key - to use to get text from the resource bundlereplacementValues - is an array of replacement values to insert into the message.
public static java.lang.String getUiRbString(java.lang.String key)
key - to use to get text from the resource bundle
public static java.lang.String getUiRbString(java.lang.String key,
java.lang.Object[] replacementValues)
key - to use to get text from the resource bundlereplacementValues - is an array of replacement values to insert into the message.
public static javax.swing.ImageIcon getImageRbIcon(java.lang.String key)
key - to use to get text from the resource bundle
public static java.lang.String getHelpRbString(java.lang.String key)
key - to use to get text from the resource bundle
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||