au.com.whitesquare.waf.taglib.html
Class RadioTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byau.com.whitesquare.waf.taglib.html.BaseHandlerTag
              extended byau.com.whitesquare.waf.taglib.html.BaseInputTag
                  extended byau.com.whitesquare.waf.taglib.html.RadioTag
All Implemented Interfaces:
BodyTag, IterationTag, JspTag, Serializable, Tag

public class RadioTag
extends BaseInputTag

This class manages the rendering of <input type="radio"> element.
As with all waf tags, this element supports re-population by default.
The CheckedValue attribute is used to configure the VALUE of the radio button.

Last Modified $Date: 2005/06/26 11:21:31 $

Version:
$Revision: 1.4 $
Author:
Steve Mactaggart
See Also:
Serialized Form

Field Summary
protected  String checkedvalue
          The data to be shown in the VALUE attribute of the input element.
protected  String text
          The content to be rendered after the input element.
 
Fields inherited from class au.com.whitesquare.waf.taglib.html.BaseInputTag
value
 
Fields inherited from class au.com.whitesquare.waf.taglib.html.BaseHandlerTag
accesskey, tabindex
 
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
RadioTag()
           
 
Method Summary
 String getCheckedvalue()
          Returns the value to be rendered as the VALUE of the radio tag.
 String getText()
          The text to be displayed after the radio button.
 void release()
          Release any acquired resources.
protected  String renderInputElement()
          Renders an HTML <input type="radio"> element.
 void setCheckedvalue(boolean cvalue)
          Sets the value to be rendered as the VALUE of the radio tag.
 void setCheckedvalue(Object cvalue)
          Sets the value to be rendered as the VALUE of the radio tag.
 void setCheckedvalue(String cvalue)
          Sets the value to be rendered as the VALUE of the radio tag.
 void setText(String text)
          The text to be displayed after the radio button.
 
Methods inherited from class au.com.whitesquare.waf.taglib.html.BaseInputTag
configureRepopulateValue, configureValue, doEndTag, doStartTag, getCols, getMaxlength, getName, getRows, getSize, getValue, isEditable, isRepopulate, prepareInput, renderTextElement, setCols, setEditable, setMaxlength, setName, setRepopulate, setRows, setSize, setValue, setValue, setValue, setValue
 
Methods inherited from class au.com.whitesquare.waf.taglib.html.BaseHandlerTag
filter, getAccesskey, getAlt, getDisabled, getElementClose, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, prepareEventHandlers, prepareFocusEvents, prepareKeyEvents, prepareMouseEvents, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setDisabled, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey, write
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, 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

text

protected String text
The content to be rendered after the input element.


checkedvalue

protected String checkedvalue
The data to be shown in the VALUE attribute of the input element.

Constructor Detail

RadioTag

public RadioTag()
Method Detail

renderInputElement

protected String renderInputElement()
                             throws JspException
Renders an HTML <input type="radio"> element.

Specified by:
renderInputElement in class BaseInputTag
Returns:
A radio input element.
Throws:
JspException

release

public void release()
Release any acquired resources.

Specified by:
release in interface Tag
Overrides:
release in class BaseInputTag

getCheckedvalue

public String getCheckedvalue()
Returns the value to be rendered as the VALUE of the radio tag.

Returns:
the VALUE to be rendered.

setCheckedvalue

public void setCheckedvalue(String cvalue)
Sets the value to be rendered as the VALUE of the radio tag.

Parameters:
cvalue - the VALUE to be rendered.

setCheckedvalue

public void setCheckedvalue(Object cvalue)
Sets the value to be rendered as the VALUE of the radio tag.

Parameters:
cvalue - the VALUE to be rendered.

setCheckedvalue

public void setCheckedvalue(boolean cvalue)
Sets the value to be rendered as the VALUE of the radio tag.

Parameters:
cvalue - the VALUE to be rendered.

getText

public String getText()
The text to be displayed after the radio button.

Returns:
the text to be displayed.

setText

public void setText(String text)
The text to be displayed after the radio button.

Parameters:
text - the text to be displayed.


Copyright © 2004 Whitesquare Software. All Rights Reserved.