public class RadioGroup extends AbstractComponent
ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, parent, parentElem, READONLY, root, viewMode
LABELLEDBY
Constructor and Description |
---|
RadioGroup() |
RadioGroup(RadioButton rb) |
Modifier and Type | Method and Description |
---|---|
void |
addRadioButton(RadioButton rb) |
String |
getAttribute(String attrname)
returs the value of an attribute
|
Object |
getContent() |
String |
getId() |
String |
getName()
the name of the group is defined in the buttons. each button should have the same name!
|
List<RadioButton> |
getRadioButtons() |
String |
getSelection() |
Component |
setAttribute(String attrname,
String value)
sets the attribute to the component
|
void |
setChecked(String value) |
void |
setContent(Object o)
sets the content of the component
|
String |
show()
method for rendering the component as string
|
addClass, clone, create, getBrowserMode, getLabel, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, removeClass, setActionListener, setBrowserMode, setClass, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, toggleClass, toString
public RadioGroup()
public RadioGroup(RadioButton rb)
public String show()
Component
show
in interface Component
show
in class AbstractComponent
public String getName()
getName
in interface Component
getName
in class AbstractComponent
public String getId()
getId
in interface Component
getId
in class AbstractComponent
public void addRadioButton(RadioButton rb)
public List<RadioButton> getRadioButtons()
public void setChecked(String value)
public String getSelection()
public void setContent(Object o)
AbstractComponent
setContent
in interface Component
setContent
in class AbstractComponent
o
- any object where the string representation is used for renderingpublic Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
public String getAttribute(String attrname)
AbstractComponent
getAttribute
in interface Component
getAttribute
in class AbstractComponent
attrname
- - the name of the attributepublic Component setAttribute(String attrname, String value)
AbstractComponent
setAttribute
in interface Component
setAttribute
in class AbstractComponent
attrname
- - the name of the attributevalue
- - the value of the attribute@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.