public abstract class AbstractUIThreadWorker<T,V> extends AbstractObservable implements UIThreadWorker<T,V>
UIThreadWorker.StateValuepcs| Constructor and Description | 
|---|
| AbstractUIThreadWorker() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | cancel(boolean mayInterruptIfRunning) | 
| protected abstract T | doInBackground() | 
| protected void | done() | 
| void | execute() | 
| T | get() | 
| T | get(long timeout,
   TimeUnit unit) | 
| int | getProgress() | 
| UIThreadWorker.StateValue | getState() | 
| boolean | isCancelled() | 
| boolean | isDone() | 
| protected void | process(List<V> chunks) | 
| protected void | publish(V... chunks) | 
| void | run() | 
| void | setExecutorServiceManager(ExecutorServiceManager executorServiceManager) | 
| protected void | setProgress(int progress) | 
| void | setUiThreadManager(UIThreadManager uiThreadManager) | 
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener@Inject public void setExecutorServiceManager(@Nonnull ExecutorServiceManager executorServiceManager)
@Inject public void setUiThreadManager(@Nonnull UIThreadManager uiThreadManager)
protected void done()
protected final void publish(V... chunks)
public final void run()
run in interface Runnablerun in interface RunnableFuture<T>protected final void setProgress(int progress)
public final int getProgress()
getProgress in interface UIThreadWorker<T,V>@Nonnull public final UIThreadWorker.StateValue getState()
getState in interface UIThreadWorker<T,V>public final void execute()
execute in interface UIThreadWorker<T,V>public final boolean cancel(boolean mayInterruptIfRunning)
public final boolean isCancelled()
isCancelled in interface Future<T>public final T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic final T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutException