skrueger.swing
Class CancellableDialogManager<KEY,DIALOG extends CancellableDialogAdapter>
java.lang.Object
skrueger.swing.DialogManager<KEY,DIALOG>
skrueger.swing.CancellableDialogManager<KEY,DIALOG>
public abstract class CancellableDialogManager<KEY,DIALOG extends CancellableDialogAdapter>
- extends DialogManager<KEY,DIALOG>
Method Summary |
boolean |
close(KEY key)
Tells the user that the dialog shall be closed. |
boolean |
closeAllInstances()
Will try to close all dialogs, but the user may decide whether she
wants to save anything first or abort the closing. |
void |
forceCloseAllInstances()
Will force a dispose of all dialogs, but the user may decide whether she
wants to save anything first. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CancellableDialogManager
public CancellableDialogManager()
forceCloseAllInstances
public void forceCloseAllInstances()
- Will force a dispose of all dialogs, but the user may decide whether she
wants to save anything first.
closeAllInstances
public boolean closeAllInstances()
- Will try to close all dialogs, but the user may decide whether she
wants to save anything first or abort the closing.
close
public boolean close(KEY key)
- Tells the user that the dialog shall be closed. The user may save, cancel or abort the closing.
- Returns:
true
if there is no open instance or the instance has been disposed