com.sun.pdfview
public interface Watchable
Field Summary | |
---|---|
static int | COMPLETED |
static int | ERROR |
static int | NEEDS_DATA |
static int | NOT_STARTED |
static int | PAUSED |
static int | RUNNING |
static int | STOPPED |
static int | UNKNOWN the possible statuses |
Method Summary | |
---|---|
int | getStatus()
Get the status of this watchable
|
void | go()
Start this watchable and run until it is finished or stopped.
|
void | go(int steps)
Start this watchable and run for the given number of steps or until
finished or stopped.
|
void | go(long millis)
Start this watchable and run for the given amount of time, or until
finished or stopped.
|
void | stop()
Stop this watchable. |
Returns: one of the well-known statuses
Parameters: steps the number of steps to run for
Parameters: millis the number of milliseconds to run for