public function bindComponentToClient(__IComponent &$component)
 {
     $component_id = $component->getId();
     if ($component->getModal()) {
         $show_code = $component_id . '.showCenter(true);';
     } else {
         $show_code = $component_id . '.showCenter();';
     }
     $js_code = 'if({value} == 1) {' . $show_code . '} else {' . $component_id . '.close();}';
     $cep = new __JavascriptOnDemand($js_code);
     __UIBindingManager::getInstance()->bindFromServerToClient(new __ComponentProperty($component, 'visible'), $cep);
     $cep = new __JavascriptCallback($component_id, 'setHTMLContent');
     __UIBindingManager::getInstance()->bindFromServerToClient(new __ComponentProperty($component, 'content'), $cep);
     $cep = new __JavascriptObjectProperty($component_id, 'url');
     __UIBindingManager::getInstance()->bindFromServerToClient(new __ComponentProperty($component, 'url'), $cep);
     $cep = new __JavascriptObjectProperty($component_id, 'title');
     __UIBindingManager::getInstance()->bindFromServerToClient(new __ComponentProperty($component, 'title'), $cep);
     $cep = new __JavascriptObjectProperty($component_id, 'width');
     __UIBindingManager::getInstance()->bindFromServerToClient(new __ComponentProperty($component, 'width'), $cep);
     $cep = new __JavascriptObjectProperty($component_id, 'height');
     __UIBindingManager::getInstance()->bindFromServerToClient(new __ComponentProperty($component, 'height'), $cep);
 }