|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.tools.util.UIUtil
Utility class used by the UI Elements (in JSPs, beans,etc)
Method Summary | |
static java.lang.String |
change(java.lang.String source,
java.lang.String pattern,
java.lang.String replacement)
Replaces the occurences of a substring with a new substring |
static java.lang.String |
getCSSFile(java.util.Locale locale)
Return the CSS filename depending on locale fallback to centre.css if center_locale.css doesn't exist |
static java.lang.String |
getFulfillmentCenterId(javax.servlet.http.HttpServletRequest request)
Returns the fulfillment center id, which was set in the cookies when CSA was launched |
static void |
processParameters(TypedProperty property)
Parses the request for the XML and XMLObject properties and stores them in appropraite storeage variables. |
static java.lang.String |
replaceURLVariables(java.lang.String url)
Replace variables in a URL. |
static java.lang.String |
replaceURLVariables(java.lang.String url,
java.util.Locale loc,
java.lang.Integer storeId)
Replace variables in a URL. |
static java.lang.String |
toHTML(java.lang.String result)
Takes an input string and replaces the problem characters for an html input attribute value. |
static java.lang.String |
toJavaScript(java.lang.Object result)
Converts target to a string acceptable by javascript. |
static java.lang.String |
toJavaScript(java.lang.String result)
Converts target 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 |
Method Detail |
public static java.lang.String change(java.lang.String source, java.lang.String pattern, java.lang.String replacement)
source
- The original string.pattern
- The pattern to be replaced.replacement
- The replacement for pattern.public static java.lang.String getCSSFile(java.util.Locale locale) throws ECSystemException
local
- The local for which the CSS file should be fetched.If
- an error occurs, throw an exception.public static java.lang.String getFulfillmentCenterId(javax.servlet.http.HttpServletRequest request) throws ECSystemException
request
- The HTTP request.If
- an error occurs, throw an exception.public static final void processParameters(TypedProperty property) throws ECSystemException
property
- The request object.If
- an error occurs, throw an exception.public static final java.lang.String replaceURLVariables(java.lang.String url) throws ECSystemException
url
- java.lang.String The url which needs its variables replaced.If
- an error occurs, throw an exception.public static final java.lang.String replaceURLVariables(java.lang.String url, java.util.Locale loc, java.lang.Integer storeId) throws ECSystemException
url
- java.lang.String The url which needs its variables replaced.If
- an error occurs, throw an exception.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.
result
- The string to be converted.public static java.lang.String toJavaScript(java.lang.Object result)
result
- The object to be converted into JavaScript.public static java.lang.String toJavaScript(java.lang.String result)
result
- The object to be converted into JavaScript.public static final java.lang.String toJS(java.lang.String key, java.lang.Object target) throws ECSystemException
key
- The prefix you wish to have prepended to the creation of your JavaScript object.target
- The object to be converted to JavaScriptpublic static final java.lang.String toJS(java.lang.String key, java.lang.Object target, int stoplevel) throws ECSystemException
key
- The prefix you wish to have prepended to the creation of your JavaScript object.target
- The object to be converted to JavaScriptstoplevel
- The number of levels up when we should stop getting the objects parents class.If
- an error occurs, throw an exception.public static java.lang.String toJSVector(java.lang.String key, java.lang.Object target) throws ECSystemException
key
- The prefix you wish to have prepended to the creation of your JavaScript object.target
- The object to be converted to JavaScriptIf
- an error occurs, throw an exception.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |