protected function publishColorPickerAssets()
{
$cs = $this->getPage()->getClientScript();
$key = "prado:" . get_class($this);
$imgs['button.gif'] = $this->getAssetUrl('button.gif');
$imgs['background.png'] = $this->getAssetUrl('background.png');
$options = TJavaScript::encode($imgs);
$code = "Prado.WebUI.TColorPicker.UIImages = {$options};";
$cs->registerEndScript($key, $code);
$cs->registerPradoScript("colorpicker");
$url = $this->getAssetUrl($this->getColorPickerStyle() . '.css');
if (!$cs->isStyleSheetFileRegistered($url)) {
$cs->registerStyleSheetFile($url, $url);
}
}