Class LocalizedWAComponent

    • Constructor Detail

      • LocalizedWAComponent

        public LocalizedWAComponent​(WAComponent component,
                                    String lang)
    • Method Detail

      • getRouter

        public String getRouter()
      • getSuite

        public String getSuite()
      • isPortlet

        public boolean isPortlet()
      • isVisibleInPersonalSpace

        public boolean isVisibleInPersonalSpace()
      • 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.