add(state.buildYourComponent("someWicketId"));
On 7/12/07, Ittay Dror <[EMAIL PROTECTED]> wrote:
>
>
>
> can you elaborate how it relates to wicket?
>
> Scott Swank wrote on 07/12/07 19:22:
>
>
> May I suggest the "state pattern" :).
>
> public class Yours
> {
> private YourState state;
>
> pu
can you elaborate how
it relates to wicket?
Scott Swank wrote on 07/12/07 19:22:
May I suggest the "state pattern" :).
public class Yours
{
private YourState state;
public Foo someMethod()
{
return state.getFoo();
}
etc.
}
http://en.wikipedia.org/wiki/State_pattern
On
May I suggest the "state pattern" :).
public class Yours
{
private YourState state;
public Foo someMethod()
{
return state.getFoo();
}
etc.
}
http://en.wikipedia.org/wiki/State_pattern
On 7/12/07, Ittay Dror <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
>
>
>
> Say I have some entit
Hi,
Say I have some entity
E, and it can have states A,B,C. now, for each state, I render the
entity a bit differently (showing more or less information, changing
colors). The page is comprised of many, sometimes nested (in panels)
components. What is the best way to achieve those variations,