Sets the 'checked' status of the radio button.<p>

@param checked if true, check the radio button, else uncheck it
547863
public void setChecked(boolean checked) {

        m_button.setDown(checked);
        if (checked) {
            m_group.selectButton(this);
        } else {
            m_group.deselectButton();
        }
    }
1332390
public ElementActionBuilder checkInput(boolean checked) {
		CheckInputAction action = new CheckInputAction();
		action.setChecked(checked);
        action(action);
        return new ElementActionBuilder(action);
    }
31045
def set_checked(self, value=True, block_events=False):
        
        if block_events: self._widget.blockSignals(True)
        self._widget.setChecked(value)
        if block_events: self._widget.blockSignals(False)

        return self
532137
public synchronized CheckBox setChecked(final boolean checked) {
        this.checked = checked;
        runOnGUIThreadIfExistsOtherwiseRunDirect(new Runnable() {
            @Override
            public void run() {
                for(Listener listener : listeners) {
                    listener.onStatusChanged(checked);
                }
            }
        });
        invalidate();
        return this;
    }
417798
public function setChecked(bool $checked)
	{
		$this->value = $checked ? $this->getCheckedValue() : $this->getUncheckedValue();
		return $this;
	}
857955
public synchronized CheckBoxList<V> setChecked(V object, boolean checked) {
        int index = indexOf(object);
        if(index != -1) {
            setChecked(index, checked);
        }
        return self();
    }
979272
public synchronized CheckBox setLabel(String label) {
        if(label == null) {
            throw new IllegalArgumentException("Cannot set CheckBox label to null");
        }
        this.label = label;
        invalidate();
        return this;
    }
131052
public void setCheckOnStart(boolean checkOnStart) {
		this.checkOnStart = checkOnStart;
		getConfig().setProperty(CHECK_ON_START, checkOnStart);
		if (dayLastChecked.length() == 0) {
			dayLastChecked = "Never";
			getConfig().setProperty(DAY_LAST_CHECKED, dayLastChecked);
		}
	}
300718
public function setChecked(bool $checked) : self
    {
        if ($checked) {
            $this->getField()->addProp('checked');
        } else {
            $this->getField()->removeProp('checked');
        }

        return $this;
    }
257373
public void setCheckedImmediately(boolean checked){
        if(mChecked != checked) {
            mChecked = checked;
            if(mOnCheckedChangeListener != null)
                mOnCheckedChangeListener.onCheckedChanged(this, mChecked);
        }
        mThumbPosition = mChecked ? 1f : 0f;
        invalidate();
    }
1202253
void setOkButtonEnabled() {

        m_ok.setEnabled(true);
        m_ok.setCaption(CmsVaadinUtils.getMessageText(org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_CLOSE_0));
        m_ok.removeClickListener(m_okClickListener);
        m_ok.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 5637556711524961424L;

            public void buttonClick(ClickEvent event) {

                closeDailog(true);
            }
        });
    }
612673
def setCheckedDetails(self, checked):
        
        layout = self.layout()
        for i in range(layout.count()):
            w = layout.itemAt(i).widget()
            if w.stimType in checked:
                w.setChecked(checked[w.stimType])
162712
@Override
    public void setValue(String value, boolean fireEvents) {
        String oldValue = fireEvents ? getValue() : null;
        boolean changed = false;
        for (JQMRadio r : radios) { // first we have to uncheck already checked radios (UI refresh issue)
            TextBox radio = r.getInput();
            if (!isChecked(radio)) continue;
            boolean checked = value != null && value.equals(radio.getValue()) ? true : false;
            if (!checked) {
                setChecked(radio, false);
                changed = true;
            }
        }
        for (JQMRadio r : radios) {
            TextBox radio = r.getInput();
            boolean checked = value != null && value.equals(radio.getValue()) ? true : false;
            if (isChecked(radio) != checked) {
                setChecked(radio, checked);
                changed = true;
            }
        }
        if (fireEvents && changed) {
            String newValue = getValue();
            boolean eq = newValue == oldValue || newValue != null && newValue.equals(oldValue);
            if (!eq) {
                SelectionEvent.fire(this, newValue);
                ValueChangeEvent.fire(this, newValue);
            }
        }
    }
598992
protected void ensureChecked(CmsUUID structureId) {

        CmsRadioButton button = (CmsRadioButton)m_listPanel.getItem(
            String.valueOf(structureId)).getDecorationWidgets().get(0);
        if (!button.isChecked()) {
            button.setChecked(true);
        }
    }
469617
public void updateCheckboxState(CmsPublishItemStateSummary value) {

        CheckBoxUpdate update = CmsPublishSelectPanel.updateCheckbox(value);
        m_selectGroup.setTitle(update.getAction());
        m_selectGroup.setState(update.getState(), false);
    }
321772
public void assertChecked(final By checkboxBy) {
		WebElement element = driver.findElement(checkboxBy);

		Assert.assertTrue("Checkbox: " + element + " is NOT checked!",
				element.isSelected());
	}
741454
public boolean isRadioButtonChecked(int index)
	{
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "isRadioButtonChecked("+index+")");
		}
		
		return checker.isButtonChecked(RadioButton.class, index);
	}