Class TextContainer
java.lang.Object
edu.internet2.middleware.grouper.grouperUi.beans.ui.TextContainer
text container in request for user
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertTextToTooltip
(String key, String value) convert text to tooltipstatic String
convertTooltipTextToHtml
(String tooltipText, String term, boolean isIgnoreTooltipStyle) convert tooltip text to htmlgetText()
text maptext map, escape double quotestext map, escape single quotestext map, escape single and double quotestext map, escape xml including double quotestext map with tooltips if applicablestatic String
massageText
(String key, String value) massage text with substitutions etcstatic String
massageText
(String key, String value, boolean errorIfNotFound) massage text with substitutions etcstatic TextContainer
retrieve the container from the request or create a new one if not theresubstituteTooltips
(String message, boolean isIgnoreTooltipStyle) substitute tooltipsstatic String
textOrNull
(String key) get the text or null if not found
-
Constructor Details
-
TextContainer
public TextContainer()
-
-
Method Details
-
textOrNull
get the text or null if not found- Parameters:
key
-- Returns:
- the text or null if not found
-
retrieveFromRequest
retrieve the container from the request or create a new one if not there- Returns:
- the container
-
massageText
massage text with substitutions etc- Parameters:
key
-value
-- Returns:
- the text
-
massageText
massage text with substitutions etc- Parameters:
key
-value
-errorIfNotFound
- true if error text if not found- Returns:
- the text
-
convertTextToTooltip
convert text to tooltip- Parameters:
key
-value
-- Returns:
- the tooltip html
-
substituteTooltips
substitute tooltips- Parameters:
message
-isIgnoreTooltipStyle
- true if should ignore tooltip style- Returns:
- the substituted strings
-
convertTooltipTextToHtml
public static String convertTooltipTextToHtml(String tooltipText, String term, boolean isIgnoreTooltipStyle) convert tooltip text to html- Parameters:
tooltipText
-term
-isIgnoreTooltipStyle
- if tooltip style should be ignored- Returns:
- the html tooltip text
-
getText
text map- Returns:
- the text object
-
getTextWithTooltip
text map with tooltips if applicable- Returns:
- the text object with tooltips
-
getTextEscapeSingle
text map, escape single quotes- Returns:
- the text object
-
getTextEscapeXml
text map, escape xml including double quotes- Returns:
- the text object
-
getTextEscapeDouble
text map, escape double quotes- Returns:
- the text object
-
getTextEscapeSingleDouble
text map, escape single and double quotes- Returns:
- the text object
-