How can I detect when "save" button is clicked in widget

Starting with the widget created with the tutorial.  There is a save button you see when you click edit.

I want to detect in the code in view.php when the save button is clicked.  This is to differentiate what happens in view.php when save is clicked as opposed to when you simply refresh the page or come to the page from another page.