Package com.microstrategy.web.app.beans
Class EventManager
- java.lang.Object
 - 
- com.microstrategy.web.app.beans.EventManager
 
 
- 
public class EventManager extends java.lang.ObjectEventManager Provides utility functions related to WebEvent- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEventManager.EventDescriptorHelper 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_FORM_METHODConstant for specifying the default form methodstatic java.lang.StringDEFAULT_FORM_NAMEConstant for specifying the default form namestatic java.lang.StringFORM_METHOD_GETConstant for specifying the get form methodstatic java.lang.StringFORM_METHOD_POSTConstant for specifying the post form methodstatic java.lang.StringGLOBAL_LINK_CSSConstant for specifying the default global css class for links 
- 
Constructor Summary
Constructors Constructor Description EventManager(boolean useDhtml, boolean useIframe)Simple class constructor.EventManager(AppContext appContext)Class constructor.EventManager(BeanContext beanContext)Class constructor.EventManager(WebComponent webComponent)Class constructor.EventManager(WebComponent webComponent, java.lang.String extraURL, java.lang.String extraInputs)Class constructor 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidfixUrl(ParameterBuilder url)Method for adjusting theParameterBuilderinstance information for handling environments where cookies are not supported.java.lang.StringfixUrl(java.lang.String url)Deprecated.usefixUrl(ParameterBuilder)instead.AnchorTaggenerateAnchor(WebEvent e)Generate anAnchorTaginstance.TaggenerateAnchor(WebEvent e, boolean enableIframe)Generate anAnchorTaginstance.java.lang.StringgenerateDynamicEventLink(WebEvent event)Deprecated.usegetEventLink(WebEvent)instead.TaggenerateForm()TaggenerateForm(WebComponent bean)TaggenerateForm(WebComponent bean, boolean enableIframe)voidgenerateGetOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event)Generate an open form tag for an eventvoidgenerateIframeOpenAnchor(MarkupOutput mo, WebEvent e)Generate an anchor for an IFrame event.voidgenerateIframeOpenAnchor(MarkupOutput mo, WebEvent e, boolean bSubmitForm)Generates anchor for IFrame open event.voidgenerateIframeOpenAnchor(MarkupOutput mo, java.lang.String url, java.lang.String extraLink, java.lang.String extraAttributes)Deprecated.usegenerateAnchor(WebEvent)instead.voidgenerateIframeOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event)Generate an open form tag for an IFrame eventvoidgenerateIframeOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method)Generate an open form tag for an IFrame eventvoidgenerateIframeOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method, boolean appendState)Generate an open form tag for an IFrame eventvoidgenerateIframeOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes, boolean appendState)Generate an open form tag for an IFrame eventvoidgenerateIframeOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action)Generate an open form tag for an IFrame eventvoidgenerateIframeOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method)Generate an open form tag for an IFrame eventvoidgenerateIframeOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, boolean appendState)Generate an open form tag for an IFrame eventvoidgenerateIframeOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes)Generate an open form tag for an IFrame eventvoidgenerateIframeOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes, boolean appendState)Generate an open form tag for an IFrame eventvoidgenerateOpenAnchor(MarkupOutput mo, WebEvent e)Generates an open anchor for an event.voidgenerateOpenAnchor(MarkupOutput mo, WebEvent e, int stateLevel, java.lang.String extraLink, java.lang.String extraAttributes)Deprecated.usegenerateAnchor(WebEvent)instead.voidgenerateOpenAnchor(MarkupOutput mo, WebEvent e, java.lang.String extraLink, java.lang.String extraAttributes)Deprecated.usegenerateAnchor(WebEvent)instead.voidgenerateOpenAnchor(MarkupOutput mo, java.lang.String url)Deprecated.usegenerateAnchor(WebEvent)instead.voidgenerateOpenAnchor(MarkupOutput mo, java.lang.String url, boolean addDynamicState, java.lang.String extraLink, java.lang.String extraAttributes)Deprecated.usegenerateAnchor(WebEvent)instead.voidgenerateOpenAnchor(MarkupOutput mo, java.lang.String url, java.lang.String extraLink, java.lang.String extraAttributes)Deprecated.usegenerateAnchor(WebEvent)instead.voidgenerateOpenAnchor(java.lang.StringBuffer sb, WebEvent e, int stateLevel, java.lang.String extraLink, java.lang.String extraAttributes)Deprecated.usegenerateAnchor(WebEvent)instead.voidgenerateOpenAnchor(java.lang.StringBuffer sb, java.lang.String url, java.lang.String extraLink, java.lang.String extraAttributes)Deprecated.usegenerateAnchor(WebEvent)instead.voidgenerateOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event)Generate an open form tag for an eventvoidgenerateOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method)Generate an open form tag for an eventvoidgenerateOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method, boolean appendState)Generate an open form tag for an eventvoidgenerateOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes)Generate an open form tag for an eventvoidgenerateOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes, boolean appendState)Generate an open form tag for an eventvoidgenerateOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action)Generate an open tag for a form.voidgenerateOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method)Generate an open tag for a form.voidgenerateOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, boolean appendState)Generate an open tag for a form.voidgenerateOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes)Generate an open tag for a form.voidgenerateOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes, boolean appendState)Generate an open tag for a form.java.lang.StringgetEventLink(WebEvent e)Generate the link information according to the event provided as argument.java.lang.StringgetEventLink(WebEvent e, int stateLevel)Generate the link information according to the event provided as argument.java.lang.StringgetEventLink(WebEvent e, java.lang.String extraUrl, int stateLevel)Generate the link information according to the event provided as argumentjava.lang.StringgetExtraInput()java.lang.StringgetExtraUrl()java.lang.StringgetLinkCss()Deprecated.The css property should be specified after the anchor information tag has been generated.static java.lang.StringgetMessageByErrorCode(int errorCode, EventManager.EventDescriptorHelper helper)booleangetUseCookie()Deprecated.- cookieless mode is no longer supported.booleanisUseCss()Deprecated.The css property should be specified after the anchor information tag has been generated.booleanisUseIframe()protected NamespaceEncodernewNamespaceEncoder()Convenience method to retrieve a new instance of aNamespaceEncoderfrom the connectedContainerServicesobject.protected ParameterBuildernewURIBuilder()Convenience method to retrieve a new instance of a URI Builder from the connectedContainerServicesobject.voidsetExtraInput(java.lang.String newValue)Set any extra input information that shall be added to the forms generated by this instancevoidsetExtraUrl(java.lang.String newValue)Set any extra url information that shall be added to the links generated by this instancevoidsetLinkCss(java.lang.String linkCss)Deprecated.The css property should be specified after the anchor information tag has been generated.voidsetUseCss(boolean useCss)Deprecated.The css property should be specified after the anchor information tag has been generated.voidsetUseDhtml(boolean useDhtml)Specify if this instance should handle the links and forms as on a DHTML environment.voidsetUseIframe(boolean useIframe)Specify if this instance should handle the links and forms as on an iframe environment. 
 - 
 
