java.lang.Objectcom.ibm.commerce.tools.util.UIUtil
Utility class used by the UI Elements (in Java Server Pages and Entity Beans).
Field Summary | |
static java.lang.String | COPYRIGHT The IBM copyright notice field. |
Constructor Summary | |
UIUtil() |
Method Summary | |
static java.lang.String | change(java.lang.String source, java.lang.String pattern, java.lang.String replacement) Replaces the occurrences of a substring with a new substring |
static java.lang.String | getCSSFile(java.util.Locale locale) Returns the Cascading Style Sheets filename depending on locale. |
static java.lang.String | getFulfillmentCenterId(javax.servlet.http.HttpServletRequest request) Returns the fulfillment center ID, which is set in the cookies when WebSphere Commerce Accelerator is launched. |
static java.lang.String | getWebappPath(HttpServletRequest req) Returns the webapp path. |
static java.lang.String | getWebPrefix(HttpServletRequest req) Returns the web prefix. |
static void | processParameters(TypedProperty property) Parses the request for the XML and XMLObject properties and stores them in appropriate storeage variables. |
static java.lang.String | replaceURLVariables(java.lang.String url) Replaces variables in a URL. |
static java.lang.String | replaceURLVariables(java.lang.String url, java.util.Locale loc, java.lang.Integer storeId) Replaces variables in an URL. |
static void | setNonJSConvertibleMethods(java.util.Vector methods) Sets a list of method names that should not be converted to JavaScript during the calls of addToJS, |
static java.lang.String | toHTML(java.lang.String result) Takes an input string and replaces the problem characters for a HTML input attribute value. |
static java.lang.String | toJavaScript(java.lang.Object result) Converts target object to a string that is acceptable by JavaScript. |
static java.lang.String | toJavaScript(java.lang.String result) Converts target string to a string acceptable by JavaScript. |
static java.lang.String | toJS(java.lang.String key, java.lang.Object target) Converts the target model to a JavaScript representation of that model. |
static java.lang.String | toJS(java.lang.String key, java.lang.Object target, int stoplevel) Converts the target model to a JavaScript representation of that model. |
static java.lang.String | toJSVector(java.lang.String key, java.lang.Object target) Converts the target model to a JavaScript representation of that model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public UIUtil()
Method Detail |
public static java.lang.String change(java.lang.String source, java.lang.String pattern, java.lang.String replacement)
public static java.lang.String getCSSFile(java.util.Locale locale) throws ECSystemException
public static java.lang.String getFulfillmentCenterId(javax.servlet.http.HttpServletRequest request) throws ECSystemException
public static final void processParameters(TypedProperty property) throws ECSystemException
public static final java.lang.String replaceURLVariables(java.lang.String url) throws ECSystemException
public static final java.lang.String replaceURLVariables(java.lang.String url, java.util.Locale loc, java.lang.Integer storeId) throws ECSystemException
public static java.lang.String toHTML(java.lang.String result)
& replaced & " replaced &qout;
Note: All HTML attribute values are assumed to be delimited by double quote.
public static java.lang.String toJavaScript(java.lang.Object result)
public static java.lang.String toJavaScript(java.lang.String result)
public static final java.lang.String toJS(java.lang.String key, java.lang.Object target) throws ECSystemException
public static final java.lang.String toJS(java.lang.String key, java.lang.Object target, int stoplevel) throws ECSystemException
public static java.lang.String toJSVector(java.lang.String key, java.lang.Object target) throws ECSystemException
public static void setNonJSConvertibleMethods(java.util.Vector methods)
public static java.lang.String getWebPrefix(HttpServletRequest req)
public static java.lang.String getWebappPath(HttpServletRequest req)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.