|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bowstreet.webapp.util.JSPUtils
public class JSPUtils
Utility methods for manipulating JSP code in WebSphere Portlet Factory pages.
Constructor Summary | |
---|---|
JSPUtils()
|
Method Summary | |
---|---|
static void |
addContentToPageHeader(Page page,
java.lang.String content)
Adds some content at top of page |
static void |
addImportsDirective(Page page,
java.lang.String packageName)
Add an imports directive to top of page, if it's not already there |
static void |
addScriptReference(Page page,
java.lang.String url)
Add a JavaScript reference to the given page. |
static void |
addStylesheet(Page page,
java.lang.String url)
Add a stylesheet reference to the given page. |
static void |
addTagLibCall(Page page,
IXml element,
java.lang.String uri,
java.lang.String prefix,
IXml tag)
Add a tag library call, including the taglib directive, to the specified element. |
static void |
addTagLibCall(Page page,
IXml element,
java.lang.String uri,
java.lang.String prefix,
IXml tag,
boolean replaceNode)
Add a tag library call, including the taglib directive. |
static void |
addTagLibDirective(Page page,
java.lang.String uri,
java.lang.String prefix)
Add the specified taglib reference to the header of the specified page. |
static IXml |
getPageHeaderContent(Page page)
Gets HTMLContent element where we'll insert page header tags (e.g. imports, taglib) |
static java.lang.String |
getUniqueJavaIdentifier(Page page,
java.lang.String base)
Get a unique Java variable/method name, using the given base name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSPUtils()
Method Detail |
---|
public static void addContentToPageHeader(Page page, java.lang.String content)
page
- content
- public static void addImportsDirective(Page page, java.lang.String packageName)
page
- packageName
- package name to importpublic static void addScriptReference(Page page, java.lang.String url)
page
- the WebApp page into which this identifier will be puturl
- potentially indirect reference specifying JavaScript source URLpublic static void addStylesheet(Page page, java.lang.String url)
page
- the WebApp page into which this identifier will be puturl
- potentially indirect reference specifying style sheet URLpublic static void addTagLibCall(Page page, IXml element, java.lang.String uri, java.lang.String prefix, IXml tag)
page
- Pageelement
- element to add the taglib reference as a child of.uri
- URIprefix
- prefixtag
- tagpublic static void addTagLibCall(Page page, IXml element, java.lang.String uri, java.lang.String prefix, IXml tag, boolean replaceNode)
page
- Pageelement
- element to add the taglib reference as a child of.uri
- URIprefix
- prefixtag
- tagreplaceNode
- boolean, specifying whether to replace the specified element or add a child node to it.public static void addTagLibDirective(Page page, java.lang.String uri, java.lang.String prefix)
page
- uri
- prefix
- public static IXml getPageHeaderContent(Page page)
page
-
public static java.lang.String getUniqueJavaIdentifier(Page page, java.lang.String base)
page
- the WebApp page into which this identifier will be putbase
- string used as name or as base of name
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |