public class DefaultTaskWorker<V,C> extends AbstractUIThreadWorker<V,C> implements PropertyChangeListener, TaskWorker<V,C>
UIThreadWorker.StateValue
pcs
Constructor and Description |
---|
DefaultTaskWorker(Task<V,C> task) |
Modifier and Type | Method and Description |
---|---|
protected V |
doInBackground() |
protected void |
done() |
Long |
getFinishTimestamp() |
String |
getPhase() |
Long |
getStartedTimestamp() |
Task<V,C> |
getTask() |
boolean |
isError() |
protected void |
process(List<C> chunks) |
void |
propertyChange(PropertyChangeEvent evt) |
void |
publishChunks(C... chunks) |
void |
publishProgress(int progress) |
void |
setContext(TaskContext context) |
void |
setPhase(String phase) |
cancel, execute, get, get, getProgress, getState, isCancelled, isDone, publish, run, setExecutorServiceManager, setProgress, setUiThreadManager
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getProgress, getState
run
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
protected V doInBackground() throws Exception
doInBackground
in class AbstractUIThreadWorker<V,C>
Exception
protected void process(List<C> chunks)
process
in class AbstractUIThreadWorker<V,C>
public void setContext(@Nonnull TaskContext context)
setContext
in interface TaskWorker<V,C>
protected void done()
done
in class AbstractUIThreadWorker<V,C>
public Long getStartedTimestamp()
getStartedTimestamp
in interface TaskWorker<V,C>
public Long getFinishTimestamp()
getFinishTimestamp
in interface TaskWorker<V,C>
public boolean isError()
isError
in interface TaskWorker<V,C>
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void publishProgress(int progress)
publishProgress
in interface TaskWorker<V,C>
public void publishChunks(C... chunks)
publishChunks
in interface TaskWorker<V,C>