}
}
});
if (fixedSize) {
final FixedVerticalPanel main = new FixedVerticalPanel();
main.addWidget(tabBar, new VerticalLayoutData().setHeight("27px"));
main.addWidget(deckPanel, new VerticalLayoutData().setHeight("*").setExpandToFit(true).setOverflow("hidden"));
tabBarVisibilitySetter = new ValueSetter<Boolean>() {
public void set(Boolean visible) {
setVisible(main.getWidgetContainer(tabBar), visible);
}
};
initWidget(main);
} else {
final Grid main = new Grid(2, 1);
main.setCellPadding(0);
main.setCellSpacing(0);
main.getCellFormatter().setHeight(0, 0, "27px");
main.setWidget(0, 0, tabBar);
tabBar.setSize("100%", "20px");
main.setWidget(1, 0, deckPanel);
deckPanel.setSize("100%", "100%");
SimplePanel sp = new SimplePanel();
sp.setWidget(main);
main.setWidth("100%");
tabBarVisibilitySetter = new ValueSetter<Boolean>() {
public void set(Boolean visible) {
main.getCellFormatter().setVisible(0, 0, visible);
}
};
initWidget(sp);
}