Re: typeof

David Crawshaw <[email protected]> Thu, 10 Apr 2003 19:10:48 +1000
Newsgroups gmane.comp.java.xwt.general
Message-ID <[email protected]>
On Thursday, April 10, 2003, at 07:05  PM, Adam Megacz wrote:
> Then IMHO all templates which preapply selection_mux should also
> declare a trap __selection_mux_kind that returns their selection mux
> "class".

Are you ok with selection_mux becoming selectable? Something Charlie 
and I came up with last night when starting the widget transition.

This sounds like a call for the 'type' attribute for classing Charlie 
was suggesting. It's just a matter of: should we apply it generally to 
all widgets (and have types like button), or just to selectables?

> Actually, this is a great example of why instanceof is a bad
> thing... if you created a new kind of radiobutton that should be
> "grouped" with other radio buttons, but doesn't use the same template,
> there would be no way to "fake it out" if XWT gave you an instanceof
> primitive.

Yep, good argument.

d


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