table.addColumn(jndiName, "JNDI Name");
table.addColumn(option, "Option");
ToolStrip toolstrip = new ToolStrip();
ToolButton addBtn = new ToolButton(Console.CONSTANTS.common_label_add(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
presenter.launchNewSessionWizard();
}
});
addBtn.ensureDebugId(Console.DEBUG_CONSTANTS.debug_label_add_mailSessionView());
toolstrip.addToolButtonRight(addBtn);
ToolButton removeBtn = new ToolButton(Console.CONSTANTS.common_label_remove(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Feedback.confirm(
Console.MESSAGES.deleteTitle("Mail Session"),
Console.MESSAGES.deleteConfirm("Mail Session"),
new Feedback.ConfirmationHandler() {
@Override
public void onConfirmation(boolean isConfirmed) {
if (isConfirmed)
presenter.onDelete(form.getEditedEntity());
}
});
}
});
removeBtn.ensureDebugId(Console.DEBUG_CONSTANTS.debug_label_remove_mailSessionView());
toolstrip.addToolButtonRight(removeBtn);
// ------