org.apache.commons.monitoring.servlet.jsp
Class AbstractSelectTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.commons.monitoring.servlet.jsp.AbstractSelectTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
CategoriesTag, SubsystemsTag

public abstract class AbstractSelectTag
extends javax.servlet.jsp.tagext.TagSupport

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
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
AbstractSelectTag()
           
 
Method Summary
 int doEndTag()
           
protected abstract  java.util.Collection<? extends java.lang.String> getElements()
          The set of elements to display as a select list
protected  Repository getRepository()
           
 void setId(java.lang.String id)
           
 void setName(java.lang.String name)
           
 void setRepository(java.lang.String repository)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSelectTag

public AbstractSelectTag()
Method Detail

getRepository

protected Repository getRepository()
                            throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

getElements

protected abstract java.util.Collection<? extends java.lang.String> getElements()
                                                                         throws javax.servlet.jsp.JspException
The set of elements to display as a select list

Returns:
Throws:
javax.servlet.jsp.JspException

setId

public void setId(java.lang.String id)
Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport

setName

public void setName(java.lang.String name)

setRepository

public void setRepository(java.lang.String repository)
Parameters:
repository - the repository to set


Copyright © 2008 The Apache Software Foundation. All Rights Reserved.