|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
nl.gx.webmanager.taglib.LinkTag
public class LinkTag
Implements the wm:link tag.
Using this tag, link objects can be constructed that refer to pages, downloads, etc. This tag supports
dynamic attributes (i.e. you can specify your own attributes) which are passed on to the Link object that
is created.
Example of usage (1): *
< wm:link var="aLinkObject" linkText="clickme" foo="bar" target="_top" />
${aLinkObject.htmlTag}
In the example above a new link object is created referencing the current page. It is assigned to
'aLinkObject'. Using dynamic attributes a custom attribute 'foo' is defined. The link is opened in the
'_top' section of the window.
< wm:link var="homepage" reference="${presentationcontext.website.homePage}" linkText="to the homepage" />
Click here to go ${homepage.htmlTag}.
Link| Constructor Summary | |
|---|---|
LinkTag()
|
|
| Method Summary | |
|---|---|
void |
doTag()
|
protected java.lang.String |
getClassName()
Return the class name to be used in the 'class=�...�' attribute of the resulting HTML link. |
protected java.lang.String |
getLinkText()
Return the text to use when displaying the HTML link. |
protected java.lang.String |
getMouseOverText()
Return the text to be used in the 'title=�...�' attribute of the resulting HTML link. |
protected java.lang.String |
getPassOn()
Return the comma separated list of all URL parameters of the current request that need to be included in the link that is built. |
protected java.lang.String |
getPresentationName()
Return the WebManager presentation object by which the link is rendered. |
protected Wrapper |
getReference()
Return the page to link to. |
protected java.lang.String |
getTarget()
Return the target to be used in the 'target=�...�' attribute of the resulting HTML link.. |
protected java.lang.String |
getVar()
Return the JSP variable to store the result in. |
protected boolean |
isAddElementHolder()
Returns true if the elementholder parameter should be added to a ssi link. |
protected boolean |
isPassOnAllParameters()
Return whether all URL parameters of the current request are included in the link that is built. |
void |
setAddElementHolder(boolean addElementHolder)
Set whether the elementholder parameter should be added to a ssi link. |
void |
setClassName(java.lang.String className)
Specifies the class name to be used in the 'class=�...�' attribute of the resulting HTML link. |
void |
setDynamicAttribute(java.lang.String uri,
java.lang.String localName,
java.lang.Object value)
|
void |
setLinkText(java.lang.String linkText)
Sets the text to use when displaying the HTML link. |
void |
setMouseOverText(java.lang.String mouseOverText)
Specifies the text to be used in the 'title=�...�' attribute of the resulting HTML link. |
void |
setPassOn(java.lang.String passOn)
Specifies a comma separated list of all URL parameters of the current request that need to be included in the link that is built. |
void |
setPassOnAllParameters(boolean passOnAllParameters)
Specifies whether all URL parameters of the current request are included in the link that is built. |
void |
setPresentationName(java.lang.String presentationName)
Specifies a WebManager presentation object. |
void |
setReference(Wrapper reference)
Page to link to. |
void |
setTarget(java.lang.String target)
Specifies the target to be used in the 'target=�...�' attribute of the resulting HTML link. |
void |
setVar(java.lang.String var)
Specifies the JSP variable to store the result in. |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinkTag()
| Method Detail |
|---|
public void setReference(Wrapper reference)
reference - protected Wrapper getReference()
public void setVar(java.lang.String var)
var - name of the jsp variable to which the Link object will be assigned.protected java.lang.String getVar()
public void setPassOnAllParameters(boolean passOnAllParameters)
passOnAllParameters - if true all parameters in the link are passed on so the href will contain
them in the querystringprotected boolean isPassOnAllParameters()
public void setPassOn(java.lang.String passOn)
passOn - comma separated list of request parameters that need to be passed on in the querystring
of the link.protected java.lang.String getPassOn()
public void setLinkText(java.lang.String linkText)
linkText - link text that will appear between the <a> and </a>protected java.lang.String getLinkText()
public void setPresentationName(java.lang.String presentationName)
presentationName - the name of the WebManager presentation objectprotected java.lang.String getPresentationName()
public void setClassName(java.lang.String className)
className - the class name to be used in the 'class=�...�' attribute of the resulting HTML
linkprotected java.lang.String getClassName()
public void setTarget(java.lang.String target)
target - the target to be used in the 'target=�...�' attribute of the resulting HTML linkprotected java.lang.String getTarget()
public void setMouseOverText(java.lang.String mouseOverText)
mouseOverText - the text to be used in the 'title=�...�' attribute of the resulting HTML linkprotected java.lang.String getMouseOverText()
public void setAddElementHolder(boolean addElementHolder)
addElementHolder - boolean, when true the elementholder should be added to a ssi link.protected boolean isAddElementHolder()
public void setDynamicAttribute(java.lang.String uri,
java.lang.String localName,
java.lang.Object value)
setDynamicAttribute in interface javax.servlet.jsp.tagext.DynamicAttributespublic void doTag()
doTag in interface javax.servlet.jsp.tagext.SimpleTagdoTag in class javax.servlet.jsp.tagext.SimpleTagSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||