com.ibm.btt.gui.jsptags
Class ButtonGroupTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.ibm.btt.gui.jsptags.DSETagSupport
com.ibm.btt.gui.jsptags.DSEListTagSupport
com.ibm.btt.gui.jsptags.ButtonGroupTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class ButtonGroupTag
- extends DSEListTagSupport
This class implements the ButtonGroupTag with the following tag attributes:
- multipleSelection-implied - specifies if multiple
selection is allowed
- class -implied - class of the label text
- custom -implied - any other attribute to be added to the
element of the group (format att1Name=\"att1Value\" att2Name=\"att2Value\")
The ButtonGroupTag can also contain tag attributs defined by its subclass,
DSEListTagSupport.
- See Also:
- Serialized Form
Fields inherited from class com.ibm.btt.gui.jsptags.DSETagSupport |
APPLICATION_SCOPE, BR_RE, BT_CLOSE, BT_OPEN, buffer, BUTTON, CENTER, COMMENT_VAL_ERROR, custom, dataName, DOC_CLOSE, DOC_FORM_EVENT, DOC_FORM_HALF1, DOC_FORM_HALF2, DOC_SUBMIT, DOT, ERRORCOLOR, FCLTA, FCTA, FFTA, fontColor, fontFace, fontSize, FSTA, FT_CLOSE, FT_OPEN, HARD, IBT_OPEN, ICKT_OPEN, IHT_OPEN, IIT_OPEN, IMAGE, IPT_OPEN, IRAT_OPEN, IRT_OPEN, IST_OPEN, IT_CA, IT_CHECKED, IT_DISA, IT_MA, IT_NA, IT_OA, IT_OPEN, IT_READ, IT_READONLY, IT_SA, IT_SRA, IT_VA, IT_WA, ITT_OPEN, LEFT, LO_CLOSE, LO_RE, LOWT, msgPrefix, name, NBSP, NO, NULL, OFF, out, PAGE_SCOPE, QU_LO, QU_LO_CLOSE_RE, QU_LO_RE, QU_SP, QUOT, REQUEST_SCOPE, RESET, RET, RIGHT, SESSION_SCOPE, SOFT, SP, styleName, SUBMIT, TAT_CA, TAT_CLOSE, TAT_OPNE, TAT_RA, TAT_WA, valErrBundle, YES |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, 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 |
Method Summary |
boolean |
contains(java.lang.Object values,
java.lang.Object value)
Returns a boolean indicating if the value value is contained in
the values array . |
void |
doForMultipleSelection()
Processes when the multipleSelection attribute is YES. |
void |
doForSingleSelection()
Processes when the multipleSelection attribute is NO. |
int |
doStartTag()
Process the start tag for this instance. |
void |
setMultipleSelection(java.lang.String newMultipleSelection)
Sets the multipleSelection property with a new value. |
Methods inherited from class com.ibm.btt.gui.jsptags.DSETagSupport |
bufferAppendFontEnd, bufferAppendFontStart, getJspContextServices, getName, getResourceBundle, setCustom, setDataName, setFontColor, setFontFace, setFontSize, setName, setPageContext, setResourceBundle, setResourceBundle, setStyle, setVEResourceBundle |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
multipleSelection
protected java.lang.String multipleSelection
ButtonGroupTag
public ButtonGroupTag()
- ButtonGroupTag constructor.
contains
public boolean contains(java.lang.Object values,
java.lang.Object value)
- Returns a boolean indicating if the value value is contained in
the values array .
- Parameters:
values
- The array of valuesvalue
- The value to check
- Returns:
- boolean - True if it values contain value
doForMultipleSelection
public void doForMultipleSelection()
throws java.io.IOException,
DSEObjectNotFoundException
- Processes when the multipleSelection attribute is YES.
- Throws:
DSEObjectNotFound
java.io.IOException
DSEObjectNotFoundException
doForSingleSelection
public void doForSingleSelection()
throws java.io.IOException,
DSEObjectNotFoundException
- Processes when the multipleSelection attribute is NO.
- Throws:
DSEObjectNotFound
java.io.IOException
DSEObjectNotFoundException
doStartTag
public int doStartTag()
- Process the start tag for this instance. This method is invoked by the
JSP page implementation object. The doStartTag method assumes that the
properties pageContext and parent have been set. It also assumes that any
properties exposed as attributes have been set. When this method is
invoked, the body has not yet been evaluated.
This method returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED
to indicate that the body of the action should be evaluated or SKIP_BODY
to indicate otherwise. When a Tag returns EVAL_BODY_INCLUDE, this method
includes the result of evaluating the body (if any) in the current "out"
JspWriter and then invokes doEndTag().
Refer to the class description for specific details about this method.
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
- Returns:
- int - The evaluation constant
setMultipleSelection
public void setMultipleSelection(java.lang.String newMultipleSelection)
- Sets the multipleSelection property with a new value.
- Parameters:
newMultipleSelection
- MultipleSelection attribute value
(c) Copyright IBM Corporation 1998, 2010