java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.webapp.admin.ActionTag
- 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 ActionTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
Nested tag that represents an individual "instant action". This tag
is valid only when nested within an ActoinsTag tag.
This tag has the following user-settable attributes:
- selected - Set to
true if this action
should be selected when the control is initially displayed.
- url - URL to which control should be transferred
(in the current frame or window) if this action is selected.
In addition, the body content of this tag is used as the user-visible
label for the action, so that it may be conveniently localized.
FIXME - Internationalize the exception messages!
- Version:
- $Revision: 302726 $ $Date: 2004-02-27 09:59:07 -0500 (Fri, 27 Feb 2004) $
|
Field Summary |
protected boolean |
disabled
Should this action selection be disabled?
e.g. |
protected java.lang.String |
label
The label that will be rendered for this action. |
protected boolean |
selected
Should this action be selected when the control is initially displayed? |
protected java.lang.String |
url
The URL to which control is transferred if this action is selected. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
label
protected java.lang.String label
- The label that will be rendered for this action.
selected
protected boolean selected
- Should this action be selected when the control is initially displayed?
disabled
protected boolean disabled
- Should this action selection be disabled?
e.g. Action separators should be disabled.
url
protected java.lang.String url
- The URL to which control is transferred if this action is selected.
ActionTag
public ActionTag()
getSelected
public boolean getSelected()
setSelected
public void setSelected(boolean selected)
getDisabled
public boolean getDisabled()
setDisabled
public void setDisabled(boolean disabled)
getUrl
public java.lang.String getUrl()
setUrl
public void setUrl(java.lang.String url)
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Process the start of this tag.
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspException
- Process the body text of this tag (if any).
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Record this action with our surrounding ActionsTag instance.
release
public void release()
- Release all state information set by this tag.