Re: Clarification of layout proposal

David Crawshaw <[email protected]> Thu, 3 Apr 2003 20:37:38 +1000
Newsgroups gmane.comp.java.xwt.general
Message-ID <[email protected]>
On Thursday, April 3, 2003, at 08:44  PM, Charles Goodwin wrote:
> mytheme.button preapplies xwt.theme.button
> xwt.overlay() overlays xwt.theme to mytheme
> mytheme.button preapplies xwt.theme.button
> etc
> xwt crashes
>
> Why make xwt.theme/xwt.overlay intelligent when you don't have to?

No, that's not what I'm suggesting.

org.xwt.theme.mytheme.button preapplies xwt.lib.button
xwt.overlay('xwt.theme', 'org.xwt.theme.mytheme');

However, you could have an implementation in xwt.theme.button. This 
way, if there was no org.xwt.theme.mytheme.button, you would still have 
a button implementation.

This would be useful with the focusable situation.

Basically, xwt.theme provides a basic version, and if mytheme wants to 
override it, it has to start with the theme-independent code in 
xwt.lib. Which I think does what you want it to do.

d


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