Class ValueTagHelper
- 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.ValueTagHelper
-
public class ValueTagHelper extends AbstractNoBodyTagHelper
Helper for theValueTag
tag library.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
Fields Modifier and Type Field Description protected static ScriptVariableJSONEncoder
scriptEndTagEncoder
-
Fields inherited from class com.microstrategy.web.app.taglibs.MstrPageTagHelper
_mstrPage
-
-
Constructor Summary
Constructors Constructor Description ValueTagHelper()
-
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()
Obtains the contents to render based on the attributes defined (if existing).protected java.util.Properties
getRegExpDefinitions()
void
setAttribute(java.lang.String value)
Sets the value assigned to the attribute attribute of the custom tag instance that uses this helpervoid
setName(java.lang.String value)
Indicates the name of the variable whose value we are supposed to render.void
setPostContent(java.lang.String value)
Set the value to appear after the value of this tagvoid
setPreContent(java.lang.String value)
Sets the value to appear before the value of this tagvoid
setPropsetName(java.lang.String value)
Sets the value assigned to the propsetName attribute of the custom tag instance that uses this helpervoid
setType(java.lang.String value)
Indicates the type of the variable whose value we are supposed to render.-
Methods inherited from class com.microstrategy.web.app.taglibs.MstrPageTagHelper
getContainerServices, newHiddenInputBuilder, newURIBuilder, resolveNumericAttribute, setPageComponent
-
Methods inherited from class com.microstrategy.web.app.taglibs.CoreTagHelper
getTagsFactory
-
-
-
-
Field Detail
-
scriptEndTagEncoder
protected static final ScriptVariableJSONEncoder scriptEndTagEncoder
-
-
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
-
getContent
public MarkupOutput getContent() throws java.io.IOException
Obtains the contents to render based on the attributes 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.
-
setName
public void setName(java.lang.String value)
Indicates the name of the variable whose value we are supposed to render.- Parameters:
value
- The name of the variable whose value we are supposed to render.
-
setType
public void setType(java.lang.String value)
Indicates the type of the variable whose value we are supposed to render.
The list of valid values for this attribute include:
- requestKey will look for the property name in the
RequestKeys
instance available- browserSetting will look for the property name in the
BrowserSettings
instance available- systemPreference will look for the property name in the
Preferences
instance available for System Preferences- preference will look for the property name in the
Preferences
instance available for User Preferences- config will look for the property name in the configuration parameters as specified in the web.xml file
- enum will look for the property name in the enumeration specified in the name argument.
- browserSpecificCSS will render a string with the name of the CSS to be used based on the user-agent from the browser.
- httpSession will look for the property name in the httpSession stored in ServiceContainer instance
- Parameters:
value
- The type of the variable whose value we are supposed to render.
- requestKey will look for the property name in the
-
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
to which we will assign the value of this tag.
-
setPropsetName
public void setPropsetName(java.lang.String value)
Sets the value assigned to the propsetName attribute of the custom tag instance that uses this helper- Parameters:
value
-String
to which we will assign the value of this tag.
-
setPreContent
public void setPreContent(java.lang.String value)
Sets the value to appear before the value of this tag- Parameters:
value
-String
that will be appear before the value of this tag.- Since:
- MicroStrategy Web 8.0.0
-
setPostContent
public void setPostContent(java.lang.String value)
Set the value to appear after the value of this tag- Parameters:
value
-String
that will be appear after the value of this tag.- Since:
- MicroStrategy Web 8.0.0
-
getRegExpDefinitions
protected java.util.Properties getRegExpDefinitions()
- Returns:
- a Properties object containing all the regular expressions for all different browsers
- Since:
- MicroStrategy Web 8.0.0
-
-