tab.setHeight(100, TabSheet.UNITS_PERCENTAGE);
}
});
final HorizontalSplitPanel sp = new HorizontalSplitPanel();
sp.setSplitPosition(290, Sizeable.UNITS_PIXELS);
final HorizontalSplitPanel sp2 = new HorizontalSplitPanel();
sp2.setSplitPosition(255, Sizeable.UNITS_PIXELS);
VerticalLayout pl = new VerticalLayout();
pl.setMargin(true);
final Panel p = new Panel("Accordion Panel", pl);
p.setSizeFull();
tab = new TabSheet();
tab.setSizeFull();
VerticalLayout reportLayout = new VerticalLayout();
final Panel report = new Panel("Monthly Program Runs", reportLayout);
final VerticalLayout controls = reportLayout;
controls.setMargin(true);
controls.addComponent(new Label("Report tab"));
controls.addComponent(click);
controls.addComponent(click2);
reportLayout.addComponent(controls);
final DateField cal = new DateField();
cal.setResolution(DateField.RESOLUTION_DAY);
cal.setLocale(new Locale("en", "US"));
reportLayout.addComponent(cal);
reportLayout.setExpandRatio(controls, 1);
report.addStyleName(Reindeer.PANEL_LIGHT);
report.setHeight(100, Sizeable.UNITS_PERCENTAGE);
sp2.setFirstComponent(report);
final Table table = TestForTablesInitialColumnWidthLogicRendering
.getTestTable(5, 200);
table.setPageLength(15);
table.setSelectable(true);
table.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);
table.setColumnCollapsingAllowed(true);
table.setColumnReorderingAllowed(true);
table.setSortDisabled(false);
table.setSizeFull();
table.addStyleName("table-inline");
sp2.setSecondComponent(table);
tab.addTab(new Label("Tab1"), "Summary", null);
tab.addTab(sp2, "Reports", null);
tab.addTab(new Label("Tab 3"), "Statistics", null);
tab.addTab(new Label("Tab 4"), "Error Tracking", null);