Class EventTagHelper
- java.lang.Object
-
- com.microstrategy.web.app.taglibs.CoreTagHelper
-
- com.microstrategy.web.app.taglibs.MstrPageTagHelper
-
- com.microstrategy.web.app.taglibs.AbstractBodyTagHelper
-
- com.microstrategy.web.app.taglibs.EventTagHelper
-
- Direct Known Subclasses:
FormEventTagHelper,UrlEventTagHelper
public abstract class EventTagHelper extends AbstractBodyTagHelper
Helper for theEventTagtag library.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String_linkAttributesProperty used for saving the value of the linkAttributes tag attribute specified by the userprotected java.lang.StringbaseBeanProperty used for saving the value of the baseBean tag attribute specified by the userprotected booleancheckEnabledIndicates if the event has already been checked if it's enabled or not, regardless of the resultprotected java.lang.StringcssClassProperty used for saving the value of the cssClass tag attribute specified by the userprotected java.lang.StringenabledCssClassProperty used for saving the value of the enabledCssClass tag attribute specified by the userprotected java.lang.StringenableEventProperty used for saving the value of the enableEvent tag attribute specified by the userprotected WebEventeventEvent to use, generated based on the eventID tag attributeprotected java.lang.ExceptioneventExprotected java.lang.StringeventIDProperty used for saving the value of the eventID tag attribute specified by the userprotected java.lang.StringextraURLProperty used for saving the value of the extraURL tag attribute specified by the userprotected booleanincludeStateProperty used for saving the value of the includeState tag attribute specified by the userprotected static intLINK_DISABLEDConstant that indicates the event is disabledprotected static intLINK_ENABLEDConstant that indicates the event is enabledprotected static intLINK_UNKNOWNConstant that indicates the event has not yet been determined to be enabled or not.protected intlinkIsEnabledProperty that indicates if the event is enabled or not, using theLINK_UNKNOWN,LINK_ENABLEDorLINK_DISABLEDvaluesprotected java.lang.StringrelProperty used for saving the value of the rel tag attribute specified by the userprotected intstateLevelProperty used for saving the value of the stateLevel tag attribute specified by the userprotected java.lang.StringtargetProperty used for saving the value of the target tag attribute specified by the userprotected java.lang.StringtitleIDProperty used for saving the value of the titleID tag attribute specified by the user.-
Fields inherited from class com.microstrategy.web.app.taglibs.MstrPageTagHelper
_mstrPage
-
-
Constructor Summary
Constructors Constructor Description EventTagHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventArgument(java.lang.String name, java.lang.String value, java.lang.String type, java.lang.String base)Utility method for adding an event argument to the event definition of this tag.voidcleanState()Resets the state of the tag library, by cleaning the values of the properties initialized for this tag.protected WebEventgetEvent()Based on the eventID tag attribute, creates the event to use for this tag, considering the base bean (specified on the baseBean attribute.booleanisLinkEnabled()Indicates if the link (URL) information related with this tag is enabled or not, based on the feature indicated on the enableEvent attribute.booleanisTagVisible()Indicates if the tag is visible or not.voidsetBaseBean(java.lang.String value)Sets the value assigned to the baseBean attribute of the custom tag instance that uses this helpervoidsetCssClass(java.lang.String value)Sets the value assigned to the cssClass attribute of the custom tag instance that uses this helpervoidsetEnabledCssClass(java.lang.String value)Gets the value assigned to the enabledCssClass attribute of the custom tag instance that uses this helpervoidsetEnableEvent(java.lang.String value)Sets the value assigned to the enableEvent attribute of the custom tag instance that uses this helpervoidsetEventID(java.lang.String value)Sets the value assigned to the eventID attribute of the custom tag instance that uses this helpervoidsetExtraURL(java.lang.String value)Sets the value assigned to the extraURL attribute of the custom tag instance that uses this helpervoidsetIncludeState(boolean value)Sets the value assigned to the includeState attribute of the custom tag instance that uses this helpervoidsetLinkAttributes(java.lang.String value)Sets the value assigned to the linkAttributes attribute of the custom tag instance that uses this helpervoidsetRel(java.lang.String value)Sets the value assigned to the rel attribute of the custom tag instance that uses this helpervoidsetStateLevel(int value)Sets the value assigned to the stateLevel attribute of the custom tag instance that uses this helpervoidsetTarget(java.lang.String value)Sets the value assigned to the target attribute of the custom tag instance that uses this helpervoidsetTitleID(java.lang.String value)Sets the value assigned to the titleID attribute of the custom tag instance that uses this helperbooleanshallRepeatTag()Indicates if the content of the tag should be analyzed and displayed again or not.-
Methods inherited from class com.microstrategy.web.app.taglibs.AbstractBodyTagHelper
getContentHead, getContentTail
-
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
-
LINK_UNKNOWN
protected static final int LINK_UNKNOWN
Constant that indicates the event has not yet been determined to be enabled or not.- See Also:
- Constant Field Values
-
LINK_ENABLED
protected static final int LINK_ENABLED
Constant that indicates the event is enabled- See Also:
- Constant Field Values
-
LINK_DISABLED
protected static final int LINK_DISABLED
Constant that indicates the event is disabled- See Also:
- Constant Field Values
-
eventEx
protected java.lang.Exception eventEx
- Since:
- MicroStrategy Web 7.5.1
-
cssClass
protected java.lang.String cssClass
Property used for saving the value of the cssClass tag attribute specified by the user
-
eventID
protected java.lang.String eventID
Property used for saving the value of the eventID tag attribute specified by the user
-
target
protected java.lang.String target
Property used for saving the value of the target tag attribute specified by the user
-
rel
protected java.lang.String rel
Property used for saving the value of the rel tag attribute specified by the user
-
includeState
protected boolean includeState
Property used for saving the value of the includeState tag attribute specified by the user
-
stateLevel
protected int stateLevel
Property used for saving the value of the stateLevel tag attribute specified by the user
-
enableEvent
protected java.lang.String enableEvent
Property used for saving the value of the enableEvent tag attribute specified by the user
-
extraURL
protected java.lang.String extraURL
Property used for saving the value of the extraURL tag attribute specified by the user
-
baseBean
protected java.lang.String baseBean
Property used for saving the value of the baseBean tag attribute specified by the user
-
_linkAttributes
protected java.lang.String _linkAttributes
Property used for saving the value of the linkAttributes tag attribute specified by the user- Since:
- MicroStrategy Web 8.0.0
-
enabledCssClass
protected java.lang.String enabledCssClass
Property used for saving the value of the enabledCssClass tag attribute specified by the user
-
event
protected WebEvent event
Event to use, generated based on the eventID tag attribute
-
checkEnabled
protected boolean checkEnabled
Indicates if the event has already been checked if it's enabled or not, regardless of the result
-
linkIsEnabled
protected int linkIsEnabled
Property that indicates if the event is enabled or not, using theLINK_UNKNOWN,LINK_ENABLEDorLINK_DISABLEDvalues
-
titleID
protected java.lang.String titleID
Property used for saving the value of the titleID tag attribute specified by the user. this should be descriptor id.- Since:
- MicroStrategy Web 9.0.0
-
-
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:
cleanStatein classMstrPageTagHelper
-
isTagVisible
public boolean isTagVisible()
Indicates if the tag is visible or not. In this case, it checks if there's a valid event associated with the tag.- Specified by:
isTagVisiblein classAbstractBodyTagHelper- Returns:
- a
booleanvalue indicating if the tag is visible or not.
-
shallRepeatTag
public boolean shallRepeatTag()
Indicates if the content of the tag should be analyzed and displayed again or not.- Specified by:
shallRepeatTagin classAbstractBodyTagHelper- Returns:
- a
booleanvalue indicating if the tag contents should be analyzed again or not.
-
isLinkEnabled
public boolean isLinkEnabled()
Indicates if the link (URL) information related with this tag is enabled or not, based on the feature indicated on the enableEvent attribute.- Returns:
- a
booleanvalue indicating if the link is enabled or not.
-
addEventArgument
public void addEventArgument(java.lang.String name, java.lang.String value, java.lang.String type, java.lang.String base)Utility method for adding an event argument to the event definition of this tag. Typically, this method will be called by theEventArgumentTagcustom tag defined as child.- Parameters:
name- full package, class name and constant that identifies the argument name to add to the eventvalue- value to assign to the event argumenttype- to specify if the event value will come from another event (value would beeventParameter)base- full package, class name and constant that identifies the event which will be used as base for defining the main event argument value.
-
setCssClass
public void setCssClass(java.lang.String value)
Sets the value assigned to the cssClass attribute of the custom tag instance that uses this helper- Parameters:
value-Stringvalue that defines the css class to use.
-
setEventID
public void setEventID(java.lang.String value)
Sets the value assigned to the eventID attribute of the custom tag instance that uses this helper- Parameters:
value-Stringvalue that defines the event to use for this tag.
-
setTarget
public void setTarget(java.lang.String value)
Sets the value assigned to the target attribute of the custom tag instance that uses this helper- Parameters:
value-Stringvalue that defines the target information for the event.
-
setRel
public void setRel(java.lang.String value)
Sets the value assigned to the rel attribute of the custom tag instance that uses this helper- Parameters:
value-Stringvalue that defines the relationship type for this link.
-
setIncludeState
public void setIncludeState(boolean value)
Sets the value assigned to the includeState attribute of the custom tag instance that uses this helper- Parameters:
value-booleanvalue that indicates if the states of the beans should be added to the resulting URL information.
-
setStateLevel
public void setStateLevel(int value)
Sets the value assigned to the stateLevel attribute of the custom tag instance that uses this helper- Parameters:
value-intvalue that indicates the level of information of the bean states to use.
-
setEnableEvent
public void setEnableEvent(java.lang.String value)
Sets the value assigned to the enableEvent attribute of the custom tag instance that uses this helper- Parameters:
value-Stringvalue that indicates the feature to check for enabling the event.
-
setEnabledCssClass
public void setEnabledCssClass(java.lang.String value)
Gets the value assigned to the enabledCssClass attribute of the custom tag instance that uses this helper- Parameters:
value-Stringvalue that defines the css to use for the enabled events.
-
setExtraURL
public void setExtraURL(java.lang.String value)
Sets the value assigned to the extraURL attribute of the custom tag instance that uses this helper- Parameters:
value-Stringvalue with the extra attributes to include on the HTML tag to create for this event.
-
setBaseBean
public void setBaseBean(java.lang.String value)
Sets the value assigned to the baseBean attribute of the custom tag instance that uses this helper- Parameters:
value-intvalue that indicates the base bean for the event to generate.
-
setLinkAttributes
public void setLinkAttributes(java.lang.String value)
Sets the value assigned to the linkAttributes attribute of the custom tag instance that uses this helper- Parameters:
value-Stringvalue that indicates the extra attributes to be added to the anchor tag.- Since:
- MicroStrategy Web 8.0.0
-
setTitleID
public void setTitleID(java.lang.String value)
Sets the value assigned to the titleID attribute of the custom tag instance that uses this helper- Parameters:
value-Stringwith the title id to be added.- Since:
- MicroStrategy Web 9.0.0
-
-