// p.add(new HTML("bla balfalkdj alkdsfja;lsdk jfalksdjf alskdjfalsdjfalsdjkflaksdjf alskdjf alsdkjf alsdkjf a;lsdkjfasdfasdf" +
// "asdflaksdfjlaksdjf;alksdjf;alsdkjfa;lsdkfja;slkdjf alksdfj alskdfj a;ldskfj aslkdf" +
// "asdlfkajsdf;lkajsdf lakjsdf ;lakjdf;laskdjf" +
// "adslaksdfj;alksjdf;lakjsdfasdf"));
final SplitLayout p = new SplitLayout();
final HTML header = new HTML("header");
p.addNorth(header, 50);
final HTML footer = new HTML("footer");
p.addSouth(footer, 25);
final PanelLayout navigation = new PanelLayout("Navigation");
navigation.setClosable(true);
navigation.addCloseHandler(new CloseHandler<PanelLayout>() {
public void onClose(CloseEvent<PanelLayout> event) {
p.setWidgetVisible(navigation, false);
}
});
p.addWest(navigation, 200);
LayoutUtils.fitParent(navigation);
final HTML properties = new HTML("properties");
p.addEast(properties, 200);
FlowPanel panel = new FlowPanel();
ToggleButton button = new ToggleButton("Hide header", "Show header");
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
p.setWidgetVisible(header, !((ToggleButton) clickEvent.getSource()).isDown());
}
});
panel.add(button);
button = new ToggleButton("Hide navigation", "Show navigation");
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
p.setWidgetVisible(navigation, !((ToggleButton) clickEvent.getSource()).isDown());
}
});
panel.add(button);
button = new ToggleButton("Hide properties", "Show properties");
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
p.setWidgetVisible(properties, !((ToggleButton) clickEvent.getSource()).isDown());
}
});
panel.add(button);
button = new ToggleButton("Hide footer", "Show footer");
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
p.setWidgetVisible(footer, !((ToggleButton) clickEvent.getSource()).isDown());
}
});
panel.add(button);
PanelLayout cp = new PanelLayout("Test");
LayoutUtils.fitParent(cp);
cp.setContent(new Label("Content"));
cp.setCollapsable(true);
TabLayout tabs = new TabLayout();
tabs.setHideTabBarWithSingleTab(false);
tabs.addTab("Buttons", panel);
tabs.addTab("Tab1", new HTML("Tab1 Content"));
// tabs.addTab("Tab2", new CenterLayout(new HTML("Tab2 Content")));
tabs.addTab(new TabSpec("contentPanel", "Content Panel", null, cp, true));
// tabs.add(new HTML("Tab2 Content"), "Tab2");
// tabs.add(new HTML("Tab3 Content"), "Tab3");
// tabs.add(new HTML("Tab4 Content"), "Tab4");
// tabs.add(new HTML("Tab5 Content"), "Tab5");
// tabs.add(new HTML("Tab6 Content"), "Tab6");
// tabs.add(new HTML("Tab7 Content"), "Tab7");
// tabs.add(new HTML("Tab8 Content"), "Tab8");
// tabs.add(new HTML("Tab9 Content"), "Tab9");
// tabs.add(new HTML("Tab10 Content"), "Tab10");
// tabs.add(new HTML("Tab11 Content"), "Tab11");
p.add(tabs);
return p;
}