public abstract class LinkTagSupport extends HtmlTagSupport implements ParameterizableTag
pageContext, parentTag
Constructor and Description |
---|
LinkTagSupport() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(java.lang.String name,
java.lang.Object valueOrValues)
Used by stripes:param tags (and possibly other tags at some distant point in
the future) to add a parameter to the parent link tag.
|
protected java.lang.String |
buildUrl()
Builds the URL based on the information currently stored in the tag.
|
void |
clearParameters()
Clears all existing parameters.
|
java.lang.String |
getAnchor()
Gets the anchor element that is appended at the end of the URL.
|
java.lang.Object |
getBeanclass()
Gets the bean class (String FQN or Class) to generate a link for.
|
java.lang.String |
getEvent()
Gets the (optional) event name that the link will trigger.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Retrieves the parameter values set on the tag.
|
protected java.lang.String |
getPreferredBaseUrl()
Returns the base URL that should be used for building the link.
|
java.lang.String |
getUrl()
Gets the URL that is supplied by the user/developer on the page.
|
boolean |
isAddSourcePage()
Get the flag that indicates if the _sourcePage parameter should be
appended to the URL.
|
java.lang.Boolean |
isPrependContext()
Get the flag that indicates if the application context should be included in the URL.
|
void |
setAddSourcePage(boolean addSourcePage)
Set the flag that indicates if the _sourcePage parameter should be
appended to the URL.
|
void |
setAnchor(java.lang.String anchor)
Sets the anchor element that is appended at the end of the URL.
|
void |
setBeanclass(java.lang.Object beanclass)
Sets the bean class (String FQN or Class) to generate a link for.
|
void |
setEvent(java.lang.String event)
Sets the (optional) event name that the link will trigger.
|
void |
setPrependContext(java.lang.Boolean prependContext)
Set the flag that indicates if the application context should be included in the URL.
|
void |
setUrl(java.lang.String url)
Sets the URL that is supplied by the user/developer on the page.
|
evaluateExpression, get, getAccesskey, getAttributes, getBodyContent, getBodyContentAsString, getCssClass, getDir, getId, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getTabindex, getTitle, release, set, setAccesskey, setBodyContent, setClass, setCssClass, setDir, setDynamicAttribute, setId, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setStyle, setTabindex, setTitle, toString, writeAttributes, writeCloseTag, writeOpenTag, writeSingletonTag
doEndTag, doStartTag, getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParent
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- the URL supplied on the pagepublic void addParameter(java.lang.String name, java.lang.Object valueOrValues)
addParameter
in interface ParameterizableTag
name
- the name of the parameter(s) to addvalueOrValues
- public java.util.Map<java.lang.String,java.lang.Object> getParameters()
public void clearParameters()
public void setEvent(java.lang.String event)
public java.lang.String getEvent()
public void setBeanclass(java.lang.Object beanclass)
beanclass
- the name of an ActionBean class, or Class objectpublic java.lang.Object getBeanclass()
public java.lang.String getAnchor()
public void setAnchor(java.lang.String anchor)
setUrl
method) already contains the anchor, then the anchor specified by
this attribute takes precedence.anchor
- the name of the anchor to setpublic boolean isAddSourcePage()
public void setAddSourcePage(boolean addSourcePage)
public java.lang.Boolean isPrependContext()
public void setPrependContext(java.lang.Boolean prependContext)
protected java.lang.String getPreferredBaseUrl() throws StripesJspException
StripesJspException
- if a beanclass attribute was specified, but does not identify
an existing ActionBeanprotected java.lang.String buildUrl() throws StripesJspException
StripesJspException
- if the base URL cannot be determined? Copyright 2005-2006, Stripes Development Team.