Re: widgets plan proposal

Charles Goodwin <[email protected]> Wed, 2 Apr 2003 12:08:28 +0100
Newsgroups gmane.comp.java.xwt.general
Message-ID <308906BE5D07D5119285009027D61C5722F67F@NTFPS1>
> onedimensional: I don't understand the concept. Could you elaborate?

Look at widgets.lib.scrollbar
thumb[dim], thumb[pos], thumb[mousepos] etc... much easier than writing a
billion if ( orient == ) statements.  One of two of the other widgets use it
too.

> selection_mux: Needs a new name

Agreed.  I can't think of one though.  Can you?  Perhaps:
exclusive // doesn't manifest the 'selection' side of things
exclusiveselection // too long
exclusiveselect // still too long
selectmux // nicer that selection_mux but still not perfect

> repeatable: This seems to belong in xwt.theme.util to me

You obviously dunno much about it. :)  Clickable uses it (to do the repeat
clicks) among other things.  It's simple and useful.

> redirect: Looking more like a xwt.theme.util then a behavior to me

Again, it's a proven, useful abstraction.  Things like button want text,
textcolor, and font to go straight to the point.

redirect = $container; <- everything goes to container.

rd["text"] = $container;     // poor example showing redirecting
rd["font"] = $somethingelse; // properties to different places

> I can see an argument for its own space in xwt.theme.<behavior>, but I 
> don't know if I agree with it yet. To me, it just seems like a lot more 
> importing.

The importing is done by the core widget set, so it's not really an issue.
_______________________________________________
http://lists.xwt.org/listinfo/dev