java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.webapp.admin.ActionsTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class ActionsTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
JSP custom tag that renders an "instant actions" control. To the user,
it appears as an HTML <select> element (i.e. a combo box), with
the behavior of selecting a new page for the current frame or window when
a different option is selected, without requiring a submit action.
This tag has the following user-settable attributes:
- size - (Integer) number of rows that will be visible
to the user. If not specified, one row will be visible.
- style - The CSS style class to be applied to the
entire rendered output of the instant actions control, if any.
FIXME - Internationalize the exception messages!
- Version:
- $Revision: 302726 $ $Date: 2004-02-27 09:59:07 -0500 (Fri, 27 Feb 2004) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FUNCTION_TAG
protected static final java.lang.String FUNCTION_TAG
- Attribute name used to indicate that we have generated the JavaScript
function already on the current page. The value stored for this
attribute is arbitrary - only its existence is relevant.
- See Also:
- Constant Field Values
labels
protected java.util.ArrayList labels
- The set of labels for the Actions displayed by this control.
selecteds
protected java.util.ArrayList selecteds
- The set of "selected" flags for Actions displayed by this control.
disableds
protected java.util.ArrayList disableds
- The set of "disabled" flags for Actions displayed by this control.
urls
protected java.util.ArrayList urls
- The set of URLs for the Actions displayed by this control.
size
protected int size
- The number of elements that will be displayed to the user.
style
protected java.lang.String style
- The CSS style class to be applied to the entire rendered output
of this "instant actions" object.
label
protected java.lang.String label
- HTML Label tag text.
ActionsTag
public ActionsTag()
getSize
public int getSize()
setSize
public void setSize(int size)
getStyle
public java.lang.String getStyle()
setStyle
public void setStyle(java.lang.String style)
getLabel
public java.lang.String getLabel()
setLabel
public void setLabel(java.lang.String label)
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Description copied from class:
javax.servlet.jsp.tagext.BodyTagSupport
- Default processing of the start tag returning EVAL_BODY_BUFFERED.
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Render this instant actions control.
release
public void release()
- Release all state information set by this tag.
addAction
void addAction(java.lang.String label,
boolean selected,
boolean disabled,
java.lang.String url)
- Add a new Action to the set that will be rendered by this control.