Search in sources :

Example 6 with MessageBox

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();
}
Also used : MessageBox(com.sencha.gxt.widget.core.client.box.MessageBox)

Aggregations

MessageBox (com.sencha.gxt.widget.core.client.box.MessageBox)6 CloseEvent (com.sencha.gxt.widget.core.client.event.CloseEvent)1 RecordTransaction (org.activityinfo.model.resource.RecordTransaction)1