Class HTMLHelper
- java.lang.Object
-
- com.microstrategy.web.app.utils.HTMLHelper
-
public class HTMLHelper extends java.lang.ObjectThis class attempts to ease the construction of HTML content inside a Markup Output object. All of the methods in this class are public static so that it's not required to create an instance of this class.
With the introduction of the
TAGSinfrastructure numerous methods of this class have been deprecated. At this point, the usage of this class is not recommended except for a few methods like:encode(String)displayError(MarkupOutput out, String className, String methodName, Exception e, String title, String message)convertInchesToPixel(java.lang.String, int, java.util.Locale, int)convertColorDecimalToHex(java.lang.String)convertColorHexToDecimal(java.lang.String)
For more information about the Tags infrastrucuture, refere to
TagsFactory.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCSS_ERROR_MESSAGEstatic java.lang.StringCSS_ERROR_TITLEstatic java.lang.StringDEFAULT_FORM_METHODstatic java.lang.StringDEFAULT_FORM_NAMEstatic java.lang.StringINPUT_TYPE_BUTTONstatic java.lang.StringINPUT_TYPE_CHECKBOXstatic java.lang.StringINPUT_TYPE_HIDDENstatic java.lang.StringINPUT_TYPE_RADIOstatic java.lang.StringINPUT_TYPE_SUBMITstatic java.lang.StringINPUT_TYPE_TEXT
-
Constructor Summary
Constructors Constructor Description HTMLHelper()Creates new HTMLHelper
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidappendScriptTag(MarkupOutput mo, AppContext appContext, java.lang.String filePath)Append script tag to MarkupOutput to load script filestatic voidappendStyleLinkTag(MarkupOutput mo, AppContext appContext, java.lang.String cssFile)Append css style link tag to MarkupOutput to load css filestatic java.lang.StringcomputeTextboxSize(java.lang.String value, int max)static java.lang.StringconvertColorBGRtoRGB(java.lang.String colorHexCode)Converts the hexadecimal representation of a color into its RRGGBB format or BBGGRR.static java.lang.StringconvertColorDecimalToHex(java.lang.String colorCode)Converts the integer representation of a color into its hexadecimal representation.static java.lang.StringconvertColorDecimalToRGB(int color)Converts the decimal representation of a color into its RRGGBB format.static java.lang.StringconvertColorDecimalToRGB(java.lang.String colorCode)Converts the decimal representation of a color into its RRGGBB format.static java.lang.StringconvertColorHexToDecimal(java.lang.String colorCode)Converts the hexadecimal color code (e.g.static java.lang.StringconvertColorHSBToHex(int hue, int saturation, int brightness)Converts the hsb components of a color into its hexadecimal representation.static int[]convertColorRGBToHSB(int r, int g, int b)Converts the red, green and blue components of a color into hsb components.static java.lang.StringconvertFormattedValue(java.lang.String value, java.util.Locale locale)Converts any value with decimal into locale dependent format.static java.lang.StringconvertImageUri(java.lang.String value)Adjusts image URI.static java.lang.StringconvertInchesToPixel(java.lang.String inches, int dpiConversion, java.util.Locale locale, int zoomFactor)Converts inches into pixels.static doubleconvertPixelsToInches(double pixels, int dpiConversion, int zoomFactor)Converts pixels to inchesstatic java.lang.StringconvertPixelsToInches(java.lang.String pixels, int dpiConversion, java.util.Locale locale, int zoomFactor)Converts pixels into inches.static doubleconvertPixelsToPoints(double pixels, int dpiConversion, int zoomFactor)Convert pixels to pointsstatic doubleconvertPtsToInches(double pts)Converts points into inches.static doubleconvertPtsToPixels(double pts, int dpiConversion, int zoomFactor)Convert points to pixelsstatic java.lang.Stringdecode(java.lang.String oldStr)Given an HTML encoded string, returns its decoded version (using plain characters instead of browser's specifc encoding).static voiddisplayError(MarkupOutput transOut, java.lang.String className, java.lang.String methodName, java.lang.Exception e, java.lang.String title, java.lang.String message)Writes an error message.static voiddisplayError(MarkupOutput out, java.lang.String className, java.lang.String methodName, java.lang.Exception e, java.lang.String title, java.lang.String message, java.lang.String errorInfo, java.lang.String contactInfo)Deprecated.This is method has been deprecated as css-classes are not optional anymore.static voiddisplayError(MarkupOutput out, java.lang.String className, java.lang.String methodName, java.lang.Exception e, java.lang.String title, java.lang.String message, java.lang.String errorInfo, java.lang.String contactInfo, Tag extra)Writes an error message.static java.lang.Stringencode(java.lang.String oldStr)Encodes a string using HTML encoding.static java.lang.Stringencode(java.lang.String oldStr, boolean encodeSpaces)static java.lang.StringencodeEscapeApostrophe(java.lang.String oldStr)static java.lang.StringencodeExcludeSubStr(java.lang.String excludeStr, java.lang.String wholeStr)/** encode object details, the description part will not encode if allowing html on object descriptionstatic java.lang.StringencodeForAllowHtmlOnMetrics(java.lang.String oldStr)static java.lang.StringencodeForTooltip(java.lang.String tooltipStr)static java.lang.StringeuroEncode(java.lang.String oldStr)Deprecated.The application doesn't require to encode the Euro symbol.static booleanfillComboFromXML(MarkupOutput mo, int indent, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext)Fills a COMBO box with the contents of an XML file.static booleanfillComboFromXML(MarkupOutput mo, int indent, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext, java.lang.String comboKey, java.lang.String localeID)Fills a COMBO box with the contents of an XML file.static booleanfillComboFromXML(MarkupOutput mo, int indent, java.lang.String name, java.lang.String size, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext)Deprecated.Tags should be generated using the Tags infrastructure.static booleanfillComboFromXML(MarkupOutput mo, int indent, java.lang.String name, java.lang.String size, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext, boolean addDefault, java.lang.String defaultContent, java.lang.String defaultValue, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static booleanfillComboFromXML(MarkupOutput mo, int indent, java.lang.String name, java.lang.String size, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext, boolean addDefault, java.lang.String defaultContent, java.lang.String defaultValue, java.lang.String extraParameters, WebComponent baseBean)Deprecated.Tags should be generated using the Tags infrastructure.static booleanfillComboFromXML(MarkupOutput mo, int indent, java.lang.String name, java.lang.String size, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static booleanfillComboFromXML(MarkupOutput mo, WebComponent baseBean, int indent, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext, java.lang.String comboKey, java.lang.String localeID)Fills a COMBO box with the contents of an XML file.static booleanfillComboPaperList(MarkupOutput mo, int indent, java.lang.String name, java.lang.String size, java.lang.String selectedValue, PaperSizesList paperList, AppContext appContext)Deprecated.Tags should be generated using the Tags infrastructure.static SelectTagfillComboPaperList(java.lang.String name, java.lang.String selectedValue, PaperSizesList paperList, AppContext appContext)Deprecated.Use fillComboPaperList(String, String, ShortcutList, AppContext)static SelectTagfillComboPaperList(java.lang.String name, java.lang.String selectedValue, ShortcutList paperList, AppContext appContext)Generates a select list containing the elements from the configuration liststatic intfixPixelsForBase96(int pixels, int dpiConversion, int zoomFactor)Adjusts pixels for zoom and dpi assuming a base dpi of 96.static java.lang.StringfixPointsForZoom(java.lang.String points, int zoomFactor)Fixes the point values used for font size and weight based on DPI conversion factor and zoom factors.static java.lang.StringformatAttributeFormDisplay(java.lang.String attName, java.lang.String formName)static java.lang.StringformatAttributeFormValue(java.lang.String attId, java.lang.String formId, int formDataType, java.lang.String attName, java.lang.String formName)static java.lang.StringformatAttributeFormValueForSingleAttr(java.lang.String formId, int formDataType, java.lang.String formName)static java.lang.StringformatAttributeValue(java.lang.String attId, java.lang.String attName)static java.lang.StringformatObjectInfoValue(java.lang.String id, int type, java.lang.String name)static voidgenerateBUTTON(MarkupOutput mo, int indent, java.lang.String name, java.lang.String value, java.lang.String style)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateBUTTON(MarkupOutput mo, int indent, java.lang.String name, java.lang.String value, java.lang.String style, java.lang.String type, boolean isDisabled)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateCheckBox(MarkupOutput mo, int indent, java.lang.String name, java.lang.String currentValue)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateCheckBox(MarkupOutput mo, int indent, java.lang.String name, java.lang.String currentValue, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateCloseAnchor(MarkupOutput mo)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateCloseAnchor(java.lang.StringBuffer sb)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateComboBox(MarkupOutput mo, int indent, java.lang.String name, HashList options, java.lang.String currentValue)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateComboBox(MarkupOutput mo, int indent, java.lang.String name, HashList options, java.lang.String currentValue, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateComboBox(MarkupOutput mo, int indent, java.lang.String name, java.lang.String[][] options, java.lang.String currentValue)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateComboBox(MarkupOutput mo, int indent, java.lang.String name, java.lang.String[][] options, java.lang.String currentValue, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static Tag[]generateComboOptions(WebComponent bean, AppContext appContext, ShortcutList list, java.lang.String selectedValue)Helper metod that returns an array of option Tags to be used in a combobox.static Tag[]generateComboOptions(WebComponent bean, AppContext appContext, ShortcutList list, java.lang.String selectedValue, boolean useEventIDOnly)Helper metod that returns an array of option Tags to be used in a combobox.static voidgenerateDynamicScript(MarkupOutput mo, AppContext appContext, java.lang.String fileName, java.lang.String key)Adds a script tag with a link to dynamically load a JavaScript file.static voidgenerateEventOrderForList(MarkupOutput mo, java.util.ArrayList eventList, NamespaceEncoder nse)static voidgenerateFONT(MarkupOutput mo, int indent, java.lang.String fontFace, int fontSize)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateHiddenInputsForEvent(MarkupOutput mo, int indent, WebEvent event)Deprecated.static voidgenerateHiddenInputsForEvent(MarkupOutput mo, int indent, WebEvent event, boolean isDhtml)Deprecated.static voidgenerateHiddenInputsForEvent(MarkupOutput mo, int indent, WebEvent event, boolean isDhtml, int state)Deprecated.static voidgenerateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event)Generates the set of hidden inputs associated with a given event using the minal state info.static voidgenerateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event, boolean isDhtml)Generates the set of hidden inputs associated with a given event using the minal state info.static voidgenerateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event, boolean isDhtml, int state)Generates the set of hidden inputs associated with a given event.static voidgenerateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event, boolean isDhtml, int state, boolean renderState)static voidgenerateHiddenInputsForEventList(MarkupOutput mo, int indent, java.util.ArrayList eventList)Deprecated.use generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, NamespaceEncoder nse)static voidgenerateHiddenInputsForEventList(MarkupOutput mo, int indent, java.util.ArrayList eventList, boolean isDhtml)Deprecated.use generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, boolean isDhtml, NamespaceEncoder nse)static voidgenerateHiddenInputsForEventList(MarkupOutput mo, int indent, java.util.ArrayList eventList, boolean isDhtml, int state)Deprecated.use generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, boolean isDhtml, int state, NamespaceEncoder nse)static voidgenerateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, java.util.ArrayList eventList, boolean isDhtml, int state, NamespaceEncoder nse)Generates those hidden inputs associated with the given event list.static voidgenerateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, java.util.ArrayList eventList, boolean isDhtml, NamespaceEncoder nse)Generates those hidden inputs associated with the given event list.static voidgenerateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, java.util.ArrayList eventList, NamespaceEncoder nse)Generates those hidden inputs associated with the given event list.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String src, int width, int height)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String src, int width, int height, java.lang.String alt, int border)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String src, java.lang.String alt)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String imgFolder, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String imgFolder, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String src, java.lang.String alt, int border, java.lang.String align)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String src, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String id, java.lang.String imgFolder, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(MarkupOutput mo, int indent, java.lang.String src, java.lang.String width, java.lang.String height, java.lang.String alt, int border, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMG(java.lang.StringBuffer mo, int indent, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMGForSubmit(MarkupOutput mo, int indent, java.lang.String name, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMGForSubmit(MarkupOutput mo, int indent, java.lang.String name, java.lang.String imgFolder, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMGForSubmit(MarkupOutput mo, int indent, java.lang.String name, java.lang.String src, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMGForSubmit(java.lang.StringBuffer mo, int indent, java.lang.String name, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIMGForSubmit(java.lang.StringBuffer mo, int indent, java.lang.String name, java.lang.String src, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateIndent(MarkupOutput mo, int indent)Deprecated.Transforms don't indent their output anymore.static voidgenerateIndent(java.lang.StringBuffer mo, int indent)Deprecated.Transforms don't indent their output anymore.static voidgenerateINPUT(MarkupOutput mo, int indent, java.lang.String type, java.lang.String name, java.lang.String value, boolean checked)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateINPUT(MarkupOutput mo, int indent, java.lang.String type, java.lang.String name, java.lang.String value, boolean checked, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateINPUT(MarkupOutput mo, int indent, java.lang.String type, java.lang.String name, java.lang.String value, boolean checked, java.lang.String duplicateHiddenInputValue, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateINPUT(java.lang.StringBuffer mo, int indent, java.lang.String type, java.lang.String name, java.lang.String value, boolean checked, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static java.lang.StringgenerateJavaScriptMethodCall(java.lang.String methodName, java.lang.String[] args, boolean includeReturn, int indexForThis)Utility method to generate Javascript method call in HTML.static voidgenerateOPTION(MarkupOutput mo, int indent, java.lang.String value, java.lang.String content, boolean selected, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateOPTION(MarkupOutput mo, int indent, java.lang.String value, java.lang.String content, boolean selected, java.lang.String extraParameters, boolean encodeData)Deprecated.Tags should be generated using the Tags infrastructure.static TaggenerateOPTION(java.lang.String value, java.lang.String content, boolean selected)Returns an optionTagwith the information providedstatic java.lang.StringgenerateSkipNavigationLinkHeader(AppContext appContext, java.lang.String anchorName)Deprecated.Transforms don't generate this link anymore.static java.lang.StringgenerateSkipNavigationLinkTarget(AppContext appContext, java.lang.String anchorName)Deprecated.Transforms don't generate this link anymore.static voidgenerateSPAN(MarkupOutput mo, int indent, java.lang.String cssName, java.lang.String content)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateSPAN(MarkupOutput mo, int indent, java.lang.String cssName, java.lang.String content, boolean encodeContent)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateTABLE(MarkupOutput mo, int indent, java.lang.String width, java.lang.String border, java.lang.String cellSpacing, java.lang.String cellPadding, java.lang.String bgColor, java.lang.String cssName)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateTABLE(MarkupOutput mo, int indent, java.lang.String width, java.lang.String border, java.lang.String cellSpacing, java.lang.String cellPadding, java.lang.String bgColor, java.lang.String cssName, java.lang.String id)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateTABLE(MarkupOutput mo, int indent, java.lang.String width, java.lang.String border, java.lang.String cellSpacing, java.lang.String cellPadding, java.lang.String bgColor, java.lang.String cssName, java.lang.String id, java.lang.String summary)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateTABLE(MarkupOutput mo, int indent, java.lang.String width, java.lang.String border, java.lang.String cellSpacing, java.lang.String cellPadding, java.lang.String bgColor, java.lang.String cssName, java.lang.String id, java.lang.String summary, java.lang.String extraStyle)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateTABLE(MarkupOutput mo, int indent, java.lang.String width, java.lang.String border, java.lang.String cellSpacing, java.lang.String cellPadding, java.lang.String bgColor, java.lang.String background, java.lang.String cssName, java.lang.String id, java.lang.String summary, java.lang.String extraStyle)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateTEXTAREA(MarkupOutput mo, int indent, java.lang.String name, java.lang.String value, int columns, int rows, java.lang.String style)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateTEXTBOX(MarkupOutput mo, int indent, java.lang.String name, java.lang.String value, java.lang.String size, java.lang.String maxLength, java.lang.String style)Deprecated.Tags should be generated using the Tags infrastructure.static voidgenerateTEXTBOX(MarkupOutput mo, int indent, java.lang.String name, java.lang.String value, java.lang.String size, java.lang.String maxLength, java.lang.String style, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure.static java.lang.StringgetAppVersion()static java.lang.StringgetFormattedValue(java.lang.String value, java.util.Locale locale)Converts any value with decimal to the corrected format.static java.lang.StringgetOfficeLink()Deprecated.This method has been deprecated.static java.lang.StringgetOfficeLink(AppContext appContext)Retrieves the Office Link URL from the default or Admin Preferences.static java.lang.StringgetQuickSymbolImageSource(int type)Deprecated.replaced byEnumQuickSymbol.get(int)andEnumQuickSymbol.getImageSource()static java.lang.StringgetQuickSymbolString(int type)Deprecated.replaced byEnumQuickSymbol.get(int)andEnumQuickSymbol.getWingdingsString()static java.lang.StringgetQuickSymbolUnicode(int type)Deprecated.seeEnumQuickSymbolstatic java.lang.StringgetQuickSymbolUnicodeByChar(char character)Deprecated.should not be used - seeEnumQuickSymbolstatic java.lang.StringgetRequestKeysString(BeanContext context)Returns the string representation of the request keys as an & delimited list of name=value pairs.static java.lang.StringgetResourcePathWithVersion(java.lang.String originResourcePath, AppContext appContext)Append web version parameter to resource path if it's not disabled in debug flag E.g.static java.lang.StringgetWebVersionHashCode(AppContext appContext)Get hash code of web version Used to append as version parameter when loading resourcestatic booleanisDefaultPreferenceValue(java.lang.String preferenceName, java.lang.String preferenceValue)This method checks if the given preference exists with in the Admin Preferences, and if its value is the given one.static booleanisPluginResource(java.lang.String resourcePath)static ImageTagnewImageTag(java.lang.String src, java.lang.String width, java.lang.String height, java.lang.String alt)Convenience method that creates aIMGtag from theTagsFactory.static InputTagnewInputCheck(java.lang.String name, java.lang.String value, boolean checked, NamespaceEncoder nse)Convenience method that creates a checkbox from theTagsFactory.static InputTagnewInputHidden(java.lang.String name, java.lang.String value, NamespaceEncoder nse)Convenience method that creates a hidden input from theTagsFactory.static InputTagnewInputImage(java.lang.String name, java.lang.String src, java.lang.String width, java.lang.String height, java.lang.String title, NamespaceEncoder nse)Convenience method that creates an image input from theTagsFactory.static InputTagnewInputNumber(java.lang.String name, java.lang.String value, java.lang.String minValue, java.lang.String maxValue, NamespaceEncoder nse)static InputTagnewInputRadio(java.lang.String name, java.lang.String value, boolean checked, NamespaceEncoder nse)Convenience method that creates a radio button from theTagsFactory.static InputTagnewInputRadio(java.lang.String id, java.lang.String name, java.lang.String value, boolean checked, NamespaceEncoder nse)Convenience method that creates a radio button from theTagsFactory.static InputTagnewInputSubmit(java.lang.String name, java.lang.String value, NamespaceEncoder nse)Convenience method that creates a submit button from theTagsFactory.static InputTagnewInputText(java.lang.String name, java.lang.String value, java.lang.String size, java.lang.String maxLength, NamespaceEncoder nse)Convenience method that creates a text field from theTagsFactory.protected static ParameterBuildernewURIBuilder(AppContext appContext)Creates a newParameterBuilderfrom theAppContext.static voidrenderQuickSymbolforText(MarkupOutput out, java.lang.String text, boolean isIE)Deprecated.should not use this - seeEnumQuickSymbol
-
-
-
Field Detail
-
INPUT_TYPE_RADIO
public static final java.lang.String INPUT_TYPE_RADIO
- See Also:
- Constant Field Values
-
INPUT_TYPE_CHECKBOX
public static final java.lang.String INPUT_TYPE_CHECKBOX
- See Also:
- Constant Field Values
-
INPUT_TYPE_TEXT
public static final java.lang.String INPUT_TYPE_TEXT
- See Also:
- Constant Field Values
-
INPUT_TYPE_SUBMIT
public static final java.lang.String INPUT_TYPE_SUBMIT
- See Also:
- Constant Field Values
-
INPUT_TYPE_HIDDEN
public static final java.lang.String INPUT_TYPE_HIDDEN
- See Also:
- Constant Field Values
-
INPUT_TYPE_BUTTON
public static final java.lang.String INPUT_TYPE_BUTTON
- Since:
- MicroStrategy Web 8.0.0
- See Also:
- Constant Field Values
-
DEFAULT_FORM_METHOD
public static final java.lang.String DEFAULT_FORM_METHOD
- See Also:
- Constant Field Values
-
DEFAULT_FORM_NAME
public static final java.lang.String DEFAULT_FORM_NAME
- See Also:
- Constant Field Values
-
CSS_ERROR_TITLE
public static final java.lang.String CSS_ERROR_TITLE
- See Also:
- Constant Field Values
-
CSS_ERROR_MESSAGE
public static final java.lang.String CSS_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateSkipNavigationLinkHeader
public static java.lang.String generateSkipNavigationLinkHeader(AppContext appContext, java.lang.String anchorName)
Deprecated.Transforms don't generate this link anymore. It's generated directly in the JSP.Display the skip navigation link required for supporting screen readers- Parameters:
appContext- a valid instance ofAppContextanchorName- the name that the skip navigation anchor will have (target)- Returns:
- a String with the HTML content to be displayed for the Skip Navigation link.
-
generateSkipNavigationLinkTarget
public static java.lang.String generateSkipNavigationLinkTarget(AppContext appContext, java.lang.String anchorName)
Deprecated.Transforms don't generate this link anymore. It's generated directly in the JSP.Display the skip navigation link target required for supporting screen readers- Parameters:
appContext- a valid instance ofAppContextanchorName- the name that the skip navigation anchor will have (target)- Returns:
- a String with the HTML content to be displayed for the Skip Navigation link.
-
generateIndent
public static void generateIndent(MarkupOutput mo, int indent)
Deprecated.Transforms don't indent their output anymore.Generate a number of tabs to indent the line...- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate for
-
generateIndent
public static void generateIndent(java.lang.StringBuffer mo, int indent)Deprecated.Transforms don't indent their output anymore.Generate a number of tabs to indent the line...- Parameters:
mo- StringBuffer object to use.indent- the indentation level to generate for
-
generateSPAN
public static void generateSPAN(MarkupOutput mo, int indent, java.lang.String cssName, java.lang.String content)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate a SPAN tag with a specific css and text.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forcssName- the css class namecontent- the content of the span
-
generateSPAN
public static void generateSPAN(MarkupOutput mo, int indent, java.lang.String cssName, java.lang.String content, boolean encodeContent)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate a SPAN tag with a specific css and text.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forcssName- the css class namecontent- the content of the spanencodeContent- weather encode the content
-
generateFONT
public static void generateFONT(MarkupOutput mo, int indent, java.lang.String fontFace, int fontSize)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate a FONT tag with a specific face and size.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forfontFace- the value of the FACE attributefontSize- the value of the SIZE attribute
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String src, java.lang.String alt)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source and alt etc. The BORDER is set to 0 and the ALT tag is empty.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forsrc- the value of the SRC attributealt- the value of the ALT attribute
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String src, int width, int height)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc. The BORDER is set to 0 and the ALT tag is empty.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forsrc- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attribute
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String src, java.lang.String width, java.lang.String height, java.lang.String alt, int border, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forsrc- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attributeextraParameters- any extra attributes to add to the tag
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String src, int width, int height, java.lang.String alt, int border)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forsrc- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attribute
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forsrc- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attribute
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String imgFolder, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forimgFolder- The relative path in the application for the images folder.src- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attributeextraParameters- any other properties or events that should be defined
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String id, java.lang.String imgFolder, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forid- the image IDimgFolder- The relative path in the application for the images folder.src- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attributeextraParameters- any other properties or events that should be defined
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String imgFolder, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forimgFolder- The relative path in the application for the images folder.src- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attribute
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forsrc- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attributeextraParameters- any other properties or events that should be defined
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String src, java.lang.String alt, int border, java.lang.String align)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forsrc- the value of the SRC attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attribute
-
generateIMG
public static void generateIMG(MarkupOutput mo, int indent, java.lang.String src, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forsrc- the value of the SRC attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attributeextraParameters- any other properties or events that should be defined
-
generateIMG
public static void generateIMG(java.lang.StringBuffer mo, int indent, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag with specific source, height, width, etc....- Parameters:
mo- StringBuffer object to use.indent- the indentation level to generate forsrc- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attributeextraParameters- any other properties or events that should be defined
-
generateIMGForSubmit
public static void generateIMGForSubmit(MarkupOutput mo, int indent, java.lang.String name, java.lang.String imgFolder, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag for submitting a form- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributeimgFolder- The relative path in the application for the images folder.src- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attribute
-
generateIMGForSubmit
public static void generateIMGForSubmit(MarkupOutput mo, int indent, java.lang.String name, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag for submitting a form- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributesrc- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attribute
-
generateIMGForSubmit
public static void generateIMGForSubmit(MarkupOutput mo, int indent, java.lang.String name, java.lang.String src, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMAGE INPUT tag with specific source, name, alt, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributesrc- the value of the SRC attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attributeextraParameters- any other properties or events that should be defined
-
generateIMGForSubmit
public static void generateIMGForSubmit(java.lang.StringBuffer mo, int indent, java.lang.String name, java.lang.String src, java.lang.String alt, int border, java.lang.String align, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMAGE INPUT tag with specific source, name, alt, etc....- Parameters:
mo- StringBuffer object to use.indent- the indentation level to generate forname- the value of the NAME attributesrc- the value of the SRC attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attributeextraParameters- any other properties or events that should be defined
-
generateIMGForSubmit
public static void generateIMGForSubmit(java.lang.StringBuffer mo, int indent, java.lang.String name, java.lang.String src, int width, int height, java.lang.String alt, int border, java.lang.String align)Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an IMG tag for submitting a form- Parameters:
mo- StringBuffer object to useindent- the indentation level to generate forname- the value of the NAME attributesrc- the value of the SRC attributewidth- the value of the WIDTH attributeheight- the value of the HEIGHT attributealt- the value of the ALT attributeborder- the value of the BORDER attributealign- the value of the ALIGN attribute
-
generateINPUT
public static void generateINPUT(MarkupOutput mo, int indent, java.lang.String type, java.lang.String name, java.lang.String value, boolean checked)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an INPUT tag with specific type, name, value, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate fortype- the value of the TYPE attributename- the value of the NAME attributevalue- the value of the VALUE attributechecked- whether the CHECKED attribute is set to 1.
-
generateINPUT
public static void generateINPUT(MarkupOutput mo, int indent, java.lang.String type, java.lang.String name, java.lang.String value, boolean checked, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an INPUT tag with specific type, name, value, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate fortype- the value of the TYPE attributename- the value of the NAME attributevalue- the value of the VALUE attributechecked- whether the CHECKED attribute is set to 1.extraParameters- any other attributes or events to add to the tag
-
generateINPUT
public static void generateINPUT(MarkupOutput mo, int indent, java.lang.String type, java.lang.String name, java.lang.String value, boolean checked, java.lang.String duplicateHiddenInputValue, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an INPUT tag with specific type, name, value, etc....- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate fortype- the value of the TYPE attributename- the value of the NAME attributevalue- the value of the VALUE attributeduplicateHiddenInputValue- the value of a hidden input to be created as duplicate of the input tag that it's going to be created. This is meant to be used with checkboxes, having a value usually of "0" (zero). If it's not to be used, it should receive a null.checked- whether the CHECKED attribute is set to 1.extraParameters- any other attributes or events to add to the tag
-
generateINPUT
public static void generateINPUT(java.lang.StringBuffer mo, int indent, java.lang.String type, java.lang.String name, java.lang.String value, boolean checked, java.lang.String extraParameters)Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an INPUT tag with specific type, name, value, etc....- Parameters:
mo- StringBuffer object to use.indent- the indentation level to generate fortype- the value of the TYPE attributename- the value of the NAME attributevalue- the value of the VALUE attributechecked- whether the CHECKED attribute is set to 1.extraParameters- any other attributes or events to add to the tag
-
generateBUTTON
public static void generateBUTTON(MarkupOutput mo, int indent, java.lang.String name, java.lang.String value, java.lang.String style)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an INPUT tag for submit button- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributevalue- the value of the VALUE attributestyle- the value of the CLASS attribute
-
generateBUTTON
public static void generateBUTTON(MarkupOutput mo, int indent, java.lang.String name, java.lang.String value, java.lang.String style, java.lang.String type, boolean isDisabled)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an INPUT tag for a button (normal button or submit button)- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributevalue- the value of the VALUE attributestyle- the value of the CLASS attributetype- the value of the type attributeisDisabled- the value of the DISABLED attribute
-
generateTEXTBOX
public static void generateTEXTBOX(MarkupOutput mo, int indent, java.lang.String name, java.lang.String value, java.lang.String size, java.lang.String maxLength, java.lang.String style)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an INPUT tag for text box- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributevalue- the value of the VALUE attributesize- the value of the SIZE attributemaxLength- the value of the MAXLENGTH attributestyle- the value of the CLASS attribute
-
generateTEXTBOX
public static void generateTEXTBOX(MarkupOutput mo, int indent, java.lang.String name, java.lang.String value, java.lang.String size, java.lang.String maxLength, java.lang.String style, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate an INPUT tag for text box- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributevalue- the value of the VALUE attributesize- the value of the SIZE attributemaxLength- the value of the MAXLENGTH attributestyle- the value of the CLASS attributeextraParameters- the value of extra Parameters
-
generateTEXTAREA
public static void generateTEXTAREA(MarkupOutput mo, int indent, java.lang.String name, java.lang.String value, int columns, int rows, java.lang.String style)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate a TEXTAREA tag- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributevalue- the value of the VALUE attributecolumns- the value of the COLS attributerows- the value of the ROWS attributestyle- the CSS style to use
-
generateTABLE
public static void generateTABLE(MarkupOutput mo, int indent, java.lang.String width, java.lang.String border, java.lang.String cellSpacing, java.lang.String cellPadding, java.lang.String bgColor, java.lang.String cssName, java.lang.String id)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate a TABLE tag- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forwidth- the value of the WIDTH attributeborder- the value of the BORDER attributecellSpacing- the value of the CELLSPACING attributecellPadding- the value of the CELLPADDING attributebgColor- the value of the BGCOLOR attributecssName- the value of the STYLE attributeid- the value of the ID attribute
-
generateTABLE
public static void generateTABLE(MarkupOutput mo, int indent, java.lang.String width, java.lang.String border, java.lang.String cellSpacing, java.lang.String cellPadding, java.lang.String bgColor, java.lang.String cssName, java.lang.String id, java.lang.String summary, java.lang.String extraStyle)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate a TABLE tag- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forwidth- the value of the WIDTH attributeborder- the value of the BORDER attributecellSpacing- the value of the CELLSPACING attributecellPadding- the value of the CELLPADDING attributebgColor- the value of the BGCOLOR attributecssName- the value of the CLASS attributeid- the value of the ID attributesummary- the value of the SUMMARY attributeextraStyle- the value of the STYLE attribute
-
generateTABLE
public static void generateTABLE(MarkupOutput mo, int indent, java.lang.String width, java.lang.String border, java.lang.String cellSpacing, java.lang.String cellPadding, java.lang.String bgColor, java.lang.String background, java.lang.String cssName, java.lang.String id, java.lang.String summary, java.lang.String extraStyle)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate a TABLE tag- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forwidth- the value of the WIDTH attributeborder- the value of the BORDER attributecellSpacing- the value of the CELLSPACING attribute. If parameter is empty, CELLSPACING attribute will not be set on table.cellPadding- the value of the CELLPADDING attribute. If parameter is empty, CELLSPADDING attribute will not be set on table.bgColor- the value of the BGCOLOR attributecssName- the value of the CLASS attributebackground- the value of the BACKGROUND attributeid- the value of the ID attributesummary- the value of the SUMMARY attributeextraStyle- the value of the STYLE attribute
-
generateTABLE
public static void generateTABLE(MarkupOutput mo, int indent, java.lang.String width, java.lang.String border, java.lang.String cellSpacing, java.lang.String cellPadding, java.lang.String bgColor, java.lang.String cssName, java.lang.String id, java.lang.String summary)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate a TABLE tag- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forwidth- the value of the WIDTH attributeborder- the value of the BORDER attributecellSpacing- the value of the CELLSPACING attributecellPadding- the value of the CELLPADDING attributebgColor- the value of the BGCOLOR attributecssName- the value of the STYLE attributeid- the value of the ID attributesummary- the value of the SUMMARY attribute
-
generateTABLE
public static void generateTABLE(MarkupOutput mo, int indent, java.lang.String width, java.lang.String border, java.lang.String cellSpacing, java.lang.String cellPadding, java.lang.String bgColor, java.lang.String cssName)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generate a TABLE tag- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forwidth- the value of the WIDTH attributeborder- the value of the BORDER attributecellSpacing- the value of the CELLSPACING attributecellPadding- the value of the CELLPADDING attributebgColor- the value of the BGCOLOR attributecssName- the value of the CLASS attribute
-
fillComboPaperList
public static boolean fillComboPaperList(MarkupOutput mo, int indent, java.lang.String name, java.lang.String size, java.lang.String selectedValue, PaperSizesList paperList, AppContext appContext)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Generates an select list containing the elements from the configuration list- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributesize- the value of the SIZE attributeselectedValue- the value of marked as the seletected one.paperList- the List to renderappContext- theAppContextobject to use to find the file.- Returns:
- whether it found the selected item.
-
fillComboPaperList
public static SelectTag fillComboPaperList(java.lang.String name, java.lang.String selectedValue, PaperSizesList paperList, AppContext appContext)
Deprecated.Use fillComboPaperList(String, String, ShortcutList, AppContext)Generates a select list containing the elements from the configuration list- Parameters:
name- String the value of the NAME attributeselectedValue- String the value of marked as the seletected one.paperList- PaperSizesList the List to renderappContext- AppContext theAppContextobject to use to find the file.- Returns:
- SelectTag the com box as a
Taginstance - Since:
- MicroStrategy Web 8.0.0
-
fillComboPaperList
public static SelectTag fillComboPaperList(java.lang.String name, java.lang.String selectedValue, ShortcutList paperList, AppContext appContext)
Generates a select list containing the elements from the configuration list- Parameters:
name- String the value of the NAME attributeselectedValue- String the value of marked as the seletected one.paperList- ShortcutList the List to renderappContext- AppContext theAppContextobject to use to find the file.- Returns:
- SelectTag the com box as a
Taginstance - Since:
- MicroStrategy Web 9.0.0
-
fillComboFromXML
public static boolean fillComboFromXML(MarkupOutput mo, int indent, java.lang.String name, java.lang.String size, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Fills a COMBO box with the contents of an XML file.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributesize- the value of the SIZE attributeselectedValue- the value of marked as the seletected one.xmlFile- the filename of the XML file to useappContext- theAppContextobject to use to find the file.- Returns:
- whether it found the selected item.
-
fillComboFromXML
public static boolean fillComboFromXML(MarkupOutput mo, int indent, java.lang.String name, java.lang.String size, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Fills a COMBO box with the contents of an XML file.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributesize- the value of the SIZE attribute *selectedValue- the value of marked as the seletected one.xmlFile- the filename of the XML file to useappContext- theAppContextobject to use to find the file.extraParameters- any other properties or events that should be defined on the combo box. For example:ONCHANGE=\"update();\"- Returns:
- whether it found the selected item.
-
fillComboFromXML
public static boolean fillComboFromXML(MarkupOutput mo, int indent, java.lang.String name, java.lang.String size, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext, boolean addDefault, java.lang.String defaultContent, java.lang.String defaultValue, java.lang.String extraParameters, WebComponent baseBean)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Fills a COMBO box with the contents of an XML file.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributesize- the value of the SIZE attribute *selectedValue- the value of marked as the seletected one.xmlFile- the filename of the XML file to useappContext- theAppContextobject to use to find the file.addDefault- indicates whether a new option entry should be created at the beginning for simulating a default value entry on the combo box.defaultContent- the text of the new default option will hold - if applicabledefaultValue- the value of the new default option will hold - if applicableextraParameters- any other properties or events that should be defined on the combo box. For example:ONCHANGE=\"update();\"baseBean- The basebean used for features.- Returns:
- whether it found the selected item.
-
fillComboFromXML
public static boolean fillComboFromXML(MarkupOutput mo, int indent, java.lang.String name, java.lang.String size, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext, boolean addDefault, java.lang.String defaultContent, java.lang.String defaultValue, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Fills a COMBO box with the contents of an XML file.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributesize- the value of the SIZE attribute *selectedValue- the value of marked as the seletected one.xmlFile- the filename of the XML file to useappContext- theAppContextobject to use to find the file.addDefault- indicates whether a new option entry should be created at the beginning for simulating a default value entry on the combo box.defaultContent- the text the new default option will hold - if applicabledefaultValue- the value of the new default option will hold - if applicableextraParameters- any other properties or events that should be defined on the combo box. For example:ONCHANGE=\"update();\"- Returns:
- whether it found the selected item.
-
generateComboOptions
public static Tag[] generateComboOptions(WebComponent bean, AppContext appContext, ShortcutList list, java.lang.String selectedValue)
Helper metod that returns an array of option Tags to be used in a combobox. The list of options is taken from the givenShortcutList. This method makes sure that the features in theShortcutare correctly applied to theOption- Since:
- MicroStrategy Web 8.0.0
-
generateComboOptions
public static Tag[] generateComboOptions(WebComponent bean, AppContext appContext, ShortcutList list, java.lang.String selectedValue, boolean useEventIDOnly)
Helper metod that returns an array of option Tags to be used in a combobox. The list of options is taken from the givenShortcutList. This method makes sure that the features in theShortcutare correctly applied to theOption- Since:
- MicroStrategy Web 8.0.0
-
fillComboFromXML
public static boolean fillComboFromXML(MarkupOutput mo, WebComponent baseBean, int indent, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext, java.lang.String comboKey, java.lang.String localeID)
Fills a COMBO box with the contents of an XML file.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forselectedValue- the value of marked as the seletected one.xmlFile- the filename of the XML file to useappContext- theAppContextobject to use to find the file.comboKey- if a key is to be searched for on the xmlFile (list_options tag)localeID- if a localeID is to be searched for on the xmlFile (list_options tag)- Returns:
- whether it found the selected item.
-
fillComboFromXML
public static boolean fillComboFromXML(MarkupOutput mo, int indent, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext, java.lang.String comboKey, java.lang.String localeID)
Fills a COMBO box with the contents of an XML file.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forselectedValue- the value of marked as the seletected one.xmlFile- the filename of the XML file to useappContext- theAppContextobject to use to find the file.comboKey- if a key is to be searched for on the xmlFile (list_options tag)localeID- if a localeID is to be searched for on the xmlFile (list_options tag)- Returns:
- whether it found the selected item.
-
fillComboFromXML
public static boolean fillComboFromXML(MarkupOutput mo, int indent, java.lang.String selectedValue, java.lang.String xmlFile, AppContext appContext)
Fills a COMBO box with the contents of an XML file.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forselectedValue- the value of marked as the seletected one.xmlFile- the filename of the XML file to useappContext- theAppContextobject to use to find the file.- Returns:
- whether it found the selected item.
-
generateComboBox
public static void generateComboBox(MarkupOutput mo, int indent, java.lang.String name, java.lang.String[][] options, java.lang.String currentValue, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Renders a combobox with the list of given options. The option who matches the current value is automatically selected. The extraParameters argument might include other <SELECT> attributes to be added to the HTML to be generated.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributeoptions- a two-dimensional array with the values and text to use for each one of the optionscurrentValue- the value of the currently selected optionextraParameters- any other attributes that should be defined when creating the combo box.
-
generateComboBox
public static void generateComboBox(MarkupOutput mo, int indent, java.lang.String name, java.lang.String[][] options, java.lang.String currentValue)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Renders a combobox with the list of given options. The option who matches the current value is automatically selected.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributeoptions- a two-dimensional array with the values and text to use for each one of the optionscurrentValue- the value of the currently selected option
-
generateComboBox
public static void generateComboBox(MarkupOutput mo, int indent, java.lang.String name, HashList options, java.lang.String currentValue, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Renders a combobox with the list of given options. The option who matches the current value is automatically selected. The extraParameters argument might include other <SELECT> attributes to be added to the HTML to be generated.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributeoptions- hash list with the values and text to use for each one of the optionscurrentValue- the value of the currently selected optionextraParameters- any other attributes that should be defined when creating the combo box.
-
generateOPTION
public static Tag generateOPTION(java.lang.String value, java.lang.String content, boolean selected)
Returns an optionTagwith the information provided- Parameters:
value- String with the value of the optioncontent- String with the text to be displayed for that optionselected- boolean indicating if it's currently selected- Returns:
Tag
-
generateOPTION
public static void generateOPTION(MarkupOutput mo, int indent, java.lang.String value, java.lang.String content, boolean selected, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Renders an <OPTION> tag with the information provided- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forvalue- String with the value of the optioncontent- String with the text to be displayed for that optionselected- boolean indicating if it's currently selectedextraParameters- any other attributes or events that shall be added to the tag.
-
generateOPTION
public static void generateOPTION(MarkupOutput mo, int indent, java.lang.String value, java.lang.String content, boolean selected, java.lang.String extraParameters, boolean encodeData)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Renders an <OPTION> tag with the information provided- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forvalue- String with the value of the optioncontent- String with the text to be displayed for that optionselected- boolean indicating if it's currently selectedextraParameters- any other attributes or events that shall be added to the tag.
-
generateComboBox
public static void generateComboBox(MarkupOutput mo, int indent, java.lang.String name, HashList options, java.lang.String currentValue)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Renders a combobox with the list of given options. The option who matches the current value is automatically selected.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributeoptions- hash list with the values and text to use for each one of the optionscurrentValue- the value of the currently selected option
-
generateCheckBox
public static void generateCheckBox(MarkupOutput mo, int indent, java.lang.String name, java.lang.String currentValue, java.lang.String extraParameters)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Renders a checkbox given a value. If the value is 1, the box is rendered checked.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributecurrentValue- the value of the check boxextraParameters- the extra parameters to be rendered with this checkbox
-
generateCheckBox
public static void generateCheckBox(MarkupOutput mo, int indent, java.lang.String name, java.lang.String currentValue)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Renders a checkbox given a value. If the value is 1, the box is rendered checked.- Parameters:
mo-MarkupOutputobject to use.indent- the indentation level to generate forname- the value of the NAME attributecurrentValue- the value of the check box
-
generateCloseAnchor
public static void generateCloseAnchor(MarkupOutput mo)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Closes an anchor tag.- Parameters:
mo-MarkupOutputobject to use.
-
generateCloseAnchor
public static void generateCloseAnchor(java.lang.StringBuffer sb)
Deprecated.Tags should be generated using the Tags infrastructure. SeeTagsFactory.Closes an anchor tag.- Parameters:
sb-StringBufferobject to use.
-
displayError
public static void displayError(MarkupOutput transOut, java.lang.String className, java.lang.String methodName, java.lang.Exception e, java.lang.String title, java.lang.String message)
Writes an error message.- Parameters:
transOut- the outputclassName- the class that originated the errormethodName- the method where the error was originatede- the exception caught that caused the errortitle- the title for the error messagemessage- the error message to display
-
displayError
public static void displayError(MarkupOutput out, java.lang.String className, java.lang.String methodName, java.lang.Exception e, java.lang.String title, java.lang.String message, java.lang.String errorInfo, java.lang.String contactInfo)
Deprecated.This is method has been deprecated as css-classes are not optional anymore.Writes an error message.- Parameters:
out- the outputclassName- the class that originated the errormethodName- the method where the error was originatede- the exception caught that caused the errortitle- the title for the error messagemessage- the error message to displayerrorInfo- the error information
-
displayError
public static void displayError(MarkupOutput out, java.lang.String className, java.lang.String methodName, java.lang.Exception e, java.lang.String title, java.lang.String message, java.lang.String errorInfo, java.lang.String contactInfo, Tag extra)
Writes an error message.- Parameters:
out- the outputclassName- the class that originated the errormethodName- the method where the error was originatede- the exception caught that caused the errortitle- the title for the error messagemessage- the error message to dispalextra- a Tag containing any extra information to display with the error- Since:
- MicroStrategy Web 8.0.0
-
euroEncode
public static java.lang.String euroEncode(java.lang.String oldStr)
Deprecated.The application doesn't require to encode the Euro symbol.Encodes the Euro symbol within the given string.- Parameters:
oldStr- The string to encode- Returns:
- the encoded string, changing only the euro character into its display representation
-
encode
public static java.lang.String encode(java.lang.String oldStr)
Encodes a string using HTML encoding. This is the type of encoding that enables a browser to correctly display all characters.- Parameters:
oldStr- String to encode- Returns:
- an HTML encoded string.
-
encode
public static java.lang.String encode(java.lang.String oldStr, boolean encodeSpaces)
-
encodeEscapeApostrophe
public static java.lang.String encodeEscapeApostrophe(java.lang.String oldStr)
-
encodeForTooltip
public static java.lang.String encodeForTooltip(java.lang.String tooltipStr)
-
encodeForAllowHtmlOnMetrics
public static java.lang.String encodeForAllowHtmlOnMetrics(java.lang.String oldStr)
-
encodeExcludeSubStr
public static java.lang.String encodeExcludeSubStr(java.lang.String excludeStr, java.lang.String wholeStr)/** encode object details, the description part will not encode if allowing html on object description- Parameters:
excludeStr-Stringthe substring which will not be encode in the whole stringwholeStr-Stringthe entire string- Since:
- MicroStrategy Web 9.0.0
-
decode
public static java.lang.String decode(java.lang.String oldStr)
Given an HTML encoded string, returns its decoded version (using plain characters instead of browser's specifc encoding).- Parameters:
oldStr- String to decode- Returns:
- an HTML decoded string.
-
getFormattedValue
public static java.lang.String getFormattedValue(java.lang.String value, java.util.Locale locale)Converts any value with decimal to the corrected format. For example, the spanish version of 8.5 is 8,5 and the output is formatted to 8.5- Since:
- MicroStrategy Web 8.0.0
-
convertFormattedValue
public static java.lang.String convertFormattedValue(java.lang.String value, java.util.Locale locale)Converts any value with decimal into locale dependent format. For example, the spanish version of 8.5 is 8,5 and the output is formatted to 8,5- Since:
- MicroStrategy Web 9.0.0
-
convertInchesToPixel
public static java.lang.String convertInchesToPixel(java.lang.String inches, int dpiConversion, java.util.Locale locale, int zoomFactor)Converts inches into pixels.- Parameters:
inches- String with the inches valuesdpiConversion- Conversion factor to convert from inches to pixelslocale- current locatezoomFactor- The zoom level at which the user wants to see the objects- Returns:
- the the conversion of inches to pixels.
- Since:
- MicroStrategy Web 8.0.0
-
convertPixelsToInches
public static java.lang.String convertPixelsToInches(java.lang.String pixels, int dpiConversion, java.util.Locale locale, int zoomFactor)Converts pixels into inches.- Parameters:
pixels- String with the pixels valuedpiConversion- Conversion factor to convert from inches to pixelslocale- current locatezoomFactor- The zoom level at which the user wants to see the objects- Returns:
- the the conversion of inches to pixels.
- Since:
- MicroStrategy Web 8.0.0
-
convertPixelsToInches
public static double convertPixelsToInches(double pixels, int dpiConversion, int zoomFactor)Converts pixels to inches- Parameters:
pixels- double value with the number of pixels to convert to inchesdpiConversion- Conversion factor to convert from inches to pixelszoomFactor- The zoom level at which the user wants to see the objects- Returns:
- the conversion of pixels to inches.
- Since:
- MicroStrategy Web 8.0.1
-
convertPtsToPixels
public static double convertPtsToPixels(double pts, int dpiConversion, int zoomFactor)Convert points to pixels- Parameters:
pts- double value with the number of points to convert to pixels.dpiConversion- Conversion factor to convert from inches to pixelszoomFactor- The zoom level at which the user wants to see the objects- Returns:
- double value with the number of pixels given the point units indicated
- Since:
- MicroStrategy Web 8.0.1
-
convertPixelsToPoints
public static double convertPixelsToPoints(double pixels, int dpiConversion, int zoomFactor)Convert pixels to points- Parameters:
pixels- double value with the number of pixels to convert to points.dpiConversion- Conversion factor to convert from inches to pixelszoomFactor- The zoom level at which the user wants to see the objects- Returns:
- double value with the number of points given the pixel units indicated
- Since:
- MicroStrategy Web 8.0.1
-
convertPtsToInches
public static double convertPtsToInches(double pts)
Converts points into inches.- Parameters:
pts- String with the pts values- Returns:
- the conversion of pts to pixels.
- Since:
- MicroStrategy Web 8.0.0
-
fixPixelsForBase96
public static int fixPixelsForBase96(int pixels, int dpiConversion, int zoomFactor)Adjusts pixels for zoom and dpi assuming a base dpi of 96.- Parameters:
pixels- The number of pixelsdpiConversion- Conversion factor to convert from inches to pixelszoomFactor- The zoom level at which the user wants to see the objects- Returns:
- the number of pixels using the dpi and zoom factor.
- Since:
- MicroStrategy Web 8.0.0
-
fixPointsForZoom
public static java.lang.String fixPointsForZoom(java.lang.String points, int zoomFactor)Fixes the point values used for font size and weight based on DPI conversion factor and zoom factors.- Parameters:
points- String with the points values- Returns:
- the the conversion of inches to pixels.
- Since:
- MicroStrategy Web 8.0.0
-
convertColorDecimalToHex
public static java.lang.String convertColorDecimalToHex(java.lang.String colorCode)
Converts the integer representation of a color into its hexadecimal representation.- Parameters:
colorCode- a String with the decimal representation of the code to translate- Returns:
- the hexadecimal color code as requested (as CCCCCC). If anything goes wrong, returns a null string.
-
convertColorHSBToHex
public static java.lang.String convertColorHSBToHex(int hue, int saturation, int brightness)Converts the hsb components of a color into its hexadecimal representation.- Parameters:
hue- a String with the hue component of a colorsaturation- a String with the saturation component of a colorbrightness- a String with the brightness component of a color- Returns:
- the hexadecimal color code as requested (e.g. CCCCCC). If anything goes wrong, returns a null string.
- Since:
- MicroStrategy Web 8.0.0
-
convertColorRGBToHSB
public static int[] convertColorRGBToHSB(int r, int g, int b)Converts the red, green and blue components of a color into hsb components.- Parameters:
r- an int with the red component of a colorg- an int with the green component of a colorb- an int with the blue component of a color- Returns:
- an array of ints containing the hue, saturation and brightness of the requested color.
- Since:
- MicroStrategy Web 8.0.0
-
convertColorBGRtoRGB
public static java.lang.String convertColorBGRtoRGB(java.lang.String colorHexCode)
Converts the hexadecimal representation of a color into its RRGGBB format or BBGGRR.- Parameters:
colorHexCode- a String with the hexadecimal representation of the code to translate- Returns:
- the hexadecimal color code as requested. If original was RGB, the result is its BGR format, and viceversa
-
convertColorHexToDecimal
public static java.lang.String convertColorHexToDecimal(java.lang.String colorCode)
Converts the hexadecimal color code (e.g. #CCCCCC) sent as parameter to its decimal representation- Parameters:
colorCode- a String containing the hexadecimal representation of the color to translate- Returns:
- a String with the integer value of the hexadecimal code. If anything goes wrong, returns a null.
-
convertColorDecimalToRGB
public static java.lang.String convertColorDecimalToRGB(java.lang.String colorCode)
Converts the decimal representation of a color into its RRGGBB format.- Parameters:
colorCode- a String containing the decimal representation of the color to translate- Returns:
- a String with the integer value of the hexadecimal code. If anything goes wrong, returns a null.
- Since:
- MicroStrategy Web 9.0.0
-
convertColorDecimalToRGB
public static java.lang.String convertColorDecimalToRGB(int color)
Converts the decimal representation of a color into its RRGGBB format.- Parameters:
color- a String containing the decimal representation of the color to translate- Returns:
- a String with the integer value of the hexadecimal code. If anything goes wrong, returns a null.
- Since:
- MicroStrategy Web 9.0.0
-
formatObjectInfoValue
public static java.lang.String formatObjectInfoValue(java.lang.String id, int type, java.lang.String name)With the given parameters, returns the string used by some event-handlers to identify an object-info. This string can then be used as the value of an<INPUT>tag to submit it in a form.- Parameters:
id- object-idtype- object-typename- object-name- Returns:
- A string value used to identify an object-info.
-
formatAttributeFormValue
public static java.lang.String formatAttributeFormValue(java.lang.String attId, java.lang.String formId, int formDataType, java.lang.String attName, java.lang.String formName)Deprecated.With the given parameters, returns the string used by some event-handlers to identify an attribute form. This string can then be used as the value of an<INPUT>tag to submit it in a form.- Parameters:
attId- Attribute idformId- Form-idformDataType- Form's data-typeattName- Attribute nameformName- Form name- Returns:
- A string value used to identify an attribute-form.
-
formatAttributeValue
public static java.lang.String formatAttributeValue(java.lang.String attId, java.lang.String attName)With the given parameters, returns the string used by some event-handlers to identify an attribute. This string can then be used as the value of an<INPUT>tag to submit it in a form.- Parameters:
attId- Attribute idattName- Attribute name- Returns:
- A string value used to identify an attribute-form.
-
formatAttributeFormDisplay
public static java.lang.String formatAttributeFormDisplay(java.lang.String attName, java.lang.String formName)Returns the string used to display an attribute form to the end user. This method shows the attribute's name followed by the attribute form enclosed in parenthesis.- Parameters:
attName- Attribute's nameformName- Attribute form's name.- Returns:
- A string to display the attribute form to the end user.
-
formatAttributeFormValueForSingleAttr
public static java.lang.String formatAttributeFormValueForSingleAttr(java.lang.String formId, int formDataType, java.lang.String formName)Deprecated.Returns the string used by some event-handlers to identify an attribute form when there can only be a single attribute in the request. This string can then be used as the value of an<INPUT>tag to submit it in a form.- Parameters:
formId- Form-idformDataType- Form's data-typeformName- Form name- Returns:
- String
-
getRequestKeysString
public static java.lang.String getRequestKeysString(BeanContext context)
Returns the string representation of the request keys as an & delimited list of name=value pairs.- Parameters:
context- BeanContext to retrieve the request keys.- Returns:
- String representation of the corresponding request keys.
-
generateHiddenInputsForEvent
public static void generateHiddenInputsForEvent(MarkupOutput mo, int indent, WebEvent event)
Deprecated.Generates the set of hidden inputs associated with a given event- Parameters:
mo- MarkupOutput object to useindent- default indentation to use.event- The correspondingWebEvent.
-
generateHiddenInputsForEvent
public static void generateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event)
Generates the set of hidden inputs associated with a given event using the minal state info.- Since:
- MicroStrategy Web 8.0.0
- See Also:
generateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event, boolean isDhtml, int state)
-
generateHiddenInputsForEvent
public static void generateHiddenInputsForEvent(MarkupOutput mo, int indent, WebEvent event, boolean isDhtml)
Deprecated.Generates the set of hidden inputs associated with a given event- Parameters:
mo- MarkupOutput object to useindent- default indentation to use.event- The correspondingWebEvent.isDhtml- iftrue, the page state hidden inputs are added dynamically using JavaScript.
-
generateHiddenInputsForEvent
public static void generateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event, boolean isDhtml)
Generates the set of hidden inputs associated with a given event using the minal state info.- Since:
- MicroStrategy Web 8.0.0
- See Also:
generateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event, boolean isDhtml, int state)
-
generateHiddenInputsForEvent
public static void generateHiddenInputsForEvent(MarkupOutput mo, int indent, WebEvent event, boolean isDhtml, int state)
Deprecated.Generates the set of hidden inputs associated with a given event.- Parameters:
mo- MarkupOutput object to useindent- default indentation to use.event- The correspondingWebEvent.isDhtml- iftrue, the page state hidden inputs are added dynamically using JavaScript.state- If page-state is to be added, this parameter (whose values come fromEnumWebPersistableState) determines how much state.
-
generateHiddenInputsForEvent
public static void generateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event, boolean isDhtml, int state)
Generates the set of hidden inputs associated with a given event. This method will use either theParameterBuilder(if provided) or the event itself (otherwise).- Parameters:
mo- MarkupOutput object to useparamBldr- ParameterBuilder responsible to create the hidden inputs.indent- default indentation to use.event- The correspondingWebEvent.isDhtml- iftrue, the page state hidden inputs are added dynamically using JavaScript.state- If page-state is to be added, this parameter (whose values come fromEnumWebPersistableState) determines how much state.- Since:
- MicroStrategy Web 8.0.0
-
generateHiddenInputsForEvent
public static void generateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event, boolean isDhtml, int state, boolean renderState)
-
generateHiddenInputsForEventList
public static void generateHiddenInputsForEventList(MarkupOutput mo, int indent, java.util.ArrayList eventList, boolean isDhtml, int state)
Deprecated.use generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, boolean isDhtml, int state, NamespaceEncoder nse)Generates those hidden inputs associated with the given event list. Using this method callers can ensure the page's state hidden inputs are only included once.- Parameters:
mo- MarkupOutput object to useindent- default indentation to use.eventList- List of events.isDhtml- iftrue, the page state hidden inputs are added dynamically using JavaScript.state- If page-state is to be added, this parameter (whose values come fromEnumWebPersistableState) determines how much state.
-
generateHiddenInputsForEventList
public static void generateHiddenInputsForEventList(MarkupOutput mo, int indent, java.util.ArrayList eventList, boolean isDhtml)
Deprecated.use generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, boolean isDhtml, NamespaceEncoder nse)Generates those hidden inputs associated with the given event list. Using this method callers can ensure the page's state hidden inputs are only included once.- Parameters:
mo- MarkupOutput object to useindent- default indentation to use.eventList- List of events.isDhtml- iftrue, the page state hidden inputs are added dynamically using JavaScript.
-
generateHiddenInputsForEventList
public static void generateHiddenInputsForEventList(MarkupOutput mo, int indent, java.util.ArrayList eventList)
Deprecated.use generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, NamespaceEncoder nse)Generates those hidden inputs associated with the given event list. Using this method callers can ensure the page's state hidden inputs are only included once.- Parameters:
mo- MarkupOutput object to useindent- default indentation to use.eventList- List of events.
-
generateHiddenInputsForEventList
public static void generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, java.util.ArrayList eventList, boolean isDhtml, int state, NamespaceEncoder nse)
Generates those hidden inputs associated with the given event list. Using this method callers can ensure the page's state hidden inputs are only included once.- Parameters:
mo- MarkupOutput object to usecntrSvcs- ContainerServices to create newParameterBuilderinstancesindent- default indentation to use.eventList- List of events.isDhtml- iftrue, the page state hidden inputs are added dynamically using JavaScript.state- If page-state is to be added, this parameter (whose values come fromEnumWebPersistableState) determines how much state.nse- Used to encode the input's names (seenewInputHidden(java.lang.String, java.lang.String, com.microstrategy.web.platform.NamespaceEncoder))- Since:
- MicroStrategy Web 8.0.0
-
generateEventOrderForList
public static void generateEventOrderForList(MarkupOutput mo, java.util.ArrayList eventList, NamespaceEncoder nse)
- Since:
- MicroStrategy Web 9.0.0
-
generateHiddenInputsForEventList
public static void generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, java.util.ArrayList eventList, boolean isDhtml, NamespaceEncoder nse)
Generates those hidden inputs associated with the given event list. Using this method callers can ensure the page's state hidden inputs are only included once.- Parameters:
mo- MarkupOutput object to usecntrSvcs- ContainerServices to create newParameterBuilderinstancesindent- default indentation to use.eventList- List of events.isDhtml- iftrue, the page state hidden inputs are added dynamically using JavaScript.nse- Used to encode the input's names (seenewInputHidden(java.lang.String, java.lang.String, com.microstrategy.web.platform.NamespaceEncoder))- Since:
- MicroStrategy Web 8.0.0
-
generateHiddenInputsForEventList
public static void generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, java.util.ArrayList eventList, NamespaceEncoder nse)
Generates those hidden inputs associated with the given event list. Using this method callers can ensure the page's state hidden inputs are only included once.- Parameters:
mo- MarkupOutput object to usecntrSvcs- ContainerServices to create newParameterBuilderinstancesindent- default indentation to use.eventList- List of events.nse- Used to encode the input's names (seenewInputHidden(java.lang.String, java.lang.String, com.microstrategy.web.platform.NamespaceEncoder))- Since:
- MicroStrategy Web 8.0.0
-
getWebVersionHashCode
public static java.lang.String getWebVersionHashCode(AppContext appContext)
Get hash code of web version Used to append as version parameter when loading resource- Parameters:
appContext- Current AppContext- Returns:
- hash code of web version
-
getAppVersion
public static java.lang.String getAppVersion()
-
getResourcePathWithVersion
public static java.lang.String getResourcePathWithVersion(java.lang.String originResourcePath, AppContext appContext)Append web version parameter to resource path if it's not disabled in debug flag E.g. ../javascript/example.js?v=12345 Version parameter is used to disable browser resource cache when code version updates.- Parameters:
originResourcePath- Original resource path without parameterpage- Current PageComponent object- Returns:
- Resource path with version if needed
-
isPluginResource
public static boolean isPluginResource(java.lang.String resourcePath)
-
appendScriptTag
public static void appendScriptTag(MarkupOutput mo, AppContext appContext, java.lang.String filePath)
Append script tag to MarkupOutput to load script file- Parameters:
mo- MarkupOutput object to useappContext- Current AppContextfilePath- The name of the JavaScript file
-
appendStyleLinkTag
public static void appendStyleLinkTag(MarkupOutput mo, AppContext appContext, java.lang.String cssFile)
Append css style link tag to MarkupOutput to load css file- Parameters:
mo- MarkupOutput object to useappContext- Current AppContextcssFile- The name of the css file
-
generateDynamicScript
public static void generateDynamicScript(MarkupOutput mo, AppContext appContext, java.lang.String fileName, java.lang.String key)
Adds a script tag with a link to dynamically load a JavaScript file. This is used by the Transforms to ensure a script file is included in the HTML output.- Parameters:
mo- MarkupOutput object to useappContext- Used to determine if certain features are availablefileName- The name of the JavaScript filekey- A unique key that identifies this file in the page.
-
isDefaultPreferenceValue
public static boolean isDefaultPreferenceValue(java.lang.String preferenceName, java.lang.String preferenceValue)This method checks if the given preference exists with in the Admin Preferences, and if its value is the given one.
This method will returntrueby default. It only returns false if the preference exists but its value doesn't correspond to the given one.- Parameters:
preferenceName- Name of preferencepreferenceValue- Value of preference.- Returns:
falseif the given value doesn't correspond to the value saved in the preference.trueotherwise.- Since:
- MicroStrategy Web 7.5.1
-
newURIBuilder
protected static ParameterBuilder newURIBuilder(AppContext appContext)
Creates a newParameterBuilderfrom theAppContext. If theAppContextis null, or theAppContexthas noContainerServices, this method returns null.- Parameters:
appContext- Where theParameterBuildershould be retrieved.- Returns:
- A new instance of a
ParameterBuilderif available. - Since:
- MicroStrategy Web 8.0.0
-
newImageTag
public static ImageTag newImageTag(java.lang.String src, java.lang.String width, java.lang.String height, java.lang.String alt)
Convenience method that creates a
IMGtag from theTagsFactory. It receives as parameters those attributes most commonly used for this type of input. All parameters are optional, if they are not specified, they are not set as part of the tag's attributes.- Parameters:
src- Sets the img's "src"width- Sets the img's "width"height- Sets the img's "height"alt- Sets the img's "Alt"- Returns:
- An
ImageTagpopulated with the given values. - Since:
- MicroStrategy Web 8.0.0
-
newInputText
public static InputTag newInputText(java.lang.String name, java.lang.String value, java.lang.String size, java.lang.String maxLength, NamespaceEncoder nse)
Convenience method that creates a text field from the
TagsFactory. It receives as parameters those attributes most commonly used for this type of input. All parameters are optional, if they are not specified, they are not set as part of the tag's attributes.If a
NamespaceEncoderis provide, it will be used to encode the tag's name. This is only required when the application is run in the context of a Portal.- Parameters:
name- Used for theEnumHTMLTags.ATT_IDandEnumHTMLTags.ATT_NAMEattributesvalue- Used for the Input's value.size- Used for theEnumHTMLTags.ATT_SIZEattribute.maxLength- Used for theEnumHTMLTags.ATT_MAXLENGTHattribute.nse- If provided, is used to encode theEnumHTMLTags.ATT_NAMEattribute.- Returns:
- An
InputTagpopulated with the given values. - Since:
- MicroStrategy Web 8.0.0
-
newInputNumber
public static InputTag newInputNumber(java.lang.String name, java.lang.String value, java.lang.String minValue, java.lang.String maxValue, NamespaceEncoder nse)
-
newInputSubmit
public static InputTag newInputSubmit(java.lang.String name, java.lang.String value, NamespaceEncoder nse)
Convenience method that creates a submit button from the
TagsFactory. It receives as parameters those attributes most commonly used for this type of input. All parameters are optional, if they are not specified, they are not set as part of the tag's attributes.If a
NamespaceEncoderis provided, it will be used to encode the tag's name. This is only required when the application is run in the context of a Portal.- Parameters:
name- Used for theEnumHTMLTags.ATT_IDandEnumHTMLTags.ATT_NAMEattributesvalue- Used for the Input's value.nse- If provided, is used to encode theEnumHTMLTags.ATT_NAMEattribute.- Returns:
- An
InputTagpopulated with the given values. - Since:
- MicroStrategy Web 8.0.0
-
newInputRadio
public static InputTag newInputRadio(java.lang.String id, java.lang.String name, java.lang.String value, boolean checked, NamespaceEncoder nse)
Convenience method that creates a radio button from the
TagsFactory. It receives as parameters those attributes most commonly used for this type of input. All parameters are optional, if they are not specified, they are not set as part of the tag's attributes.If a
NamespaceEncoderis provided, it will be used to encode the tag's name. This is only required when the application is run in the context of a Portal.- Parameters:
id- used for theEnumHTMLTags.ATT_IDattributename- Used for theEnumHTMLTags.ATT_NAMEattributevalue- Used for the Input's value.checked- Iftruesets theEnumHTMLTags.ATT_CHECKEDattribute to "1".nse- If provided, is used to encode theEnumHTMLTags.ATT_NAMEattribute.- Returns:
- An
InputTagpopulated with the given values. - Since:
- MicroStrategy Web 9.0.0
-
newInputRadio
public static InputTag newInputRadio(java.lang.String name, java.lang.String value, boolean checked, NamespaceEncoder nse)
Convenience method that creates a radio button from the
TagsFactory. It receives as parameters those attributes most commonly used for this type of input. All parameters are optional, if they are not specified, they are not set as part of the tag's attributes.If a
NamespaceEncoderis provided, it will be used to encode the tag's name. This is only required when the application is run in the context of a Portal.- Parameters:
name- Used for theEnumHTMLTags.ATT_IDandEnumHTMLTags.ATT_NAMEattributesvalue- Used for the Input's value.checked- Iftruesets theEnumHTMLTags.ATT_CHECKEDattribute to "1".nse- If provided, is used to encode theEnumHTMLTags.ATT_NAMEattribute.- Returns:
- An
InputTagpopulated with the given values. - Since:
- MicroStrategy Web 8.0.0
-
generateJavaScriptMethodCall
public static java.lang.String generateJavaScriptMethodCall(java.lang.String methodName, java.lang.String[] args, boolean includeReturn, int indexForThis)Utility method to generate Javascript method call in HTML.- Parameters:
methodName- javascript method nameargs- arguments for the method callincludeReturn- True indicates that "return" would be generated in the method call.indexForThis- specifies index for "this" in the method call. value of -1 implies that "this" does'nt need to be included.- Returns:
- String with the Javascript call code generated
- Since:
- MicroStrategy Web 8.1.0
-
newInputCheck
public static InputTag newInputCheck(java.lang.String name, java.lang.String value, boolean checked, NamespaceEncoder nse)
Convenience method that creates a checkbox from the
TagsFactory. It receives as parameters those attributes most commonly used for this type of input. All parameters are optional, if they are not specified, they are not set as part of the tag's attributes.If a
NamespaceEncoderis provide, it will be used to encode the tag's name. This is only required when the application is run in the context of a Portal.- Parameters:
name- Used for theEnumHTMLTags.ATT_IDandEnumHTMLTags.ATT_NAMEattributesvalue- Used for the Input's value.checked- Iftruesets theEnumHTMLTags.ATT_CHECKEDattribute to "1".nse- If provided, is used to encode theEnumHTMLTags.ATT_NAMEattribute.- Returns:
- An
InputTagpopulated with the given values. - Since:
- MicroStrategy Web 8.0.0
-
newInputHidden
public static InputTag newInputHidden(java.lang.String name, java.lang.String value, NamespaceEncoder nse)
Convenience method that creates a hidden input from the
TagsFactory. It receives as parameters those attributes most commonly used for this type of input. All parameters are optional, if they are not specified, they are not set as part of the tag's attributes.If a
NamespaceEncoderis provide, it will be used to encode the tag's name. This is only required when the application is run in the context of a Portal.- Parameters:
name- Used for theEnumHTMLTags.ATT_IDandEnumHTMLTags.ATT_NAMEattributesvalue- Used for the Input's value.nse- If provided, is used to encode theEnumHTMLTags.ATT_NAMEattribute.- Returns:
- An
InputTagpopulated with the given values. - Since:
- MicroStrategy Web 8.0.0
-
newInputImage
public static InputTag newInputImage(java.lang.String name, java.lang.String src, java.lang.String width, java.lang.String height, java.lang.String title, NamespaceEncoder nse)
Convenience method that creates an image input from the
TagsFactory. It receives as parameters those attributes most commonly used for this type of input. All parameters are optional, if they are not specified, they are not set as part of the tag's attributes.If a
NamespaceEncoderis provided, it will be used to encode the tag's name. This is only required when the application is run in the context of a Portal.- Parameters:
name- Used for theEnumHTMLTags.ATT_IDandEnumHTMLTags.ATT_NAMEattributessrc- Used for theEnumHTMLTags.ATT_SRCattribute.width- Used for theEnumHTMLTags.ATT_WIDTHattribute.height- Used for theEnumHTMLTags.ATT_HEIGHTattribute.title- Used for theEnumHTMLTags.ATT_TITLEattribute.nse- If provided, is used to encode theEnumHTMLTags.ATT_NAMEattribute.- Returns:
- An
InputTagpopulated with the given values. - Since:
- MicroStrategy Web 8.0.0
-
getOfficeLink
public static java.lang.String getOfficeLink()
Deprecated.This method has been deprecated. Use the method HTMLHelper.getOfficeLink(AppContext appContext) instead.Retrieves the Office Link URL from the default or Admin Preferences.- Since:
- MicroStrategy Web 8.0.0
-
getOfficeLink
public static java.lang.String getOfficeLink(AppContext appContext)
Retrieves the Office Link URL from the default or Admin Preferences.- Since:
- MicroStrategy Web 8.0.1
-
getQuickSymbolImageSource
public static java.lang.String getQuickSymbolImageSource(int type)
Deprecated.replaced byEnumQuickSymbol.get(int)andEnumQuickSymbol.getImageSource()Returns the image source to be used for quick symbol threshold replacement in 508 mode.- Parameters:
type- intEnumDSSXMLSymbol- Returns:
- String image source
- Since:
- MicroStrategy Web 9.0.0
-
renderQuickSymbolforText
public static void renderQuickSymbolforText(MarkupOutput out, java.lang.String text, boolean isIE)
Deprecated.should not use this - seeEnumQuickSymbolGenerates the HTML the text as a "quick symbol"- Parameters:
out- the output objecttext-- Since:
- MicroStrategy Web 9.0.0
-
getQuickSymbolString
public static java.lang.String getQuickSymbolString(int type)
Deprecated.replaced byEnumQuickSymbol.get(int)andEnumQuickSymbol.getWingdingsString()Returns the wingdings string that visually represents the supplied quick symbol type.- Parameters:
type- intEnumDSSXMLSymbol- Returns:
- String single character to be rendered using WingDings
- Since:
- MicroStrategy Web 9.0.0
-
getQuickSymbolUnicode
public static java.lang.String getQuickSymbolUnicode(int type)
Deprecated.seeEnumQuickSymbolReturns the unicode id that visually represents the supplied quick symbol type.- Parameters:
type- intEnumDSSXMLSymbol- Returns:
- String single character to be rendered using WingDings
- Since:
- MicroStrategy Web 9.0.0
-
getQuickSymbolUnicodeByChar
public static java.lang.String getQuickSymbolUnicodeByChar(char character)
Deprecated.should not be used - seeEnumQuickSymbolReturns the unicode id that visually represents the supplied quick symbol type by orginal char.- Parameters:
character- char- Returns:
- String unicode which will be used for Firefox
- Since:
- MicroStrategy Web 9.0.0
-
computeTextboxSize
public static java.lang.String computeTextboxSize(java.lang.String value, int max)- Since:
- MicroStrategy Web 9.0.0
-
convertImageUri
public static java.lang.String convertImageUri(java.lang.String value)
Adjusts image URI.For firefox, backslashes "\" in URI is encoded as a character "%5C" which causes images cannot be displayed. Backslashes in path component of URI would be replaced by forward slash.
- Parameters:
value- original URI- Returns:
- the adjusted URI.
- Since:
- MicroStrategy Web Polaris
-
-