|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jomic.tools.SwingWorker
net.sf.jomic.ui.ConvertWorker
public class ConvertWorker
SwingWorker to convert comics.
| Constructor Summary | |
|---|---|
ConvertWorker(java.io.File newTargetDir,
java.io.File[] newFilesToConvert,
Conversion newConversion)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Called when on of the buttons in report frame is pressed. |
java.lang.Object |
construct()
Compute the value to be returned by the get method. |
java.util.List |
getComicsToConvert()
Create a list of comics to be converted to targetDir. |
void |
progressChanged(Task source)
Update progress bar in report frame. |
| Methods inherited from class net.sf.jomic.tools.SwingWorker |
|---|
finished, get, getValue, interrupt, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConvertWorker(java.io.File newTargetDir,
java.io.File[] newFilesToConvert,
Conversion newConversion)
| Method Detail |
|---|
public java.util.List getComicsToConvert()
targetDir. according to the rules
listed below.
filesToConvert, add a target comic with the same name
directly in targetDir. For example, /comics/s00paman/issue03.cbz with a
targetDir /stuff converts the comic to /stuff/issue03.cbz.
filesToConvert, recursively scan the directory
for comic files, and add target comics in targetDir relative to the path of
the source comic regarding the initial source directory from which the scan started. For
example a scan starting at /comics and detecting /comics/s00paman/issue03.cbz with a
targetDir /stuff converts the comic to /stuff/s00paman/issue03.cbz.
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerpublic java.lang.Object construct()
SwingWorkerget method.
construct in class SwingWorkerpublic void progressChanged(Task source)
progressChanged in interface ProgressChangeListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||