org.jfree.report.modules.gui.swing.pdf

Class PdfExportDialog

Implemented Interfaces:
ExportDialog

public class PdfExportDialog
extends AbstractExportDialog

Creation-Date: 02.12.2006, 15:27:30
Author:
Thomas Morgner

Constructor Summary

PdfExportDialog()
Creates a non-modal dialog without a title and without a specified Frame owner.
PdfExportDialog(Dialog owner)
Creates a non-modal dialog without a title with the specified Dialog as its owner.
PdfExportDialog(Frame owner)
Creates a non-modal dialog without a title with the specified Frame as its owner.

Method Summary

void
clear()
protected String
getConfigurationPrefix()
protected String
getConfigurationSuffix()
String
getEncryptionValue()
Queries the currently selected encryption.
String
getPrintLevel()
protected String
getResourceBaseName()
JStatusBar
getStatusBar()
protected Configuration
grabDialogContents(boolean full)
Returns a new (and not connected to the default config from the job) configuration containing all properties from the dialog.
protected void
initializeFromJob(ReportJob job, GuiContext guiContext)
protected boolean
performConfirm()
protected void
performSelectFile()
selects a file to use as target for the report processing.
protected boolean
performValidate()
protected void
setDialogContents(Configuration config)
void
setEncryptionValue(String b)
Defines the currently selected encryption.
void
setPrintLevel(String printLevel)
Defines whether the user is allowed to print the file.
protected void
updateSecurityPanelEnabled()
Updates the security panel state.

Methods inherited from class org.jfree.report.modules.gui.swing.common.AbstractExportDialog

clear, getCancelAction, getConfigurationPrefix, getConfigurationSuffix, getConfirmAction, getFormValidator, getGuiContext, getReportJob, getResourceBaseName, getResources, getStatusBar, grabDialogContents, initializeFromJob, isConfirmed, isFullInputStorageEnabled, isInputStorageEnabled, performConfirm, performQueryForExport, performValidate, resolvePath, setCancelAction, setConfirmAction, setConfirmed, setDialogContents

Constructor Details

PdfExportDialog

public PdfExportDialog()
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.

PdfExportDialog

public PdfExportDialog(Dialog owner)
Creates a non-modal dialog without a title with the specified Dialog as its owner.
Parameters:
owner - the non-null Dialog from which the dialog is displayed

PdfExportDialog

public PdfExportDialog(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.
Parameters:
owner - the Frame from which the dialog is displayed

Method Details

clear

public void clear()
Overrides:
clear in interface AbstractExportDialog

getConfigurationPrefix

protected String getConfigurationPrefix()
Overrides:
getConfigurationPrefix in interface AbstractExportDialog

getConfigurationSuffix

protected String getConfigurationSuffix()
Overrides:
getConfigurationSuffix in interface AbstractExportDialog

getEncryptionValue

public String getEncryptionValue()
Queries the currently selected encryption. If an encryption is selected this method returns either Boolean.TRUE or Boolean.FALSE, when no encryption is set, null is returned. If no encryption is set, the security properties have no defined state.
Returns:
the selection state for the encryption. If no encryption is set, this method returns null, if 40-bit encryption is set, the method returns Boolean.FALSE and on 128-Bit-encryption, Boolean.TRUE is returned.

getPrintLevel

public String getPrintLevel()

getResourceBaseName

protected String getResourceBaseName()
Overrides:
getResourceBaseName in interface AbstractExportDialog

getStatusBar

public JStatusBar getStatusBar()
Overrides:
getStatusBar in interface AbstractExportDialog

grabDialogContents

protected Configuration grabDialogContents(boolean full)
Returns a new (and not connected to the default config from the job) configuration containing all properties from the dialog.
Overrides:
grabDialogContents in interface AbstractExportDialog
Parameters:
full -

initializeFromJob

protected void initializeFromJob(ReportJob job,
                                 GuiContext guiContext)
Overrides:
initializeFromJob in interface AbstractExportDialog

performConfirm

protected boolean performConfirm()
Overrides:
performConfirm in interface AbstractExportDialog

performSelectFile

protected void performSelectFile()
selects a file to use as target for the report processing.

performValidate

protected boolean performValidate()
Overrides:
performValidate in interface AbstractExportDialog

setDialogContents

protected void setDialogContents(Configuration config)
Overrides:
setDialogContents in interface AbstractExportDialog

setEncryptionValue

public void setEncryptionValue(String b)
Defines the currently selected encryption.
Parameters:
b - the new encryption state, one of null, Boolean.TRUE or Boolean.FALSE

setPrintLevel

public void setPrintLevel(String printLevel)
Defines whether the user is allowed to print the file. If this right is granted, the user is also able to print a degraded version of the file, regardless of the allowDegradedPrinting

updateSecurityPanelEnabled

protected void updateSecurityPanelEnabled()
Updates the security panel state. If no encryption is selected, all security setting components will be disabled.