public class LocalizedOptionCategoryDefinition extends java.lang.Object implements OptionCategoryDefinition
Constructor and Description |
---|
LocalizedOptionCategoryDefinition(java.lang.Class<? extends ModuleType> moduleType,
java.lang.String key,
LocalisationBundleLoader bundleLoader) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription(java.util.Locale locale)
Returns a localized description for the category
|
java.lang.String |
getKey()
Returns the key of the option category, which is the string returned by
OptionDefinition.getCategory() |
java.lang.Class<? extends ModuleType> |
getModuleType()
Returns the module type for which this category is registered
|
java.lang.String |
getTitle(java.util.Locale locale)
Returns a localized title for the category
|
public LocalizedOptionCategoryDefinition(java.lang.Class<? extends ModuleType> moduleType, java.lang.String key, LocalisationBundleLoader bundleLoader)
moduleType
- The module type for which the option category is to be registeredkey
- The name of the categorybundleLoader
- A bundle loader to load localized information frompublic java.lang.String getDescription(java.util.Locale locale)
OptionCategoryDefinition
getDescription
in interface OptionCategoryDefinition
public java.lang.String getKey()
OptionCategoryDefinition
OptionDefinition.getCategory()
getKey
in interface OptionCategoryDefinition
public java.lang.String getTitle(java.util.Locale locale)
OptionCategoryDefinition
getTitle
in interface OptionCategoryDefinition
public java.lang.Class<? extends ModuleType> getModuleType()
OptionCategoryDefinition
getModuleType
in interface OptionCategoryDefinition