org.dspace.app.webui.jsptag
Class PopupTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.dspace.app.webui.jsptag.PopupTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class PopupTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
Tag for producing a popup window link. Takes advantage of Javascript to
produce a small window that is brought to the front every time a popup link
is pressed. If Javascript is not available, a simple HTML link is used as a
fallback. The contents of the tag are used as the text of the link.
Additionally, this will link to the "local" version of the URL, if a locally
modified version exists.
FIXME: Currently supports a single popup window at a hardcoded size; extra
attributes could be added at a later date (e.g. name, width, height)
- Version:
- $Revision$
- Author:
- Robert Tansley
- See Also:
- Serialized Form
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
PopupTag
public PopupTag()
getPage
public String getPage()
- Get the JSP to display (default version)
- Returns:
- the page to display
setPage
public void setPage(String s)
- Set the JSP to display (default version)
- Parameters:
s - the page to display
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspException
- Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag- Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
Copyright © 2013 DuraSpace. All Rights Reserved.