mlp = (HorizontalPanel) o;
if(show && mlp.getWidgetCount() == 1) {
// no image so create it
final MsgLevel level = MsgLevel.values()[mlp.getElement().getPropertyInt(ELEM_PROP_MSG_LEVEL)];
// NOTE: since this is a clipped image, the width/height should be known
mlp.insert(new ImageContainer(MsgStyles.getMsgLevelImage(level)), 0);
}
if(mlp.getWidgetCount() == 2) {
mlp.getWidget(0).setVisible(show);
}
}