Package io.keikai.model.impl
Class RadioButtonControlImpl
java.lang.Object
io.keikai.model.impl.AbstractFormControlAdv
io.keikai.model.impl.RadioButtonControlImpl
- All Implemented Interfaces:
SFormControl,Serializable
Radio button (option button) form control implementation.
- Since:
- 7.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.keikai.model.SFormControl
SFormControl.ControlType -
Field Summary
Fields inherited from class io.keikai.model.impl.AbstractFormControlAdv
anchor, enabled, linkedCell, listFillRange, name, visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the group name this radio button belongs to.getType()Returns the type of this form control.booleanReturns whether this radio button is selected.voidsetGroupName(String groupName) Sets the group name.voidsetSelected(boolean selected) Sets the selected state.Methods inherited from class io.keikai.model.impl.AbstractFormControlAdv
getAnchor, getLinkedCell, getListFillRange, getName, isEnabled, isVisible, setEnabled, setLinkedCell, setListFillRange, setVisible
-
Constructor Details
-
RadioButtonControlImpl
-
-
Method Details
-
getType
Description copied from interface:SFormControlReturns the type of this form control.- Returns:
- the control type
-
isSelected
public boolean isSelected()Returns whether this radio button is selected.- Returns:
- true if selected
-
setSelected
public void setSelected(boolean selected) Sets the selected state.- Parameters:
selected- true to select
-
getGroupName
Returns the group name this radio button belongs to. Radio buttons in the same group are mutually exclusive.- Returns:
- the group name, or null if not in a named group
-
setGroupName
Sets the group name.- Parameters:
groupName- the group name
-