|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.utils.tree.taglibrary.TreeRequestFormatter
Creates a tree that formats hyperlinks given an HTTP Request.
Builds node hyperlink from tree Attributes and http request parameters. The hrefTemplateAttribute should contain a URL template with {Request Parameter} placeholders using '{' and '}'. The node hyperlink will be built by replacing these placeholders with request values.
XML Configuration Template:
<RequestFormatter class="com.raritantechnologies.utils.tree.taglibrary.TreeRequestFormatter"
hrefTemplateAttribute="[ tree node attribute that has the href template ]" >
<TreeBuilder class="[ class of com.raritantechnologies.utils.tree.ITreeBuilder ]" >
</TreeBuilder>
<TreeRenderer class="[ class of com.raritantechnologies.utils.tree.taglibrary.ITreeRenderer ]" >
</TreeRenderer>
</RequestFormatter>
| Constructor Summary | |
TreeRequestFormatter()
|
|
| Method Summary | |
java.lang.String |
formatSearchRequest(RaritanPageContext pageContext)
Reformat the http request as a String. |
java.lang.String |
getHyperlink(java.lang.String sessionID,
java.lang.String targetURL,
TreeNode treeNode,
OrderedMap searchAttributes)
searchAttributes has http request param = treeNode attribute - renderer uses this map to build a query from the TreeNode data. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeRequestFormatter()
| Method Detail |
public java.lang.String formatSearchRequest(RaritanPageContext pageContext)
IRequestFormatter
formatSearchRequest in interface IRequestFormatter
public java.lang.String getHyperlink(java.lang.String sessionID,
java.lang.String targetURL,
TreeNode treeNode,
OrderedMap searchAttributes)
ITreeNodeHyperlinkRenderer
getHyperlink in interface ITreeNodeHyperlinkRendererpublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IRequestFormatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||