org.scijava.ui
Interface CloseConfirmable
public interface CloseConfirmable
Interface for UI components that require the user to deal with changed state
before the component can be closed. The confirmClose() method should
For example, a text editor that monitors unsaved changes would implement this
interface. Its confirmClose method would, if unsaved changes exist,
ask the user if they would like to save said changes, e.g. with a
Yes-No-Cancel dialog. The method would return true if
Yes or No was selected in this case, and false if
Canceled.
- Author:
- Mark Hiner
confirmClose
boolean confirmClose()
- Returns:
true if the current close operation should continue.
Copyright © 2009–2014 SciJava. All rights reserved.