public function renderItem($writer, $repeatInfo, $itemType, $index)
{
$repeatedControl = $this->_repeatedControl;
$item = $this->getItems()->itemAt($index);
if ($item->getHasAttributes()) {
$repeatedControl->getAttributes()->copyFrom($item->getAttributes());
} else {
if ($repeatedControl->getHasAttributes()) {
$repeatedControl->getAttributes()->clear();
}
}
$repeatedControl->setID("c{$index}");
$repeatedControl->setText($item->getText());
$repeatedControl->setChecked($item->getSelected());
$repeatedControl->setAttribute('value', $item->getValue());
$repeatedControl->setEnabled($this->_isEnabled && $item->getEnabled());
$repeatedControl->setEnableClientScript(false);
$repeatedControl->renderControl($writer);
}