- 
- 
Field Detail
- 
FORM_METHOD_POST
public static final java.lang.String FORM_METHOD_POST
Constant for specifying the post form method- See Also:
 - Constant Field Values
 
 
- 
FORM_METHOD_GET
public static final java.lang.String FORM_METHOD_GET
Constant for specifying the get form method- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_FORM_NAME
public static final java.lang.String DEFAULT_FORM_NAME
Constant for specifying the default form name- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_FORM_METHOD
public static final java.lang.String DEFAULT_FORM_METHOD
Constant for specifying the default form method- See Also:
 - Constant Field Values
 
 
- 
GLOBAL_LINK_CSS
public static final java.lang.String GLOBAL_LINK_CSS
Constant for specifying the default global css class for links- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
EventManager
public EventManager(WebComponent webComponent)
Class constructor.- Parameters:
 webComponent-WebComponentobject from where to initialize this instance.
 
- 
EventManager
public EventManager(BeanContext beanContext)
Class constructor.- Parameters:
 beanContext-BeanContextobject from where to initialize this instance.
 
- 
EventManager
public EventManager(AppContext appContext)
Class constructor.- Parameters:
 appContext-AppContextobject from where to initialize this instance.
 
- 
EventManager
public EventManager(boolean useDhtml, boolean useIframe)Simple class constructor.- Parameters:
 useDhtml- boolean value indicating if the DHTML environment is enableduseIframe- boolean value indicating if IFrames are enabled
 
