org.dspace.app.webui.jsptag
Class PopupTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.dspace.app.webui.jsptag.PopupTag
All Implemented Interfaces:
java.io.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: 5845 $
Author:
Robert Tansley
See Also:
Serialized Form

Field Summary
 
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
 
Constructor Summary
PopupTag()
           
 
Method Summary
 int doAfterBody()
           
 java.lang.String getPage()
          Get the JSP to display (default version)
 void setPage(java.lang.String s)
          Set the JSP to display (default version)
 
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
 

Constructor Detail

PopupTag

public PopupTag()
Method Detail

getPage

public java.lang.String getPage()
Get the JSP to display (default version)

Returns:
the page to display

setPage

public void setPage(java.lang.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 © 2010 DuraSpace. All Rights Reserved.