setAdapter(new TActiveControlAdapter($this)); } public function getActiveControl() { return $this->getAdapter()->getBaseActiveControl(); } public function getClientSide() { return $this->getAdapter()->getBaseActiveControl()->getClientSide(); } public function raiseCallbackEvent($param) { $this->raisePostBackEvent($param); $this->onCallback($param); } public function onCallback($param) { $this->raiseEvent('OnCallback', $this, $param); } public function setText($value) { parent::setText($value); if($this->getActiveControl()->canUpdateClientSide()) $this->getPage()->getCallbackClient()->setAttribute($this, 'value', $value); } protected function renderClientControlScript($writer) { $this->CssClass = "bbutton"; } protected function addAttributesToRender($writer) { parent::addAttributesToRender($writer); $writer->addAttribute('id',$this->getClientID()); $this->getActiveControl()->registerCallbackClientScript( $this->getClientClassName(), $this->getPostBackOptions()); } protected function getClientClassName() { return 'Prado.WebUI.TActiveButton'; } public function setActionClass($param) { } } ?>