- 
EventManager
public EventManager(WebComponent webComponent, java.lang.String extraURL, java.lang.String extraInputs)
Class constructor- Parameters:
 webComponent-WebComponentobject from where to initialize this instance.extraURL- String value with any extra URL information to be added to the links generated by this managerextraInputs- String value with any extra inputs to be added to the form-related information generated by this manager
 
 - 
 
- 
Method Detail
- 
generateDynamicEventLink
@Deprecated public java.lang.String generateDynamicEventLink(WebEvent event)
Deprecated.usegetEventLink(WebEvent)instead.Generate the link information according to the event provided as argument.- Parameters:
 event-WebEventinstance from where to obtain the information to generate as URL- Returns:
 - String value with the URL resulting from the information provided as arguments to this method. By default no child state information will be included.
 
 
- 
getEventLink
public java.lang.String getEventLink(WebEvent e)
Generate the link information according to the event provided as argument.- Parameters:
 e-WebEventinstance from where to obtain the information to generate as URL- Returns:
 - String value with the URL resulting from the information provided as arguments to this method. By default minimal child state information will be included unless on a DHTML environment.
 
 
- 
getEventLink
public java.lang.String getEventLink(WebEvent e, int stateLevel)
Generate the link information according to the event provided as argument.- Parameters:
 e-WebEventinstance from where to obtain the information to generate as URLstateLevel- value from theEnumWebStateLevelenumeration indicating if or how much state information should be included.- Returns:
 - String value with the URL resulting from the information provided as arguments to this method.
 If the environment is DHTML, no child state will be included (for optimization), otherwise it will be
 as specified on the 
stateLevelargument. 
 
- 
getEventLink
public java.lang.String getEventLink(WebEvent e, java.lang.String extraUrl, int stateLevel)
Generate the link information according to the event provided as argument- Parameters:
 e-WebEventinstance from where to obtain the information to generate as URLextraUrl- String value with any extra url information to add to the resulting linkstateLevel- value from theEnumWebStateLevelenumeration indicating if or how much state information should be included.- Returns:
 - String value with the URL resulting from the information provided as arguments to this method.
 - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
generateIframeOpenAnchor
public void generateIframeOpenAnchor(MarkupOutput mo, WebEvent e)
Generate an anchor for an IFrame event. By default it will not include child state since this one will be handled by anonclickcall to thesubmitLinkJavaScript method.- Parameters:
 mo-MarkupOutputinstance where the html output will be savede-WebEventevent for which the link will be generated
 
- 
generateIframeOpenAnchor
public void generateIframeOpenAnchor(MarkupOutput mo, WebEvent e, boolean bSubmitForm)
Generates anchor for IFrame open event. This is an overloaded function that takes an extra parameter for indicating not to submit HTML form. It's required for some components such as Prompt's tree where selecting a hierarchy or Attribute doesn't refresh IFrame.- Parameters:
 mo-MarkupOutputinstance where the html output will be savede-WebEventevent for which the link will be generatedbSubmitForm- boolean true indicates to submit form with anonclickcall to thesubmitLinkJavaScript method.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
generateIframeOpenAnchor
@Deprecated public void generateIframeOpenAnchor(MarkupOutput mo, java.lang.String url, java.lang.String extraLink, java.lang.String extraAttributes)
Deprecated.usegenerateAnchor(WebEvent)instead.Generate an anchor for an iframe related event- Parameters:
 mo-MarkupOutputinstance where the html generated will be savedurl- String string with url information to use on the linkextraLink- String extra arguments to add to the linkextraAttributes- String extra attributes to add to the anchor
 
