Re: [qooxdoo-devel] Can I create a widget property which can hold multiple types?
Brought to you by:
ecker,
martinwittemann
From: Sebastian W. <in...@se...> - 2006-10-30 15:27:05
|
The same like the modifier. There is always the possilibity to declare both, _modifyPropertyName and _checkPropertyName. Sebastian Dietrich Streifert schrieb: > Thank you for the answer Sebastian. > > To which object does the _checkMask method belong? > > > Sebastian Werner schrieb: >> Hi! >> >> This is currently not supported. One workaround is to remove the type >> from the property declaration and check the type yourself inside the >> _checkMask method. >> >> Sebastian >> >> >> Dietrich Streifert schrieb: >> >>> Hello List, >>> >>> I want to add a property to a widget which can hold an array or a >>> string. Something like: >>> >>> qx.OO.addProperty({ name : "mask", type : [ qx.constant.Type.STRING, >>> qx.constant.Type.ARRAY], defaultValue : '##,#' }); >>> >>> But this is obviously not the way (if any exists). >>> >>> How can I do this? >>> >>> Thank you for your help. >>> >>> Best regards... >>> >>> >> >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> qooxdoo-devel mailing list >> qoo...@li... >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > > -- > Mit freundlichen Grüßen > Dietrich Streifert > Visionet GmbH > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > qoo...@li... > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |