Package de.xima.fc.workflow
Class SummaryKeyValueText
- java.lang.Object
- 
- de.xima.fc.workflow.SummaryKeyValueText
 
- 
- All Implemented Interfaces:
- ISummaryKeyValueText,- Serializable
 
 public final class SummaryKeyValueText extends Object implements ISummaryKeyValueText - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description SummaryKeyValueText(String displayText, boolean displayTextHtml, boolean displayTextI18n, String displayTextStyle, String displayTextStyleClass)SummaryKeyValueText(String displayText, boolean displayTextHtml, boolean displayTextI18n, String displayTextStyle, String displayTextStyleClass, Serializable[] parameters)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ISummaryKeyValueTextempty()StringgetDisplayText()StringgetDisplayTextStyle()StringgetDisplayTextStyleClass()Serializable[]getParameters()booleanisDisplayTextHtml()booleanisDisplayTextI18n()static ISummaryKeyValueTextwith(String text)static ISummaryKeyValueTextwith(String text, boolean html)static ISummaryKeyValueTextwith(String text, boolean html, String style, String styleClass)static ISummaryKeyValueTextwithI18n(String i18nKey)static ISummaryKeyValueTextwithI18n(String i18nKey, boolean html)static ISummaryKeyValueTextwithI18n(String i18nKey, boolean html, String style, String styleClass)static ISummaryKeyValueTextwithI18n(String i18nKey, boolean html, String style, String styleClass, Serializable... parameters)
 
- 
- 
- 
Constructor Detail- 
SummaryKeyValueTextpublic SummaryKeyValueText(String displayText, boolean displayTextHtml, boolean displayTextI18n, String displayTextStyle, String displayTextStyleClass) 
 - 
SummaryKeyValueTextpublic SummaryKeyValueText(String displayText, boolean displayTextHtml, boolean displayTextI18n, String displayTextStyle, String displayTextStyleClass, Serializable[] parameters) 
 
- 
 - 
Method Detail- 
getDisplayTextpublic String getDisplayText() - Specified by:
- getDisplayTextin interface- ISummaryKeyValueText
- Returns:
- The data to display.
 
 - 
getDisplayTextStylepublic String getDisplayTextStyle() - Specified by:
- getDisplayTextStylein interface- ISummaryKeyValueText
- Returns:
- Inline style for the text .
 
 - 
getDisplayTextStyleClasspublic String getDisplayTextStyleClass() - Specified by:
- getDisplayTextStyleClassin interface- ISummaryKeyValueText
- Returns:
- Style class for the text.
 
 - 
getParameterspublic Serializable[] getParameters() - Specified by:
- getParametersin interface- ISummaryKeyValueText
- Returns:
- Optional parameters for the message, when ISummaryKeyValueText.isDisplayTextI18n()istrue.
 
 - 
isDisplayTextHtmlpublic boolean isDisplayTextHtml() - Specified by:
- isDisplayTextHtmlin interface- ISummaryKeyValueText
- Returns:
- Whether the text contains HTML content. If true, theISummaryKeyValueText.getDisplayText()will be inserted into the HTML without any post-processing. Otherwise, special characters are escaped for HTML.
 
 - 
isDisplayTextI18npublic boolean isDisplayTextI18n() - Specified by:
- isDisplayTextI18nin 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.
 
 - 
emptypublic static ISummaryKeyValueText empty() - Returns:
- A new text wrapper with no text.
 
 - 
withpublic static ISummaryKeyValueText with(String text) - Parameters:
- text- Localized text .
- Returns:
- A new text wrapper for the given text.
 
 - 
withpublic 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.
 
 - 
withpublic 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.
 
 - 
withI18npublic static ISummaryKeyValueText withI18n(String i18nKey) - Parameters:
- i18nKey- Key for the text.
- Returns:
- A new text wrapper for the given text.
 
 - 
withI18npublic 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.
 
 - 
withI18npublic 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.
 
 - 
withI18npublic static ISummaryKeyValueText withI18n(String i18nKey, boolean html, String style, String styleClass, Serializable... parameters) - 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
- parameters- Optional parameters for the i18n message.
- Returns:
- A new text wrapper for the given text.
 
 
- 
 
-