Package org.scijava.ui
Interface CloseConfirmable
-
public interface CloseConfirmableInterface for UI components that require the user to deal with changed state before the component can be closed. TheconfirmClose()method shouldFor example, a text editor that monitors unsaved changes would implement this interface. Its
confirmClosemethod would, if unsaved changes exist, ask the user if they would like to save said changes, e.g. with aYes-No-Canceldialog. The method would returntrueifYesorNowas selected in this case, andfalseifCanceled.- Author:
- Mark Hiner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanconfirmClose()
-