- 
generateOpenAnchor
public void generateOpenAnchor(MarkupOutput mo, WebEvent e)
Generates an open anchor for an event. By default calls thegenerateAnchor(WebEvent)method and gets the open tag for it.- Parameters:
 mo-MarkupOutputinstance where the html to generate will be savede-WebEventevent from where to generate the link
 
- 
generateOpenAnchor
@Deprecated public void generateOpenAnchor(MarkupOutput mo, WebEvent e, java.lang.String extraLink, java.lang.String extraAttributes)
Deprecated.usegenerateAnchor(WebEvent)instead.Generates an open anchor for an event.- Parameters:
 mo-MarkupOutputinstance where the html to generate will be savede-WebEventevent from where to generate the linkextraLink- String with any extra string information to add to the HREF attribute of the anchorextraAttributes- String with any extra attribute information to add to the anchor tag
 
- 
generateOpenAnchor
@Deprecated public void generateOpenAnchor(MarkupOutput mo, WebEvent e, int stateLevel, java.lang.String extraLink, java.lang.String extraAttributes)
Deprecated.usegenerateAnchor(WebEvent)instead.Generates an open anchor for an event.- Parameters:
 mo-MarkupOutputinstance where the html to generate will be savede-WebEventevent from where to generate the linkextraLink- String with any extra string information to add to the HREF attribute of the anchorextraAttributes- String with any extra attribute information to add to the anchor tagstateLevel- value from theEnumWebStateLevelenumeration indicating if or how much state information should be included.
 
- 
generateOpenAnchor
@Deprecated public void generateOpenAnchor(MarkupOutput mo, java.lang.String url)
Deprecated.usegenerateAnchor(WebEvent)instead.Generates an open anchor.- Parameters:
 mo-MarkupOutputinstance where the HTML generated will be saved.url- String value with the URL to define for the HREF attribute of the anchor
 
- 
generateOpenAnchor
@Deprecated public void generateOpenAnchor(MarkupOutput mo, java.lang.String url, java.lang.String extraLink, java.lang.String extraAttributes)
Deprecated.usegenerateAnchor(WebEvent)instead.Generates an open anchor.- Parameters:
 mo-MarkupOutputinstance where the HTML generated will be saved.url- String value with the URL to define for the HREF attribute of the anchor.extraLink- String value with any extra URL information to add to the anchor.extraAttributes- String with any extra attribute information to add to the anchor tag.
 
- 
generateOpenAnchor
@Deprecated public void generateOpenAnchor(MarkupOutput mo, java.lang.String url, boolean addDynamicState, java.lang.String extraLink, java.lang.String extraAttributes)
Deprecated.usegenerateAnchor(WebEvent)instead.Generates an open anchor.- Parameters:
 mo-MarkupOutputinstance where the HTML generated will be saved.url- String value with the URL to define for the HREF attribute of the anchor.extraLink- String value with any extra URL information to add to the anchor.extraAttributes- String with any extra attribute information to add to the anchor tag.addDynamicState- boolean value indicating if the state of the children should be added dynamically as part of anonclickmethod call to thesubmitLinkJavaScript method.
 
- 
generateOpenAnchor
@Deprecated public void generateOpenAnchor(java.lang.StringBuffer sb, WebEvent e, int stateLevel, java.lang.String extraLink, java.lang.String extraAttributes)Deprecated.usegenerateAnchor(WebEvent)instead.Generates an open anchor.- Parameters:
 sb-StringBufferinstance where the HTML output will be saved.e-WebEventinstance from where to obtain the URL information to use for the anchorstateLevel- value from theEnumWebStateLevelenumeration indicating if or how much state information should be included.extraLink- String value with any extra URL information to add to the anchor.extraAttributes- String with any extra attribute information to add to the anchor tag.
 
- 
generateForm
public Tag generateForm()
- Returns:
 - a 
Taginstance for a form HTML tag. The value for its method attribute will be by defaultpost, for action it will be the root parent of theWebComponentinstance used for initializing this event manager instance, by default it will not support iframes, but if on DHTML environment, the child state will be added with theappendPageStateJavaScript method. - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
generateForm
public Tag generateForm(WebComponent bean)
- Parameters:
 bean-WebComponentinstance to be used for initializing the form information.- Returns:
 - a 
