Class LocalizedParameter
- java.lang.Object
-
- org.silverpeas.core.admin.component.model.LocalizedParameter
-
public class LocalizedParameter extends Object
- Author:
- ehugonnet
-
-
Constructor Summary
Constructors Constructor Description LocalizedParameter(LocalizedGroupOfParameters bundle, Parameter parameter)
LocalizedParameter(SilverpeasComponent component, Parameter parameter, String lang)
-
Method Summary
-
-
-
Constructor Detail
-
LocalizedParameter
public LocalizedParameter(LocalizedGroupOfParameters bundle, Parameter parameter)
-
LocalizedParameter
public LocalizedParameter(SilverpeasComponent component, Parameter parameter, String lang)
-
-
Method Detail
-
toLocalizedParameter
public static LocalizedParameter toLocalizedParameter(SilverpeasComponent component, Parameter parameter, String lang)
This static method is useful into JSTL context.- See Also:
silverFunction.tld
-
getBundleKeyPrefix
protected String getBundleKeyPrefix()
-
getHelp
public String getHelp()
-
getWarning
public Optional<LocalizedWarning> getWarning()
-
getLabel
public String getLabel()
-
getName
public String getName()
-
getOptions
public List<LocalizedOption> getOptions()
-
setOptions
public void setOptions(List<LocalizedOption> options)
-
getOrder
public int getOrder()
-
getPersonalSpaceValue
public String getPersonalSpaceValue()
-
getSize
public Integer getSize()
-
getType
public String getType()
-
getUpdatable
public String getUpdatable()
-
getValue
public String getValue()
-
isAlwaysUpdatable
public boolean isAlwaysUpdatable()
-
isCheckbox
public boolean isCheckbox()
-
isHidden
public boolean isHidden()
-
isMandatory
public boolean isMandatory()
-
isNeverUpdatable
public boolean isNeverUpdatable()
-
isRadio
public boolean isRadio()
-
isSelect
public boolean isSelect()
-
isText
public boolean isText()
-
isUpdatableOnCreationOnly
public boolean isUpdatableOnCreationOnly()
-
isVisible
public boolean isVisible()
-
isXmlTemplate
public boolean isXmlTemplate()
-
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.
-
-