I have defined my panel class and I would like to customize it according to specific conditions, as for example in the following pseudo code:
if (foo ==\'A\')