TableLayout layout = new TableLayout(1);
layout.setWidth("100%");
setLayout(layout);
ContentPanel buttonPanel1 = new ContentPanel();
buttonPanel1.setLayout(new CardLayout());
buttonPanel1.setHeaderVisible(false);
buttonPanel1.setBorders(false);
buttonPanel1.setBodyBorder(false);
buttonPanel1.setHeight(40);
buttonPanel1.setButtonAlign(HorizontalAlignment.CENTER);
buttonPanel1.addButton(new Button(messages.printSynthese(), new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
// bus.fireEvent(new ExportFicheStEvent());
bus.fireEvent(new ExportSyntheseEcranEvent());
}
}));
buttonPanel1.addButton(new Button(messages.printSubcontractor(), new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
// bus.fireEvent(new ExportGestionPanelEvent());
GWT.log("allModels::::" + listFicheSt.size());
CreateFicheSTPopUpReportWindow popUpReport = new CreateFicheSTPopUpReportWindow(bus, listFicheSt, true);
popUpReport.show();
}
}));
buttonPanel1.addButton(new Button(messages.printRefacturations(), new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
// bus.fireEvent(new ExportAvancementPanelEvent());
CreateFicheSTPopUpReportWindow popUpReport = new CreateFicheSTPopUpReportWindow(bus, listFicheSt, false);
popUpReport.show();
}
}));
add(buttonPanel1);
ContentPanel buttonPanel2 = new ContentPanel();
buttonPanel2.setLayout(new CardLayout());
buttonPanel2.setHeaderVisible(false);
buttonPanel2.setBorders(false);
buttonPanel2.setBodyBorder(false);
buttonPanel2.setHeight(40);
buttonPanel2.setButtonAlign(HorizontalAlignment.CENTER);