|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.resources.impl.bundle.BundleResourceGroup
class BundleResourceGroup
A specialized implementation of the ResourceGroup interface
that is backed by a java.util.ResourceBundle.
The methods required by the ResourceGroup interface are
delegated to the internally managed resource bunde. During construction this
bundle is loaded for the specified base name and locale.
| Constructor Summary | |
|---|---|
BundleResourceGroup(java.lang.String name,
java.util.Locale locale)
Creates a new instance of BundleResourceGroup and
initializes it. |
|
| Method Summary | |
|---|---|
java.util.ResourceBundle |
getBundle()
Returns the bundle that is wrapped by this resource group. |
java.util.Set |
getKeys()
Returns a set with all keys contained in this resource group. |
java.util.Locale |
getLocale()
Returns the locale of this group. |
java.lang.Object |
getName()
Returns the name of this resource group. |
java.lang.Object |
getResource(java.lang.Object key)
Returns the resource for the specified key. |
protected java.util.ResourceBundle |
initBundle(java.lang.String name,
java.util.Locale locale)
Initializes the specified resource bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BundleResourceGroup(java.lang.String name,
java.util.Locale locale)
throws java.util.MissingResourceException
BundleResourceGroup and
initializes it.
name - the group's namelocale - the locale
java.util.MissingResourceException - if the bundle cannot be found| Method Detail |
|---|
public java.util.ResourceBundle getBundle()
public java.lang.Object getName()
getName in interface ResourceGrouppublic java.util.Set getKeys()
getKeys in interface ResourceGrouppublic java.util.Locale getLocale()
getLocale in interface ResourceGroup
public java.lang.Object getResource(java.lang.Object key)
throws java.util.MissingResourceException
getResource in interface ResourceGroupkey - the key
java.util.MissingResourceException - if this key is unknown
protected java.util.ResourceBundle initBundle(java.lang.String name,
java.util.Locale locale)
throws java.util.MissingResourceException
name - the bundle's base namelocale - the locale
java.util.MissingResourceException - if the bundle cannot be found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||