layout.setComponentAlignment(yesButton, Alignment.BOTTOM_RIGHT);
yesButton.addListener(new ClickListener() {
private static final long serialVersionUID = 1L;
public void buttonClick(ClickEvent event) {
close();
fireEvent(new ConfirmationEvent(ConfirmationDialogPopupWindow.this, true));
}
});
noButton = new Button(i18nManager.getMessage(Messages.CONFIRMATION_DIALOG_NO));
layout.addComponent(noButton, 1, 1);
layout.setComponentAlignment(noButton, Alignment.BOTTOM_LEFT);
noButton.addListener(new ClickListener() {
private static final long serialVersionUID = 1L;
public void buttonClick(ClickEvent event) {
close();
fireEvent(new ConfirmationEvent(ConfirmationDialogPopupWindow.this, false));
}
});
}