| |
|
| java.lang.Object org.apache.beehive.netui.databinding.datagrid.api.DataGridResourceProvider
All known Subclasses: org.apache.beehive.netui.databinding.datagrid.runtime.config.DefaultDataGridResourceProvider,
DataGridResourceProvider | abstract public class DataGridResourceProvider (Code) | |
This abstract class provides an abstraction used for obtaining messages and strings used
during data grid rendering.
|
formatMessage | abstract public String formatMessage(String key, Object[] args)(Code) | | Abstract method used to format a pattern given a pattern / message key and an array of
arguments.
Parameters: key - the key to use when looking up a message to format Parameters: args - the arguments to use when formatting a message the formatted message if a message is found matching the key |
getLocale | public Locale getLocale()(Code) | | Accessor for obtaining the
Locale used when looking up messages.
the Locale used for message lookup or null if no Locale was set |
getMessage | abstract public String getMessage(String key)(Code) | | Abstract method used to obtain a message
String given a key
Parameters: key - the key used to lookup a String the returned String if a message is found matching the key |
getResourceBundlePath | public String getResourceBundlePath()(Code) | | Accessor for obtaining the path to the resource bundle used by a DataGridResourceProvider
implementation.
the path to the ResourceBundle |
internalFormatMessage | protected String internalFormatMessage(String pattern, Object[] args)(Code) | | Internal convenience method that is used to format a message given a pattern
and a set of arguments.
Parameters: pattern - the pattern to format Parameters: args - the arguments to use when formatting the formatted string |
isEnableChaining | public boolean isEnableChaining()(Code) | | Accessor for determining if implementations are chaining enabled. When chaining
is enabled, subclasses must use any nested DataGridResourceProvider instances to
lookup messages. When chaining is enabled, the default messages for the data grid
will be returned. When chaining is disabled, implementations are free to
hide message keys.
true if chaining is enabled; false otherwise |
setEnableChaining | public void setEnableChaining(boolean enableChaining)(Code) | | Setter for enabling or disabling chaining
Parameters: enableChaining - the new chaining enabled value |
setLocale | public void setLocale(Locale locale)(Code) | | Set the
Locale in which a message
String should be looked up.
Parameters: locale - the Locale to use |
setResourceBundlePath | public void setResourceBundlePath(String resourceBundlePath)(Code) | | Set the path used for creating a
ResourceBundle object.
Parameters: resourceBundlePath - the path to a resource bundle |
|
|
|