Re: typeof
Adam Megacz <[email protected]> 10 Apr 2003 02:05:25 -0700
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Organization | XWT |
| Message-ID | <[email protected]> |
Charles Goodwin <[email protected]> writes: > The best example are selection_mux items like radiobutton. If you want to > handle all of that automatically then you need to know that you're receiving > radiobuttons, not clickables, not focusables, and not even 'mutually > exclusive selectables'. Then IMHO all templates which preapply selection_mux should also declare a trap __selection_mux_kind that returns their selection mux "class". 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. - a _______________________________________________ http://lists.xwt.org/listinfo/dev