Interface I18NBean<T extends Translation>

    • Method Detail

      • getTranslations

        Map<String,​T> getTranslations()
        Gets all the actually translations handled by this bean.
        Returns:
        a map with as key the ISO 631-1 code of a language and as value the translation in that language.
      • getNextTranslation

        T getNextTranslation()
        Browses the different supported languages for a translation. The browsing starts with the default language as defined by the property I18n.getDefaultLanguage().
        Returns:
        a translation.
      • setLanguage

        void setLanguage​(String language)
        Sets the language in which the default values of the textual properties of the bean are set. By default, the language of those values are in the language defined by the I18n.getDefaultLanguage() method
        Parameters:
        language - the language.
      • setTranslationId

        void setTranslationId​(String translationId)
        Sets a unique identifier for the translation by default of the bean (the default values of the textual properties of the bean).
        Parameters:
        translationId - a unique identifier of the default translation.
      • setRemoveTranslation

        void setRemoveTranslation​(boolean remove)