use of com.sencha.gxt.widget.core.client.box.MessageBox in project activityinfo by bedatadriven.
the class FormPanel method onDelete.
private void onDelete() {
MessageBox messageBox = new MessageBox(I18N.CONSTANTS.confirmDeletion());
messageBox.setMessage(I18N.CONSTANTS.confirmDeleteRecord());
messageBox.setPredefinedButtons(Dialog.PredefinedButton.OK, Dialog.PredefinedButton.CANCEL);
messageBox.getButton(Dialog.PredefinedButton.OK).addSelectHandler(e -> inputHandler.deleteSubRecord(this.recordRef));
messageBox.show();
}
Aggregations