org.jfree.report.modules.gui.swing.common
Class AbstractExportDialog
JDialog
org.jfree.report.modules.gui.swing.common.AbstractExportDialog
- ExportDialog
========================================
JFreeReport : a free Java report library
========================================
Project Info: http://reporting.pentaho.org/
(C) Copyright 2000-2007, by Object Refinery Limited, Pentaho Corporation and Contributors.
This library is free software; you can redistribute it and/or modify it under the terms
of the GNU Lesser General Public License as published by the Free Software Foundation;
either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this
library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307, USA.
[Java is a trademark or registered trademark of Sun Microsystems, Inc.
in the United States and other countries.]
------------
$Id: AbstractExportDialog.java 3525 2007-10-16 11:43:48Z tmorgner $
------------
(C) Copyright 2000-2005, by Object Refinery Limited.
(C) Copyright 2005-2007, by Pentaho Corporation.
AbstractExportDialog() - Creates a non-modal dialog without a title and without a specified
Frame owner.
|
AbstractExportDialog(Dialog owner) - Creates a non-modal dialog without a title with the specified
Dialog as its owner.
|
AbstractExportDialog(Frame owner) - Creates a non-modal dialog without a title with the specified
Frame as its owner.
|
AbstractExportDialog
public AbstractExportDialog()
Creates a non-modal dialog without a title and without a specified
Frame
owner. A shared, hidden frame will be set as the owner
of the dialog.
AbstractExportDialog
public AbstractExportDialog(Dialog owner)
Creates a non-modal dialog without a title with the specified
Dialog
as its owner.
owner
- the non-null Dialog
from which the dialog is
displayed
AbstractExportDialog
public AbstractExportDialog(Frame owner)
Creates a non-modal dialog without a title with the specified
Frame
as its owner. If owner
is
null
, a shared, hidden frame will be set as the owner of the
dialog.
owner
- the Frame
from which the dialog is displayed
clear
public abstract void clear()
getResources
protected ResourceBundle getResources()
Retrieves the resources for this dialog. If the resources are not
initialized, they get loaded on the first call to this method.
- this frames ResourceBundle.
grabDialogContents
protected abstract Configuration grabDialogContents(boolean full)
Returns a new (and not connected to the default config from the job)
configuration containing all properties from the dialog.
isConfirmed
public boolean isConfirmed()
Returns true
if the user confirmed the selection, and
false
otherwise. The file should only be saved if the result
is true
.
resolvePath
protected File resolvePath(String baseDirectory)
Resolves file names for the exports. An occurence of "~/" at the beginning
of the name will be replaced with the users home directory.
baseDirectory
- the base directory as specified in the configuration.
- the file object pointing to that directory.
setConfirmed
protected void setConfirmed(boolean confirmed)
Defines whether this dialog has been finished using the 'OK' or the
'Cancel' option.
confirmed
- set to true
, if OK was pressed,
false
otherwise