having IComponent for me means that there are more then 1 Component.. (there are multiply implementations possible then) So then we have to use IComponent everwhere instead of Component That means again that it will be a quite large interface, and do we also then get IMarkupContainer? (and so on and so on)
Why isnt there a javax.swing.IJComponent ? If this is really a problem then why not drop the "extends Component" from the public final <S extends Component> Object visitChildren and public static interface IVisitor<T extends Component> Then you can give anything you want to it. Problem is that you then have less type checking there. Because that would make IVisitor completely "generic" On Wed, Jul 28, 2010 at 15:27, Joseph Pachod <[email protected]> wrote: > Johan Compagner wrote: >> >> you can use: >> >> public final <S extends Component> Object visitChildren(final >> Class<?> clazz, >> final IVisitor<S> visitor) >> >> >> then you have to cast yes, but you can cast safely. >> > > Hi > > Yet, why not having an IComponent interface that IFormModelUpdateListener > (and lot of other I guess) would extend ? > > And in fact it's quite the same for FormComponent. It would be handy to have > an IFormComponent which could be used there and there. > > For example in the ListEditor's igor did, which really is a FormComponent > but has to extend Repeater. > > ++ > > -- > Joseph Pachod > IT > > THOMAS DAILY GmbH > Adlerstraße 19 > 79098 Freiburg > Deutschland > T + 49 761 3 85 59 506 > F + 49 761 3 85 59 550 > E [email protected] > www.thomas-daily.de > > Geschäftsführer/Managing Directors: > Wendy Thomas, Susanne Larbig > Handelsregister Freiburg i.Br., HRB 3947 > > Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die > TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium, > morgens ab 9:15 in Ihrer Mailbox. > > Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt > unsere Redaktion unter [email protected] entgegen. > Redaktionsschluss für die TD Morning News ist täglich um 8:45. > > Register free of charge at https://www.thomas-daily.de/user/sign-in to have > the TD Morning News, a selection of the latest topics from TD Premium, > delivered to your mailbox from 9:15 every morning. > > Our editorial department receives the latest press releases for the TD > Morning News and TD Premium at [email protected]. The editorial > deadline for the TD Morning News is 8.45am daily. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
