|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.iplanet.jato.model.ResourceBundleModel
Provides a model implementation backed by a java.util.ResourceBundle
. This model can be used to automatically bind display fields to
locale-specific content.The bound name of display fields must correspond
exactly to the name of a key in the backing bundle.
Locale,
ResourceBundle| Constructor Summary | |
ResourceBundleModel()
This constructor is used when the model is created by the ModelManager. |
|
ResourceBundleModel(java.util.ResourceBundle bundle)
Create an instance with the specified ResourceBundle |
|
ResourceBundleModel(java.lang.String bundleName)
Create an instance with the specified ResourceBundle name. |
|
ResourceBundleModel(java.lang.String bundleName,
java.util.Locale locale)
Create an instance with the specified ResourceBundle name and locale. |
|
| Method Summary | |
java.lang.String |
getName()
Returns the logical instance name of this model. |
java.util.ResourceBundle |
getResourceBundle()
Returns the current ResourceBundle used by this model |
java.lang.Object |
getValue(java.lang.String name)
Returns the named value from the backing ResourceBundle |
java.lang.Object[] |
getValues(java.lang.String name)
Returns the named value array from the backing ResourceBundle. |
void |
loadBundle(java.lang.String bundleName)
Causes the Model to (re)load its ResourceBundle |
void |
loadBundle(java.lang.String bundleName,
java.util.Locale locale)
Causes the Model to (re)load its ResourceBundle |
void |
setName(java.lang.String value)
Sets the logical name of this model |
void |
setResourceBundle(java.util.ResourceBundle value)
Sets the current ResourceBundle used by this model |
void |
setValue(java.lang.String name,
java.lang.Object value)
Note: this method has no effect. |
void |
setValues(java.lang.String name,
java.lang.Object[] value)
Note: this method has no effect. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResourceBundleModel()
public ResourceBundleModel(java.util.ResourceBundle bundle)
bundle - A ResourceBundlejava.lang.IllegalArgumentException - Thrown if the bundle parameter is nullpublic ResourceBundleModel(java.lang.String bundleName)
bundleName - The name of a ResourceBundlejava.lang.IllegalArgumentException - Thrown if the bundleName parameter is null
public ResourceBundleModel(java.lang.String bundleName,
java.util.Locale locale)
bundleName - The name of a ResourceBundlelocale - The Locale to use when looking up the ResourceBundlejava.lang.IllegalArgumentException - Thrown if the bundleName parameter or the
locale parameter is null| Method Detail |
public java.lang.String getName()
ModelModelManager may assign a name to a model based
on user request.getName in interface Modelcom.iplanet.jato.model.Modelpublic void setName(java.lang.String value)
ModelsetName in interface Modelcom.iplanet.jato.model.Modelname - The new name of this modelpublic void loadBundle(java.lang.String bundleName)
bundleName - The name of a ResourceBundle. This value cannot be null.
public void loadBundle(java.lang.String bundleName,
java.util.Locale locale)
bundleName - The name of a ResourceBundle. This value cannot be null.locale - The Locale to use when looking up the ResourceBundle. This
locale may be null.java.util.MissingResourceException - Thrown if the ResourceBundle cannot be locatedpublic java.util.ResourceBundle getResourceBundle()
public void setResourceBundle(java.util.ResourceBundle value)
value - The ResourceBundle instance to be used. This parameter cannot
be null.public java.lang.Object getValue(java.lang.String name)
getValue in interface Model
public void setValue(java.lang.String name,
java.lang.Object value)
setValue in interface Modelcom.iplanet.jato.model.Modelname - The name of the value to setvalue - The value to set in this modelpublic java.lang.Object[] getValues(java.lang.String name)
getValues in interface Model
public void setValues(java.lang.String name,
java.lang.Object[] value)
setValues in interface Modelcom.iplanet.jato.model.Modelname - The name of the value set to set in the modelvalues - The set of values to set in this model
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||