ComponentModel is an public class:

public class ComponentModel<T> implements IModel<T>,
IComponentAssignedModel<T>

why not just have an attribute on the "outer" class and assign the component
to it in wrapOnAssignment(Component component)?
could you draw?

On Thu, Sep 24, 2009 at 8:49 AM, <g...@gmx.net> wrote:

> hi,
>
> i have a question regarding implementation details of wicket.
> IComponentAssignedModel is used to make a model aware of the component its
> assigned to. ComponentModel is a quick implementation of this interface. why
> is it done with an inner class? why not just have an attribute on the
> "outer" class and assign the component to it in wrapOnAssignment(Component
> component)? why an inner class? and how i'm supposed to use ComponentModel
> as a base class when i cant subclass the innerclass because its private and
> therefor not visible?
>
> thanks in advance, garz
> --
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
>
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

Reply via email to