skrueger.swing
Class CancellableDialogManager<KEY,DIALOG extends CancellableDialogAdapter>

java.lang.Object
  extended by skrueger.swing.DialogManager<KEY,DIALOG>
      extended by skrueger.swing.CancellableDialogManager<KEY,DIALOG>

public abstract class CancellableDialogManager<KEY,DIALOG extends CancellableDialogAdapter>
extends DialogManager<KEY,DIALOG>


Nested Class Summary
 
Nested classes/interfaces inherited from class skrueger.swing.DialogManager
DialogManager.FactoryInterface
 
Field Summary
 
Fields inherited from class skrueger.swing.DialogManager
dialogCache
 
Constructor Summary
CancellableDialogManager()
           
 
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 skrueger.swing.DialogManager
bringup, disposeAll, disposeInstanceFor, disposeInstanceForParent, getAllInstances, getInstanceFor, getInstanceFor, isVisibleFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancellableDialogManager

public CancellableDialogManager()
Method Detail

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