com.arsdigita.bebop.jsp
Class DefineOption
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.arsdigita.bebop.jsp.DefineComponent
com.arsdigita.bebop.jsp.DefineOption
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, Serializable, javax.servlet.jsp.tagext.Tag
- public class DefineOption
- extends DefineComponent
Class for defining an option within a radio/checkbox/select group.
usage:
<define:option name="label" value="value"/>
The "label" attribute is what is displayed to the user. This
text may be globalized:
<define:option name="msg.key" bundle="com.arsdigita.MyBundleName"
value="value"/>
- See Also:
- Serialized Form
| 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 |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doEndTag, doInitBody, 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 |
versionId
public static final String versionId
- See Also:
- Constant Field Values
DefineOption
public DefineOption()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- overrides superclass. we're not in a Container but we need to add
ourselves to an option group instead.
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doStartTag in class DefineComponent
- Throws:
javax.servlet.jsp.JspException
getComponent
protected final Component getComponent()
- Specified by:
getComponent in class DefineComponent
setValue
public final void setValue(String s)
setSelected
public final void setSelected(String s)
- If
s is "true" then this option is selected by default.
- Parameters:
s - if "true", this option is selected.
setBundle
public final void setBundle(String s)
- Sets the bundle name to use for globalizing this option's label.
- Parameters:
s - the fully-qualified resource bundle name.
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2337 UTC