Class LocalizedComponent
- java.lang.Object
-
- org.silverpeas.core.admin.component.model.LocalizedComponent
-
- Direct Known Subclasses:
LocalizedWAComponent
public class LocalizedComponent extends Object
- Author:
- ehugonnet
-
-
Constructor Summary
Constructors Constructor Description LocalizedComponent(AbstractSilverpeasComponent component, String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComponentName()
String
getDescription()
String
getLabel()
String
getLanguage()
protected String
getLocalized(String bundleKey, Map<String,String> messages)
Gets the localized data first into bundle property files if any, then into map of translations.String
getName()
boolean
isVisible()
-
-
-
Constructor Detail
-
LocalizedComponent
public LocalizedComponent(AbstractSilverpeasComponent component, String lang)
-
-
Method Detail
-
getDescription
public String getDescription()
-
getLabel
public String getLabel()
-
getName
public String getName()
-
isVisible
public boolean isVisible()
-
getComponentName
public String getComponentName()
-
getLanguage
public String getLanguage()
-
getLocalized
protected String getLocalized(String bundleKey, Map<String,String> messages)
Gets the localized data first into bundle property files if any, then into map of translations.- Parameters:
bundleKey
- the bundle key.messages
- the map of translations extracted from XML component descriptors.- Returns:
- the localized data as string.
- Throws:
MissingResourceException
- if no translation can be found from the different resource locations.
-
-