Taginstance for a form HTML tag. The value for its method attribute will be by defaultpost, for action it will be the root parent of theWebComponentinstance provided as argument, by default it will not support iframes, but if on DHTML environment, the child state will be added with theappendPageStateJavaScript method. - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
generateForm
public Tag generateForm(WebComponent bean, boolean enableIframe)
- Parameters:
 bean-WebComponentinstance to be used for initializing the form information.enableIframe- boolean value indicating if the form will be working on an iframe environment or not.- Returns:
 - a 
Taginstance for a form HTML tag. The value for its method attribute will be by defaultpost, for action it will be the root parent of theWebComponentinstance provided as argument, if supporting iframes the target will be adjusted to the application'sframeManagerand if on DHTML environment, the child state will be added with theappendPageStateJavaScript method. - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
generateAnchor
public AnchorTag generateAnchor(WebEvent e)
Generate anAnchorTaginstance.- Parameters:
 e-WebEventinstance from where the anchor information will be initialized.- Returns:
 AnchorTaginitialized instance, with link information as provided by theWebEventinstance, if on DHTML environment then the child information will be submitted by anonclickJavaScript method call tosubmitLinkor otherwise it will be their minimal state.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
generateAnchor
public Tag generateAnchor(WebEvent e, boolean enableIframe)
Generate anAnchorTaginstance.- Parameters:
 e-WebEventinstance from where the anchor information will be initialized.enableIframe- boolean value indicating if iframe shall be enabled for this anchor tag.- Returns:
 AnchorTaginitialized instance, with link information as provided by theWebEventinstance, if on DHTML environment then the child information will be submitted by anonclickJavaScript method call tosubmitLinkor otherwise it will be their minimal state. If iframe is enabled, then the target and url information will be adjusted accordingly.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
generateOpenAnchor
@Deprecated public void generateOpenAnchor(java.lang.StringBuffer sb, java.lang.String url, java.lang.String extraLink, java.lang.String extraAttributes)Deprecated.usegenerateAnchor(WebEvent)instead.Generate an open anchor tag.- Parameters:
 sb-StringBufferinstance where the HTML output will be saved.url- String with the url information to use on the anchor tag to generateextraLink- String value with any extra URL information to add to the anchor.extraAttributes- String with any extra attribute information to add to the anchor tag.
 
- 
generateIframeOpenFormForEvent
public void generateIframeOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event)
Generate an open form tag for an IFrame event- Parameters:
 mo- MarkupOutputindent- intevent- WebEvent
 
- 
generateIframeOpenFormForEvent
public void generateIframeOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method)
Generate an open form tag for an IFrame event- Parameters:
 mo- MarkupOutputindent- intevent- WebEventname- Stringmethod- String
 
- 
generateIframeOpenFormForEvent
public void generateIframeOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method, boolean appendState)
Generate an open form tag for an IFrame event- Parameters:
 mo- MarkupOutputindent- intevent- WebEventname- Stringmethod- StringappendState- boolean
 
- 
generateIframeOpenFormForEvent
public void generateIframeOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes, boolean appendState)
Generate an open form tag for an IFrame event- Parameters:
 mo- MarkupOutputindent- intevent- WebEventname- Stringmethod- StringextraLink- StringextraAttributes- StringappendState- boolean
 
- 
generateIframeOpenFormForEvent
public void generateIframeOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action)
Generate an open form tag for an IFrame event- Parameters:
 mo- MarkupOutputindent- intaction- String
 
- 
generateIframeOpenFormForEvent
public void generateIframeOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method)
Generate an open form tag for an IFrame event- Parameters:
 mo- MarkupOutputindent- intaction- Stringname- Stringmethod- String
 
- 
generateIframeOpenFormForEvent
public void generateIframeOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, boolean appendState)
Generate an open form tag for an IFrame event- Parameters:
 mo- MarkupOutputindent- intaction- Stringname- Stringmethod- StringappendState- boolean
 
