navigator.setWidget( row, ++col, new Button( CoreConstants.INSTANCE.Revert() ) {{
setType( ButtonType.DANGER );
addClickHandler( new ClickHandler() {
@Override
public void onClick( final ClickEvent event ) {
final YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( CommonConstants.INSTANCE.Warning(),
CoreConstants.INSTANCE.ConfirmStateRevert(),
new Command() {
@Override
public void execute() {
onRevertCommand.execute( dataContent );
}
},
new Command() {
@Override
public void execute() {
}
},
null
);
yesNoCancelPopup.setCloseVisible( false );
yesNoCancelPopup.show();
}
} );
}} );
}