Class StringTagHelper
- java.lang.Object
-
- com.microstrategy.web.app.taglibs.CoreTagHelper
-
- com.microstrategy.web.app.taglibs.MstrPageTagHelper
-
- com.microstrategy.web.app.taglibs.AbstractNoBodyTagHelper
-
- com.microstrategy.web.app.taglibs.StringTagHelper
-
public class StringTagHelper extends AbstractNoBodyTagHelper
Helper for theStringTag
tag library.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.taglibs.MstrPageTagHelper
_mstrPage
-
-
Constructor Summary
Constructors Constructor Description StringTagHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanState()
Resets the state of the tag library, by cleaning the values of the properties initialized for this tag.MarkupOutput
getContent()
Obtaisn the contents to render based on the attributes that have been defined (if existing).void
setAttribute(java.lang.String value)
Sets the value assigned to the attribute attribute of the custom tag instance that uses this helpervoid
setBeanType(java.lang.String value)
Sets the value assigned to the beanType attribute of the custom tag instance that uses this helpervoid
setDesc(java.lang.String value)
Sets the value assigned to the desc attribute of the custom tag instance that uses this helpervoid
setJsEncode(boolean value)
Sets the value assigned to the jsEncode attribute of the custom tag instance.void
setKey(java.lang.String value)
Sets the value assigned to the key attribute of the custom tag instance that uses this helpervoid
setPageComponent(PageComponent mstrPage)
Sets thePageComponent
instance that will be used as base for the tag when generating the HTML to return to the user.void
setReplaceValue(java.lang.String value)
Sets the value assigned to the replaceValue attribute of the custom tag instance that uses this helpervoid
setType(java.lang.String value)
Sets the value assigned to the type attribute of the custom tag instance that uses this helpervoid
setUcase(boolean value)
Sets the value assigned to the ucase attribute of the custom tag instance that uses this helper-
Methods inherited from class com.microstrategy.web.app.taglibs.MstrPageTagHelper
getContainerServices, newHiddenInputBuilder, newURIBuilder, resolveNumericAttribute
-
Methods inherited from class com.microstrategy.web.app.taglibs.CoreTagHelper
getTagsFactory
-
-
-
-
Method Detail
-
cleanState
public void cleanState()
Resets the state of the tag library, by cleaning the values of the properties initialized for this tag.- Overrides:
cleanState
in classMstrPageTagHelper
-
setPageComponent
public void setPageComponent(PageComponent mstrPage)
Sets thePageComponent
instance that will be used as base for the tag when generating the HTML to return to the user.- Overrides:
setPageComponent
in classMstrPageTagHelper
- Parameters:
mstrPage
-PageComponent
instance corresponding to the page to be shown to the user as a result of his request.
-
getContent
public MarkupOutput getContent() throws java.io.IOException
Obtaisn the contents to render based on the attributes that have been defined (if existing).- Specified by:
getContent
in classAbstractNoBodyTagHelper
- Returns:
- a
MarkupOutput
instance initialized with the contents to display - Throws:
java.io.IOException
- if an error happens while getting the contents to render.
-
setKey
public void setKey(java.lang.String value)
Sets the value assigned to the key attribute of the custom tag instance that uses this helper- Parameters:
value
-String
with the key to search for.
-
setDesc
public void setDesc(java.lang.String value)
Sets the value assigned to the desc attribute of the custom tag instance that uses this helper- Parameters:
value
-String
with an alternative description to use if the key is not found.
-
setUcase
public void setUcase(boolean value)
Sets the value assigned to the ucase attribute of the custom tag instance that uses this helper- Parameters:
value
-boolean
indicating if the descriptor should be changed to be all upper case font.
-
setReplaceValue
public void setReplaceValue(java.lang.String value)
Sets the value assigned to the replaceValue attribute of the custom tag instance that uses this helper- Parameters:
value
-String
to use for replacing the##
substring in the descriptor, if any are found.
-
setAttribute
public void setAttribute(java.lang.String value)
Sets the value assigned to the attribute attribute of the custom tag instance that uses this helper- Parameters:
value
-String
indicating the name of the HTML attribute tag value to create with the descriptor found as value.
-
setType
public void setType(java.lang.String value)
Sets the value assigned to the type attribute of the custom tag instance that uses this helper- Parameters:
value
-String
with the type of descriptor to be displayed.
-
setBeanType
public void setBeanType(java.lang.String value)
Sets the value assigned to the beanType attribute of the custom tag instance that uses this helper- Parameters:
value
-String
with the type of bean to use for getting the descriptor to display.
-
setJsEncode
public void setJsEncode(boolean value)
Sets the value assigned to the jsEncode attribute of the custom tag instance.- Parameters:
value
-boolean
indicating if the content to display should be javascript encoded- Since:
- MicroStrategy Web 9.0.1
-
-