|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.html.HtmlPainterHelp
Utility Class to add the JavaScript object "DTPRes" to a HTML page and initialize the JavaScript object with the localized weekday names, month names, button labels and the window title. The calendar.js file need this information to retrieve and display the localized message strings. Predefined keys can be used to specified the message resources within the resource bundle for the application.
Constructor Summary | |
protected |
HtmlPainterHelp()
Constructor |
Method Summary | |
static void |
createBase(javax.servlet.jsp.PageContext pageContext)
Writes the HTML base tag to the output |
static void |
createButton(javax.servlet.jsp.PageContext pageContext,
java.lang.String name,
java.lang.String textResourceKey,
java.lang.String tooltipResourceKey,
java.lang.String styleId,
java.lang.String onClick)
Writes a Button to the Page |
static void |
createCalendarScript(javax.servlet.jsp.PageContext pageContext)
Generate the JavaScript and initialize the DTPRes JavaScript object. |
static void |
createCalendarScript(javax.servlet.jsp.PageContext pageContext,
java.lang.String localeName)
Generate the JavaScript and initialize the DTPRes JavaScript object. |
static void |
createFameworkIncludes(javax.servlet.jsp.PageContext pageContext)
Writes the Framework includes into the current page |
static java.lang.String |
getLiteral(javax.servlet.jsp.PageContext pageContext,
java.lang.String key)
Retrieves a calendar resource |
static java.lang.String |
getStringLiteral(javax.servlet.jsp.PageContext pageContext,
java.lang.String key)
Retrieves a calendar resource as a JavaScript String literal ( 'xxxx' ) |
protected static java.lang.String |
html(java.lang.String raw)
Method encodeHtml |
protected static java.lang.String[] |
removeEmptyElements(java.lang.String[] arr)
Removes the null elements from the array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected HtmlPainterHelp()
Method Detail |
protected static java.lang.String html(java.lang.String raw)
raw
- Raw String
null
public static void createCalendarScript(javax.servlet.jsp.PageContext pageContext)
pageContext
- The JSP Page Contextpublic static void createCalendarScript(javax.servlet.jsp.PageContext pageContext, java.lang.String localeName)
pageContext
- The JSP Page ContextlocaleName
- The name of the locale to usepublic static void createFameworkIncludes(javax.servlet.jsp.PageContext pageContext)
pageContext
- PageContextpublic static void createBase(javax.servlet.jsp.PageContext pageContext)
pageContext
- PageContextpublic static void createButton(javax.servlet.jsp.PageContext pageContext, java.lang.String name, java.lang.String textResourceKey, java.lang.String tooltipResourceKey, java.lang.String styleId, java.lang.String onClick)
pageContext
- PageContextname
- The buttons nametextResourceKey
- The buttons label text (resource key)tooltipResourceKey
- The buttons tooltip (resource key)styleId
- The buttons Style IdonClick
- OnClick Handlerpublic static java.lang.String getLiteral(javax.servlet.jsp.PageContext pageContext, java.lang.String key)
pageContext
- PageContextkey
- The framework resource key
public static java.lang.String getStringLiteral(javax.servlet.jsp.PageContext pageContext, java.lang.String key)
pageContext
- PageContextkey
- The framework resource key
protected static java.lang.String[] removeEmptyElements(java.lang.String[] arr)
arr
- Array to check
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |