Hi skar,
On Monday 16 November 2009 skar wrote:
> I get the error when I tried the idea:
> > Class NewTextArea could not refine property: readOnly! Key: event
> > could not be refined!
> > throw new Error("Class " +...y: " + key + " could not be
> > refined!");\nClass.js (line 1228)
My fault. You cannot refine a property and add an event to it. To achieve that
an event is fired do the following:
--snip--
events :
{
"changeReadOnly" : "qx.event.type.Data"
},
methods :
{
_applyReadOnly : function(value, old)
{
this.base(arguments, value, old);
this.fireDataEvent("changeReadOnly", value);
}
--snip--
This way you get informed at every change of the "readonly" property.
cheers,
Alex
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel