Hi Guilherme,
Guilherme Aiolfi wrote:
> How do I get the "check" value of a property?
>
> I want to know if it should expect "String", "Integer", etc.
The "check" value of a property gets transformed into a check within the
setter of the property. So there is no possibility to get the type the
property accepts - as least I do not know about one.
For example the setter of the "content" property at "qx.ui.basic.Label"
will incorporate the following
--snip--
var msg = "Invalid incoming value for property 'content' of class
'qx.ui.basic.Label'";
if (value !== null)
{
if (!(qx.core.Assert.assertString(value, msg) || true))
{
prop.error(this, 5, "content", "set", value);
}
}
--snip--
if the check will have the value "String".
Important: These checks are only added in the source version.
cheers,
Alex
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel