public abstract class RMRunner<T> extends RMObject
Modifier and Type | Class and Description |
---|---|
static class |
RMRunner.Status |
Constructor and Description |
---|
RMRunner()
Creates a new runner.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the runner.
|
void |
cancelled(java.lang.Exception e)
The method to run when cancelled.
|
void |
failure(java.lang.Exception e)
The method to run on failure.
|
void |
finished()
The method to run when finished (after success()/failure() call).
|
java.lang.String |
getActivityText()
Returns a description of the current activity beging performed.
|
float |
getElapsedSeconds()
Returns the elapsed seconds.
|
long |
getElapsedTime()
Returns the elapsed time.
|
long |
getEndTime()
Returns the end time.
|
java.lang.Throwable |
getExeption()
Returns the exception.
|
int |
getMaximum()
Returns the progress maximum value.
|
int |
getMinimum()
Returns the progress minimum value.
|
int |
getProgress()
Returns the progress value.
|
T |
getResult()
Returns the result.
|
long |
getStartTime()
Returns the start time.
|
RMRunner.Status |
getStatus()
Returns the status.
|
java.lang.Thread |
getThread()
Returns the thread.
|
boolean |
isActive()
Returns whether thread is still active.
|
RMRunner<T> |
join()
Joins the runner.
|
RMRunner<T> |
join(int aTimeout)
Joins the runner.
|
abstract T |
run()
The method to run.
|
void |
setActivityText(java.lang.String aString)
Sets a description of the current activity beging performed.
|
void |
setMaximum(int aValue)
Sets the progress maximum value.
|
void |
setMinimum(int aValue)
Sets the progress minimum value.
|
void |
setProgress(int aValue)
Sets the progress value.
|
RMRunner<T> |
start()
Starts the runner.
|
void |
success(T aResult)
The method run on success.
|
addPropertyChangeListener, animUpdate, removePropertyChangeListener, toString
addListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public int getMinimum()
public void setMinimum(int aValue)
public int getMaximum()
public void setMaximum(int aValue)
public int getProgress()
public void setProgress(int aValue)
public java.lang.String getActivityText()
public void setActivityText(java.lang.String aString)
public RMRunner.Status getStatus()
public java.lang.Thread getThread()
public boolean isActive()
public long getStartTime()
public long getEndTime()
public long getElapsedTime()
public float getElapsedSeconds()
public void cancel()
public abstract T run() throws java.lang.Exception
java.lang.Exception
public void success(T aResult)
public void cancelled(java.lang.Exception e)
public void failure(java.lang.Exception e)
public void finished()
public T getResult()
public java.lang.Throwable getExeption()