Re: typeof

David Crawshaw <[email protected]> Wed, 9 Apr 2003 12:09:02 +1000
Newsgroups gmane.comp.java.xwt.general
Message-ID <[email protected]>
On Tuesday, April 8, 2003, at 07:58  PM, Adam Megacz wrote:
>> We need a function to test if a template has been applied to a box, at
>> the very least.
>
> I'm a bit hesitant about this, because there's no way to fake it (like
> traps)...

Oh yeah, one other thing.

Do boxes keep a list of all templates that have been applied to them? 
 From my reading of the code, box.apply("mytemplate") just applies 
mytemplate in an anonymous fashion.

If this is the case, how do they get reapplied when retheme() is 
called? The inner class Apply in SpecialBoxProperty just calls a normal 
Template.apply() function.

I'll try and build a test case later tonight when I get some time.

d


_______________________________________________
http://lists.xwt.org/listinfo/dev