Package org.opencms.gwt
Class A_CmsClientMessageBundle
java.lang.Object
org.opencms.gwt.A_CmsClientMessageBundle
- All Implemented Interfaces:
I_CmsClientMessageBundle
- Direct Known Subclasses:
ClientMessages
,ClientMessages
,ClientMessages
,ClientMessages
,ClientMessages
,ClientMessages
,ClientMessages
,ClientMessages
,ClientMessages
Convenience class to access the localized messages of this OpenCms package.
Intended only for test cases.
- Since:
- 8.0.0
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Hides the public constructor for this utility class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the JSON code for this resource bundle and given locale.Returns the JSON code for this resource bundle and given locale.Returns the JSON code for this resource bundle and given locale.export
(javax.servlet.http.HttpServletRequest request) Returns the JSON code for this resource bundle and the default locale.Returns the bundle name for this OpenCms package.Class<?>
Returns the class of the client implementation.importMessage
(String key, Locale locale) Imports a message from another bundle.
-
Field Details
-
IMPORT_PREFIX
Prefix for imported message values.- See Also:
-
-
Constructor Details
-
A_CmsClientMessageBundle
protected A_CmsClientMessageBundle()Hides the public constructor for this utility class.
-
-
Method Details
-
export
Description copied from interface:I_CmsClientMessageBundle
Returns the JSON code for this resource bundle and the default locale.- Specified by:
export
in interfaceI_CmsClientMessageBundle
- Parameters:
request
- the current request to get the default locale from- Returns:
- the JSON code
- See Also:
-
export
Description copied from interface:I_CmsClientMessageBundle
Returns the JSON code for this resource bundle and given locale.- Specified by:
export
in interfaceI_CmsClientMessageBundle
- Parameters:
locale
- the locale to export- Returns:
- the JSON code
- See Also:
-
export
Description copied from interface:I_CmsClientMessageBundle
Returns the JSON code for this resource bundle and given locale.- Specified by:
export
in interfaceI_CmsClientMessageBundle
- Parameters:
locale
- the locale to exportwrapScript
-true
to wrap the data in a script tag- Returns:
- the JSON code
- See Also:
-
export
Description copied from interface:I_CmsClientMessageBundle
Returns the JSON code for this resource bundle and given locale.- Specified by:
export
in interfaceI_CmsClientMessageBundle
- Parameters:
localeName
- the name of the locale to export- Returns:
- the JSON code
- See Also:
-
getBundleName
Description copied from interface:I_CmsClientMessageBundle
Returns the bundle name for this OpenCms package.- Specified by:
getBundleName
in interfaceI_CmsClientMessageBundle
- Returns:
- the bundle name for this OpenCms package
- See Also:
-
getClientImpl
Description copied from interface:I_CmsClientMessageBundle
Returns the class of the client implementation.- Specified by:
getClientImpl
in interfaceI_CmsClientMessageBundle
- Returns:
- the class of the client implementation
- Throws:
Exception
- if something goes wrong- See Also:
-
importMessage
Imports a message from another bundle.- Parameters:
key
- a key of the form classname#MESSAGE_FIELD_NAMElocale
- the locale for which to import the message- Returns:
- the imported message string
-