Class I18NComponent

  • All Implemented Interfaces:
    Component

    public class I18NComponent
    extends SessionDynamicTemplateComponent
    Generates the client side javascript holding the labels defined in modules and the labels defined in core which are configured to be forcibly available in the client.
    Author:
    mtaal
    • Constructor Detail

      • I18NComponent

        public I18NComponent()
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface Component
        Overrides:
        getId in class BaseComponent
        Returns:
        the id of the component, see the id description in the root of this class.
      • generate

        public String generate()
        Description copied from interface: Component
        Generates the content of the component which is sent to the client for execution/rendering.
        Specified by:
        generate in interface Component
        Overrides:
        generate in class BaseTemplateComponent
        Returns:
        the generated javascript which is send back to the client
      • getLabels

        public Collection<I18NComponent.Label> getLabels()
        Read the labels of all modules except core, first read the default labels from the AD_Message table and then reads the language specific labels.
        Returns:
        a collection of labels.