|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTagSupport
BodyTagSupport
AbstractClassicTag
HtmlGroupBaseTag
RadioButtonGroup
public class RadioButtonGroup
Groups a collection of RadioButtonOptions, and handles databinding of their values. If RadioButtonGroup uses any Format tags, it must have those tags come before above any nested RadioButtonOption tags.
<netui:radioButtonGroup optionsDataSource="{pageFlow.hashMap}" dataSource="{actionForm.selection}" />Assuming that the
optionsDataSource
attribute refers to the following HashMap object...
public HashMap hashMap = new HashMap(); protected void onCreate() { hashMap.put("value1", "Display Text 1"); hashMap.put("value2", "Display Text 2"); hashMap.put("value3", "Display Text 3"); }...then the following HTML will be generated in the browser...
<netui:radioButtonGroup dataSource="{actionForm.selection}"> <netui:radioButtonOption value="value1">Display Text 1</netui:radioButtonOption><br> <netui:radioButtonOption value="value2">Display Text 2</netui:radioButtonOption><br> <netui:radioButtonOption value="value3">Display Text 3</netui:radioButtonOption><br> </netui:radioButtonGroup>
Field Summary | |
---|---|
static String |
RADIOBUTTONGROUP_KEY
|
Fields inherited from class HtmlGroupBaseTag |
---|
_cr, _dataSource, _defaultValue, _disabled, _labelStyle, _labelStyleClass, _optionsDataSource, _repCurItem, _repeater, _repIdx, HORIZONTAL_VALUE, VERTICAL_VALUE |
Fields inherited from class AbstractClassicTag |
---|
DefaultNamingChain, EMPTY_STRING, NETUI_UNIQUE_CNT |
Fields inherited from class BodyTagSupport |
---|
bodyContent |
Fields inherited from class TagSupport |
---|
id, pageContext |
Fields inherited from interface BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
RadioButtonGroup()
|
Method Summary | |
---|---|
int |
doAfterBody()
Save any body content of this tag, which will generally be the option(s) representing the values displayed to the user. |
int |
doEndTag()
Render the set of RadioButtonOptions. |
int |
doStartTag()
Determine the match for the RadioButtonGroup |
protected List |
getNamingChain()
Return an ArrayList which represents a chain of INameInterceptor
objects. |
String |
getTagName()
Return the name of the Tag. |
boolean |
isMatched(String value,
Boolean defaultValue)
Does the specified value match one of those we are looking for? |
protected void |
localRelease()
Release any acquired resources. |
Methods inherited from class BodyTagSupport |
---|
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
public static final String RADIOBUTTONGROUP_KEY
Constructor Detail |
---|
public RadioButtonGroup()
Method Detail |
---|
public String getTagName()
getTagName
in interface INetuiTag
getTagName
in class AbstractClassicTag
protected List getNamingChain()
ArrayList
which represents a chain of INameInterceptor
objects. This method by default returns null
and should be overridden
by objects that support naming.
getNamingChain
in class HtmlGroupBaseTag
ArrayList
that will contain INameInterceptor
objects.public boolean isMatched(String value, Boolean defaultValue)
isMatched
in class HtmlGroupBaseTag
value
- Value to be compared
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredpublic int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
doAfterBody
in class BodyTagSupport
JspException
- if a JSP exception has occurredpublic int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredprotected void localRelease()
localRelease
in class HtmlGroupBaseTag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |