public abstract class LinkTagSupport extends HtmlTagSupport implements ParameterizableTag
pageContext, parentTagEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
LinkTagSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String name,
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 String |
buildUrl()
Builds the URL based on the information currently stored in the tag.
|
void |
clearParameters()
Clears all existing parameters.
|
String |
getAnchor()
Gets the anchor element that is appended at the end of the URL.
|
Object |
getBeanclass()
Gets the bean class (String FQN or Class) to generate a link for.
|
String |
getEvent()
Gets the (optional) event name that the link will trigger.
|
Map<String,Object> |
getParameters()
Retrieves the parameter values set on the tag.
|
protected String |
getPreferredBaseUrl()
Returns the base URL that should be used for building the link.
|
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.
|
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(String anchor)
Sets the anchor element that is appended at the end of the URL.
|
void |
setBeanclass(Object beanclass)
Sets the bean class (String FQN or Class) to generate a link for.
|
void |
setEvent(String event)
Sets the (optional) event name that the link will trigger.
|
void |
setPrependContext(Boolean prependContext)
Set the flag that indicates if the application context should be included in the URL.
|
void |
setUrl(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, isXmlTags, 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, writeSingletonTagdoEndTag, doStartTag, getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParentpublic String getUrl()
public void setUrl(String url)
url - the URL supplied on the pagepublic void addParameter(String name, Object valueOrValues)
addParameter in interface ParameterizableTagname - the name of the parameter(s) to addvalueOrValues - public Map<String,Object> getParameters()
public void clearParameters()
public void setEvent(String event)
public String getEvent()
public void setBeanclass(Object beanclass)
beanclass - the name of an ActionBean class, or Class objectpublic Object getBeanclass()
public String getAnchor()
public void setAnchor(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 Boolean isPrependContext()
public void setPrependContext(Boolean prependContext)
protected String getPreferredBaseUrl() throws StripesJspException
StripesJspException - if a beanclass attribute was specified, but does not identify
an existing ActionBeanprotected String buildUrl() throws StripesJspException
StripesJspException - if the base URL cannot be determined© Copyright 2005-2006, Stripes Development Team.