|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectDataGridResourceProvider
public abstract class DataGridResourceProvider
This abstract class provides an abstraction used for obtaining messages and strings used during data grid rendering.
| Constructor Summary | |
|---|---|
DataGridResourceProvider()
|
|
| Method Summary | |
|---|---|
protected ResourceBundle |
createResourceBundle(String path)
|
abstract String |
formatMessage(String key,
Object[] args)
Abstract method used to format a pattern given a pattern / message key and an array of arguments. |
Locale |
getLocale()
Accessor for obtaining the Locale used when looking up messages. |
abstract String |
getMessage(String key)
Abstract method used to obtain a message String given a key |
String |
getResourceBundlePath()
Accessor for obtaining the path to the resource bundle used by a DataGridResourceProvider implementation. |
protected String |
internalFormatMessage(String pattern,
Object[] args)
Internal convenience method that is used to format a message given a pattern and a set of arguments. |
boolean |
isEnableChaining()
Accessor for determining if implementations are chaining enabled. |
void |
setEnableChaining(boolean enableChaining)
Setter for enabling or disabling chaining |
void |
setLocale(Locale locale)
Set the Locale in which a message String should be looked up. |
void |
setResourceBundlePath(String resourceBundlePath)
Set the path used for creating a ResourceBundle object. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataGridResourceProvider()
| Method Detail |
|---|
public abstract String getMessage(String key)
String given a key
key - the key used to lookup a String
public abstract String formatMessage(String key,
Object[] args)
key - the key to use when looking up a message to formatargs - the arguments to use when formatting a message
public boolean isEnableChaining()
true if chaining is enabled; false otherwisepublic void setEnableChaining(boolean enableChaining)
enableChaining - the new chaining enabled valuepublic void setLocale(Locale locale)
Locale in which a message String should be looked up.
locale - the Locale to usepublic Locale getLocale()
Locale used when looking up messages.
Locale used for message lookup or null if no Locale was setpublic void setResourceBundlePath(String resourceBundlePath)
ResourceBundle object.
resourceBundlePath - the path to a resource bundlepublic String getResourceBundlePath()
ResourceBundleprotected ResourceBundle createResourceBundle(String path)
protected String internalFormatMessage(String pattern,
Object[] args)
pattern - the pattern to formatargs - the arguments to use when formatting
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||