- 
generateIframeOpenFormForEvent
public void generateIframeOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes)
Generate an open form tag for an IFrame event- Parameters:
 mo- MarkupOutputindent- intaction- Stringname- Stringmethod- StringextraLink- StringextraAttributes- String
 
- 
generateIframeOpenFormForEvent
public void generateIframeOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes, boolean appendState)
Generate an open form tag for an IFrame event- Parameters:
 mo- MarkupOutputindent- intaction- Stringname- Stringmethod- StringextraLink- StringextraAttributes- StringappendState- boolean
 
- 
generateOpenFormForEvent
public void generateOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event)
Generate an open form tag for an event- Parameters:
 mo- MarkupOutputindent- intevent- WebEvent
 
- 
generateGetOpenFormForEvent
public void generateGetOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event)
Generate an open form tag for an event- Parameters:
 mo- MarkupOutputindent- intevent- WebEvent
 
- 
generateOpenFormForEvent
public void generateOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method)
Generate an open form tag for an event- Parameters:
 mo- MarkupOutputindent- intevent- WebEventname- Stringmethod- String
 
- 
generateOpenFormForEvent
public void generateOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method, boolean appendState)
Generate an open form tag for an event- Parameters:
 mo- MarkupOutputindent- intevent- WebEventname- Stringmethod- StringappendState- boolean
 
- 
generateOpenFormForEvent
public void generateOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes)
Generate an open form tag for an event- Parameters:
 mo- MarkupOutputindent- intevent- WebEventname- Stringmethod- StringextraLink- StringextraAttributes- String
 
- 
generateOpenFormForEvent
public void generateOpenFormForEvent(MarkupOutput mo, int indent, WebEvent event, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes, boolean appendState)
Generate an open form tag for an event- Parameters:
 mo- MarkupOutputindent- intevent- WebEventname- Stringmethod- StringextraLink- StringextraAttributes- StringappendState- boolean
 
- 
generateOpenFormForEvent
public void generateOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action)
Generate an open tag for a form.- Parameters:
 mo-MarkupOutputinstance where the HTML content generated will be savedindent- value for indentation consideration when generating the HTMLaction- String with the value to assign to the action attribute of the tag.
 
- 
generateOpenFormForEvent
public void generateOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method)
Generate an open tag for a form.- Parameters:
 mo-MarkupOutputinstance where the HTML content generated will be savedindent- value for indentation consideration when generating the HTMLaction- String with the value to assign to the action attribute of the tag.name- String with the name to assign to the formmethod- String with the method to use for the form (for example, post or get)
 
- 
generateOpenFormForEvent
public void generateOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, boolean appendState)
Generate an open tag for a form.- Parameters:
 mo-MarkupOutputinstance where the HTML content generated will be savedindent- value for indentation consideration when generating the HTMLaction- String with the value to assign to the action attribute of the tag.name- String with the name to assign to the formmethod- String with the method to use for the form (for example, post or get)appendState- boolean indicating if the child state should be appended to the form information using DHTML - provided DHTML is enabled.
 
- 
generateOpenFormForEvent
public void generateOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes)
Generate an open tag for a form.- Parameters:
 mo-MarkupOutputinstance where the HTML content generated will be savedindent- value for indentation consideration when generating the HTMLaction- String with the value to assign to the action attribute of the tag.name- String with the name to assign to the formmethod- String with the method to use for the form (for example, post or get)extraLink- String with any extra value information to be added to the action attributeextraAttributes- String with any other extra attributes to be added to the tag definition
 
- 
generateOpenFormForEvent
public void generateOpenFormForEvent(MarkupOutput mo, int indent, java.lang.String action, java.lang.String name, java.lang.String method, java.lang.String extraLink, java.lang.String extraAttributes, boolean appendState)
Generate an open tag for a form.- Parameters:
 mo-MarkupOutputinstance where the HTML content generated will be savedindent- value for indentation consideration when generating the HTMLaction- String with the value to assign to the action attribute of the tag.name- String with the name to assign to the formmethod- String with the method to use for the form (for example, post or get)extraLink- String with any extra value information to be added to the action attributeextraAttributes- String with any other extra attributes to be added to the tag definitionappendState- boolean indicating if the child state should be appended to the form information using DHTML - provided DHTML is enabled.
 
