public interface GXIRadioButtonTag extends GXITag
It should be used for creating single radio buttons and associating them to other single radio buttons. For example, in host tables and action fields, replace each action field in a table row with a radio button.
Use the setName
method to associate it with other radio buttons.
The method getContent()
returns the checked value of the radio button, when it is checked, and null
when it is not.
To create a new radio button use GXHtmlTagFactory.instance().newRadioButton(...)
Modifier and Type | Method and Description |
---|---|
String |
getCaption()
Returns the caption of the radio button.
|
String |
getCheckedValue()
Returns the checked value of the radio button.
|
String |
getName()
Returns the name of the radio button tag.
|
boolean |
isChecked()
Determines if the radio button is checked.
|
void |
setCaption(String caption)
Sets the caption.
|
void |
setChecked(boolean checked)
Sets if the radio button is checked.
|
void |
setCheckedValue(String checkedValue)
Sets the checked value of the radio button.
|
void |
setName(String name)
Sets a name for the radio button tag.
|
copyFrom, getAttribute, getBottomMargin, getBottomPadding, getChildren, getContent, getHostField, getId, getLength, getOffsetHeight, getOffsetLeft, getOffsetRight, getOffsetTop, getParent, getPosition, getTagName, getTopMargin, getTopPadding, hasChildren, isVisible, removeAttribute, setAttribute, setBottomMargin, setBottomPadding, setId, setLength, setOffsetHeight, setOffsetLeft, setOffsetRight, setOffsetTop, setPosition, setPosition, setTopMargin, setTopPadding, setVisible, setVisible
String getName()
void setName(String name)
name
- a name for the radio button tagboolean isChecked()
void setChecked(boolean checked)
checked
- is the radio button checkedString getCheckedValue()
void setCheckedValue(String checkedValue)
checkedValue
- the checked value of the radio buttonString getCaption()
void setCaption(String caption)
caption
- the caption of the radio buttonCopyright 2021 Software AG. All rights reserved. Use is subject to license terms.