public final class ApplicationResources extends Object
A class defining constants for default resources provided by the application framework.
Some components of the JGUIraffe library can produce messages visible to the end user. The messages are defined as resource IDs, so they can be translated into different languages. This class defines constants for these messages. They correspond to resource keys used by the default application resource bundle shipped with the library.
Typically a concrete application can use this default messages. It is also possible to override them with custom resource IDs. The message producing components typically allow specifying custom resource IDs.
Modifier and Type | Class and Description |
---|---|
static class |
ApplicationResources.Keys
An enumeration class defining the keys of all resources contained within
the application default resource bundle.
|
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_RESOURCE_GROUP
Constant for the name of the resource group used for the
application-related resources.
|
Modifier and Type | Method and Description |
---|---|
static Message |
message(ApplicationResources.Keys key)
Returns a
Message object for the specified enumeration literal. |
static Object |
resourceID(ApplicationResources.Keys key)
A convenience method for generating the resource ID for the specified
enumeration literal.
|
public static final String APPLICATION_RESOURCE_GROUP
public static Object resourceID(ApplicationResources.Keys key)
key
- the key (must not be null)IllegalArgumentException
- if the key is nullpublic static Message message(ApplicationResources.Keys key)
Message
object for the specified enumeration literal.
This object is initialized with the default application resource group
and the resource ID extracted from the literal.key
- the key (must not be null)Message
object for this keyIllegalArgumentException
- if the key is nullCopyright © 2016 The JGUIraffe Team. All rights reserved.