org.pdfsam.guiclient.commons.business.loaders.callable
Class AddPdfDocument

java.lang.Object
  extended by org.pdfsam.guiclient.commons.business.loaders.callable.AddPdfDocument
All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Boolean>
Direct Known Subclasses:
ReloadPdfDocument

public class AddPdfDocument
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Boolean>

Callable to add a pdf document to the selection panel

Author:
Andrea Vacondio

Field Summary
(package private)  java.io.File inputFile
           
(package private)  java.lang.String pageSelection
           
(package private)  JPdfSelectionPanel panel
           
(package private)  java.lang.String password
           
(package private)  java.lang.String wipText
           
 
Constructor Summary
AddPdfDocument(java.io.File inputFile, JPdfSelectionPanel panel)
           
AddPdfDocument(java.io.File inputFile, JPdfSelectionPanel panel, java.lang.String password, java.lang.String pageSelection)
           
 
Method Summary
 java.lang.Boolean call()
           
(package private)  PdfSelectionTableItem getPdfSelectionTableItem(java.io.File fileToAdd, java.lang.String password, java.lang.String pageSelection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wipText

java.lang.String wipText

inputFile

java.io.File inputFile

password

java.lang.String password

pageSelection

java.lang.String pageSelection

panel

JPdfSelectionPanel panel
Constructor Detail

AddPdfDocument

public AddPdfDocument(java.io.File inputFile,
                      JPdfSelectionPanel panel)

AddPdfDocument

public AddPdfDocument(java.io.File inputFile,
                      JPdfSelectionPanel panel,
                      java.lang.String password,
                      java.lang.String pageSelection)
Method Detail

call

public java.lang.Boolean call()
Specified by:
call in interface java.util.concurrent.Callable<java.lang.Boolean>

getPdfSelectionTableItem

PdfSelectionTableItem getPdfSelectionTableItem(java.io.File fileToAdd,
                                               java.lang.String password,
                                               java.lang.String pageSelection)
Parameters:
fileToAdd - file to add
password - password to open the file
Returns:
the item to add to the table