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

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

public class OverwriteFileDialog
extends java.lang.Object

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

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Method Summary
 boolean getAnswer()
          Gets the user answer chosen in the option dialog.
static OverwriteFileDialog showDialog(javax.swing.JFrame frame)
          Shows the OverwriteFileDialog 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 OverwriteFileDialog showDialog(javax.swing.JFrame frame)
Shows the OverwriteFileDialog dialog with three options : yes, no and cancel.

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

getAnswer

public boolean getAnswer()
Gets the user answer chosen in the option dialog.

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