|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.ResourceBundle
java.util.ListResourceBundle
org.opencms.i18n.CmsListResourceBundle
public class CmsListResourceBundle
A list based resource bundle that with increased visibility of some key methods.
CmsResourceBundleLoader| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.ResourceBundle |
|---|
java.util.ResourceBundle.Control |
| Field Summary | |
|---|---|
protected java.util.Locale |
m_locale
The locale to use. |
| Fields inherited from class java.util.ResourceBundle |
|---|
parent |
| Constructor Summary | |
|---|---|
CmsListResourceBundle()
Create a new list resource bundle for the XML. |
|
| Method Summary | |
|---|---|
void |
addMessage(java.lang.String key,
java.lang.String value)
Adds a message to this list bundle. |
CmsListResourceBundle |
getClone()
Returns a typed clone of this resource bundle. |
java.lang.Object[][] |
getContents()
|
java.util.Locale |
getLocale()
|
void |
setLocale(java.util.Locale l)
Sets the locale used for this resource bundle. |
void |
setParent(java.util.ResourceBundle p)
Sets the parent bundle. |
| Methods inherited from class java.util.ListResourceBundle |
|---|
getKeys, handleGetObject, handleKeySet |
| Methods inherited from class java.util.ResourceBundle |
|---|
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, keySet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Locale m_locale
| Constructor Detail |
|---|
public CmsListResourceBundle()
| Method Detail |
|---|
public void addMessage(java.lang.String key,
java.lang.String value)
Please note:
All additions after the initial call to getContents() are ignored.
key - the message keyvalue - the message itselfpublic CmsListResourceBundle getClone()
This is required in order to make sure the objects in the permanent cache of the list based resource bundles which are usually read from the XML are never changed.
public java.lang.Object[][] getContents()
getContents in class java.util.ListResourceBundleListResourceBundle.getContents()public java.util.Locale getLocale()
getLocale in class java.util.ResourceBundleResourceBundle.getLocale()public void setLocale(java.util.Locale l)
setLocale in interface I_CmsResourceBundlel - the locale to setpublic void setParent(java.util.ResourceBundle p)
I_CmsResourceBundle
setParent in interface I_CmsResourceBundlesetParent in class java.util.ResourceBundlep - the parent bundle to setResourceBundle.setParent(java.util.ResourceBundle)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||