|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.tag.StripesTagSupport
net.sourceforge.stripes.tag.HtmlTagSupport
net.sourceforge.stripes.tag.LinkTagSupport
public abstract class LinkTagSupport
Abstract support class for generating links. Used by both the LinkTag (which generates regular <a href=""/> style links) and the UrlTag which is a rough similie of the JSTL url tag.
Field Summary |
---|
Fields inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
---|
pageContext, parentTag |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
LinkTagSupport()
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.sourceforge.stripes.tag.HtmlTagSupport |
---|
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 |
Methods inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
---|
doEndTag, doStartTag, getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinkTagSupport()
Method Detail |
---|
public String getUrl()
public void setUrl(String url)
url
- the URL supplied on the pagepublic void addParameter(String name, Object valueOrValues)
addParameter
in interface ParameterizableTag
name
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |