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

Class PdfExportDialog

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(Frame owner)
Creates a non-modal dialog without a title with the specified Frame as its owner.
PdfExportDialog(Dialog owner)
Creates a non-modal dialog without a title with the specified Dialog as its owner.
Method Summary
voidclear()
protected StringgetConfigurationPrefix()
protected StringgetConfigurationSuffix()
StringgetEncryptionValue()
Queries the currently selected encryption.
StringgetPrintLevel()
protected StringgetResourceBaseName()
JStatusBargetStatusBar()
protected ConfigurationgrabDialogContents(boolean full)
Returns a new (and not connected to the default config from the job) configuration containing all properties from the dialog.
protected voidinitializeFromJob(ReportJob job, GuiContext guiContext)
protected booleanperformConfirm()
protected voidperformSelectFile()
selects a file to use as target for the report processing.
protected booleanperformValidate()
protected voidsetDialogContents(Configuration config)
voidsetEncryptionValue(String b)
Defines the currently selected encryption.
voidsetPrintLevel(String printLevel)
Defines whether the user is allowed to print the file.
protected voidupdateSecurityPanelEnabled()
Updates the security panel state.

Constructor Detail

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(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

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

Method Detail

clear

public void clear()

getConfigurationPrefix

protected String getConfigurationPrefix()

getConfigurationSuffix

protected String getConfigurationSuffix()

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()

getStatusBar

public JStatusBar getStatusBar()

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.

Parameters: full

initializeFromJob

protected void initializeFromJob(ReportJob job, GuiContext guiContext)

performConfirm

protected boolean performConfirm()

performSelectFile

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

performValidate

protected boolean performValidate()

setDialogContents

protected void setDialogContents(Configuration config)

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.