Generally I would suggest to define a modier which nullifies your setter 
e.g. this.setFoo = null;

Cheers,

Sebastian


Simon Bull schrieb:
> Hi All,
> 
> Does anyone know if there a nice way of defining an immutable property? 
> 
> I want to set a class member once only (in the constructor) with the 
> benefit of qx.OO.addProperty()'s type, possibleValues and allowsNull 
> checks.
> 
> But I don't want a setter method to be able to modify the value later - 
> and so I don't need any of qx.OO.addProperty() generated event handling.
> 
> Is there an efficient way to do this?
> 
> Thanks,
> 
> Simon
> 
> ------------------------------------------------------------------------
> On Yahoo!7
> Answers: 25 million answers and counting. Learn something new today 
> <http://au.rd.yahoo.com/mail/tag/answers/SIG=11bmpos4j/**http%3A%2F%2Fwww.yahoo7.com.au%2Fanswers>
>  
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to