public function renderSingleChoice(IControl $control, $key)
 {
     $label = $this->renderSingleLabel($control, $key);
     $controlHtml = $this->renderSingleControl($control, $key);
     $label->insert(0, $controlHtml);
     if ($this->bootstrapRenderer->getRenderMode() === RenderModeEnum::INLINE && !SecureCallHelper::tryCall($control, 'getOption', 'noRenderInline') || SecureCallHelper::tryCall($control, 'getOption', 'renderInline')) {
         $label->appendAttribute('class', $this->wrapperClass . '-inline');
         $wrapper = $label;
     } else {
         $wrapper = Html::el('div', ['class' => $this->wrapperClass])->addHtml($label);
     }
     return $wrapper;
 }
 private function isButton(IControl $control)
 {
     return SecureCallHelper::tryCall($control, 'getOption', 'type') === 'button';
 }
 protected function getControlLabel(IControl $control, $part = NULL)
 {
     return SecureCallHelper::tryCall($control, 'getLabelPart');
 }
 protected function getControlLabel(IControl $control)
 {
     return SecureCallHelper::tryCall($control, 'getLabel');
 }