Hello,
let me bring already discussed topic on again.
I would like to override generated property.
I have class:
qx.Class.define(
"b.form.TextField",
{
extend : qx.ui.form.TextField,
construct : function(value)
{
this.base(arguments);
this.setBorder("inset");
},
members :
{
getValue : function()
{
var value = this.base(arguments, value); //this does not work
if ('' == value) {
return null;
}
return value;
},
}
});
This is for special cases where I extend b.form.TextField in class
b.form.MoneyTextField
where I want to do:
setValue : function(value) {
this.base(arguments, formatForDisplay(value));
},
getValue : function() {
return this.base(asrguments, formatForStore(value));
}
and it is not possible.
Please could someone help me with this?
I am migrating from 0.6.3 to current stable. How should i solve this?
Calling prototype in 0.6.3 worked just fine.
Thanks in advance.
--
Aleš Rippl
Software Developer
StringData, s.r.o.
_________________________________________
Bohdalecká 8/1460, 101 00 Praha 10, ČR
+420 281 000 736
+420 602 779 198
www.stringdata.cz
- ISO 9001:2000 -
--
View this message in context:
http://www.nabble.com/overridding-generated-property-tp15848923p15848923.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel