Class SummaryKeyValueText

    • Constructor Detail

      • SummaryKeyValueText

        public SummaryKeyValueText​(String displayText,
                                   boolean displayTextHtml,
                                   boolean displayTextI18n,
                                   String displayTextStyle,
                                   String displayTextStyleClass)
    • Method Detail

      • isDisplayTextI18n

        public boolean isDisplayTextI18n()
        Specified by:
        isDisplayTextI18n in interface ISummaryKeyValueText
        Returns:
        Whether the text is an i18n key for a resource bundle, or literal text. If the former, the key is looked up in the custom resource bundle of the workflow element handler first, then in the built-in resource bundle of FORMCYCLE.
      • with

        public static ISummaryKeyValueText with​(String text)
        Parameters:
        text - Localized text .
        Returns:
        A new text wrapper for the given text.
      • with

        public static ISummaryKeyValueText with​(String text,
                                                boolean html)
        Parameters:
        text - Localized text .
        html - Whether the text contains HTML content. If true, the text will be inserted into the HTML without any post-processing. Otherwise, special characters are escaped for HTML.
        Returns:
        A new text wrapper for the given text.
      • with

        public static ISummaryKeyValueText with​(String text,
                                                boolean html,
                                                String style,
                                                String styleClass)
        Parameters:
        text - Localized text .
        html - Whether the text contains HTML content. If true, the text will be inserted into the HTML without any post-processing. Otherwise, special characters are escaped for HTML.
        style - Inline style for text.
        styleClass - Style class for text
        Returns:
        A new text wrapper for the given text.
      • withI18n

        public static ISummaryKeyValueText withI18n​(String i18nKey)
        Parameters:
        i18nKey - Key for the text.
        Returns:
        A new text wrapper for the given text.
      • withI18n

        public static ISummaryKeyValueText withI18n​(String i18nKey,
                                                    boolean html)
        Parameters:
        i18nKey - Key for the text.
        html - Whether the text contains HTML content. If true, the text will be inserted into the HTML without any post-processing. Otherwise, special characters are escaped for HTML.
        Returns:
        A new text wrapper for the given text.
      • withI18n

        public static ISummaryKeyValueText withI18n​(String i18nKey,
                                                    boolean html,
                                                    String style,
                                                    String styleClass)
        Parameters:
        i18nKey - Key for the text.
        html - Whether the text contains HTML content. If true, the text will be inserted into the HTML without any post-processing. Otherwise, special characters are escaped for HTML.
        style - Inline style for text.
        styleClass - Style class for text
        Returns:
        A new text wrapper for the given text.