|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jomic.comic.ConversionReportItem
public class ConversionReportItem
Information about the current state of the conversion of one particular comic.
ComicToConvert| Field Summary | |
|---|---|
static String |
STATE_CANCELLED
State indicating that the conversion for this item has been cancelled. |
static String |
STATE_CONVERTING
State indicating that the item is currently converted. |
static String |
STATE_DONE
State indicating that the item was sucessfully converted. |
static String |
STATE_ERROR_DURING_CONVERSION
State indicating that the conversion failed because of some error. |
static String |
STATE_ERROR_NOT_UNIQUE
State indicating that the specified target could not be converted because another source comic already resulted in the same target. |
static String |
STATE_SKIPPED_DUPLICATE
State indicating that thespecified source and target already where converted by another item. |
static String |
STATE_WAITING
State indicating that the item is waiting to be converted. |
| Constructor Summary | |
|---|---|
ConversionReportItem(ComicToConvert comicToConvert)
|
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener listener)
|
Throwable |
getError()
Get details about the error that prevented the conversion to succeed. |
File |
getSourceFile()
|
long |
getSourceFileSize()
|
String |
getState()
|
Icon |
getStateIcon()
|
File |
getTargetFile()
|
long |
getTargetFileSize()
|
void |
removeChangeListener(ChangeListener listener)
|
void |
setConversionError(Throwable newError)
Set state to STATE_ERROR_DURING_CONVERSION and the related error information to newError
. |
void |
setState(String newState)
Set the state of the conversion to any of the STATE_xxx values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String STATE_CANCELLED
public static final String STATE_CONVERTING
public static final String STATE_DONE
public static final String STATE_ERROR_DURING_CONVERSION
public static final String STATE_ERROR_NOT_UNIQUE
public static final String STATE_SKIPPED_DUPLICATE
public static final String STATE_WAITING
| Constructor Detail |
|---|
public ConversionReportItem(ComicToConvert comicToConvert)
| Method Detail |
|---|
public void setConversionError(Throwable newError)
newError
.
public void setState(String newState)
STATE_xxx values. If the state
changes to STATE_DONE, obtain the file size of the target file.
STATE_DONE,
getTargetFileSize()public Throwable getError()
setConversionError(Throwable)public File getSourceFile()
public long getSourceFileSize()
public String getState()
public Icon getStateIcon()
public File getTargetFile()
public long getTargetFileSize()
public void addChangeListener(ChangeListener listener)
public void removeChangeListener(ChangeListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||