|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PDFBackgroundTask
This interface should be implemented by any features in
the Viewer that run in a background thread. These features
need to be paused when an exclusive lock on the whole PDF
is required, such as when the PDF is saved. An example of
one of these objects is the SidePanel returned from
ThumbnailPanel
Method Summary | |
---|---|
boolean |
isPaused()
Return true if the task has been paused with the pause() method |
boolean |
isRunning()
Returns true if the task is still running |
void |
pause()
Pause the task until the unpause() method is called. |
void |
unpause()
Unpause the task after a call to pause() |
Method Detail |
---|
boolean isPaused()
pause()
method
void pause() throws InterruptedException
unpause()
method is called.
This method waits until the task has actually paused.
InterruptedException
void unpause()
pause()
boolean isRunning()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |