java.lang.Object | |
↳ | com.microstrategy.web.app.utils.HTMLHelper |
This 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
TAGS
infrastructure 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, String, String, Exception, String, String)
convertInchesToPixel(String, int, Locale, int)
convertColorDecimalToHex(String)
convertColorHexToDecimal(String)
For more information about the Tags infrastrucuture, refere to TagsFactory
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CSS_ERROR_MESSAGE | ||||||||||
String | CSS_ERROR_TITLE | ||||||||||
String | DEFAULT_FORM_METHOD | ||||||||||
String | DEFAULT_FORM_NAME | ||||||||||
String | INPUT_TYPE_BUTTON | ||||||||||
String | INPUT_TYPE_CHECKBOX | ||||||||||
String | INPUT_TYPE_HIDDEN | ||||||||||
String | INPUT_TYPE_RADIO | ||||||||||
String | INPUT_TYPE_SUBMIT | ||||||||||
String | INPUT_TYPE_TEXT |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
HTMLHelper()
Creates new HTMLHelper
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void |
appendScriptTag(MarkupOutput mo, AppContext appContext, String filePath)
Append script tag to MarkupOutput to load script file
| ||||||||||
static void |
appendStyleLinkTag(MarkupOutput mo, AppContext appContext, String cssFile)
Append css style link tag to MarkupOutput to load css file
| ||||||||||
static String | computeTextboxSize(String value, int max) | ||||||||||
static String |
convertColorBGRtoRGB(String colorHexCode)
Converts the hexadecimal representation of a color into its RRGGBB format or BBGGRR.
| ||||||||||
static String |
convertColorDecimalToHex(String colorCode)
Converts the integer representation of a color into its hexadecimal representation.
| ||||||||||
static String |
convertColorDecimalToRGB(String colorCode)
Converts the decimal representation of a color into its RRGGBB format.
| ||||||||||
static String |
convertColorDecimalToRGB(int color)
Converts the decimal representation of a color into its RRGGBB format.
| ||||||||||
static String |
convertColorHSBToHex(int hue, int saturation, int brightness)
Converts the hsb components of a color into its hexadecimal representation.
| ||||||||||
static String |
convertColorHexToDecimal(String colorCode)
Converts the hexadecimal color code (e.g.
| ||||||||||
static int[] |
convertColorRGBToHSB(int r, int g, int b)
Converts the red, green and blue components of a color into hsb components.
| ||||||||||
static String |
convertFormattedValue(String value, Locale locale)
Converts any value with decimal into locale dependent format.
| ||||||||||
static String |
convertImageUri(String value)
Adjusts image URI.
| ||||||||||
static String |
convertInchesToPixel(String inches, int dpiConversion, Locale locale, int zoomFactor)
Converts inches into pixels.
| ||||||||||
static double |
convertPixelsToInches(double pixels, int dpiConversion, int zoomFactor)
Converts pixels to inches
| ||||||||||
static String |
convertPixelsToInches(String pixels, int dpiConversion, Locale locale, int zoomFactor)
Converts pixels into inches.
| ||||||||||
static double |
convertPixelsToPoints(double pixels, int dpiConversion, int zoomFactor)
Convert pixels to points
| ||||||||||
static double |
convertPtsToInches(double pts)
Converts points into inches.
| ||||||||||
static double |
convertPtsToPixels(double pts, int dpiConversion, int zoomFactor)
Convert points to pixels
| ||||||||||
static String |
decode(String oldStr)
Given an HTML encoded string, returns its decoded version
(using plain characters instead of browser's specifc encoding).
| ||||||||||
static void |
displayError(MarkupOutput out, String className, String methodName, Exception e, String title, String message, String errorInfo, String contactInfo)
This method is deprecated.
This is method has been deprecated as css-classes are not optional anymore.
| ||||||||||
static void |
displayError(MarkupOutput out, String className, String methodName, Exception e, String title, String message, String errorInfo, String contactInfo, Tag extra)
Writes an error message.
| ||||||||||
static void |
displayError(MarkupOutput transOut, String className, String methodName, Exception e, String title, String message)
Writes an error message.
| ||||||||||
static String |
encode(String oldStr)
Encodes a string using HTML encoding.
| ||||||||||
static String | encode(String oldStr, boolean encodeSpaces) | ||||||||||
static String |
encodeExcludeSubStr(String excludeStr, String wholeStr)
encode object details,
the description part will not encode if allowing html on object description
| ||||||||||
static String |
euroEncode(String oldStr)
This method is deprecated.
The application doesn't require to encode the Euro symbol.
| ||||||||||
static boolean |
fillComboFromXML(MarkupOutput mo, int indent, String name, String size, String selectedValue, String xmlFile, AppContext appContext, boolean addDefault, String defaultContent, String defaultValue, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static boolean |
fillComboFromXML(MarkupOutput mo, int indent, String selectedValue, String xmlFile, AppContext appContext, String comboKey, String localeID)
Fills a COMBO box with the contents of an XML file.
| ||||||||||
static boolean |
fillComboFromXML(MarkupOutput mo, int indent, String name, String size, String selectedValue, String xmlFile, AppContext appContext, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static boolean |
fillComboFromXML(MarkupOutput mo, WebComponent baseBean, int indent, String selectedValue, String xmlFile, AppContext appContext, String comboKey, String localeID)
Fills a COMBO box with the contents of an XML file.
| ||||||||||
static boolean |
fillComboFromXML(MarkupOutput mo, int indent, String selectedValue, String xmlFile, AppContext appContext)
Fills a COMBO box with the contents of an XML file.
| ||||||||||
static boolean |
fillComboFromXML(MarkupOutput mo, int indent, String name, String size, String selectedValue, String xmlFile, AppContext appContext, boolean addDefault, String defaultContent, String defaultValue, String extraParameters, WebComponent baseBean)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static boolean |
fillComboFromXML(MarkupOutput mo, int indent, String name, String size, String selectedValue, String xmlFile, AppContext appContext)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static boolean |
fillComboPaperList(MarkupOutput mo, int indent, String name, String size, String selectedValue, PaperSizesList paperList, AppContext appContext)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static SelectTag |
fillComboPaperList(String name, String selectedValue, PaperSizesList paperList, AppContext appContext)
This method is deprecated.
Use fillComboPaperList(String, String, ShortcutList, AppContext)
| ||||||||||
static SelectTag |
fillComboPaperList(String name, String selectedValue, ShortcutList paperList, AppContext appContext)
Generates a select list containing the elements from the configuration list
| ||||||||||
static int |
fixPixelsForBase96(int pixels, int dpiConversion, int zoomFactor)
Adjusts pixels for zoom and dpi assuming a base dpi of 96.
| ||||||||||
static String |
fixPointsForZoom(String points, int zoomFactor)
Fixes the point values used for font size and weight based on DPI conversion
factor and zoom factors.
| ||||||||||
static String |
formatAttributeFormDisplay(String attName, String formName)
This method is deprecated.
Use
formatAttributeFormDisplay(String, String) .
| ||||||||||
static String |
formatAttributeFormValue(String attId, String formId, int formDataType, String attName, String formName)
This method is deprecated.
Use
formatAttributeFormValue(String, String, int, String, String) .
| ||||||||||
static String |
formatAttributeFormValueForSingleAttr(String formId, int formDataType, String formName)
This method is deprecated.
Use
formatAttributeFormValueForSingleAttr(String, int, String) .
| ||||||||||
static String |
formatAttributeValue(String attId, String attName)
This method is deprecated.
Use
formatObjectInfoValue(String, int, String) .
| ||||||||||
static String |
formatObjectInfoValue(String id, int type, String name)
This method is deprecated.
Use
formatObjectInfoValue(String, int, String) .
| ||||||||||
static void |
generateBUTTON(MarkupOutput mo, int indent, String name, String value, String style)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateBUTTON(MarkupOutput mo, int indent, String name, String value, String style, String type, boolean isDisabled)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateCheckBox(MarkupOutput mo, int indent, String name, String currentValue, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateCheckBox(MarkupOutput mo, int indent, String name, String currentValue)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateCloseAnchor(StringBuffer sb)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateCloseAnchor(MarkupOutput mo)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateComboBox(MarkupOutput mo, int indent, String name, HashList options, String currentValue, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateComboBox(MarkupOutput mo, int indent, String name, String[][] options, String currentValue)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateComboBox(MarkupOutput mo, int indent, String name, String[][] options, String currentValue, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateComboBox(MarkupOutput mo, int indent, String name, HashList options, String currentValue)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static Tag[] |
generateComboOptions(WebComponent bean, AppContext appContext, ShortcutList list, 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, String selectedValue, boolean useEventIDOnly)
Helper metod that returns an array of option Tags to be used in a combobox.
| ||||||||||
static void |
generateDynamicScript(MarkupOutput mo, AppContext appContext, String fileName, String key)
Adds a script tag with a link to dynamically load a JavaScript file.
| ||||||||||
static void | generateEventOrderForList(MarkupOutput mo, ArrayList eventList, NamespaceEncoder nse) | ||||||||||
static void |
generateFONT(MarkupOutput mo, int indent, String fontFace, int fontSize)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateHiddenInputsForEvent(MarkupOutput mo, int indent, WebEvent event, boolean isDhtml)
This method is deprecated.
Use
generateHiddenInputsForEvent(MarkupOutput, ParameterBuilder, int, WebEvent, boolean) instead.
| ||||||||||
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.
| ||||||||||
static void |
generateHiddenInputsForEvent(MarkupOutput mo, int indent, WebEvent event)
This method is deprecated.
Use
generateHiddenInputsForEvent(MarkupOutput, ParameterBuilder, int, WebEvent) instead.
| ||||||||||
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.
| ||||||||||
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.
| ||||||||||
static void |
generateHiddenInputsForEvent(MarkupOutput mo, int indent, WebEvent event, boolean isDhtml, int state)
This method is deprecated.
Use
generateHiddenInputsForEvent(MarkupOutput, ParameterBuilder, int, WebEvent, boolean, int) instead.
| ||||||||||
static void | generateHiddenInputsForEvent(MarkupOutput mo, ParameterBuilder paramBldr, int indent, WebEvent event, boolean isDhtml, int state, boolean renderState) | ||||||||||
static void |
generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, NamespaceEncoder nse)
Generates those hidden inputs associated with the given event list.
| ||||||||||
static void |
generateHiddenInputsForEventList(MarkupOutput mo, int indent, ArrayList eventList, boolean isDhtml, int state)
This method is deprecated.
use generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, boolean isDhtml, int state, NamespaceEncoder nse)
| ||||||||||
static void |
generateHiddenInputsForEventList(MarkupOutput mo, int indent, ArrayList eventList, boolean isDhtml)
This method is deprecated.
use generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, boolean isDhtml, NamespaceEncoder nse)
| ||||||||||
static void |
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.
| ||||||||||
static void |
generateHiddenInputsForEventList(MarkupOutput mo, int indent, ArrayList eventList)
This method is deprecated.
use generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, NamespaceEncoder nse)
| ||||||||||
static void |
generateHiddenInputsForEventList(MarkupOutput mo, ContainerServices cntrSvcs, int indent, ArrayList eventList, boolean isDhtml, NamespaceEncoder nse)
Generates those hidden inputs associated with the given event list.
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String src, int width, int height, String alt, int border, String align)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String src, String width, String height, String alt, int border, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String id, String imgFolder, String src, int width, int height, String alt, int border, String align, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String src, int width, int height, String alt, int border)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String src, int width, int height)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String imgFolder, String src, int width, int height, String alt, int border, String align, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String src, String alt, int border, String align)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String imgFolder, String src, int width, int height, String alt, int border, String align)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String src, String alt)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String src, String alt, int border, String align, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(StringBuffer mo, int indent, String src, int width, int height, String alt, int border, String align, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMG(MarkupOutput mo, int indent, String src, int width, int height, String alt, int border, String align, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMGForSubmit(MarkupOutput mo, int indent, String name, String src, int width, int height, String alt, int border, String align)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMGForSubmit(MarkupOutput mo, int indent, String name, String imgFolder, String src, int width, int height, String alt, int border, String align)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMGForSubmit(MarkupOutput mo, int indent, String name, String src, String alt, int border, String align, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMGForSubmit(StringBuffer mo, int indent, String name, String src, int width, int height, String alt, int border, String align)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIMGForSubmit(StringBuffer mo, int indent, String name, String src, String alt, int border, String align, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateINPUT(StringBuffer mo, int indent, String type, String name, String value, boolean checked, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateINPUT(MarkupOutput mo, int indent, String type, String name, String value, boolean checked, String duplicateHiddenInputValue, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateINPUT(MarkupOutput mo, int indent, String type, String name, String value, boolean checked, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateINPUT(MarkupOutput mo, int indent, String type, String name, String value, boolean checked)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateIndent(MarkupOutput mo, int indent)
This method is deprecated.
Transforms don't indent their output anymore.
| ||||||||||
static void |
generateIndent(StringBuffer mo, int indent)
This method is deprecated.
Transforms don't indent their output anymore.
| ||||||||||
static String |
generateJavaScriptMethodCall(String methodName, String[] args, boolean includeReturn, int indexForThis)
Utility method to generate Javascript method call in HTML.
| ||||||||||
static Tag |
generateOPTION(String value, String content, boolean selected)
Returns an option
Tag with the information provided | ||||||||||
static void |
generateOPTION(MarkupOutput mo, int indent, String value, String content, boolean selected, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateOPTION(MarkupOutput mo, int indent, String value, String content, boolean selected, String extraParameters, boolean encodeData)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateSPAN(MarkupOutput mo, int indent, String cssName, String content)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateSPAN(MarkupOutput mo, int indent, String cssName, String content, boolean encodeContent)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static String |
generateSkipNavigationLinkHeader(AppContext appContext, String anchorName)
This method is deprecated.
Transforms don't generate this link anymore. It's generated directly in the JSP.
| ||||||||||
static String |
generateSkipNavigationLinkTarget(AppContext appContext, String anchorName)
This method is deprecated.
Transforms don't generate this link anymore. It's generated directly in the JSP.
| ||||||||||
static void |
generateTABLE(MarkupOutput mo, int indent, String width, String border, String cellSpacing, String cellPadding, String bgColor, String background, String cssName, String id, String summary, String extraStyle)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateTABLE(MarkupOutput mo, int indent, String width, String border, String cellSpacing, String cellPadding, String bgColor, String cssName, String id, String summary)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateTABLE(MarkupOutput mo, int indent, String width, String border, String cellSpacing, String cellPadding, String bgColor, String cssName, String id, String summary, String extraStyle)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateTABLE(MarkupOutput mo, int indent, String width, String border, String cellSpacing, String cellPadding, String bgColor, String cssName, String id)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateTABLE(MarkupOutput mo, int indent, String width, String border, String cellSpacing, String cellPadding, String bgColor, String cssName)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateTEXTAREA(MarkupOutput mo, int indent, String name, String value, int columns, int rows, String style)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateTEXTBOX(MarkupOutput mo, int indent, String name, String value, String size, String maxLength, String style)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static void |
generateTEXTBOX(MarkupOutput mo, int indent, String name, String value, String size, String maxLength, String style, String extraParameters)
This method is deprecated.
Tags should be generated using the Tags infrastructure. See
TagsFactory .
| ||||||||||
static String |
getFormattedValue(String value, Locale locale)
Converts any value with decimal to the corrected format.
| ||||||||||
static String |
getOfficeLink()
This method is deprecated.
This method has been deprecated. Use the method HTMLHelper.getOfficeLink(AppContext appContext) instead.
| ||||||||||
static String |
getOfficeLink(AppContext appContext)
Retrieves the Office Link URL from the default or Admin Preferences.
| ||||||||||
static String |
getQuickSymbolImageSource(int type)
This method is deprecated.
replaced by
get(int) and getImageSource()
| ||||||||||
static String |
getQuickSymbolString(int type)
This method is deprecated.
replaced by
get(int) and getWingdingsString()
| ||||||||||
static String |
getQuickSymbolUnicode(int type)
This method is deprecated.
see
EnumQuickSymbol
| ||||||||||
static String |
getQuickSymbolUnicodeByChar(char character)
This method is deprecated.
should not be used - see
EnumQuickSymbol
| ||||||||||
static String |
getRequestKeysString(BeanContext context)
Returns the string representation of the request keys as an & delimited list
of name=value pairs.
| ||||||||||
static String |
getResourcePathWithVersion(String originResourcePath, AppContext appContext)
Append web version parameter to resource path if it's not disabled in debug flag
E.g.
| ||||||||||
static String |
getWebVersionHashCode(AppContext appContext)
Get hash code of web version
Used to append as version parameter when loading resource
| ||||||||||
static boolean |
isDefaultPreferenceValue(String preferenceName, String preferenceValue)
This method checks if the given preference exists with in the Admin Preferences, and if its value is the given one. | ||||||||||
static ImageTag |
newImageTag(String src, String width, String height, String alt)
Convenience method that creates a | ||||||||||
static InputTag |
newInputCheck(String name, String value, boolean checked, NamespaceEncoder nse)
Convenience method that creates a checkbox from the | ||||||||||
static InputTag |
newInputHidden(String name, String value, NamespaceEncoder nse)
Convenience method that creates a hidden input from the | ||||||||||
static InputTag |
newInputImage(String name, String src, String width, String height, String title, NamespaceEncoder nse)
Convenience method that creates an image input from the | ||||||||||
static InputTag |
newInputRadio(String id, String name, String value, boolean checked, NamespaceEncoder nse)
Convenience method that creates a radio button from the | ||||||||||
static InputTag |
newInputRadio(String name, String value, boolean checked, NamespaceEncoder nse)
Convenience method that creates a radio button from the | ||||||||||
static InputTag |
newInputSubmit(String name, String value, NamespaceEncoder nse)
Convenience method that creates a submit button from the | ||||||||||
static InputTag |
newInputText(String name, String value, String size, String maxLength, NamespaceEncoder nse)
Convenience method that creates a text field from the | ||||||||||
static void |
renderQuickSymbolforText(MarkupOutput out, String text, boolean isIE)
This method is deprecated.
should not use this - see
EnumQuickSymbol
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static ParameterBuilder |
newURIBuilder(AppContext appContext)
Creates a new
ParameterBuilder from the AppContext . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates new HTMLHelper
Append script tag to MarkupOutput to load script file
mo | MarkupOutput object to use |
---|---|
appContext | Current AppContext |
filePath | The name of the JavaScript file |
Append css style link tag to MarkupOutput to load css file
mo | MarkupOutput object to use |
---|---|
appContext | Current AppContext |
cssFile | The name of the css file |
Converts the hexadecimal representation of a color into its RRGGBB format or BBGGRR.
colorHexCode | a String with the hexadecimal representation of the code to translate |
---|
Converts the integer representation of a color into its hexadecimal representation.
colorCode | a String with the decimal representation of the code to translate |
---|
Converts the decimal representation of a color into its RRGGBB format.
colorCode | a String containing the decimal representation of the color to translate |
---|
Converts the decimal representation of a color into its RRGGBB format.
color | a String containing the decimal representation of the color to translate |
---|
Converts the hsb components of a color into its hexadecimal representation.
hue | a String with the hue component of a color |
---|---|
saturation | a String with the saturation component of a color |
brightness | a String with the brightness component of a color |
Converts the hexadecimal color code (e.g. #CCCCCC) sent as parameter to its decimal representation
colorCode | a String containing the hexadecimal representation of the color to translate |
---|
Converts the red, green and blue components of a color into hsb components.
r | an int with the red component of a color |
---|---|
g | an int with the green component of a color |
b | an int with the blue component of a color |
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
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.
value | original URI |
---|
Converts inches into pixels.
inches | String with the inches values |
---|---|
dpiConversion | Conversion factor to convert from inches to pixels |
locale | current locate |
zoomFactor | The zoom level at which the user wants to see the objects |
Converts pixels to inches
pixels | double value with the number of pixels to convert to inches |
---|---|
dpiConversion | Conversion factor to convert from inches to pixels |
zoomFactor | The zoom level at which the user wants to see the objects |
Converts pixels into inches.
pixels | String with the pixels value |
---|---|
dpiConversion | Conversion factor to convert from inches to pixels |
locale | current locate |
zoomFactor | The zoom level at which the user wants to see the objects |
Convert pixels to points
pixels | double value with the number of pixels to convert to points. |
---|---|
dpiConversion | Conversion factor to convert from inches to pixels |
zoomFactor | The zoom level at which the user wants to see the objects |
Converts points into inches.
pts | String with the pts values |
---|
Convert points to pixels
pts | double value with the number of points to convert to pixels. |
---|---|
dpiConversion | Conversion factor to convert from inches to pixels |
zoomFactor | The zoom level at which the user wants to see the objects |
Given an HTML encoded string, returns its decoded version (using plain characters instead of browser's specifc encoding).
oldStr | String to decode |
---|
This method is deprecated.
This is method has been deprecated as css-classes are not optional anymore.
Writes an error message.
out | the output |
---|---|
className | the class that originated the error |
methodName | the method where the error was originated |
e | the exception caught that caused the error |
title | the title for the error message |
message | the error message to display |
errorInfo | the error information |
Writes an error message.
out | the output |
---|---|
className | the class that originated the error |
methodName | the method where the error was originated |
e | the exception caught that caused the error |
title | the title for the error message |
message | the error message to dispal |
extra | a Tag containing any extra information to display with the error |
Writes an error message.
transOut | the output |
---|---|
className | the class that originated the error |
methodName | the method where the error was originated |
e | the exception caught that caused the error |
title | the title for the error message |
message | the error message to display |
Encodes a string using HTML encoding. This is the type of encoding that enables a browser to correctly display all characters.
oldStr | String to encode |
---|
encode object details, the description part will not encode if allowing html on object description
excludeStr | String the substring which will not be encode in the whole string |
---|---|
wholeStr | String the entire string |
This method is deprecated.
The application doesn't require to encode the Euro symbol.
Encodes the Euro symbol within the given string.
oldStr | The string to encode |
---|
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Fills a COMBO box with the contents of an XML file.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
size | the value of the SIZE attribute * |
selectedValue | the value of marked as the seletected one. |
xmlFile | the filename of the XML file to use |
appContext | the AppContext object 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 applicable |
defaultValue | the value of the new default option will hold - if applicable |
extraParameters | any other properties or events that should be defined
on the combo box. For example: ONCHANGE=\"update();\" |
Fills a COMBO box with the contents of an XML file.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
selectedValue | the value of marked as the seletected one. |
xmlFile | the filename of the XML file to use |
appContext | the AppContext object 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) |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Fills a COMBO box with the contents of an XML file.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
size | the value of the SIZE attribute * |
selectedValue | the value of marked as the seletected one. |
xmlFile | the filename of the XML file to use |
appContext | the AppContext object to use to find the file. |
extraParameters | any other properties or events that should be defined
on the combo box. For example: ONCHANGE=\"update();\" |
Fills a COMBO box with the contents of an XML file.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
selectedValue | the value of marked as the seletected one. |
xmlFile | the filename of the XML file to use |
appContext | the AppContext object 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) |
Fills a COMBO box with the contents of an XML file.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
selectedValue | the value of marked as the seletected one. |
xmlFile | the filename of the XML file to use |
appContext | the AppContext object to use to find the file. |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Fills a COMBO box with the contents of an XML file.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
size | the value of the SIZE attribute * |
selectedValue | the value of marked as the seletected one. |
xmlFile | the filename of the XML file to use |
appContext | the AppContext object 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 applicable |
defaultValue | the value of the new default option will hold - if applicable |
extraParameters | any other properties or events that should be defined
on the combo box. For example: ONCHANGE=\"update();\" |
baseBean | The basebean used for features. |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Fills a COMBO box with the contents of an XML file.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
size | the value of the SIZE attribute |
selectedValue | the value of marked as the seletected one. |
xmlFile | the filename of the XML file to use |
appContext | the AppContext object to use to find the file. |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generates an select list containing the elements from the configuration list
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
size | the value of the SIZE attribute |
selectedValue | the value of marked as the seletected one. |
paperList | the List to render |
appContext | the AppContext object to use to find the file. |
This method is deprecated.
Use fillComboPaperList(String, String, ShortcutList, AppContext)
Generates a select list containing the elements from the configuration list
name | String the value of the NAME attribute |
---|---|
selectedValue | String the value of marked as the seletected one. |
paperList | PaperSizesList the List to render |
appContext | AppContext the AppContext object to use to find the file. |
Tag
instanceGenerates a select list containing the elements from the configuration list
name | String the value of the NAME attribute |
---|---|
selectedValue | String the value of marked as the seletected one. |
paperList | ShortcutList the List to render |
appContext | AppContext the AppContext object to use to find the file. |
Tag
instanceAdjusts pixels for zoom and dpi assuming a base dpi of 96.
pixels | The number of pixels |
---|---|
dpiConversion | Conversion factor to convert from inches to pixels |
zoomFactor | The zoom level at which the user wants to see the objects |
Fixes the point values used for font size and weight based on DPI conversion factor and zoom factors.
points | String with the points values |
---|
This method is deprecated.
Use formatAttributeFormDisplay(String, String)
.
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.
attName | Attribute's name |
---|---|
formName | Attribute form's name. |
This method is deprecated.
Use formatAttributeFormValue(String, String, int, String, String)
.
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.
attId | Attribute id |
---|---|
formId | Form-id |
formDataType | Form's data-type |
attName | Attribute name |
formName | Form name |
This method is deprecated.
Use formatAttributeFormValueForSingleAttr(String, int, String)
.
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.
formId | Form-id |
---|---|
formDataType | Form's data-type |
formName | Form name |
This method is deprecated.
Use formatObjectInfoValue(String, int, String)
.
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.
attId | Attribute id |
---|---|
attName | Attribute name |
This method is deprecated.
Use formatObjectInfoValue(String, int, String)
.
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.
id | object-id |
---|---|
type | object-type |
name | object-name |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an INPUT tag for submit button
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
value | the value of the VALUE attribute |
style | the value of the CLASS attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an INPUT tag for a button (normal button or submit button)
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
value | the value of the VALUE attribute |
style | the value of the CLASS attribute |
type | the value of the type attribute |
isDisabled | the value of the DISABLED attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Renders a checkbox given a value. If the value is 1, the box is rendered checked.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
currentValue | the value of the check box |
extraParameters | the extra parameters to be rendered with this checkbox |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Renders a checkbox given a value. If the value is 1, the box is rendered checked.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
currentValue | the value of the check box |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Closes an anchor tag.
sb | StringBuffer object to use. |
---|
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Closes an anchor tag.
mo | MarkupOutput object to use. |
---|
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
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.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
options | hash list with the values and text to use for each one of the options |
currentValue | the value of the currently selected option |
extraParameters | any other attributes that should be defined when creating the combo box. |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Renders a combobox with the list of given options. The option who matches the current value is automatically selected.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
options | a two-dimensional array with the values and text to use for each one of the options |
currentValue | the value of the currently selected option |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
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.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
options | a two-dimensional array with the values and text to use for each one of the options |
currentValue | the value of the currently selected option |
extraParameters | any other attributes that should be defined when creating the combo box. |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Renders a combobox with the list of given options. The option who matches the current value is automatically selected.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
options | hash list with the values and text to use for each one of the options |
currentValue | the value of the currently selected option |
Helper metod that returns an array of option Tags to be used in a combobox.
The list of options is taken from the given ShortcutList
. This method
makes sure that the features in the Shortcut
are correctly
applied to the Option
Helper metod that returns an array of option Tags to be used in a combobox.
The list of options is taken from the given ShortcutList
. This method
makes sure that the features in the Shortcut
are correctly
applied to the Option
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.
mo | MarkupOutput object to use |
---|---|
appContext | Used to determine if certain features are available |
fileName | The name of the JavaScript file |
key | A unique key that identifies this file in the page. |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate a FONT tag with a specific face and size.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
fontFace | the value of the FACE attribute |
fontSize | the value of the SIZE attribute |
This method is deprecated.
Use generateHiddenInputsForEvent(MarkupOutput, ParameterBuilder, int, WebEvent, boolean)
instead.
Generates the set of hidden inputs associated with a given event
mo | MarkupOutput object to use |
---|---|
indent | default indentation to use. |
event | The corresponding WebEvent . |
isDhtml | if true , the page state hidden inputs are added dynamically using JavaScript. |
Generates the set of hidden inputs associated with a given event using the minal state info.
This method is deprecated.
Use generateHiddenInputsForEvent(MarkupOutput, ParameterBuilder, int, WebEvent)
instead.
Generates the set of hidden inputs associated with a given event
mo | MarkupOutput object to use |
---|---|
indent | default indentation to use. |
event | The corresponding WebEvent . |
Generates the set of hidden inputs associated with a given event. This
method will use either the
ParameterBuilder
(if provided) or the event itself (otherwise).
mo | MarkupOutput object to use |
---|---|
paramBldr | ParameterBuilder responsible to create the hidden inputs. |
indent | default indentation to use. |
event | The corresponding WebEvent . |
isDhtml | if true , the page state hidden inputs are added dynamically using JavaScript. |
state | If page-state is to be added, this parameter (whose values come from
EnumWebPersistableState ) determines how much state. |
Generates the set of hidden inputs associated with a given event using the minal state info.
This method is deprecated.
Use generateHiddenInputsForEvent(MarkupOutput, ParameterBuilder, int, WebEvent, boolean, int)
instead.
Generates the set of hidden inputs associated with a given event.
mo | MarkupOutput object to use |
---|---|
indent | default indentation to use. |
event | The corresponding WebEvent . |
isDhtml | if true , the page state hidden inputs are added dynamically using JavaScript. |
state | If page-state is to be added, this parameter (whose values come from
EnumWebPersistableState ) determines how much state. |
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.
mo | MarkupOutput object to use |
---|---|
cntrSvcs | ContainerServices to create new ParameterBuilder instances |
indent | default indentation to use. |
eventList | List of events. |
nse | Used to encode the input's names (see newInputHidden(String, String, NamespaceEncoder) ) |
This method is 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.
mo | MarkupOutput object to use |
---|---|
indent | default indentation to use. |
eventList | List of events. |
isDhtml | if true , the page state hidden inputs are added dynamically using JavaScript. |
state | If page-state is to be added, this parameter (whose values come from
EnumWebPersistableState ) determines how much state. |
This method is 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.
mo | MarkupOutput object to use |
---|---|
indent | default indentation to use. |
eventList | List of events. |
isDhtml | if true , the page state hidden inputs are added dynamically using JavaScript. |
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.
mo | MarkupOutput object to use |
---|---|
cntrSvcs | ContainerServices to create new ParameterBuilder instances |
indent | default indentation to use. |
eventList | List of events. |
isDhtml | if true , the page state hidden inputs are added dynamically using JavaScript. |
state | If page-state is to be added, this parameter (whose values come from
EnumWebPersistableState ) determines how much state. |
nse | Used to encode the input's names (see newInputHidden(String, String, NamespaceEncoder) ) |
This method is 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.
mo | MarkupOutput object to use |
---|---|
indent | default indentation to use. |
eventList | List of events. |
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.
mo | MarkupOutput object to use |
---|---|
cntrSvcs | ContainerServices to create new ParameterBuilder instances |
indent | default indentation to use. |
eventList | List of events. |
isDhtml | if true , the page state hidden inputs are added dynamically using JavaScript. |
nse | Used to encode the input's names (see newInputHidden(String, String, NamespaceEncoder) ) |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
extraParameters | any extra attributes to add to the tag |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
id | the image ID |
imgFolder | The relative path in the application for the images folder. |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
extraParameters | any other properties or events that should be defined |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc. The BORDER is set to 0 and the ALT tag is empty.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
imgFolder | The relative path in the application for the images folder. |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
extraParameters | any other properties or events that should be defined |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
src | the value of the SRC attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
imgFolder | The relative path in the application for the images folder. |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source and alt etc. The BORDER is set to 0 and the ALT tag is empty.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
src | the value of the SRC attribute |
alt | the value of the ALT attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
src | the value of the SRC attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
extraParameters | any other properties or events that should be defined |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc....
mo | StringBuffer object to use. |
---|---|
indent | the indentation level to generate for |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
extraParameters | any other properties or events that should be defined |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag with specific source, height, width, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
extraParameters | any other properties or events that should be defined |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag for submitting a form
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag for submitting a form
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
imgFolder | The relative path in the application for the images folder. |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMAGE INPUT tag with specific source, name, alt, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
src | the value of the SRC attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
extraParameters | any other properties or events that should be defined |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMG tag for submitting a form
mo | StringBuffer object to use |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
src | the value of the SRC attribute |
width | the value of the WIDTH attribute |
height | the value of the HEIGHT attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an IMAGE INPUT tag with specific source, name, alt, etc....
mo | StringBuffer object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
src | the value of the SRC attribute |
alt | the value of the ALT attribute |
border | the value of the BORDER attribute |
align | the value of the ALIGN attribute |
extraParameters | any other properties or events that should be defined |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an INPUT tag with specific type, name, value, etc....
mo | StringBuffer object to use. |
---|---|
indent | the indentation level to generate for |
type | the value of the TYPE attribute |
name | the value of the NAME attribute |
value | the value of the VALUE attribute |
checked | whether the CHECKED attribute is set to 1. |
extraParameters | any other attributes or events to add to the tag |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an INPUT tag with specific type, name, value, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
type | the value of the TYPE attribute |
name | the value of the NAME attribute |
value | the value of the VALUE attribute |
checked | whether the CHECKED attribute is set to 1. |
duplicateHiddenInputValue | 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. |
extraParameters | any other attributes or events to add to the tag |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an INPUT tag with specific type, name, value, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
type | the value of the TYPE attribute |
name | the value of the NAME attribute |
value | the value of the VALUE attribute |
checked | whether the CHECKED attribute is set to 1. |
extraParameters | any other attributes or events to add to the tag |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an INPUT tag with specific type, name, value, etc....
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
type | the value of the TYPE attribute |
name | the value of the NAME attribute |
value | the value of the VALUE attribute |
checked | whether the CHECKED attribute is set to 1. |
This method is deprecated.
Transforms don't indent their output anymore.
Generate a number of tabs to indent the line...
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
This method is deprecated.
Transforms don't indent their output anymore.
Generate a number of tabs to indent the line...
mo | StringBuffer object to use. |
---|---|
indent | the indentation level to generate for |
Utility method to generate Javascript method call in HTML.
methodName | javascript method name |
---|---|
args | arguments for the method call |
includeReturn | 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. |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Renders an <OPTION> tag with the information provided
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
value | String with the value of the option |
content | String with the text to be displayed for that option |
selected | boolean indicating if it's currently selected |
extraParameters | any other attributes or events that shall be added to the tag. |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Renders an <OPTION> tag with the information provided
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
value | String with the value of the option |
content | String with the text to be displayed for that option |
selected | boolean indicating if it's currently selected |
extraParameters | any other attributes or events that shall be added to the tag. |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate a SPAN tag with a specific css and text.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
cssName | the css class name |
content | the content of the span |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate a SPAN tag with a specific css and text.
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
cssName | the css class name |
content | the content of the span |
encodeContent | weather encode the content |
This method is 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
appContext | a valid instance of AppContext |
---|---|
anchorName | the name that the skip navigation anchor will have (target) |
This method is 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
appContext | a valid instance of AppContext |
---|---|
anchorName | the name that the skip navigation anchor will have (target) |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate a TABLE tag
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
width | the value of the WIDTH attribute |
border | the value of the BORDER attribute |
cellSpacing | 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 attribute |
background | the value of the BACKGROUND attribute |
cssName | the value of the CLASS attribute |
id | the value of the ID attribute |
summary | the value of the SUMMARY attribute |
extraStyle | the value of the STYLE attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate a TABLE tag
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
width | the value of the WIDTH attribute |
border | the value of the BORDER attribute |
cellSpacing | the value of the CELLSPACING attribute |
cellPadding | the value of the CELLPADDING attribute |
bgColor | the value of the BGCOLOR attribute |
cssName | the value of the STYLE attribute |
id | the value of the ID attribute |
summary | the value of the SUMMARY attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate a TABLE tag
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
width | the value of the WIDTH attribute |
border | the value of the BORDER attribute |
cellSpacing | the value of the CELLSPACING attribute |
cellPadding | the value of the CELLPADDING attribute |
bgColor | the value of the BGCOLOR attribute |
cssName | the value of the CLASS attribute |
id | the value of the ID attribute |
summary | the value of the SUMMARY attribute |
extraStyle | the value of the STYLE attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate a TABLE tag
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
width | the value of the WIDTH attribute |
border | the value of the BORDER attribute |
cellSpacing | the value of the CELLSPACING attribute |
cellPadding | the value of the CELLPADDING attribute |
bgColor | the value of the BGCOLOR attribute |
cssName | the value of the STYLE attribute |
id | the value of the ID attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate a TABLE tag
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
width | the value of the WIDTH attribute |
border | the value of the BORDER attribute |
cellSpacing | the value of the CELLSPACING attribute |
cellPadding | the value of the CELLPADDING attribute |
bgColor | the value of the BGCOLOR attribute |
cssName | the value of the CLASS attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate a TEXTAREA tag
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
value | the value of the VALUE attribute |
columns | the value of the COLS attribute |
rows | the value of the ROWS attribute |
style | the CSS style to use |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an INPUT tag for text box
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
value | the value of the VALUE attribute |
size | the value of the SIZE attribute |
maxLength | the value of the MAXLENGTH attribute |
style | the value of the CLASS attribute |
This method is deprecated.
Tags should be generated using the Tags infrastructure. See TagsFactory
.
Generate an INPUT tag for text box
mo | MarkupOutput object to use. |
---|---|
indent | the indentation level to generate for |
name | the value of the NAME attribute |
value | the value of the VALUE attribute |
size | the value of the SIZE attribute |
maxLength | the value of the MAXLENGTH attribute |
style | the value of the CLASS attribute |
extraParameters | the value of extra Parameters |
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
This method is 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.
Retrieves the Office Link URL from the default or Admin Preferences.
This method is deprecated.
replaced by get(int)
and getImageSource()
Returns the image source to be used for quick symbol threshold replacement in 508 mode.
type | int EnumDSSXMLSymbol |
---|
This method is deprecated.
replaced by get(int)
and getWingdingsString()
Returns the wingdings string that visually represents the supplied quick symbol type.
type | int EnumDSSXMLSymbol |
---|
This method is deprecated.
see EnumQuickSymbol
Returns the unicode id that visually represents the supplied quick symbol type.
type | int EnumDSSXMLSymbol |
---|
This method is deprecated.
should not be used - see EnumQuickSymbol
Returns the unicode id that visually represents the supplied quick symbol type by orginal char.
character | char |
---|
Returns the string representation of the request keys as an & delimited list of name=value pairs.
context | BeanContext to retrieve the request keys. |
---|
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.
originResourcePath | Original resource path without parameter |
---|
Get hash code of web version Used to append as version parameter when loading resource
appContext | Current AppContext |
---|
This method checks if the given preference exists with in the Admin Preferences, and if its value is the given one.
This method will returntrue
by default. It only returns false if
the preference exists but its value doesn't correspond to the given one.preferenceName | Name of preference |
---|---|
preferenceValue | Value of preference. |
false
if the given value doesn't correspond to the value saved in
the preference. true
otherwise.Convenience method that creates a IMG
tag 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.
src | Sets the img's "src" |
---|---|
width | Sets the img's "width" |
height | Sets the img's "height" |
alt | Sets the img's "Alt" |
ImageTag
populated with the given values.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 NamespaceEncoder
is 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.
name | Used for the ATT_ID and ATT_NAME attributes |
---|---|
value | Used for the Input's value. |
checked | If true sets the ATT_CHECKED attribute to "1". |
nse | If provided, is used to encode the ATT_NAME attribute. |
InputTag
populated with the given values.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 NamespaceEncoder
is 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.
name | Used for the ATT_ID and ATT_NAME attributes |
---|---|
value | Used for the Input's value. |
nse | If provided, is used to encode the ATT_NAME attribute. |
InputTag
populated with the given values.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 NamespaceEncoder
is 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.
name | Used for the ATT_ID and ATT_NAME attributes |
---|---|
src | Used for the ATT_SRC attribute. |
width | Used for the ATT_WIDTH attribute. |
height | Used for the ATT_HEIGHT attribute. |
title | Used for the ATT_TITLE attribute. |
nse | If provided, is used to encode the ATT_NAME attribute. |
InputTag
populated with the given values.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 NamespaceEncoder
is 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.
id | used for the ATT_ID attribute |
---|---|
name | Used for the ATT_NAME attribute |
value | Used for the Input's value. |
checked | If true sets the ATT_CHECKED attribute to "1". |
nse | If provided, is used to encode the ATT_NAME attribute. |
InputTag
populated with the given values.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 NamespaceEncoder
is 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.
name | Used for the ATT_ID and ATT_NAME attributes |
---|---|
value | Used for the Input's value. |
checked | If true sets the ATT_CHECKED attribute to "1". |
nse | If provided, is used to encode the ATT_NAME attribute. |
InputTag
populated with the given values.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 NamespaceEncoder
is 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.
name | Used for the ATT_ID and ATT_NAME attributes |
---|---|
value | Used for the Input's value. |
nse | If provided, is used to encode the ATT_NAME attribute. |
InputTag
populated with the given values.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 NamespaceEncoder
is 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.
name | Used for the ATT_ID and ATT_NAME attributes |
---|---|
value | Used for the Input's value. |
size | Used for the ATT_SIZE attribute. |
maxLength | Used for the ATT_MAXLENGTH attribute. |
nse | If provided, is used to encode the ATT_NAME attribute. |
InputTag
populated with the given values.
This method is deprecated.
should not use this - see EnumQuickSymbol
Generates the HTML the text as a "quick symbol"
out | the output object |
---|
Creates a new ParameterBuilder
from the AppContext
.
If the AppContext
is null, or the AppContext
has no ContainerServices
, this method returns null.
appContext | Where the ParameterBuilder should be retrieved. |
---|
ParameterBuilder
if available.