Class JavaScriptTagHelper
- 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.JavaScriptTagHelper
-
public class JavaScriptTagHelper extends AbstractNoBodyTagHelper
Helper for theJavaScriptTag
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 JavaScriptTagHelper()
-
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 specified in the tag (if existing).void
setEventName(java.lang.String value)
Sets the value assigned to the eventName attribute of the custom tag instance that uses this helpervoid
setForIframeUpdate(boolean value)
Sets the value assigned to the forIframeUpdate 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
setType(java.lang.String value)
Sets the type attribute of javascript tag.-
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
-
-
-
-
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 specified in the tag (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.
-
setEventName
public void setEventName(java.lang.String value)
Sets the value assigned to the eventName attribute of the custom tag instance that uses this helper- Parameters:
value
-String
with the name of the event to look for.
-
setForIframeUpdate
public void setForIframeUpdate(boolean value)
Sets the value assigned to the forIframeUpdate attribute of the custom tag instance that uses this helper- Parameters:
value
-boolean
indicating if the JavaScript is for IFrame update or not.
-
setType
public void setType(java.lang.String value)
Sets the type attribute of javascript tag.- Since:
- MicroStrategy Web 9.0.0
-
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
-
-