Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.webapp.admin
Class ActionTag  view ActionTag download ActionTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.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:

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.
 
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
ActionTag()
           
 
Method Summary
 int doAfterBody()
          Process the body text of this tag (if any).
 int doEndTag()
          Record this action with our surrounding ActionsTag instance.
 int doStartTag()
          Process the start of this tag.
 boolean getDisabled()
           
 boolean getSelected()
           
 java.lang.String getUrl()
           
 void release()
          Release all state information set by this tag.
 void setDisabled(boolean disabled)
           
 void setSelected(boolean selected)
           
 void setUrl(java.lang.String url)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, 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
 

Field Detail

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.

Constructor Detail

ActionTag

public ActionTag()
Method Detail

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.