added readonly flag

This commit is contained in:
Peter Schojer 2008-09-19 08:34:37 +00:00
parent 0be3772812
commit 61b55c5b0f

View File

@ -71,6 +71,8 @@ void ToggleButtonCellRenderer::renderProperties(const ToggleButtonCell* pToggleB
if (!pToggleButtonCell->getLabel().empty())
ostr << "boxLabel:'" << Utility::safe(pToggleButtonCell->getLabel()) << "',";
ostr << "checked:" << (pToggleButtonCell->isChecked()?"true":"false") << ",";
if (!pToggleButtonCell->isEditable())
ostr << "readOnly:true,";
Utility::writeCellProperties(pToggleButtonCell, ostr);
//tooltip is not supported by togglebutton