You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sigmar Muuga <me...@gmail.com> on 2010/06/30 07:55:57 UTC

static or nonstatic inner classes

Hello,
while designing pages for my app, I was thinking, if there is some
difference, when I use static or nonstatic classes in my page classes?

For example:

public class MyPage extends Page {

  //// some code
  private /** Should it be static or not? */ class MyForm extends Form {
  }
}

Best regards,
Sigmar

Re: static or nonstatic inner classes

Posted by Sigmar Muuga <me...@gmail.com>.
Actually not. I was thinking that maybe I have missed something from the
docs. Such issues are sometimes hard to find :)

On Wed, Jun 30, 2010 at 8:59 AM, Jeremy Thomerson <jeremy@wickettraining.com
> wrote:

> Use the same decision making process you would for any other java class....
> Do you need access to any private variables of the containing class?
>
> Jeremy Thomerson
> -- sent from my smartphone - please excuse formatting and spelling errors
>
> On Jun 30, 2010 12:56 AM, "Sigmar Muuga" <me...@gmail.com> wrote:
>
> Hello,
> while designing pages for my app, I was thinking, if there is some
> difference, when I use static or nonstatic classes in my page classes?
>
> For example:
>
> public class MyPage extends Page {
>
>  //// some code
>  private /** Should it be static or not? */ class MyForm extends Form {
>  }
> }
>
> Best regards,
> Sigmar
>

Re: static or nonstatic inner classes

Posted by Jeremy Thomerson <je...@wickettraining.com>.
Use the same decision making process you would for any other java class....
Do you need access to any private variables of the containing class?

Jeremy Thomerson
-- sent from my smartphone - please excuse formatting and spelling errors

On Jun 30, 2010 12:56 AM, "Sigmar Muuga" <me...@gmail.com> wrote:

Hello,
while designing pages for my app, I was thinking, if there is some
difference, when I use static or nonstatic classes in my page classes?

For example:

public class MyPage extends Page {

 //// some code
 private /** Should it be static or not? */ class MyForm extends Form {
 }
}

Best regards,
Sigmar