Re: Organising the xwt namespace
Charles Goodwin <[email protected]> Wed, 2 Apr 2003 15:55:29 +0100
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <308906BE5D07D5119285009027D61C5722F691@NTFPS1> |
Okay, I'll elaborate. This was how I understood it to work (and indeed how I described it in the email proposing the layout inc common): widget.button preapplies; specifically clickable, focusable, and theme.button theme.button holds common button behaviour; in this case enter to activate, and would preapply lib.button if it existed lib.button (which actually doesn't exist because all lib behaviour is clickable / focusable) monopoly.button is a typical button, so it would preapply widgets.button and take all the behaviour with it. monopoly.tableheader (fictional example) wants to look like a button, but doesn't want to be focusable, so it preapply theme.button and theme.clickable. fictionaltheme.button wants only basic button code and a different focus model so, in reality, preapplies lib.common.clickable and fictionaltheme.focusable. -----Original Message----- From: David Crawshaw [mailto:[email protected]] Sent: 02 April 2003 15:35 To: [email protected] Subject: Re: [xwt-dev] Organising the xwt namespace On Thursday, April 3, 2003, at 12:40 AM, Charles Goodwin wrote: > org.xwt.themes.monopoly.button preapply xwt.widgets.button which > preapplies > xwt.theme.button which preapplies xwt.lib.button (altho xwt.lib.button > probably won't exist), and that's where this falls apart. Um, that's not what we've been discussing (I think). xwt.widget.button - preapplies - xwt.theme.button xwt.theme.button - does nothing but hold documentation org.xwt.theme.monopoly.button - may preapply - xwt.lib.button org.xwt.theme.monopoly - overlays - xwt.theme Now due to the overlay, when you make a call to xwt.widget.button, what actually happens is: xwt.wiget.button - preapplies - org.xwt.theme.monopoly.button org.xwt.theme.monopoly.button - preapplies - xwt.lib.button The xwt.theme.button is being cancelled out. That's the argument for putting a theme in it. It's not actually doing anything at the moment. d _______________________________________________ http://lists.xwt.org/listinfo/dev _______________________________________________ http://lists.xwt.org/listinfo/dev