[UI] ToolBuilder

tim Rowledge tim at rowledge.org
Wed Sep 12 17:45:49 UTC 2007


The problem with 'decorators' or wrappers is that they need to  
implement all the methods of anything that they will wrap in order to  
pass them on to the internal component. You could, of course, try to  
handle this by (ab)using doesNotUnderstand but the performance cost  
would be nasty. I think. Anyone got time to implement and time a test  
harness?

Perhaps the answer is to have a generic class of (for example)  
ScrollHandlingWrapper that can indeed handle any inner component by  
use of dNU and then allow and encourage the implementation of  
specialised subclasses such as ScrollTextHandlingWrapper that knows  
it will wrap a pluggabletextmorph.

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
No single raindrop believes it is to blame for the flood




More information about the UI mailing list