Class RadioButtonControlImpl

java.lang.Object
io.keikai.model.impl.AbstractFormControlAdv
io.keikai.model.impl.RadioButtonControlImpl
All Implemented Interfaces:
SFormControl, Serializable

public class RadioButtonControlImpl extends AbstractFormControlAdv
Radio button (option button) form control implementation.
Since:
7.0.0
See Also:
  • Constructor Details

    • RadioButtonControlImpl

      public RadioButtonControlImpl(String name, ViewAnchor anchor)
  • Method Details

    • getType

      public SFormControl.ControlType getType()
      Description copied from interface: SFormControl
      Returns 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

      public String 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

      public void setGroupName(String groupName)
      Sets the group name.
      Parameters:
      groupName - the group name