- 
fixUrl
public void fixUrl(ParameterBuilder url)
Method for adjusting theParameterBuilderinstance information for handling environments where cookies are not supported.- Parameters:
 url-ParameterBuilderinstance to update- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
fixUrl
@Deprecated public java.lang.String fixUrl(java.lang.String url)
Deprecated.usefixUrl(ParameterBuilder)instead.Method for adjusting the url information for handling environments where cookies are not supported.- Parameters:
 url- the original url information- Returns:
 - the updated url string
 
 
- 
setExtraUrl
public void setExtraUrl(java.lang.String newValue)
Set any extra url information that shall be added to the links generated by this instance- Parameters:
 newValue- String with the url information to add to the links
 
- 
getExtraUrl
public java.lang.String getExtraUrl()
- Returns:
 - String value with the extra url information defined to be added to the links generated by this instance.
 
 
- 
setExtraInput
public void setExtraInput(java.lang.String newValue)
Set any extra input information that shall be added to the forms generated by this instance- Parameters:
 newValue- String with the input information to add to the forms
 
- 
getExtraInput
public java.lang.String getExtraInput()
- Returns:
 - String value with the extra input information defined to be added to the forms generated by this instance.
 
 
- 
setUseIframe
public void setUseIframe(boolean useIframe)
Specify if this instance should handle the links and forms as on an iframe environment.- Parameters:
 useIframe- boolean value indicating if iframes are handled by this instance or not.
 
- 
isUseIframe
public boolean isUseIframe()
- Returns:
 - boolean value indicating if iframes are handled by this instance or not.
 
 
- 
setUseDhtml
public void setUseDhtml(boolean useDhtml)
Specify if this instance should handle the links and forms as on a DHTML environment.- Parameters:
 useDhtml- boolean value indicating if DHTML is handled by this instance or not.
 
- 
setUseCss
@Deprecated public void setUseCss(boolean useCss)
Deprecated.The css property should be specified after the anchor information tag has been generated.Defines whether to use the default cssClass ("mstrLink") when generating the link- Parameters:
 useCss- true if the link should use the "mstrLink" class
 
- 
isUseCss
@Deprecated public boolean isUseCss()
Deprecated.The css property should be specified after the anchor information tag has been generated.Returns whether to links generated will use the default cssClass ("mstrLink")- Returns:
 - true if the link will use the "mstrLink" class
 
 
- 
setLinkCss
@Deprecated public void setLinkCss(java.lang.String linkCss)
Deprecated.The css property should be specified after the anchor information tag has been generated.Defines user defined CSS for the link. Will be used only if the useCSS is set to true- Parameters:
 linkCss- CSS for the link- Since:
 - MicroStrategy Web 7.5.0
 
 
- 
getLinkCss
@Deprecated public java.lang.String getLinkCss()
Deprecated.The css property should be specified after the anchor information tag has been generated.Returns user defined CSS for the link. Will be used only if the useCSS is set to true- Returns:
 - the value of the link css property for this instance.
 - Since:
 - MicroStrategy Web 7.5.0
 
 
- 
newURIBuilder
protected ParameterBuilder newURIBuilder()
Convenience method to retrieve a new instance of a URI Builder from the connectedContainerServicesobject. If anything fails along the way, returns a null object.- Returns:
 - the 
ParameterBuilderinstance to use for building URIs. - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
newNamespaceEncoder
protected NamespaceEncoder newNamespaceEncoder()
Convenience method to retrieve a new instance of aNamespaceEncoderfrom the connectedContainerServicesobject. If anything fails along the way, returns a null object.- Returns:
 - The 
NamespaceEncoderinstance to use for encoding names. - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getUseCookie
@Deprecated public boolean getUseCookie()
Deprecated.- cookieless mode is no longer supported.- Since:
 - MicroStrategy Web 8.1.1
 
 
- 
getMessageByErrorCode
public static java.lang.String getMessageByErrorCode(int errorCode, EventManager.EventDescriptorHelper helper) 
 - 
 
 -