final PVerticalPanel panel = new PVerticalPanel();
panel.add(new PLabel("StackLayout: "));
final PStackLayoutPanel stackLayoutPanel = new PStackLayoutPanel(PUnit.PX);
stackLayoutPanel.setStyleProperty("border", "1px solid #CCC");
stackLayoutPanel.setWidth("200px");
stackLayoutPanel.setHeight("400px");
stackLayoutPanel.add(getHeader1Child(), "Header 1", true, 30);
stackLayoutPanel.add(getHeader2Child(), "Header 2", true, 30);
stackLayoutPanel.addSelectionHandler(new PSelectionHandler<Integer>() {
@Override
public void onSelection(final PSelectionEvent<Integer> event) {
final String msg = "On selection : " + event.getSelectedItem();
UIContext.getRootEventBus().fireEvent(new DemoBusinessEvent(msg));