public interface IlrDTResourceManager
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
java.util.Locale |
getDisplayLocale()
This method returns the display locale that may have been set on this
resource manager.
|
IlrDTContext |
getDTContext()
This method returns the DT Context to which this resource manager is
associated.
|
java.lang.Object |
getLocalizedResource(DTModelElement dtModelElement,
IlrDecorableElement dtElement,
java.lang.String key,
java.lang.Object defaultValue)
This method returns the locale-specific resource associated to the given DT
element registered for the given key or the default value if such a
resource does not exist.
|
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] args,
java.lang.String defaultValue)
This method returns a locale-specific message that has been registered with
the given key.
|
java.lang.String |
getPreference(java.lang.String key,
java.lang.String defaultValue)
This method returns the preference registered using the given key or the
provided default value if the preference is not found.
|
java.lang.Object |
getResource(DTModelElement dtModelElement,
IlrDecorableElement dtElement,
java.lang.String key,
java.lang.Object defaultValue)
This method returns a locale-independent resource associated to the given DT
element registered for the given key or the default value if such a
resource does not exist.
|
void |
setDisplayLocale(java.util.Locale locale)
This method set a Display Locale to this resource manager.
|
void |
setLocalizedResource(DTModelElement dtModelElement,
IlrDecorableElement dtElement,
java.lang.String key,
java.lang.Object value)
This method allows setting a locale-specific resource on the given DT
Element.
|
void |
setResource(DTModelElement dtModelElement,
IlrDecorableElement dtElement,
java.lang.String key,
java.lang.Object value)
This method allows setting a locale-independent resource on the given DT
Element.
|
IlrDTContext getDTContext()
java.util.Locale getDisplayLocale()
void setDisplayLocale(java.util.Locale locale)
locale - the new Display Locale or null to use the locale of the DT
artifact as the Display Locale.java.lang.String getPreference(java.lang.String key,
java.lang.String defaultValue)
key - the key of the preference to searchdefaultValue - the default value returned if the preference is not foundjava.lang.String getMessage(java.lang.String key,
java.lang.Object[] args,
java.lang.String defaultValue)
key - the message keyargs - the message arguments. Can be null.defaultValue - the default valuejava.lang.Object getLocalizedResource(DTModelElement dtModelElement, IlrDecorableElement dtElement, java.lang.String key, java.lang.Object defaultValue)
dtModelElement - the model element associated to the DT element if this one is not already a DT Model ElementdtElement - the DT element for which the resource has been registeredkey - the resource keydefaultValue - void setLocalizedResource(DTModelElement dtModelElement, IlrDecorableElement dtElement, java.lang.String key, java.lang.Object value)
dtModelElement - the model element associated to the DT element if this one is not already a DT Model ElementdtElement - the DT element to which the resource is setkey - the key to register the resourcevalue - the value of the resourcejava.lang.Object getResource(DTModelElement dtModelElement, IlrDecorableElement dtElement, java.lang.String key, java.lang.Object defaultValue)
dtModelElement - the model element associated to the DT element if this one is not already a DT Model ElementdtElement - the DT element for which the resource has been registeredkey - the resource keydefaultValue - void setResource(DTModelElement dtModelElement, IlrDecorableElement dtElement, java.lang.String key, java.lang.Object value)
dtModelElement - the model element associated to the DT element if this one is not already a DT Model ElementdtElement - the DT element to which the resource is setkey - the key to register the resourcevalue - the value of the resource© Copyright IBM Corp. 1987, 2017