FieldSet gestionFieldSet = new CustomFieldSet();
gestionFieldSet.setCollapsible(true);
gestionFieldSet.setLayout(new RowLayout(Orientation.VERTICAL));
LayoutContainer layoutContainer_10 = new LayoutContainer();
layoutContainer_10.setLayout(new BorderLayout());
LayoutContainer buttonPanel = new LayoutContainer();
buttonPanel.setId("buttonPanel");
buttonPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
saveButton = new HTML("<img src='./images/sauvegarder.png'/> " + messages.saveForm(), false);
saveButton.setStyleName("actionHTML");
buttonPanel.add(saveButton);
saveButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
bus.fireEvent(new SaveFicheStEvent());
}
});
buttonPanel.add(new HTML(LINKS_SPACE, false));
bus.addHandler(ExportGestionPanelEvent.TYPE, new ExportGestionPanelHandler() {
@Override
public void onExport(ExportGestionPanelEvent event) {
exportGestion();
}
});
HTML print = new HTML("<img src='./images/imprimer.png'/> " + messages.print(), false);
print.setStyleName("actionHTML");
print.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent arg0) {
exportGestion();
}
});
buttonPanel.add(print);
layoutContainer_10.add(buttonPanel, new BorderLayoutData(LayoutRegion.EAST, 350.0f));
gestionFieldSet.add(layoutContainer_10);
layoutContainer_10.setHeight("30");
addFicheST = new HTML("<img src='./images/ajouter.png'/> " + messages.addRow(), false);
LayoutContainer layoutContainer_11 = new LayoutContainer();
createGestionGrid();
layoutContainer_11.add(gestionGrid);
gestionFieldSet.add(layoutContainer_11);
LayoutContainer layoutContainer_12 = new LayoutContainer();
TableLayout tl_layoutContainer_12 = new TableLayout(2);
tl_layoutContainer_12.setWidth("100%");
layoutContainer_12.setLayout(tl_layoutContainer_12);
gestionFieldSet.add(layoutContainer_12);
layoutContainer_12.setBorders(false);
FlexTable ft1 = new FlexTable();
int commonWidth = 265;
ft1.setWidget(0, 0, new HTML(SPACES_4));
addFicheST.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
showAddDialog();
}
private void showAddDialog() {
final Dialog dialog = new Dialog();
dialog.setHeading(messages.titlePopup());
dialog.setLayout(new BorderLayout());
dialog.setWidth(600);
dialog.setHeight(550);
dialog.setBodyBorder(false);
dialog.setHideOnButtonClick(false);
dialog.setButtons(Dialog.OKCANCEL);