cz.zcu.fav.kiv.editor.graphics.utils
Class SaveFileDialog

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.graphics.utils.SaveFileDialog

public class SaveFileDialog
extends java.lang.Object

The OverwriteFileDialog class is the dialog used for asking the user if the actual file should be saved or not.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Method Summary
 java.lang.Boolean getAnswer()
          Gets the user answer chosen in the save dialog.
static SaveFileDialog showDialog(javax.swing.JFrame frame)
          Shows the SaveFileDialog dialog with three options : yes, no and cancel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

showDialog

public static SaveFileDialog showDialog(javax.swing.JFrame frame)
Shows the SaveFileDialog dialog with three options : yes, no and cancel.

Parameters:
frame - the parent frame of the save dialog.
Returns:
the single instance of the dialog.

getAnswer

public java.lang.Boolean getAnswer()
Gets the user answer chosen in the save dialog.

Returns:
true if the user has chosen the option yes.